]> jfr.im git - irc/rqf/shadowircd.git/blame - libratbox/configure
Clarify connection setup.
[irc/rqf/shadowircd.git] / libratbox / configure
CommitLineData
b57f37fb
WP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
f030cae8 3# Generated by GNU Autoconf 2.63 for libratbox devel.
b57f37fb 4#
f030cae8 5# $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
b57f37fb
WP
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f030cae8 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
b57f37fb
WP
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
f030cae8 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b57f37fb
WP
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
f030cae8
VY
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
b57f37fb 56 else
f030cae8
VY
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
b57f37fb 69 fi
f030cae8
VY
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
b57f37fb
WP
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
b57f37fb
WP
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
f030cae8 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b57f37fb
WP
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
f030cae8
VY
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
b57f37fb
WP
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 156$as_echo X/"$0" |
b57f37fb
WP
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
f030cae8 182 if test $as_have_required = yes && (eval ":
b57f37fb
WP
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
f030cae8 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b57f37fb
WP
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
f030cae8 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b57f37fb
WP
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
f030cae8
VY
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
b57f37fb
WP
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
f030cae8
VY
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
b57f37fb
WP
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
f030cae8 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b57f37fb
WP
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
503esac
b57f37fb
WP
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
f030cae8
VY
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
b57f37fb 530 as_ln_s='cp -p'
f030cae8 531 fi
b57f37fb
WP
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
f030cae8 556 test -d "$1/.";
b57f37fb
WP
557 else
558 case $1 in
f030cae8 559 -*)set "./$1";;
b57f37fb
WP
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606$*
607EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='libratbox'
752PACKAGE_TARNAME='libratbox'
753PACKAGE_VERSION='devel'
754PACKAGE_STRING='libratbox devel'
755PACKAGE_BUGREPORT=''
756
757ac_default_prefix=/usr/local/libratbox
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772# include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777# include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
f030cae8
VY
794ac_subst_vars='LTLIBOBJS
795LIBOBJS
796RB_PREFIX
797SSL_LIBS
798SSL_CFLAGS
799SEDOBJ
800PICFLAGS
801GNUTLS_LIBS
802GNUTLS_CFLAGS
803PKG_CONFIG
804ALLOCA
805CRYPT_LIB
806NEED_CRYPT_FALSE
807NEED_CRYPT_TRUE
808MINGW_FALSE
809MINGW_TRUE
810LIBTOOL
811ac_ct_F77
812FFLAGS
813F77
814CXXCPP
815am__fastdepCXX_FALSE
816am__fastdepCXX_TRUE
817CXXDEPMODE
818ac_ct_CXX
819CXXFLAGS
820CXX
821NMEDIT
822DSYMUTIL
823RANLIB
824AR
825ECHO
826LN_S
827host_os
828host_vendor
829host_cpu
830host
831build_os
832build_vendor
833build_cpu
834build
835TOUCH
836LN
837MV
838CP
839RM
840AS
841MAINT
842MAINTAINER_MODE_FALSE
843MAINTAINER_MODE_TRUE
844SED
845EGREP
846GREP
847CPP
848am__fastdepCC_FALSE
849am__fastdepCC_TRUE
850CCDEPMODE
851AMDEPBACKSLASH
852AMDEP_FALSE
853AMDEP_TRUE
854am__quote
855am__include
856DEPDIR
857OBJEXT
858EXEEXT
859ac_ct_CC
860CPPFLAGS
861LDFLAGS
862CFLAGS
863CC
864am__untar
865am__tar
866AMTAR
867am__leading_dot
868SET_MAKE
869AWK
870mkdir_p
871MKDIR_P
872INSTALL_STRIP_PROGRAM
873STRIP
874install_sh
875MAKEINFO
876AUTOHEADER
877AUTOMAKE
878AUTOCONF
879ACLOCAL
880VERSION
881PACKAGE
882CYGPATH_W
883am__isrc
884INSTALL_DATA
885INSTALL_SCRIPT
886INSTALL_PROGRAM
887target_alias
888host_alias
b57f37fb 889build_alias
f030cae8
VY
890LIBS
891ECHO_T
892ECHO_N
893ECHO_C
894DEFS
895mandir
896localedir
897libdir
898psdir
899pdfdir
900dvidir
901htmldir
902infodir
903docdir
904oldincludedir
905includedir
906localstatedir
907sharedstatedir
908sysconfdir
909datadir
910datarootdir
911libexecdir
912sbindir
913bindir
914program_transform_name
915prefix
916exec_prefix
917PACKAGE_BUGREPORT
918PACKAGE_STRING
919PACKAGE_VERSION
920PACKAGE_TARNAME
921PACKAGE_NAME
922PATH_SEPARATOR
923SHELL'
924ac_subst_files=''
925ac_user_opts='
926enable_option_checking
927enable_dependency_tracking
928enable_static
929enable_shared
930enable_maintainer_mode
931enable_fast_install
932with_gnu_ld
933enable_libtool_lock
934with_pic
935with_tags
936enable_ipv6
937enable_openssl
938enable_gnutls
939enable_assert
940enable_profile
941enable_balloc
942enable_warnings
943'
944 ac_precious_vars='build_alias
b57f37fb
WP
945host_alias
946target_alias
b57f37fb
WP
947CC
948CFLAGS
949LDFLAGS
f030cae8 950LIBS
b57f37fb 951CPPFLAGS
b57f37fb
WP
952CPP
953CXX
954CXXFLAGS
f030cae8 955CCC
b57f37fb
WP
956CXXCPP
957F77
dd910409
WP
958FFLAGS
959PKG_CONFIG
960GNUTLS_CFLAGS
961GNUTLS_LIBS'
94b4fbf9 962
b57f37fb
WP
963
964# Initialize some variables set by options.
965ac_init_help=
966ac_init_version=false
f030cae8
VY
967ac_unrecognized_opts=
968ac_unrecognized_sep=
b57f37fb
WP
969# The variables have the same names as the options, with
970# dashes changed to underlines.
971cache_file=/dev/null
972exec_prefix=NONE
973no_create=
974no_recursion=
975prefix=NONE
976program_prefix=NONE
977program_suffix=NONE
978program_transform_name=s,x,x,
979silent=
980site=
981srcdir=
982verbose=
983x_includes=NONE
984x_libraries=NONE
985
986# Installation directory options.
987# These are left unexpanded so users can "make install exec_prefix=/foo"
988# and all the variables that are supposed to be based on exec_prefix
989# by default will actually change.
990# Use braces instead of parens because sh, perl, etc. also accept them.
991# (The list follows the same order as the GNU Coding Standards.)
992bindir='${exec_prefix}/bin'
993sbindir='${exec_prefix}/sbin'
994libexecdir='${exec_prefix}/libexec'
995datarootdir='${prefix}/share'
996datadir='${datarootdir}'
997sysconfdir='${prefix}/etc'
998sharedstatedir='${prefix}/com'
999localstatedir='${prefix}/var'
1000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
1002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
1011
1012ac_prev=
1013ac_dashdash=
1014for ac_option
1015do
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1019 ac_prev=
1020 continue
1021 fi
1022
1023 case $ac_option in
1024 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 *) ac_optarg=yes ;;
1026 esac
1027
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1029
1030 case $ac_dashdash$ac_option in
1031 --)
1032 ac_dashdash=yes ;;
1033
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 ac_prev=bindir ;;
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1038
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1043
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1050
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1053
1054 -datadir | --datadir | --datadi | --datad)
1055 ac_prev=datadir ;;
1056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057 datadir=$ac_optarg ;;
1058
1059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1065
1066 -disable-* | --disable-*)
f030cae8 1067 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b57f37fb 1068 # Reject names that are not valid shell variable names.
f030cae8
VY
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
b57f37fb 1071 { (exit 1); exit 1; }; }
f030cae8
VY
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"enable_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
b57f37fb
WP
1082
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1087
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1092
1093 -enable-* | --enable-*)
f030cae8 1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b57f37fb 1095 # Reject names that are not valid shell variable names.
f030cae8
VY
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
b57f37fb 1098 { (exit 1); exit 1; }; }
f030cae8
VY
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103"enable_$ac_useropt"
1104"*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval enable_$ac_useropt=\$ac_optarg ;;
b57f37fb
WP
1109
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1118
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1121 with_gas=yes ;;
1122
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1129
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1134
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136 ac_prev=htmldir ;;
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138 | --ht=*)
1139 htmldir=$ac_optarg ;;
1140
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1147
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1149 ac_prev=infodir ;;
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1152
1153 -libdir | --libdir | --libdi | --libd)
1154 ac_prev=libdir ;;
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1157
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1164
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1169
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir=$ac_optarg ;;
1176
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178 ac_prev=mandir ;;
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1181
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1184 with_fp=no ;;
1185
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1188 no_create=yes ;;
1189
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192 no_recursion=yes ;;
1193
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1202
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204 ac_prev=prefix ;;
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1207
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1214
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1221
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1238
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240 ac_prev=pdfdir ;;
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1243
1244 -psdir | --psdir | --psdi | --psd | --ps)
1245 ac_prev=psdir ;;
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247 psdir=$ac_optarg ;;
1248
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 silent=yes ;;
1252
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254 ac_prev=sbindir ;;
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256 | --sbi=* | --sb=*)
1257 sbindir=$ac_optarg ;;
1258
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1262 | --sha | --sh)
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267 | --sha=* | --sh=*)
1268 sharedstatedir=$ac_optarg ;;
1269
1270 -site | --site | --sit)
1271 ac_prev=site ;;
1272 -site=* | --site=* | --sit=*)
1273 site=$ac_optarg ;;
1274
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276 ac_prev=srcdir ;;
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1279
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1286
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1291
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293 verbose=yes ;;
1294
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1297
1298 -with-* | --with-*)
f030cae8 1299 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b57f37fb 1300 # Reject names that are not valid shell variable names.
f030cae8
VY
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
b57f37fb 1303 { (exit 1); exit 1; }; }
f030cae8
VY
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1307 *"
1308"with_$ac_useropt"
1309"*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=\$ac_optarg ;;
b57f37fb
WP
1314
1315 -without-* | --without-*)
f030cae8 1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b57f37fb 1317 # Reject names that are not valid shell variable names.
f030cae8
VY
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
b57f37fb 1320 { (exit 1); exit 1; }; }
f030cae8
VY
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1324 *"
1325"with_$ac_useropt"
1326"*) ;;
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1329 esac
1330 eval with_$ac_useropt=no ;;
b57f37fb
WP
1331
1332 --x)
1333 # Obsolete; use --with-x.
1334 with_x=yes ;;
1335
1336 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1337 | --x-incl | --x-inc | --x-in | --x-i)
1338 ac_prev=x_includes ;;
1339 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1340 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1341 x_includes=$ac_optarg ;;
1342
1343 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1344 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1345 ac_prev=x_libraries ;;
1346 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1347 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1348 x_libraries=$ac_optarg ;;
1349
f030cae8 1350 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
b57f37fb
WP
1351Try \`$0 --help' for more information." >&2
1352 { (exit 1); exit 1; }; }
1353 ;;
1354
1355 *=*)
1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
f030cae8 1359 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
b57f37fb
WP
1360 { (exit 1); exit 1; }; }
1361 eval $ac_envvar=\$ac_optarg
1362 export $ac_envvar ;;
1363
1364 *)
1365 # FIXME: should be removed in autoconf 3.0.
f030cae8 1366 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b57f37fb 1367 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f030cae8 1368 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b57f37fb
WP
1369 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1370 ;;
1371
1372 esac
1373done
1374
1375if test -n "$ac_prev"; then
1376 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f030cae8 1377 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
b57f37fb
WP
1378 { (exit 1); exit 1; }; }
1379fi
1380
f030cae8
VY
1381if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1383 no) ;;
1384 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1385 { (exit 1); exit 1; }; } ;;
1386 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387 esac
1388fi
1389
1390# Check all directory arguments for consistency.
b57f37fb
WP
1391for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1392 datadir sysconfdir sharedstatedir localstatedir includedir \
1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1394 libdir localedir mandir
1395do
1396 eval ac_val=\$$ac_var
f030cae8
VY
1397 # Remove trailing slashes.
1398 case $ac_val in
1399 */ )
1400 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1401 eval $ac_var=\$ac_val;;
1402 esac
1403 # Be sure to have absolute directory names.
b57f37fb
WP
1404 case $ac_val in
1405 [\\/$]* | ?:[\\/]* ) continue;;
1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407 esac
f030cae8 1408 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
b57f37fb
WP
1409 { (exit 1); exit 1; }; }
1410done
1411
1412# There might be people who depend on the old broken behavior: `$host'
1413# used to hold the argument of --host etc.
1414# FIXME: To remove some day.
1415build=$build_alias
1416host=$host_alias
1417target=$target_alias
1418
1419# FIXME: To remove some day.
1420if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
f030cae8 1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b57f37fb
WP
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1427 fi
1428fi
1429
1430ac_tool_prefix=
1431test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433test "$silent" = yes && exec 6>/dev/null
1434
1435
1436ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437ac_ls_di=`ls -di .` &&
1438ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f030cae8 1439 { $as_echo "$as_me: error: working directory cannot be determined" >&2
b57f37fb
WP
1440 { (exit 1); exit 1; }; }
1441test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f030cae8 1442 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
b57f37fb
WP
1443 { (exit 1); exit 1; }; }
1444
1445
1446# Find the source files, if location was not specified.
1447if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
f030cae8
VY
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455$as_echo X"$as_myself" |
b57f37fb
WP
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\/\)[^/].*/{
1461 s//\1/
1462 q
1463 }
1464 /^X\(\/\/\)$/{
1465 s//\1/
1466 q
1467 }
1468 /^X\(\/\).*/{
1469 s//\1/
1470 q
1471 }
1472 s/.*/./; q'`
1473 srcdir=$ac_confdir
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 srcdir=..
1476 fi
1477else
1478 ac_srcdir_defaulted=no
1479fi
1480if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f030cae8 1482 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
b57f37fb
WP
1483 { (exit 1); exit 1; }; }
1484fi
1485ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486ac_abs_confdir=`(
f030cae8 1487 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
b57f37fb
WP
1488 { (exit 1); exit 1; }; }
1489 pwd)`
1490# When building in place, set srcdir=.
1491if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 srcdir=.
1493fi
1494# Remove unnecessary trailing slashes from srcdir.
1495# Double slashes in file names in object file debugging info
1496# mess up M-x gdb in Emacs.
1497case $srcdir in
1498*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499esac
1500for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505done
1506
1507#
1508# Report the --help message.
1509#
1510if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1513 cat <<_ACEOF
1514\`configure' configures libratbox devel to adapt to many kinds of systems.
1515
1516Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519VAR=VALUE. See below for descriptions of some of the useful variables.
1520
1521Defaults for the options are specified in brackets.
1522
1523Configuration:
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533
1534Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
f030cae8 1536 [$ac_default_prefix]
b57f37fb 1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
f030cae8 1538 [PREFIX]
b57f37fb
WP
1539
1540By default, \`make install' will install all the files in
1541\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543for instance \`--prefix=\$HOME'.
1544
1545For better control, use the options below.
1546
1547Fine tuning of the installation directories:
f030cae8
VY
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
b57f37fb
WP
1567_ACEOF
1568
1569 cat <<\_ACEOF
1570
1571Program names:
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575
1576System types:
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1579_ACEOF
1580fi
1581
1582if test -n "$ac_init_help"; then
1583 case $ac_init_help in
1584 short | recursive ) echo "Configuration of libratbox devel:";;
1585 esac
1586 cat <<\_ACEOF
1587
1588Optional Features:
f030cae8 1589 --disable-option-checking ignore unrecognized --enable/--with options
b57f37fb
WP
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1592 --disable-dependency-tracking speeds up one-time build
1593 --enable-dependency-tracking do not reject slow dependency extractors
1594 --enable-static[=PKGS] build static libraries [default=no]
1595 --enable-shared[=PKGS] build shared libraries [default=yes]
1596 --enable-maintainer-mode enable make rules and dependencies not useful
1597 (and sometimes confusing) to the casual installer
1598 --enable-fast-install[=PKGS]
1599 optimize for fast installation [default=yes]
1600 --disable-libtool-lock avoid locking (might break parallel builds)
1601 --disable-ipv6 Disable IPv6 support
1602 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1603 --disable-openssl Disable OpenSSL support.
033be687
VY
1604 --enable-gnutls Enable GnuTLS support.
1605 --disable-gnutls Disable GnuTLS support.
b57f37fb
WP
1606 --enable-assert Enable assert(). Choose between soft(warnings) and
1607 hard(aborts the daemon)
1608 --enable-profile Enable profiling
1609 --disable-balloc Disable the block allocator.
1610 --enable-warnings Enable all sorts of warnings for debugging.
1611
1612Optional Packages:
1613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1616 --with-pic try to use only PIC/non-PIC objects [default=use
1617 both]
1618 --with-tags[=TAGS] include additional configurations [automatic]
1619
1620Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CPP C preprocessor
1629 CXX C++ compiler command
1630 CXXFLAGS C++ compiler flags
1631 CXXCPP C++ preprocessor
1632 F77 Fortran 77 compiler command
1633 FFLAGS Fortran 77 compiler flags
dd910409
WP
1634 PKG_CONFIG path to pkg-config utility
1635 GNUTLS_CFLAGS
1636 C compiler flags for GNUTLS, overriding pkg-config
1637 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
b57f37fb
WP
1638
1639Use these variables to override the choices made by `configure' or to help
1640it to find libraries and programs with nonstandard names/locations.
1641
1642_ACEOF
1643ac_status=$?
1644fi
1645
1646if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
f030cae8
VY
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 continue
b57f37fb
WP
1652 ac_builddir=.
1653
1654case "$ac_dir" in
1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656*)
f030cae8 1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b57f37fb 1658 # A ".." for each directory in $ac_dir_suffix.
f030cae8 1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b57f37fb
WP
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664esac
1665ac_abs_top_builddir=$ac_pwd
1666ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667# for backward compatibility:
1668ac_top_builddir=$ac_top_build_prefix
1669
1670case $srcdir in
1671 .) # We are building in place.
1672 ac_srcdir=.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683esac
1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1694 else
f030cae8 1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b57f37fb
WP
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1698 done
1699fi
1700
1701test -n "$ac_init_help" && exit $ac_status
1702if $ac_init_version; then
1703 cat <<\_ACEOF
1704libratbox configure devel
f030cae8 1705generated by GNU Autoconf 2.63
b57f37fb
WP
1706
1707Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f030cae8 17082002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
b57f37fb
WP
1709This configure script is free software; the Free Software Foundation
1710gives unlimited permission to copy, distribute and modify it.
1711
f030cae8 1712$Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
b57f37fb
WP
1713_ACEOF
1714 exit
1715fi
1716cat >config.log <<_ACEOF
1717This file contains any messages produced by compilers while
1718running configure, to aid debugging if configure makes a mistake.
1719
1720It was created by libratbox $as_me devel, which was
f030cae8 1721generated by GNU Autoconf 2.63. Invocation command line was
b57f37fb
WP
1722
1723 $ $0 $@
1724
1725_ACEOF
1726exec 5>>config.log
1727{
1728cat <<_ASUNAME
1729## --------- ##
1730## Platform. ##
1731## --------- ##
1732
1733hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1741
1742/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1743/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1744/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1746/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1747/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1748/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1749
1750_ASUNAME
1751
1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
f030cae8 1757 $as_echo "PATH: $as_dir"
b57f37fb
WP
1758done
1759IFS=$as_save_IFS
1760
1761} >&5
1762
1763cat >&5 <<_ACEOF
1764
1765
1766## ----------- ##
1767## Core tests. ##
1768## ----------- ##
1769
1770_ACEOF
1771
1772
1773# Keep a trace of the command line.
1774# Strip out --no-create and --no-recursion so they do not pile up.
1775# Strip out --silent because we don't want to record it for future runs.
1776# Also quote any args containing shell meta-characters.
1777# Make two passes to allow for proper duplicate-argument suppression.
1778ac_configure_args=
1779ac_configure_args0=
1780ac_configure_args1=
1781ac_must_keep_next=false
1782for ac_pass in 1 2
1783do
1784 for ac_arg
1785 do
1786 case $ac_arg in
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1790 continue ;;
1791 *\'*)
f030cae8 1792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b57f37fb
WP
1793 esac
1794 case $ac_pass in
1795 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1796 2)
1797 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1800 else
1801 case $ac_arg in
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 esac
1809 ;;
1810 -* ) ac_must_keep_next=true ;;
1811 esac
1812 fi
1813 ac_configure_args="$ac_configure_args '$ac_arg'"
1814 ;;
1815 esac
1816 done
1817done
1818$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1819$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1820
1821# When interrupted or exit'd, cleanup temporary files, and complete
1822# config.log. We remove comments because anyway the quotes in there
1823# would cause problems or look ugly.
1824# WARNING: Use '\'' to represent an apostrophe within the trap.
1825# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1828 {
1829 echo
1830
1831 cat <<\_ASBOX
1832## ---------------- ##
1833## Cache variables. ##
1834## ---------------- ##
1835_ASBOX
1836 echo
1837 # The following way of writing the cache mishandles newlines in values,
1838(
1839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1840 eval ac_val=\$$ac_var
1841 case $ac_val in #(
1842 *${as_nl}*)
1843 case $ac_var in #(
f030cae8
VY
1844 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1845$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b57f37fb
WP
1846 esac
1847 case $ac_var in #(
1848 _ | IFS | as_nl) ;; #(
f030cae8 1849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b57f37fb
WP
1850 *) $as_unset $ac_var ;;
1851 esac ;;
1852 esac
1853 done
1854 (set) 2>&1 |
1855 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1856 *${as_nl}ac_space=\ *)
1857 sed -n \
1858 "s/'\''/'\''\\\\'\'''\''/g;
1859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860 ;; #(
1861 *)
1862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1863 ;;
1864 esac |
1865 sort
1866)
1867 echo
1868
1869 cat <<\_ASBOX
1870## ----------------- ##
1871## Output variables. ##
1872## ----------------- ##
1873_ASBOX
1874 echo
1875 for ac_var in $ac_subst_vars
1876 do
1877 eval ac_val=\$$ac_var
1878 case $ac_val in
f030cae8 1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b57f37fb 1880 esac
f030cae8 1881 $as_echo "$ac_var='\''$ac_val'\''"
b57f37fb
WP
1882 done | sort
1883 echo
1884
1885 if test -n "$ac_subst_files"; then
1886 cat <<\_ASBOX
1887## ------------------- ##
1888## File substitutions. ##
1889## ------------------- ##
1890_ASBOX
1891 echo
1892 for ac_var in $ac_subst_files
1893 do
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
f030cae8 1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
b57f37fb 1897 esac
f030cae8 1898 $as_echo "$ac_var='\''$ac_val'\''"
b57f37fb
WP
1899 done | sort
1900 echo
1901 fi
1902
1903 if test -s confdefs.h; then
1904 cat <<\_ASBOX
1905## ----------- ##
1906## confdefs.h. ##
1907## ----------- ##
1908_ASBOX
1909 echo
1910 cat confdefs.h
1911 echo
1912 fi
1913 test "$ac_signal" != 0 &&
f030cae8
VY
1914 $as_echo "$as_me: caught signal $ac_signal"
1915 $as_echo "$as_me: exit $exit_status"
b57f37fb
WP
1916 } >&5
1917 rm -f core *.core core.conftest.* &&
1918 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1919 exit $exit_status
1920' 0
1921for ac_signal in 1 2 13 15; do
1922 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1923done
1924ac_signal=0
1925
1926# confdefs.h avoids OS command line length limits that DEFS can exceed.
1927rm -f -r conftest* confdefs.h
1928
1929# Predefined preprocessor variables.
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_NAME "$PACKAGE_NAME"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1938_ACEOF
1939
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_VERSION "$PACKAGE_VERSION"
1943_ACEOF
1944
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_STRING "$PACKAGE_STRING"
1948_ACEOF
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1953_ACEOF
1954
1955
1956# Let the site file select an alternate cache file if it wants to.
f030cae8
VY
1957# Prefer an explicitly selected file to automatically selected ones.
1958ac_site_file1=NONE
1959ac_site_file2=NONE
b57f37fb 1960if test -n "$CONFIG_SITE"; then
f030cae8 1961 ac_site_file1=$CONFIG_SITE
b57f37fb 1962elif test "x$prefix" != xNONE; then
f030cae8
VY
1963 ac_site_file1=$prefix/share/config.site
1964 ac_site_file2=$prefix/etc/config.site
b57f37fb 1965else
f030cae8
VY
1966 ac_site_file1=$ac_default_prefix/share/config.site
1967 ac_site_file2=$ac_default_prefix/etc/config.site
b57f37fb 1968fi
f030cae8 1969for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b57f37fb 1970do
f030cae8 1971 test "x$ac_site_file" = xNONE && continue
b57f37fb 1972 if test -r "$ac_site_file"; then
f030cae8
VY
1973 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1974$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b57f37fb
WP
1975 sed 's/^/| /' "$ac_site_file" >&5
1976 . "$ac_site_file"
1977 fi
1978done
1979
1980if test -r "$cache_file"; then
1981 # Some versions of bash will fail to source /dev/null (special
1982 # files actually), so we avoid doing that.
1983 if test -f "$cache_file"; then
f030cae8
VY
1984 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1985$as_echo "$as_me: loading cache $cache_file" >&6;}
b57f37fb
WP
1986 case $cache_file in
1987 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1988 *) . "./$cache_file";;
1989 esac
1990 fi
1991else
f030cae8
VY
1992 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1993$as_echo "$as_me: creating cache $cache_file" >&6;}
b57f37fb
WP
1994 >$cache_file
1995fi
1996
1997# Check that the precious variables saved in the cache have kept the same
1998# value.
1999ac_cache_corrupted=false
2000for ac_var in $ac_precious_vars; do
2001 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2002 eval ac_new_set=\$ac_env_${ac_var}_set
2003 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2004 eval ac_new_val=\$ac_env_${ac_var}_value
2005 case $ac_old_set,$ac_new_set in
2006 set,)
f030cae8
VY
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2008$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b57f37fb
WP
2009 ac_cache_corrupted=: ;;
2010 ,set)
f030cae8
VY
2011 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2012$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b57f37fb
WP
2013 ac_cache_corrupted=: ;;
2014 ,);;
2015 *)
2016 if test "x$ac_old_val" != "x$ac_new_val"; then
f030cae8
VY
2017 # differences in whitespace do not lead to failure.
2018 ac_old_val_w=`echo x $ac_old_val`
2019 ac_new_val_w=`echo x $ac_new_val`
2020 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2021 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2022$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2023 ac_cache_corrupted=:
2024 else
2025 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2026$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2027 eval $ac_var=\$ac_old_val
2028 fi
2029 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2030$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2031 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2032$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b57f37fb
WP
2033 fi;;
2034 esac
2035 # Pass precious variables to config.status.
2036 if test "$ac_new_set" = set; then
2037 case $ac_new_val in
f030cae8 2038 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b57f37fb
WP
2039 *) ac_arg=$ac_var=$ac_new_val ;;
2040 esac
2041 case " $ac_configure_args " in
2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2043 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2044 esac
2045 fi
2046done
2047if $ac_cache_corrupted; then
f030cae8
VY
2048 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2051$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2052 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2053$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
b57f37fb
WP
2054 { (exit 1); exit 1; }; }
2055fi
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081ac_ext=c
2082ac_cpp='$CPP $CPPFLAGS'
2083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086
2087
2088am__api_version='1.10'
2089
2090ac_aux_dir=
2091for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2092 if test -f "$ac_dir/install-sh"; then
2093 ac_aux_dir=$ac_dir
2094 ac_install_sh="$ac_aux_dir/install-sh -c"
2095 break
2096 elif test -f "$ac_dir/install.sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install.sh -c"
2099 break
2100 elif test -f "$ac_dir/shtool"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/shtool install -c"
2103 break
2104 fi
2105done
2106if test -z "$ac_aux_dir"; then
f030cae8
VY
2107 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2108$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
b57f37fb
WP
2109 { (exit 1); exit 1; }; }
2110fi
2111
2112# These three variables are undocumented and unsupported,
2113# and are intended to be withdrawn in a future Autoconf release.
2114# They can cause serious problems if a builder's source tree is in a directory
2115# whose full name contains unusual characters.
2116ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2117ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2118ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2119
2120
2121# Find a good install program. We prefer a C program (faster),
2122# so one script is as good as another. But avoid the broken or
2123# incompatible versions:
2124# SysV /etc/install, /usr/sbin/install
2125# SunOS /usr/etc/install
2126# IRIX /sbin/install
2127# AIX /bin/install
2128# AmigaOS /C/install, which installs bootblocks on floppy discs
2129# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2130# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2131# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2132# OS/2's system install, which has a completely different semantic
2133# ./install, which can be erroneously created by make from ./install.sh.
f030cae8
VY
2134# Reject install programs that cannot install multiple files.
2135{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136$as_echo_n "checking for a BSD-compatible install... " >&6; }
b57f37fb
WP
2137if test -z "$INSTALL"; then
2138if test "${ac_cv_path_install+set}" = set; then
f030cae8 2139 $as_echo_n "(cached) " >&6
b57f37fb
WP
2140else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 # Account for people who put trailing slashes in PATH elements.
2147case $as_dir/ in
2148 ./ | .// | /cC/* | \
2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151 /usr/ucb/* ) ;;
2152 *)
2153 # OSF1 and SCO ODT 3.0 have their own names for install.
2154 # Don't use installbsd from OSF since it installs stuff as root
2155 # by default.
2156 for ac_prog in ginstall scoinst install; do
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159 if test $ac_prog = install &&
2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # AIX install. It has an incompatible calling convention.
2162 :
2163 elif test $ac_prog = install &&
2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # program-specific install script used by HP pwplus--don't use.
2166 :
2167 else
f030cae8
VY
2168 rm -rf conftest.one conftest.two conftest.dir
2169 echo one > conftest.one
2170 echo two > conftest.two
2171 mkdir conftest.dir
2172 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2173 test -s conftest.one && test -s conftest.two &&
2174 test -s conftest.dir/conftest.one &&
2175 test -s conftest.dir/conftest.two
2176 then
2177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2178 break 3
2179 fi
b57f37fb
WP
2180 fi
2181 fi
2182 done
2183 done
2184 ;;
2185esac
f030cae8 2186
b57f37fb
WP
2187done
2188IFS=$as_save_IFS
2189
f030cae8 2190rm -rf conftest.one conftest.two conftest.dir
b57f37fb
WP
2191
2192fi
2193 if test "${ac_cv_path_install+set}" = set; then
2194 INSTALL=$ac_cv_path_install
2195 else
2196 # As a last resort, use the slow shell script. Don't cache a
2197 # value for INSTALL within a source directory, because that will
2198 # break other packages using the cache if that directory is
2199 # removed, or if the value is a relative name.
2200 INSTALL=$ac_install_sh
2201 fi
2202fi
f030cae8
VY
2203{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2204$as_echo "$INSTALL" >&6; }
b57f37fb
WP
2205
2206# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2207# It thinks the first close brace ends the variable substitution.
2208test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2209
2210test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2211
2212test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2213
f030cae8
VY
2214{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2215$as_echo_n "checking whether build environment is sane... " >&6; }
b57f37fb
WP
2216# Just in case
2217sleep 1
2218echo timestamp > conftest.file
2219# Do `set' in a subshell so we don't clobber the current shell's
2220# arguments. Must try -L first in case configure is actually a
2221# symlink; some systems play weird games with the mod time of symlinks
2222# (eg FreeBSD returns the mod time of the symlink's containing
2223# directory).
2224if (
2225 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2226 if test "$*" = "X"; then
2227 # -L didn't work.
2228 set X `ls -t $srcdir/configure conftest.file`
2229 fi
2230 rm -f conftest.file
2231 if test "$*" != "X $srcdir/configure conftest.file" \
2232 && test "$*" != "X conftest.file $srcdir/configure"; then
2233
2234 # If neither matched, then we have a broken ls. This can happen
2235 # if, for instance, CONFIG_SHELL is bash and it inherits a
2236 # broken ls alias from the environment. This has actually
2237 # happened. Such a system could not be considered "sane".
f030cae8 2238 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
b57f37fb 2239alias in your environment" >&5
f030cae8 2240$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
b57f37fb
WP
2241alias in your environment" >&2;}
2242 { (exit 1); exit 1; }; }
2243 fi
2244
2245 test "$2" = conftest.file
2246 )
2247then
2248 # Ok.
2249 :
2250else
f030cae8 2251 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
b57f37fb 2252Check your system clock" >&5
f030cae8 2253$as_echo "$as_me: error: newly created file is older than distributed files!
b57f37fb
WP
2254Check your system clock" >&2;}
2255 { (exit 1); exit 1; }; }
2256fi
f030cae8
VY
2257{ $as_echo "$as_me:$LINENO: result: yes" >&5
2258$as_echo "yes" >&6; }
b57f37fb
WP
2259test "$program_prefix" != NONE &&
2260 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2261# Use a double $ so make ignores it.
2262test "$program_suffix" != NONE &&
2263 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
f030cae8 2264# Double any \ or $.
b57f37fb 2265# By default was `s,x,x', remove it if useless.
f030cae8
VY
2266ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2267program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
b57f37fb
WP
2268
2269# expand $ac_aux_dir to an absolute path
2270am_aux_dir=`cd $ac_aux_dir && pwd`
2271
2272test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2273# Use eval to expand $SHELL
2274if eval "$MISSING --run true"; then
2275 am_missing_run="$MISSING --run "
2276else
2277 am_missing_run=
f030cae8
VY
2278 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2279$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
b57f37fb
WP
2280fi
2281
f030cae8
VY
2282{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2283$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
b57f37fb
WP
2284if test -z "$MKDIR_P"; then
2285 if test "${ac_cv_path_mkdir+set}" = set; then
f030cae8 2286 $as_echo_n "(cached) " >&6
b57f37fb
WP
2287else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2290do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_prog in mkdir gmkdir; do
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2296 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2297 'mkdir (GNU coreutils) '* | \
2298 'mkdir (coreutils) '* | \
2299 'mkdir (fileutils) '4.1*)
2300 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2301 break 3;;
2302 esac
2303 done
2304 done
2305done
2306IFS=$as_save_IFS
2307
2308fi
2309
2310 if test "${ac_cv_path_mkdir+set}" = set; then
2311 MKDIR_P="$ac_cv_path_mkdir -p"
2312 else
2313 # As a last resort, use the slow shell script. Don't cache a
2314 # value for MKDIR_P within a source directory, because that will
2315 # break other packages using the cache if that directory is
2316 # removed, or if the value is a relative name.
2317 test -d ./--version && rmdir ./--version
2318 MKDIR_P="$ac_install_sh -d"
2319 fi
2320fi
f030cae8
VY
2321{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2322$as_echo "$MKDIR_P" >&6; }
b57f37fb
WP
2323
2324mkdir_p="$MKDIR_P"
2325case $mkdir_p in
2326 [\\/$]* | ?:[\\/]*) ;;
2327 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2328esac
2329
2330for ac_prog in gawk mawk nawk awk
2331do
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333set dummy $ac_prog; ac_word=$2
f030cae8
VY
2334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2336if test "${ac_cv_prog_AWK+set}" = set; then
f030cae8 2337 $as_echo_n "(cached) " >&6
b57f37fb
WP
2338else
2339 if test -n "$AWK"; then
2340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_AWK="$ac_prog"
f030cae8 2350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2351 break 2
2352 fi
2353done
2354done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359AWK=$ac_cv_prog_AWK
2360if test -n "$AWK"; then
f030cae8
VY
2361 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2362$as_echo "$AWK" >&6; }
b57f37fb 2363else
f030cae8
VY
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365$as_echo "no" >&6; }
b57f37fb
WP
2366fi
2367
2368
2369 test -n "$AWK" && break
2370done
2371
f030cae8
VY
2372{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2373$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2374set x ${MAKE-make}
2375ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b57f37fb 2376if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 2377 $as_echo_n "(cached) " >&6
b57f37fb
WP
2378else
2379 cat >conftest.make <<\_ACEOF
2380SHELL = /bin/sh
2381all:
2382 @echo '@@@%%%=$(MAKE)=@@@%%%'
2383_ACEOF
2384# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2385case `${MAKE-make} -f conftest.make 2>/dev/null` in
2386 *@@@%%%=?*=@@@%%%*)
2387 eval ac_cv_prog_make_${ac_make}_set=yes;;
2388 *)
2389 eval ac_cv_prog_make_${ac_make}_set=no;;
2390esac
2391rm -f conftest.make
2392fi
2393if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
f030cae8
VY
2394 { $as_echo "$as_me:$LINENO: result: yes" >&5
2395$as_echo "yes" >&6; }
b57f37fb
WP
2396 SET_MAKE=
2397else
f030cae8
VY
2398 { $as_echo "$as_me:$LINENO: result: no" >&5
2399$as_echo "no" >&6; }
b57f37fb
WP
2400 SET_MAKE="MAKE=${MAKE-make}"
2401fi
2402
2403rm -rf .tst 2>/dev/null
2404mkdir .tst 2>/dev/null
2405if test -d .tst; then
2406 am__leading_dot=.
2407else
2408 am__leading_dot=_
2409fi
2410rmdir .tst 2>/dev/null
2411
2412if test "`cd $srcdir && pwd`" != "`pwd`"; then
2413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2414 # is not polluted with repeated "-I."
2415 am__isrc=' -I$(srcdir)'
2416 # test to see if srcdir already configured
2417 if test -f $srcdir/config.status; then
f030cae8
VY
2418 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2419$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
b57f37fb
WP
2420 { (exit 1); exit 1; }; }
2421 fi
2422fi
2423
2424# test whether we have cygpath
2425if test -z "$CYGPATH_W"; then
2426 if (cygpath --version) >/dev/null 2>/dev/null; then
2427 CYGPATH_W='cygpath -w'
2428 else
2429 CYGPATH_W=echo
2430 fi
2431fi
2432
2433
2434# Define the identity of the package.
2435 PACKAGE=libratbox
2436 VERSION=devel
2437
2438
2439# Some tools Automake needs.
2440
2441ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2442
2443
2444AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2445
2446
2447AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2448
2449
2450AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2451
2452
2453MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2454
2455install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2456
2457# Installed binaries are usually stripped using `strip' when the user
2458# run `make install-strip'. However `strip' might not be the right
2459# tool to use in cross-compilation environments, therefore Automake
2460# will honor the `STRIP' environment variable to overrule this program.
2461if test "$cross_compiling" != no; then
2462 if test -n "$ac_tool_prefix"; then
2463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2464set dummy ${ac_tool_prefix}strip; ac_word=$2
f030cae8
VY
2465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2467if test "${ac_cv_prog_STRIP+set}" = set; then
f030cae8 2468 $as_echo_n "(cached) " >&6
b57f37fb
WP
2469else
2470 if test -n "$STRIP"; then
2471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
f030cae8 2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2482 break 2
2483 fi
2484done
2485done
2486IFS=$as_save_IFS
2487
2488fi
2489fi
2490STRIP=$ac_cv_prog_STRIP
2491if test -n "$STRIP"; then
f030cae8
VY
2492 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2493$as_echo "$STRIP" >&6; }
b57f37fb 2494else
f030cae8
VY
2495 { $as_echo "$as_me:$LINENO: result: no" >&5
2496$as_echo "no" >&6; }
b57f37fb
WP
2497fi
2498
2499
2500fi
2501if test -z "$ac_cv_prog_STRIP"; then
2502 ac_ct_STRIP=$STRIP
2503 # Extract the first word of "strip", so it can be a program name with args.
2504set dummy strip; ac_word=$2
f030cae8
VY
2505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2507if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
f030cae8 2508 $as_echo_n "(cached) " >&6
b57f37fb
WP
2509else
2510 if test -n "$ac_ct_STRIP"; then
2511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512else
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_ac_ct_STRIP="strip"
f030cae8 2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2522 break 2
2523 fi
2524done
2525done
2526IFS=$as_save_IFS
2527
2528fi
2529fi
2530ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2531if test -n "$ac_ct_STRIP"; then
f030cae8
VY
2532 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2533$as_echo "$ac_ct_STRIP" >&6; }
b57f37fb 2534else
f030cae8
VY
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536$as_echo "no" >&6; }
b57f37fb
WP
2537fi
2538
2539 if test "x$ac_ct_STRIP" = x; then
2540 STRIP=":"
2541 else
2542 case $cross_compiling:$ac_tool_warned in
2543yes:)
f030cae8
VY
2544{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
2546ac_tool_warned=yes ;;
2547esac
2548 STRIP=$ac_ct_STRIP
2549 fi
2550else
2551 STRIP="$ac_cv_prog_STRIP"
2552fi
2553
2554fi
2555INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2556
2557# We need awk for the "check" target. The system "awk" is bad on
2558# some platforms.
2559# Always define AMTAR for backward compatibility.
2560
2561AMTAR=${AMTAR-"${am_missing_run}tar"}
2562
2563am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2564
2565
2566
2567
2568
2569
2570ac_config_headers="$ac_config_headers include/libratbox_config.h"
2571
2572
2573
b57f37fb
WP
2574DEPDIR="${am__leading_dot}deps"
2575
2576ac_config_commands="$ac_config_commands depfiles"
2577
2578
2579am_make=${MAKE-make}
2580cat > confinc << 'END'
2581am__doit:
2582 @echo done
2583.PHONY: am__doit
2584END
2585# If we don't find an include directive, just comment out the code.
f030cae8
VY
2586{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2587$as_echo_n "checking for style of include used by $am_make... " >&6; }
b57f37fb
WP
2588am__include="#"
2589am__quote=
2590_am_result=none
2591# First try GNU make style include.
2592echo "include confinc" > confmf
2593# We grep out `Entering directory' and `Leaving directory'
2594# messages which can occur if `w' ends up in MAKEFLAGS.
2595# In particular we don't look at `^make:' because GNU make might
2596# be invoked under some other name (usually "gmake"), in which
2597# case it prints its new name instead of `make'.
2598if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2599 am__include=include
2600 am__quote=
2601 _am_result=GNU
2602fi
2603# Now try BSD make style include.
2604if test "$am__include" = "#"; then
2605 echo '.include "confinc"' > confmf
2606 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2607 am__include=.include
2608 am__quote="\""
2609 _am_result=BSD
2610 fi
2611fi
2612
2613
f030cae8
VY
2614{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2615$as_echo "$_am_result" >&6; }
b57f37fb
WP
2616rm -f confinc confmf
2617
2618# Check whether --enable-dependency-tracking was given.
2619if test "${enable_dependency_tracking+set}" = set; then
2620 enableval=$enable_dependency_tracking;
2621fi
2622
2623if test "x$enable_dependency_tracking" != xno; then
2624 am_depcomp="$ac_aux_dir/depcomp"
2625 AMDEPBACKSLASH='\'
2626fi
2627 if test "x$enable_dependency_tracking" != xno; then
2628 AMDEP_TRUE=
2629 AMDEP_FALSE='#'
2630else
2631 AMDEP_TRUE='#'
2632 AMDEP_FALSE=
2633fi
2634
2635
2636ac_ext=c
2637ac_cpp='$CPP $CPPFLAGS'
2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641if test -n "$ac_tool_prefix"; then
2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643set dummy ${ac_tool_prefix}gcc; ac_word=$2
f030cae8
VY
2644{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2646if test "${ac_cv_prog_CC+set}" = set; then
f030cae8 2647 $as_echo_n "(cached) " >&6
b57f37fb
WP
2648else
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC="$CC" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
f030cae8 2660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2661 break 2
2662 fi
2663done
2664done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669CC=$ac_cv_prog_CC
2670if test -n "$CC"; then
f030cae8
VY
2671 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2672$as_echo "$CC" >&6; }
b57f37fb 2673else
f030cae8
VY
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675$as_echo "no" >&6; }
b57f37fb
WP
2676fi
2677
2678
2679fi
2680if test -z "$ac_cv_prog_CC"; then
2681 ac_ct_CC=$CC
2682 # Extract the first word of "gcc", so it can be a program name with args.
2683set dummy gcc; ac_word=$2
f030cae8
VY
2684{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2686if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
f030cae8 2687 $as_echo_n "(cached) " >&6
b57f37fb
WP
2688else
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC="gcc"
f030cae8 2700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2701 break 2
2702 fi
2703done
2704done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710if test -n "$ac_ct_CC"; then
f030cae8
VY
2711 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712$as_echo "$ac_ct_CC" >&6; }
b57f37fb 2713else
f030cae8
VY
2714 { $as_echo "$as_me:$LINENO: result: no" >&5
2715$as_echo "no" >&6; }
b57f37fb
WP
2716fi
2717
2718 if test "x$ac_ct_CC" = x; then
2719 CC=""
2720 else
2721 case $cross_compiling:$ac_tool_warned in
2722yes:)
f030cae8
VY
2723{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
2725ac_tool_warned=yes ;;
2726esac
2727 CC=$ac_ct_CC
2728 fi
2729else
2730 CC="$ac_cv_prog_CC"
2731fi
2732
2733if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736set dummy ${ac_tool_prefix}cc; ac_word=$2
f030cae8
VY
2737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2739if test "${ac_cv_prog_CC+set}" = set; then
f030cae8 2740 $as_echo_n "(cached) " >&6
b57f37fb
WP
2741else
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_CC="${ac_tool_prefix}cc"
f030cae8 2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2754 break 2
2755 fi
2756done
2757done
2758IFS=$as_save_IFS
2759
2760fi
2761fi
2762CC=$ac_cv_prog_CC
2763if test -n "$CC"; then
f030cae8
VY
2764 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2765$as_echo "$CC" >&6; }
b57f37fb 2766else
f030cae8
VY
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768$as_echo "no" >&6; }
b57f37fb
WP
2769fi
2770
2771
2772 fi
2773fi
2774if test -z "$CC"; then
2775 # Extract the first word of "cc", so it can be a program name with args.
2776set dummy cc; ac_word=$2
f030cae8
VY
2777{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2778$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2779if test "${ac_cv_prog_CC+set}" = set; then
f030cae8 2780 $as_echo_n "(cached) " >&6
b57f37fb
WP
2781else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784else
2785 ac_prog_rejected=no
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794 ac_prog_rejected=yes
2795 continue
2796 fi
2797 ac_cv_prog_CC="cc"
f030cae8 2798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2799 break 2
2800 fi
2801done
2802done
2803IFS=$as_save_IFS
2804
2805if test $ac_prog_rejected = yes; then
2806 # We found a bogon in the path, so make sure we never use it.
2807 set dummy $ac_cv_prog_CC
2808 shift
2809 if test $# != 0; then
2810 # We chose a different compiler from the bogus one.
2811 # However, it has the same basename, so the bogon will be chosen
2812 # first if we set CC to just the basename; use the full file name.
2813 shift
2814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815 fi
2816fi
2817fi
2818fi
2819CC=$ac_cv_prog_CC
2820if test -n "$CC"; then
f030cae8
VY
2821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2822$as_echo "$CC" >&6; }
b57f37fb 2823else
f030cae8
VY
2824 { $as_echo "$as_me:$LINENO: result: no" >&5
2825$as_echo "no" >&6; }
b57f37fb
WP
2826fi
2827
2828
2829fi
2830if test -z "$CC"; then
2831 if test -n "$ac_tool_prefix"; then
2832 for ac_prog in cl.exe
2833 do
2834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f030cae8
VY
2836{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2837$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2838if test "${ac_cv_prog_CC+set}" = set; then
f030cae8 2839 $as_echo_n "(cached) " >&6
b57f37fb
WP
2840else
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
f030cae8 2852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2853 break 2
2854 fi
2855done
2856done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861CC=$ac_cv_prog_CC
2862if test -n "$CC"; then
f030cae8
VY
2863 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2864$as_echo "$CC" >&6; }
b57f37fb 2865else
f030cae8
VY
2866 { $as_echo "$as_me:$LINENO: result: no" >&5
2867$as_echo "no" >&6; }
b57f37fb
WP
2868fi
2869
2870
2871 test -n "$CC" && break
2872 done
2873fi
2874if test -z "$CC"; then
2875 ac_ct_CC=$CC
2876 for ac_prog in cl.exe
2877do
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879set dummy $ac_prog; ac_word=$2
f030cae8
VY
2880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 2882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
f030cae8 2883 $as_echo_n "(cached) " >&6
b57f37fb
WP
2884else
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC="$ac_prog"
f030cae8 2896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
2897 break 2
2898 fi
2899done
2900done
2901IFS=$as_save_IFS
2902
2903fi
2904fi
2905ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906if test -n "$ac_ct_CC"; then
f030cae8
VY
2907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2908$as_echo "$ac_ct_CC" >&6; }
b57f37fb 2909else
f030cae8
VY
2910 { $as_echo "$as_me:$LINENO: result: no" >&5
2911$as_echo "no" >&6; }
b57f37fb
WP
2912fi
2913
2914
2915 test -n "$ac_ct_CC" && break
2916done
2917
2918 if test "x$ac_ct_CC" = x; then
2919 CC=""
2920 else
2921 case $cross_compiling:$ac_tool_warned in
2922yes:)
f030cae8
VY
2923{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
2925ac_tool_warned=yes ;;
2926esac
2927 CC=$ac_ct_CC
2928 fi
2929fi
2930
2931fi
2932
2933
f030cae8
VY
2934test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
b57f37fb 2937See \`config.log' for more details." >&5
f030cae8 2938$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
b57f37fb 2939See \`config.log' for more details." >&2;}
f030cae8 2940 { (exit 1); exit 1; }; }; }
b57f37fb
WP
2941
2942# Provide some information about the compiler.
f030cae8
VY
2943$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2944set X $ac_compile
2945ac_compiler=$2
b57f37fb
WP
2946{ (ac_try="$ac_compiler --version >&5"
2947case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950esac
f030cae8
VY
2951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952$as_echo "$ac_try_echo") >&5
b57f37fb
WP
2953 (eval "$ac_compiler --version >&5") 2>&5
2954 ac_status=$?
f030cae8 2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
2956 (exit $ac_status); }
2957{ (ac_try="$ac_compiler -v >&5"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
f030cae8
VY
2962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963$as_echo "$ac_try_echo") >&5
b57f37fb
WP
2964 (eval "$ac_compiler -v >&5") 2>&5
2965 ac_status=$?
f030cae8 2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
2967 (exit $ac_status); }
2968{ (ac_try="$ac_compiler -V >&5"
2969case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972esac
f030cae8
VY
2973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974$as_echo "$ac_try_echo") >&5
b57f37fb
WP
2975 (eval "$ac_compiler -V >&5") 2>&5
2976 ac_status=$?
f030cae8 2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
2978 (exit $ac_status); }
2979
2980cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
2986
2987int
2988main ()
2989{
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
2995ac_clean_files_save=$ac_clean_files
f030cae8 2996ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b57f37fb
WP
2997# Try to create an executable without -o first, disregard a.out.
2998# It will help us diagnose broken compilers, and finding out an intuition
2999# of exeext.
f030cae8
VY
3000{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3001$as_echo_n "checking for C compiler default output file name... " >&6; }
3002ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3003
3004# The possible output files:
3005ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3006
b57f37fb
WP
3007ac_rmfiles=
3008for ac_file in $ac_files
3009do
3010 case $ac_file in
f030cae8 3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b57f37fb
WP
3012 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3013 esac
3014done
3015rm -f $ac_rmfiles
3016
3017if { (ac_try="$ac_link_default"
3018case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
f030cae8
VY
3022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3024 (eval "$ac_link_default") 2>&5
3025 ac_status=$?
f030cae8 3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3027 (exit $ac_status); }; then
3028 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3029# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3030# in a Makefile. We should not override ac_cv_exeext if it was cached,
3031# so that the user can short-circuit this test for compilers unknown to
3032# Autoconf.
3033for ac_file in $ac_files ''
3034do
3035 test -f "$ac_file" || continue
3036 case $ac_file in
f030cae8 3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b57f37fb
WP
3038 ;;
3039 [ab].out )
3040 # We found the default executable, but exeext='' is most
3041 # certainly right.
3042 break;;
3043 *.* )
3044 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3045 then :; else
3046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047 fi
3048 # We set ac_cv_exeext here because the later test for it is not
3049 # safe: cross compilers may not add the suffix if given an `-o'
3050 # argument, so we may need to know it at that point already.
3051 # Even if this section looks crufty: it has the advantage of
3052 # actually working.
3053 break;;
3054 * )
3055 break;;
3056 esac
3057done
3058test "$ac_cv_exeext" = no && ac_cv_exeext=
3059
3060else
3061 ac_file=''
3062fi
3063
f030cae8
VY
3064{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3065$as_echo "$ac_file" >&6; }
b57f37fb 3066if test -z "$ac_file"; then
f030cae8 3067 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
f030cae8
VY
3070{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
b57f37fb 3073See \`config.log' for more details." >&5
f030cae8 3074$as_echo "$as_me: error: C compiler cannot create executables
b57f37fb 3075See \`config.log' for more details." >&2;}
f030cae8 3076 { (exit 77); exit 77; }; }; }
b57f37fb
WP
3077fi
3078
3079ac_exeext=$ac_cv_exeext
3080
3081# Check that the compiler produces executables we can run. If not, either
3082# the compiler is broken, or we cross compile.
f030cae8
VY
3083{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3084$as_echo_n "checking whether the C compiler works... " >&6; }
b57f37fb
WP
3085# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3086# If not cross compiling, check that we can run a simple program.
3087if test "$cross_compiling" != yes; then
3088 if { ac_try='./$ac_file'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
f030cae8
VY
3093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
f030cae8 3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3098 (exit $ac_status); }; }; then
3099 cross_compiling=no
3100 else
3101 if test "$cross_compiling" = maybe; then
3102 cross_compiling=yes
3103 else
f030cae8
VY
3104 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
b57f37fb
WP
3107If you meant to cross compile, use \`--host'.
3108See \`config.log' for more details." >&5
f030cae8 3109$as_echo "$as_me: error: cannot run C compiled programs.
b57f37fb
WP
3110If you meant to cross compile, use \`--host'.
3111See \`config.log' for more details." >&2;}
f030cae8 3112 { (exit 1); exit 1; }; }; }
b57f37fb
WP
3113 fi
3114 fi
3115fi
f030cae8
VY
3116{ $as_echo "$as_me:$LINENO: result: yes" >&5
3117$as_echo "yes" >&6; }
b57f37fb 3118
f030cae8 3119rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b57f37fb
WP
3120ac_clean_files=$ac_clean_files_save
3121# Check that the compiler produces executables we can run. If not, either
3122# the compiler is broken, or we cross compile.
f030cae8
VY
3123{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3124$as_echo_n "checking whether we are cross compiling... " >&6; }
3125{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3126$as_echo "$cross_compiling" >&6; }
b57f37fb 3127
f030cae8
VY
3128{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3129$as_echo_n "checking for suffix of executables... " >&6; }
b57f37fb
WP
3130if { (ac_try="$ac_link"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
f030cae8
VY
3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3137 (eval "$ac_link") 2>&5
3138 ac_status=$?
f030cae8 3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3140 (exit $ac_status); }; then
3141 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3143# work properly (i.e., refer to `conftest.exe'), while it won't with
3144# `rm'.
3145for ac_file in conftest.exe conftest conftest.*; do
3146 test -f "$ac_file" || continue
3147 case $ac_file in
f030cae8 3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b57f37fb
WP
3149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 break;;
3151 * ) break;;
3152 esac
3153done
3154else
f030cae8
VY
3155 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
b57f37fb 3158See \`config.log' for more details." >&5
f030cae8 3159$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
b57f37fb 3160See \`config.log' for more details." >&2;}
f030cae8 3161 { (exit 1); exit 1; }; }; }
b57f37fb
WP
3162fi
3163
3164rm -f conftest$ac_cv_exeext
f030cae8
VY
3165{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166$as_echo "$ac_cv_exeext" >&6; }
b57f37fb
WP
3167
3168rm -f conftest.$ac_ext
3169EXEEXT=$ac_cv_exeext
3170ac_exeext=$EXEEXT
f030cae8
VY
3171{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172$as_echo_n "checking for suffix of object files... " >&6; }
b57f37fb 3173if test "${ac_cv_objext+set}" = set; then
f030cae8 3174 $as_echo_n "(cached) " >&6
b57f37fb
WP
3175else
3176 cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191rm -f conftest.o conftest.obj
3192if { (ac_try="$ac_compile"
3193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
f030cae8
VY
3197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3199 (eval "$ac_compile") 2>&5
3200 ac_status=$?
f030cae8 3201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3202 (exit $ac_status); }; then
3203 for ac_file in conftest.o conftest.obj conftest.*; do
3204 test -f "$ac_file" || continue;
3205 case $ac_file in
f030cae8 3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b57f37fb
WP
3207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3208 break;;
3209 esac
3210done
3211else
f030cae8 3212 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3213sed 's/^/| /' conftest.$ac_ext >&5
3214
f030cae8
VY
3215{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
b57f37fb 3218See \`config.log' for more details." >&5
f030cae8 3219$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
b57f37fb 3220See \`config.log' for more details." >&2;}
f030cae8 3221 { (exit 1); exit 1; }; }; }
b57f37fb
WP
3222fi
3223
3224rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225fi
f030cae8
VY
3226{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227$as_echo "$ac_cv_objext" >&6; }
b57f37fb
WP
3228OBJEXT=$ac_cv_objext
3229ac_objext=$OBJEXT
f030cae8
VY
3230{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b57f37fb 3232if test "${ac_cv_c_compiler_gnu+set}" = set; then
f030cae8 3233 $as_echo_n "(cached) " >&6
b57f37fb
WP
3234else
3235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241
3242int
3243main ()
3244{
3245#ifndef __GNUC__
3246 choke me
3247#endif
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (ac_try="$ac_compile"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
f030cae8
VY
3259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3261 (eval "$ac_compile") 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
f030cae8 3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3267 (exit $ac_status); } && {
3268 test -z "$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 } && test -s conftest.$ac_objext; then
3271 ac_compiler_gnu=yes
3272else
f030cae8 3273 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 ac_compiler_gnu=no
3277fi
3278
3279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280ac_cv_c_compiler_gnu=$ac_compiler_gnu
3281
3282fi
f030cae8
VY
3283{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3284$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285if test $ac_compiler_gnu = yes; then
3286 GCC=yes
3287else
3288 GCC=
3289fi
b57f37fb
WP
3290ac_test_CFLAGS=${CFLAGS+set}
3291ac_save_CFLAGS=$CFLAGS
f030cae8
VY
3292{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293$as_echo_n "checking whether $CC accepts -g... " >&6; }
b57f37fb 3294if test "${ac_cv_prog_cc_g+set}" = set; then
f030cae8 3295 $as_echo_n "(cached) " >&6
b57f37fb
WP
3296else
3297 ac_save_c_werror_flag=$ac_c_werror_flag
3298 ac_c_werror_flag=yes
3299 ac_cv_prog_cc_g=no
3300 CFLAGS="-g"
3301 cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
3316rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
f030cae8
VY
3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
f030cae8 3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3334 ac_cv_prog_cc_g=yes
3335else
f030cae8 3336 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339 CFLAGS=""
3340 cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
3346
3347int
3348main ()
3349{
3350
3351 ;
3352 return 0;
3353}
3354_ACEOF
3355rm -f conftest.$ac_objext
3356if { (ac_try="$ac_compile"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
f030cae8
VY
3361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3363 (eval "$ac_compile") 2>conftest.er1
3364 ac_status=$?
3365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
f030cae8 3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3369 (exit $ac_status); } && {
3370 test -z "$ac_c_werror_flag" ||
3371 test ! -s conftest.err
3372 } && test -s conftest.$ac_objext; then
3373 :
3374else
f030cae8 3375 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 ac_c_werror_flag=$ac_save_c_werror_flag
3379 CFLAGS="-g"
3380 cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h. */
3386
3387int
3388main ()
3389{
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (ac_try="$ac_compile"
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
f030cae8
VY
3401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3403 (eval "$ac_compile") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
f030cae8 3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3413 ac_cv_prog_cc_g=yes
3414else
f030cae8 3415 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3418
3419fi
3420
3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422fi
3423
3424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425fi
3426
3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 ac_c_werror_flag=$ac_save_c_werror_flag
3429fi
f030cae8
VY
3430{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3431$as_echo "$ac_cv_prog_cc_g" >&6; }
b57f37fb
WP
3432if test "$ac_test_CFLAGS" = set; then
3433 CFLAGS=$ac_save_CFLAGS
3434elif test $ac_cv_prog_cc_g = yes; then
3435 if test "$GCC" = yes; then
3436 CFLAGS="-g -O2"
3437 else
3438 CFLAGS="-g"
3439 fi
3440else
3441 if test "$GCC" = yes; then
3442 CFLAGS="-O2"
3443 else
3444 CFLAGS=
3445 fi
3446fi
f030cae8
VY
3447{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3448$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b57f37fb 3449if test "${ac_cv_prog_cc_c89+set}" = set; then
f030cae8 3450 $as_echo_n "(cached) " >&6
b57f37fb
WP
3451else
3452 ac_cv_prog_cc_c89=no
3453ac_save_CC=$CC
3454cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460#include <stdarg.h>
3461#include <stdio.h>
3462#include <sys/types.h>
3463#include <sys/stat.h>
3464/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3465struct buf { int x; };
3466FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467static char *e (p, i)
3468 char **p;
3469 int i;
3470{
3471 return p[i];
3472}
3473static char *f (char * (*g) (char **, int), char **p, ...)
3474{
3475 char *s;
3476 va_list v;
3477 va_start (v,p);
3478 s = g (p, va_arg (v,int));
3479 va_end (v);
3480 return s;
3481}
3482
3483/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3484 function prototypes and stuff, but not '\xHH' hex character constants.
3485 These don't provoke an error unfortunately, instead are silently treated
3486 as 'x'. The following induces an error, until -std is added to get
3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3488 array size at least. It's necessary to write '\x00'==0 to get something
3489 that's true only with -std. */
3490int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491
3492/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3493 inside strings and character constants. */
3494#define FOO(x) 'x'
3495int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496
3497int test (int i, double x);
3498struct s1 {int (*f) (int a);};
3499struct s2 {int (*f) (double a);};
3500int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3501int argc;
3502char **argv;
3503int
3504main ()
3505{
3506return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513do
3514 CC="$ac_save_CC $ac_arg"
3515 rm -f conftest.$ac_objext
3516if { (ac_try="$ac_compile"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
f030cae8
VY
3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522$as_echo "$ac_try_echo") >&5
b57f37fb
WP
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
f030cae8 3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 ac_cv_prog_cc_c89=$ac_arg
3534else
f030cae8 3535 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3536sed 's/^/| /' conftest.$ac_ext >&5
3537
3538
3539fi
3540
3541rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543done
3544rm -f conftest.$ac_ext
3545CC=$ac_save_CC
3546
3547fi
3548# AC_CACHE_VAL
3549case "x$ac_cv_prog_cc_c89" in
3550 x)
f030cae8
VY
3551 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3552$as_echo "none needed" >&6; } ;;
b57f37fb 3553 xno)
f030cae8
VY
3554 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3555$as_echo "unsupported" >&6; } ;;
b57f37fb
WP
3556 *)
3557 CC="$CC $ac_cv_prog_cc_c89"
f030cae8
VY
3558 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3559$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b57f37fb
WP
3560esac
3561
3562
3563ac_ext=c
3564ac_cpp='$CPP $CPPFLAGS'
3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
3569depcc="$CC" am_compiler_list=
3570
f030cae8
VY
3571{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3572$as_echo_n "checking dependency style of $depcc... " >&6; }
b57f37fb 3573if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
f030cae8 3574 $as_echo_n "(cached) " >&6
b57f37fb
WP
3575else
3576 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3577 # We make a subdir and do the tests there. Otherwise we can end up
3578 # making bogus files that we don't know about and never remove. For
3579 # instance it was reported that on HP-UX the gcc test will end up
3580 # making a dummy file named `D' -- because `-MD' means `put the output
3581 # in D'.
3582 mkdir conftest.dir
3583 # Copy depcomp to subdir because otherwise we won't find it if we're
3584 # using a relative directory.
3585 cp "$am_depcomp" conftest.dir
3586 cd conftest.dir
3587 # We will build objects and dependencies in a subdirectory because
3588 # it helps to detect inapplicable dependency modes. For instance
3589 # both Tru64's cc and ICC support -MD to output dependencies as a
3590 # side effect of compilation, but ICC will put the dependencies in
3591 # the current directory while Tru64 will put them in the object
3592 # directory.
3593 mkdir sub
3594
3595 am_cv_CC_dependencies_compiler_type=none
3596 if test "$am_compiler_list" = ""; then
3597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3598 fi
3599 for depmode in $am_compiler_list; do
3600 # Setup a source with many dependencies, because some compilers
3601 # like to wrap large dependency lists on column 80 (with \), and
3602 # we should not choose a depcomp mode which is confused by this.
3603 #
3604 # We need to recreate these files for each test, as the compiler may
3605 # overwrite some of them when testing with obscure command lines.
3606 # This happens at least with the AIX C compiler.
3607 : > sub/conftest.c
3608 for i in 1 2 3 4 5 6; do
3609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3611 # Solaris 8's {/usr,}/bin/sh.
3612 touch sub/conftst$i.h
3613 done
3614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3615
3616 case $depmode in
3617 nosideeffect)
3618 # after this tag, mechanisms are not by side-effect, so they'll
3619 # only be used when explicitly requested
3620 if test "x$enable_dependency_tracking" = xyes; then
3621 continue
3622 else
3623 break
3624 fi
3625 ;;
3626 none) break ;;
3627 esac
3628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3629 # mode. It turns out that the SunPro C++ compiler does not properly
3630 # handle `-M -o', and we need to detect this.
3631 if depmode=$depmode \
3632 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3634 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3635 >/dev/null 2>conftest.err &&
3636 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3638 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3640 # icc doesn't choke on unknown options, it will just issue warnings
3641 # or remarks (even with -Werror). So we grep stderr for any message
3642 # that says an option was ignored or not supported.
3643 # When given -MP, icc 7.0 and 7.1 complain thusly:
3644 # icc: Command line warning: ignoring option '-M'; no argument required
3645 # The diagnosis changed in icc 8.0:
3646 # icc: Command line remark: option '-MP' not supported
3647 if (grep 'ignoring option' conftest.err ||
3648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3649 am_cv_CC_dependencies_compiler_type=$depmode
3650 break
3651 fi
3652 fi
3653 done
3654
3655 cd ..
3656 rm -rf conftest.dir
3657else
3658 am_cv_CC_dependencies_compiler_type=none
3659fi
3660
3661fi
f030cae8
VY
3662{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3663$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
b57f37fb
WP
3664CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3665
3666 if
3667 test "x$enable_dependency_tracking" != xno \
3668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3669 am__fastdepCC_TRUE=
3670 am__fastdepCC_FALSE='#'
3671else
3672 am__fastdepCC_TRUE='#'
3673 am__fastdepCC_FALSE=
3674fi
3675
3676
f030cae8
VY
3677
3678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3684$as_echo_n "checking how to run the C preprocessor... " >&6; }
3685# On Suns, sometimes $CPP names a directory.
3686if test -n "$CPP" && test -d "$CPP"; then
3687 CPP=
3688fi
3689if test -z "$CPP"; then
3690 if test "${ac_cv_prog_CPP+set}" = set; then
3691 $as_echo_n "(cached) " >&6
b57f37fb 3692else
f030cae8
VY
3693 # Double quotes because CPP needs to be expanded
3694 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3695 do
3696 ac_preproc_ok=false
3697for ac_c_preproc_warn_flag in '' yes
3698do
3699 # Use a header file that comes with gcc, so configuring glibc
3700 # with a fresh cross-compiler works.
3701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3702 # <limits.h> exists even on freestanding compilers.
3703 # On the NeXT, cc -E runs the code through the compiler's parser,
3704 # not just through cpp. "Syntax error" is here to catch this case.
3705 cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
3706/* confdefs.h. */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h. */
f030cae8
VY
3711#ifdef __STDC__
3712# include <limits.h>
b57f37fb 3713#else
f030cae8 3714# include <assert.h>
b57f37fb 3715#endif
f030cae8 3716 Syntax error
b57f37fb 3717_ACEOF
f030cae8 3718if { (ac_try="$ac_cpp conftest.$ac_ext"
b57f37fb
WP
3719case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722esac
f030cae8
VY
3723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724$as_echo "$ac_try_echo") >&5
3725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b57f37fb
WP
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
f030cae8
VY
3730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null && {
3732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
b57f37fb 3733 test ! -s conftest.err
f030cae8
VY
3734 }; then
3735 :
b57f37fb 3736else
f030cae8 3737 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
f030cae8
VY
3740 # Broken: fails on valid input.
3741continue
b57f37fb
WP
3742fi
3743
f030cae8 3744rm -f conftest.err conftest.$ac_ext
b57f37fb 3745
f030cae8
VY
3746 # OK, works on sane cases. Now check whether nonexistent headers
3747 # can be detected and how.
3748 cat >conftest.$ac_ext <<_ACEOF
3749/* confdefs.h. */
3750_ACEOF
3751cat confdefs.h >>conftest.$ac_ext
3752cat >>conftest.$ac_ext <<_ACEOF
3753/* end confdefs.h. */
3754#include <ac_nonexistent.h>
3755_ACEOF
3756if { (ac_try="$ac_cpp conftest.$ac_ext"
3757case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
b57f37fb 3760esac
f030cae8
VY
3761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3762$as_echo "$ac_try_echo") >&5
3763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } >/dev/null && {
3770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3771 test ! -s conftest.err
3772 }; then
3773 # Broken: success on invalid input.
3774continue
3775else
3776 $as_echo "$as_me: failed program was:" >&5
3777sed 's/^/| /' conftest.$ac_ext >&5
b57f37fb 3778
f030cae8
VY
3779 # Passes both tests.
3780ac_preproc_ok=:
3781break
3782fi
b57f37fb 3783
f030cae8 3784rm -f conftest.err conftest.$ac_ext
b57f37fb 3785
f030cae8
VY
3786done
3787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3788rm -f conftest.err conftest.$ac_ext
3789if $ac_preproc_ok; then
3790 break
b57f37fb
WP
3791fi
3792
f030cae8
VY
3793 done
3794 ac_cv_prog_CPP=$CPP
b57f37fb 3795
f030cae8
VY
3796fi
3797 CPP=$ac_cv_prog_CPP
b57f37fb 3798else
f030cae8
VY
3799 ac_cv_prog_CPP=$CPP
3800fi
3801{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3802$as_echo "$CPP" >&6; }
3803ac_preproc_ok=false
3804for ac_c_preproc_warn_flag in '' yes
b57f37fb 3805do
f030cae8
VY
3806 # Use a header file that comes with gcc, so configuring glibc
3807 # with a fresh cross-compiler works.
3808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3809 # <limits.h> exists even on freestanding compilers.
3810 # On the NeXT, cc -E runs the code through the compiler's parser,
3811 # not just through cpp. "Syntax error" is here to catch this case.
3812 cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h. */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
3817/* end confdefs.h. */
3818#ifdef __STDC__
3819# include <limits.h>
3820#else
3821# include <assert.h>
3822#endif
3823 Syntax error
3824_ACEOF
3825if { (ac_try="$ac_cpp conftest.$ac_ext"
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
b57f37fb 3829esac
f030cae8
VY
3830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831$as_echo "$ac_try_echo") >&5
3832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } >/dev/null && {
3839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 }; then
3842 :
3843else
3844 $as_echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
b57f37fb 3846
f030cae8
VY
3847 # Broken: fails on valid input.
3848continue
b57f37fb 3849fi
b57f37fb 3850
f030cae8 3851rm -f conftest.err conftest.$ac_ext
b57f37fb 3852
f030cae8
VY
3853 # OK, works on sane cases. Now check whether nonexistent headers
3854 # can be detected and how.
3855 cat >conftest.$ac_ext <<_ACEOF
3856/* confdefs.h. */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h. */
3861#include <ac_nonexistent.h>
3862_ACEOF
3863if { (ac_try="$ac_cpp conftest.$ac_ext"
3864case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867esac
3868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869$as_echo "$ac_try_echo") >&5
3870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3871 ac_status=$?
3872 grep -v '^ *+' conftest.er1 >conftest.err
3873 rm -f conftest.er1
3874 cat conftest.err >&5
3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } >/dev/null && {
3877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3879 }; then
3880 # Broken: success on invalid input.
3881continue
3882else
3883 $as_echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
b57f37fb 3885
f030cae8
VY
3886 # Passes both tests.
3887ac_preproc_ok=:
3888break
3889fi
b57f37fb 3890
f030cae8
VY
3891rm -f conftest.err conftest.$ac_ext
3892
3893done
3894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895rm -f conftest.err conftest.$ac_ext
3896if $ac_preproc_ok; then
3897 :
b57f37fb 3898else
f030cae8
VY
3899 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3902See \`config.log' for more details." >&5
3903$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3904See \`config.log' for more details." >&2;}
3905 { (exit 1); exit 1; }; }; }
3906fi
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914
3915{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3916$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b57f37fb 3917if test "${ac_cv_path_GREP+set}" = set; then
f030cae8 3918 $as_echo_n "(cached) " >&6
b57f37fb 3919else
f030cae8 3920 if test -z "$GREP"; then
b57f37fb 3921 ac_path_GREP_found=false
f030cae8
VY
3922 # Loop through the user's path and test for each of PROGNAME-LIST
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
3924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_prog in grep ggrep; do
f030cae8
VY
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3931 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3932# Check for GNU ac_path_GREP and select it if it is found.
b57f37fb
WP
3933 # Check for GNU $ac_path_GREP
3934case `"$ac_path_GREP" --version 2>&1` in
3935*GNU*)
3936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937*)
3938 ac_count=0
f030cae8 3939 $as_echo_n 0123456789 >"conftest.in"
b57f37fb
WP
3940 while :
3941 do
3942 cat "conftest.in" "conftest.in" >"conftest.tmp"
3943 mv "conftest.tmp" "conftest.in"
3944 cp "conftest.in" "conftest.nl"
f030cae8 3945 $as_echo 'GREP' >> "conftest.nl"
b57f37fb
WP
3946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948 ac_count=`expr $ac_count + 1`
3949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3950 # Best one so far, save it but keep looking for a better one
3951 ac_cv_path_GREP="$ac_path_GREP"
3952 ac_path_GREP_max=$ac_count
3953 fi
3954 # 10*(2^10) chars as input seems more than enough
3955 test $ac_count -gt 10 && break
3956 done
3957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958esac
3959
f030cae8
VY
3960 $ac_path_GREP_found && break 3
3961 done
b57f37fb
WP
3962 done
3963done
b57f37fb 3964IFS=$as_save_IFS
f030cae8
VY
3965 if test -z "$ac_cv_path_GREP"; then
3966 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
b57f37fb 3968 { (exit 1); exit 1; }; }
f030cae8 3969 fi
b57f37fb
WP
3970else
3971 ac_cv_path_GREP=$GREP
3972fi
3973
b57f37fb 3974fi
f030cae8
VY
3975{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3976$as_echo "$ac_cv_path_GREP" >&6; }
b57f37fb
WP
3977 GREP="$ac_cv_path_GREP"
3978
3979
f030cae8
VY
3980{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3981$as_echo_n "checking for egrep... " >&6; }
b57f37fb 3982if test "${ac_cv_path_EGREP+set}" = set; then
f030cae8 3983 $as_echo_n "(cached) " >&6
b57f37fb
WP
3984else
3985 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3986 then ac_cv_path_EGREP="$GREP -E"
3987 else
f030cae8 3988 if test -z "$EGREP"; then
b57f37fb 3989 ac_path_EGREP_found=false
f030cae8
VY
3990 # Loop through the user's path and test for each of PROGNAME-LIST
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
3992for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3993do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_prog in egrep; do
f030cae8
VY
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3999 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4000# Check for GNU ac_path_EGREP and select it if it is found.
b57f37fb
WP
4001 # Check for GNU $ac_path_EGREP
4002case `"$ac_path_EGREP" --version 2>&1` in
4003*GNU*)
4004 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4005*)
4006 ac_count=0
f030cae8 4007 $as_echo_n 0123456789 >"conftest.in"
b57f37fb
WP
4008 while :
4009 do
4010 cat "conftest.in" "conftest.in" >"conftest.tmp"
4011 mv "conftest.tmp" "conftest.in"
4012 cp "conftest.in" "conftest.nl"
f030cae8 4013 $as_echo 'EGREP' >> "conftest.nl"
b57f37fb
WP
4014 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4016 ac_count=`expr $ac_count + 1`
4017 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4018 # Best one so far, save it but keep looking for a better one
4019 ac_cv_path_EGREP="$ac_path_EGREP"
4020 ac_path_EGREP_max=$ac_count
4021 fi
4022 # 10*(2^10) chars as input seems more than enough
4023 test $ac_count -gt 10 && break
4024 done
4025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4026esac
4027
f030cae8
VY
4028 $ac_path_EGREP_found && break 3
4029 done
b57f37fb
WP
4030 done
4031done
b57f37fb 4032IFS=$as_save_IFS
f030cae8
VY
4033 if test -z "$ac_cv_path_EGREP"; then
4034 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4035$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
b57f37fb 4036 { (exit 1); exit 1; }; }
f030cae8 4037 fi
b57f37fb
WP
4038else
4039 ac_cv_path_EGREP=$EGREP
4040fi
4041
b57f37fb
WP
4042 fi
4043fi
f030cae8
VY
4044{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4045$as_echo "$ac_cv_path_EGREP" >&6; }
b57f37fb
WP
4046 EGREP="$ac_cv_path_EGREP"
4047
4048
f030cae8
VY
4049{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4050$as_echo_n "checking for ANSI C header files... " >&6; }
4051if test "${ac_cv_header_stdc+set}" = set; then
4052 $as_echo_n "(cached) " >&6
b57f37fb 4053else
f030cae8 4054 cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
4055/* confdefs.h. */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h. */
f030cae8
VY
4060#include <stdlib.h>
4061#include <stdarg.h>
4062#include <string.h>
4063#include <float.h>
b57f37fb 4064
b57f37fb
WP
4065int
4066main ()
4067{
f030cae8 4068
b57f37fb
WP
4069 ;
4070 return 0;
4071}
4072_ACEOF
f030cae8
VY
4073rm -f conftest.$ac_objext
4074if { (ac_try="$ac_compile"
b57f37fb
WP
4075case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
f030cae8
VY
4079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4080$as_echo "$ac_try_echo") >&5
4081 (eval "$ac_compile") 2>conftest.er1
b57f37fb
WP
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
f030cae8 4086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
4087 (exit $ac_status); } && {
4088 test -z "$ac_c_werror_flag" ||
4089 test ! -s conftest.err
f030cae8
VY
4090 } && test -s conftest.$ac_objext; then
4091 ac_cv_header_stdc=yes
b57f37fb 4092else
f030cae8 4093 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
f030cae8 4096 ac_cv_header_stdc=no
b57f37fb
WP
4097fi
4098
f030cae8
VY
4099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100
4101if test $ac_cv_header_stdc = yes; then
4102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4103 cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109#include <string.h>
4110
4111_ACEOF
4112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4113 $EGREP "memchr" >/dev/null 2>&1; then
b57f37fb
WP
4114 :
4115else
f030cae8 4116 ac_cv_header_stdc=no
b57f37fb 4117fi
f030cae8 4118rm -f conftest*
b57f37fb
WP
4119
4120fi
4121
f030cae8
VY
4122if test $ac_cv_header_stdc = yes; then
4123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b57f37fb
WP
4124 cat >conftest.$ac_ext <<_ACEOF
4125/* confdefs.h. */
4126_ACEOF
4127cat confdefs.h >>conftest.$ac_ext
4128cat >>conftest.$ac_ext <<_ACEOF
4129/* end confdefs.h. */
f030cae8 4130#include <stdlib.h>
b57f37fb
WP
4131
4132_ACEOF
f030cae8
VY
4133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4134 $EGREP "free" >/dev/null 2>&1; then
4135 :
b57f37fb 4136else
f030cae8 4137 ac_cv_header_stdc=no
b57f37fb 4138fi
f030cae8 4139rm -f conftest*
b57f37fb
WP
4140
4141fi
b57f37fb 4142
f030cae8
VY
4143if test $ac_cv_header_stdc = yes; then
4144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4145 if test "$cross_compiling" = yes; then
4146 :
b57f37fb
WP
4147else
4148 cat >conftest.$ac_ext <<_ACEOF
4149/* confdefs.h. */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h. */
f030cae8
VY
4154#include <ctype.h>
4155#include <stdlib.h>
4156#if ((' ' & 0x0FF) == 0x020)
4157# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4158# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4159#else
4160# define ISLOWER(c) \
4161 (('a' <= (c) && (c) <= 'i') \
4162 || ('j' <= (c) && (c) <= 'r') \
4163 || ('s' <= (c) && (c) <= 'z'))
4164# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
b57f37fb
WP
4165#endif
4166
f030cae8
VY
4167#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4168int
4169main ()
4170{
4171 int i;
4172 for (i = 0; i < 256; i++)
4173 if (XOR (islower (i), ISLOWER (i))
4174 || toupper (i) != TOUPPER (i))
4175 return 2;
b57f37fb
WP
4176 return 0;
4177}
4178_ACEOF
f030cae8
VY
4179rm -f conftest$ac_exeext
4180if { (ac_try="$ac_link"
4181case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186$as_echo "$ac_try_echo") >&5
4187 (eval "$ac_link") 2>&5
4188 ac_status=$?
4189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4196$as_echo "$ac_try_echo") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 :
4202else
4203 $as_echo "$as_me: program exited with status $ac_status" >&5
4204$as_echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207( exit $ac_status )
4208ac_cv_header_stdc=no
4209fi
4210rm -rf conftest.dSYM
4211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212fi
4213
4214
4215fi
4216fi
4217{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218$as_echo "$ac_cv_header_stdc" >&6; }
4219if test $ac_cv_header_stdc = yes; then
4220
4221cat >>confdefs.h <<\_ACEOF
4222#define STDC_HEADERS 1
4223_ACEOF
4224
4225fi
4226
4227# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4239do
4240as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4242$as_echo_n "checking for $ac_header... " >&6; }
4243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244 $as_echo_n "(cached) " >&6
4245else
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252$ac_includes_default
4253
4254#include <$ac_header>
4255_ACEOF
b57f37fb
WP
4256rm -f conftest.$ac_objext
4257if { (ac_try="$ac_compile"
4258case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
f030cae8
VY
4262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4263$as_echo "$ac_try_echo") >&5
b57f37fb
WP
4264 (eval "$ac_compile") 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
f030cae8 4269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
f030cae8 4274 eval "$as_ac_Header=yes"
b57f37fb 4275else
f030cae8 4276 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
4277sed 's/^/| /' conftest.$ac_ext >&5
4278
f030cae8 4279 eval "$as_ac_Header=no"
b57f37fb
WP
4280fi
4281
4282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283fi
f030cae8
VY
4284ac_res=`eval 'as_val=${'$as_ac_Header'}
4285 $as_echo "$as_val"'`
4286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4287$as_echo "$ac_res" >&6; }
4288as_val=`eval 'as_val=${'$as_ac_Header'}
4289 $as_echo "$as_val"'`
4290 if test "x$as_val" = x""yes; then
4291 cat >>confdefs.h <<_ACEOF
4292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b57f37fb
WP
4293_ACEOF
4294
4295fi
4296
f030cae8
VY
4297done
4298
4299
4300
4301 if test "${ac_cv_header_minix_config_h+set}" = set; then
4302 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4303$as_echo_n "checking for minix/config.h... " >&6; }
4304if test "${ac_cv_header_minix_config_h+set}" = set; then
4305 $as_echo_n "(cached) " >&6
4306fi
4307{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4308$as_echo "$ac_cv_header_minix_config_h" >&6; }
b57f37fb 4309else
f030cae8
VY
4310 # Is the header compilable?
4311{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4312$as_echo_n "checking minix/config.h usability... " >&6; }
4313cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h. */
b57f37fb 4315_ACEOF
f030cae8
VY
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h. */
4319$ac_includes_default
4320#include <minix/config.h>
4321_ACEOF
4322rm -f conftest.$ac_objext
4323if { (ac_try="$ac_compile"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
b57f37fb 4327esac
f030cae8
VY
4328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329$as_echo "$ac_try_echo") >&5
4330 (eval "$ac_compile") 2>conftest.er1
4331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
4335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && {
4337 test -z "$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4339 } && test -s conftest.$ac_objext; then
4340 ac_header_compiler=yes
b57f37fb 4341else
f030cae8
VY
4342 $as_echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
b57f37fb 4344
f030cae8 4345 ac_header_compiler=no
b57f37fb 4346fi
b57f37fb 4347
f030cae8
VY
4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4350$as_echo "$ac_header_compiler" >&6; }
b57f37fb 4351
f030cae8
VY
4352# Is the header present?
4353{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4354$as_echo_n "checking minix/config.h presence... " >&6; }
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */
4361#include <minix/config.h>
4362_ACEOF
4363if { (ac_try="$ac_cpp conftest.$ac_ext"
4364case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
b57f37fb 4367esac
f030cae8
VY
4368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4369$as_echo "$ac_try_echo") >&5
4370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } >/dev/null && {
4377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4379 }; then
4380 ac_header_preproc=yes
b57f37fb 4381else
f030cae8
VY
4382 $as_echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 ac_header_preproc=no
b57f37fb
WP
4386fi
4387
f030cae8
VY
4388rm -f conftest.err conftest.$ac_ext
4389{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4390$as_echo "$ac_header_preproc" >&6; }
b57f37fb 4391
f030cae8
VY
4392# So? What about this header?
4393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4394 yes:no: )
4395 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4396$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4397 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4398$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4399 ac_header_preproc=yes
4400 ;;
4401 no:yes:* )
4402 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4403$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4404 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4405$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4406 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4407$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4408 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4409$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4410 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4411$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4412 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4413$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
b57f37fb 4414
f030cae8 4415 ;;
b57f37fb 4416esac
f030cae8
VY
4417{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4418$as_echo_n "checking for minix/config.h... " >&6; }
4419if test "${ac_cv_header_minix_config_h+set}" = set; then
4420 $as_echo_n "(cached) " >&6
b57f37fb 4421else
f030cae8 4422 ac_cv_header_minix_config_h=$ac_header_preproc
b57f37fb 4423fi
f030cae8
VY
4424{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4425$as_echo "$ac_cv_header_minix_config_h" >&6; }
b57f37fb 4426
b57f37fb 4427fi
f030cae8
VY
4428if test "x$ac_cv_header_minix_config_h" = x""yes; then
4429 MINIX=yes
b57f37fb 4430else
f030cae8 4431 MINIX=
b57f37fb
WP
4432fi
4433
4434
f030cae8 4435 if test "$MINIX" = yes; then
b57f37fb 4436
f030cae8
VY
4437cat >>confdefs.h <<\_ACEOF
4438#define _POSIX_SOURCE 1
4439_ACEOF
b57f37fb
WP
4440
4441
f030cae8
VY
4442cat >>confdefs.h <<\_ACEOF
4443#define _POSIX_1_SOURCE 2
4444_ACEOF
4445
4446
4447cat >>confdefs.h <<\_ACEOF
4448#define _MINIX 1
4449_ACEOF
4450
b57f37fb 4451 fi
b57f37fb 4452
b57f37fb
WP
4453
4454
f030cae8
VY
4455 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4456$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4457if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4458 $as_echo_n "(cached) " >&6
b57f37fb 4459else
f030cae8
VY
4460 cat >conftest.$ac_ext <<_ACEOF
4461/* confdefs.h. */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h. */
b57f37fb 4466
f030cae8
VY
4467# define __EXTENSIONS__ 1
4468 $ac_includes_default
4469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477rm -f conftest.$ac_objext
4478if { (ac_try="$ac_compile"
4479case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
b57f37fb 4482esac
f030cae8
VY
4483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4484$as_echo "$ac_try_echo") >&5
4485 (eval "$ac_compile") 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && {
4492 test -z "$ac_c_werror_flag" ||
4493 test ! -s conftest.err
4494 } && test -s conftest.$ac_objext; then
4495 ac_cv_safe_to_define___extensions__=yes
b57f37fb 4496else
f030cae8
VY
4497 $as_echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500 ac_cv_safe_to_define___extensions__=no
b57f37fb
WP
4501fi
4502
f030cae8
VY
4503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504fi
4505{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4506$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4507 test $ac_cv_safe_to_define___extensions__ = yes &&
4508 cat >>confdefs.h <<\_ACEOF
4509#define __EXTENSIONS__ 1
4510_ACEOF
b57f37fb 4511
f030cae8
VY
4512 cat >>confdefs.h <<\_ACEOF
4513#define _ALL_SOURCE 1
4514_ACEOF
4515
4516 cat >>confdefs.h <<\_ACEOF
4517#define _GNU_SOURCE 1
4518_ACEOF
4519
4520 cat >>confdefs.h <<\_ACEOF
4521#define _POSIX_PTHREAD_SEMANTICS 1
4522_ACEOF
4523
4524 cat >>confdefs.h <<\_ACEOF
4525#define _TANDEM_SOURCE 1
4526_ACEOF
4527
4528
4529
4530 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4531$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4532if test "${ac_cv_prog_cc_c99+set}" = set; then
4533 $as_echo_n "(cached) " >&6
b57f37fb 4534else
f030cae8
VY
4535 ac_cv_prog_cc_c99=no
4536ac_save_CC=$CC
4537cat >conftest.$ac_ext <<_ACEOF
4538/* confdefs.h. */
4539_ACEOF
4540cat confdefs.h >>conftest.$ac_ext
4541cat >>conftest.$ac_ext <<_ACEOF
4542/* end confdefs.h. */
4543#include <stdarg.h>
4544#include <stdbool.h>
4545#include <stdlib.h>
4546#include <wchar.h>
4547#include <stdio.h>
b57f37fb 4548
f030cae8
VY
4549// Check varargs macros. These examples are taken from C99 6.10.3.5.
4550#define debug(...) fprintf (stderr, __VA_ARGS__)
4551#define showlist(...) puts (#__VA_ARGS__)
4552#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4553static void
4554test_varargs_macros (void)
4555{
4556 int x = 1234;
4557 int y = 5678;
4558 debug ("Flag");
4559 debug ("X = %d\n", x);
4560 showlist (The first, second, and third items.);
4561 report (x>y, "x is %d but y is %d", x, y);
4562}
b57f37fb 4563
f030cae8
VY
4564// Check long long types.
4565#define BIG64 18446744073709551615ull
4566#define BIG32 4294967295ul
4567#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4568#if !BIG_OK
4569 your preprocessor is broken;
4570#endif
4571#if BIG_OK
4572#else
4573 your preprocessor is broken;
4574#endif
4575static long long int bignum = -9223372036854775807LL;
4576static unsigned long long int ubignum = BIG64;
b57f37fb 4577
f030cae8
VY
4578struct incomplete_array
4579{
4580 int datasize;
4581 double data[];
4582};
b57f37fb 4583
f030cae8
VY
4584struct named_init {
4585 int number;
4586 const wchar_t *name;
4587 double average;
4588};
b57f37fb 4589
f030cae8 4590typedef const char *ccp;
b57f37fb 4591
f030cae8
VY
4592static inline int
4593test_restrict (ccp restrict text)
4594{
4595 // See if C++-style comments work.
4596 // Iterate through items via the restricted pointer.
4597 // Also check for declarations in for loops.
4598 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4599 continue;
4600 return 0;
4601}
b57f37fb 4602
f030cae8
VY
4603// Check varargs and va_copy.
4604static void
4605test_varargs (const char *format, ...)
4606{
4607 va_list args;
4608 va_start (args, format);
4609 va_list args_copy;
4610 va_copy (args_copy, args);
b57f37fb 4611
f030cae8
VY
4612 const char *str;
4613 int number;
4614 float fnumber;
b57f37fb 4615
f030cae8
VY
4616 while (*format)
4617 {
4618 switch (*format++)
4619 {
4620 case 's': // string
4621 str = va_arg (args_copy, const char *);
4622 break;
4623 case 'd': // int
4624 number = va_arg (args_copy, int);
4625 break;
4626 case 'f': // float
4627 fnumber = va_arg (args_copy, double);
4628 break;
4629 default:
4630 break;
4631 }
4632 }
4633 va_end (args_copy);
4634 va_end (args);
4635}
b57f37fb 4636
f030cae8
VY
4637int
4638main ()
4639{
b57f37fb 4640
f030cae8
VY
4641 // Check bool.
4642 _Bool success = false;
b57f37fb 4643
f030cae8
VY
4644 // Check restrict.
4645 if (test_restrict ("String literal") == 0)
4646 success = true;
4647 char *restrict newvar = "Another string";
b57f37fb 4648
f030cae8
VY
4649 // Check varargs.
4650 test_varargs ("s, d' f .", "string", 65, 34.234);
4651 test_varargs_macros ();
b57f37fb 4652
f030cae8
VY
4653 // Check flexible array members.
4654 struct incomplete_array *ia =
4655 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4656 ia->datasize = 10;
4657 for (int i = 0; i < ia->datasize; ++i)
4658 ia->data[i] = i * 1.234;
b57f37fb 4659
f030cae8
VY
4660 // Check named initializers.
4661 struct named_init ni = {
4662 .number = 34,
4663 .name = L"Test wide string",
4664 .average = 543.34343,
4665 };
b57f37fb 4666
f030cae8 4667 ni.number = 58;
b57f37fb 4668
f030cae8
VY
4669 int dynamic_array[ni.number];
4670 dynamic_array[ni.number - 1] = 543;
4671
4672 // work around unused variable warnings
4673 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4674 || dynamic_array[ni.number - 1] != 543);
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
4680for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4681do
4682 CC="$ac_save_CC $ac_arg"
4683 rm -f conftest.$ac_objext
4684if { (ac_try="$ac_compile"
4685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
4689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4690$as_echo "$ac_try_echo") >&5
4691 (eval "$ac_compile") 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } && {
4698 test -z "$ac_c_werror_flag" ||
4699 test ! -s conftest.err
4700 } && test -s conftest.$ac_objext; then
4701 ac_cv_prog_cc_c99=$ac_arg
b57f37fb 4702else
f030cae8
VY
4703 $as_echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706
b57f37fb
WP
4707fi
4708
f030cae8
VY
4709rm -f core conftest.err conftest.$ac_objext
4710 test "x$ac_cv_prog_cc_c99" != "xno" && break
4711done
4712rm -f conftest.$ac_ext
4713CC=$ac_save_CC
4714
b57f37fb 4715fi
f030cae8
VY
4716# AC_CACHE_VAL
4717case "x$ac_cv_prog_cc_c99" in
4718 x)
4719 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4720$as_echo "none needed" >&6; } ;;
4721 xno)
4722 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4723$as_echo "unsupported" >&6; } ;;
4724 *)
4725 CC="$CC $ac_cv_prog_cc_c99"
4726 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4727$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
b57f37fb 4728esac
b57f37fb
WP
4729
4730
f030cae8
VY
4731
4732
4733if test x"$ac_cv_prog_cc_c99" = "xno"; then
4734 { { $as_echo "$as_me:$LINENO: error: ircd-ratbox requires a C99 capable compiler" >&5
4735$as_echo "$as_me: error: ircd-ratbox requires a C99 capable compiler" >&2;}
4736 { (exit 1); exit 1; }; }
4737fi
4738
4739
4740# Find a good install program. We prefer a C program (faster),
4741# so one script is as good as another. But avoid the broken or
4742# incompatible versions:
4743# SysV /etc/install, /usr/sbin/install
4744# SunOS /usr/etc/install
4745# IRIX /sbin/install
4746# AIX /bin/install
4747# AmigaOS /C/install, which installs bootblocks on floppy discs
4748# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4749# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4750# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4751# OS/2's system install, which has a completely different semantic
4752# ./install, which can be erroneously created by make from ./install.sh.
4753# Reject install programs that cannot install multiple files.
4754{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4755$as_echo_n "checking for a BSD-compatible install... " >&6; }
4756if test -z "$INSTALL"; then
4757if test "${ac_cv_path_install+set}" = set; then
4758 $as_echo_n "(cached) " >&6
b57f37fb 4759else
f030cae8 4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b57f37fb
WP
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
f030cae8
VY
4765 # Account for people who put trailing slashes in PATH elements.
4766case $as_dir/ in
4767 ./ | .// | /cC/* | \
4768 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4769 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4770 /usr/ucb/* ) ;;
4771 *)
4772 # OSF1 and SCO ODT 3.0 have their own names for install.
4773 # Don't use installbsd from OSF since it installs stuff as root
4774 # by default.
4775 for ac_prog in ginstall scoinst install; do
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4778 if test $ac_prog = install &&
4779 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4780 # AIX install. It has an incompatible calling convention.
4781 :
4782 elif test $ac_prog = install &&
4783 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4784 # program-specific install script used by HP pwplus--don't use.
4785 :
4786 else
4787 rm -rf conftest.one conftest.two conftest.dir
4788 echo one > conftest.one
4789 echo two > conftest.two
4790 mkdir conftest.dir
4791 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4792 test -s conftest.one && test -s conftest.two &&
4793 test -s conftest.dir/conftest.one &&
4794 test -s conftest.dir/conftest.two
4795 then
4796 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4797 break 3
4798 fi
4799 fi
4800 fi
4801 done
b57f37fb 4802 done
f030cae8
VY
4803 ;;
4804esac
4805
b57f37fb
WP
4806done
4807IFS=$as_save_IFS
b57f37fb 4808
f030cae8
VY
4809rm -rf conftest.one conftest.two conftest.dir
4810
4811fi
4812 if test "${ac_cv_path_install+set}" = set; then
4813 INSTALL=$ac_cv_path_install
4814 else
4815 # As a last resort, use the slow shell script. Don't cache a
4816 # value for INSTALL within a source directory, because that will
4817 # break other packages using the cache if that directory is
4818 # removed, or if the value is a relative name.
4819 INSTALL=$ac_install_sh
4820 fi
b57f37fb 4821fi
f030cae8
VY
4822{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4823$as_echo "$INSTALL" >&6; }
b57f37fb 4824
f030cae8
VY
4825# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4826# It thinks the first close brace ends the variable substitution.
4827test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b57f37fb 4828
f030cae8 4829test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b57f37fb 4830
f030cae8 4831test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
b57f37fb 4832
f030cae8
VY
4833{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4834$as_echo_n "checking for egrep... " >&6; }
4835if test "${ac_cv_path_EGREP+set}" = set; then
4836 $as_echo_n "(cached) " >&6
b57f37fb 4837else
f030cae8
VY
4838 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4839 then ac_cv_path_EGREP="$GREP -E"
4840 else
4841 if test -z "$EGREP"; then
4842 ac_path_EGREP_found=false
4843 # Loop through the user's path and test for each of PROGNAME-LIST
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4846do
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_prog in egrep; do
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4852 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4853# Check for GNU ac_path_EGREP and select it if it is found.
4854 # Check for GNU $ac_path_EGREP
4855case `"$ac_path_EGREP" --version 2>&1` in
4856*GNU*)
4857 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4858*)
4859 ac_count=0
4860 $as_echo_n 0123456789 >"conftest.in"
4861 while :
4862 do
4863 cat "conftest.in" "conftest.in" >"conftest.tmp"
4864 mv "conftest.tmp" "conftest.in"
4865 cp "conftest.in" "conftest.nl"
4866 $as_echo 'EGREP' >> "conftest.nl"
4867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4869 ac_count=`expr $ac_count + 1`
4870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4871 # Best one so far, save it but keep looking for a better one
4872 ac_cv_path_EGREP="$ac_path_EGREP"
4873 ac_path_EGREP_max=$ac_count
4874 fi
4875 # 10*(2^10) chars as input seems more than enough
4876 test $ac_count -gt 10 && break
4877 done
4878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4879esac
b57f37fb 4880
f030cae8
VY
4881 $ac_path_EGREP_found && break 3
4882 done
4883 done
4884done
4885IFS=$as_save_IFS
4886 if test -z "$ac_cv_path_EGREP"; then
4887 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4888$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4889 { (exit 1); exit 1; }; }
4890 fi
b57f37fb 4891else
f030cae8 4892 ac_cv_path_EGREP=$EGREP
b57f37fb 4893fi
f030cae8
VY
4894
4895 fi
4896fi
4897{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4898$as_echo "$ac_cv_path_EGREP" >&6; }
4899 EGREP="$ac_cv_path_EGREP"
4900
4901
4902{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4903$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4904if test "${ac_cv_path_SED+set}" = set; then
4905 $as_echo_n "(cached) " >&6
4906else
4907 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4908 for ac_i in 1 2 3 4 5 6 7; do
4909 ac_script="$ac_script$as_nl$ac_script"
4910 done
4911 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4912 $as_unset ac_script || ac_script=
4913 if test -z "$SED"; then
4914 ac_path_SED_found=false
4915 # Loop through the user's path and test for each of PROGNAME-LIST
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917for as_dir in $PATH
4918do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_prog in sed gsed; do
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4924 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4925# Check for GNU ac_path_SED and select it if it is found.
4926 # Check for GNU $ac_path_SED
4927case `"$ac_path_SED" --version 2>&1` in
4928*GNU*)
4929 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4930*)
4931 ac_count=0
4932 $as_echo_n 0123456789 >"conftest.in"
4933 while :
4934 do
4935 cat "conftest.in" "conftest.in" >"conftest.tmp"
4936 mv "conftest.tmp" "conftest.in"
4937 cp "conftest.in" "conftest.nl"
4938 $as_echo '' >> "conftest.nl"
4939 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4941 ac_count=`expr $ac_count + 1`
4942 if test $ac_count -gt ${ac_path_SED_max-0}; then
4943 # Best one so far, save it but keep looking for a better one
4944 ac_cv_path_SED="$ac_path_SED"
4945 ac_path_SED_max=$ac_count
b57f37fb 4946 fi
f030cae8
VY
4947 # 10*(2^10) chars as input seems more than enough
4948 test $ac_count -gt 10 && break
b57f37fb 4949 done
f030cae8
VY
4950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4951esac
4952
4953 $ac_path_SED_found && break 3
4954 done
4955 done
4956done
4957IFS=$as_save_IFS
4958 if test -z "$ac_cv_path_SED"; then
4959 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4960$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4961 { (exit 1); exit 1; }; }
4962 fi
b57f37fb 4963else
f030cae8 4964 ac_cv_path_SED=$SED
b57f37fb 4965fi
f030cae8 4966
b57f37fb 4967fi
f030cae8
VY
4968{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4969$as_echo "$ac_cv_path_SED" >&6; }
4970 SED="$ac_cv_path_SED"
4971 rm -f conftest.sed
b57f37fb 4972
f030cae8
VY
4973
4974F77=no
4975CXX=no
4976GCJ=no
4977
4978# Check whether --enable-static was given.
4979if test "${enable_static+set}" = set; then
4980 enableval=$enable_static; p=${PACKAGE-default}
4981 case $enableval in
4982 yes) enable_static=yes ;;
4983 no) enable_static=no ;;
4984 *)
4985 enable_static=no
4986 # Look at the argument we got. We use all the common list separators.
4987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4988 for pkg in $enableval; do
4989 IFS="$lt_save_ifs"
4990 if test "X$pkg" = "X$p"; then
4991 enable_static=yes
4992 fi
4993 done
4994 IFS="$lt_save_ifs"
4995 ;;
4996 esac
b57f37fb 4997else
f030cae8 4998 enable_static=no
b57f37fb 4999fi
f030cae8
VY
5000
5001
5002
5003# Check whether --enable-shared was given.
5004if test "${enable_shared+set}" = set; then
5005 enableval=$enable_shared; p=${PACKAGE-default}
5006 case $enableval in
5007 yes) enable_shared=yes ;;
5008 no) enable_shared=no ;;
5009 *)
5010 enable_shared=no
5011 # Look at the argument we got. We use all the common list separators.
5012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5013 for pkg in $enableval; do
5014 IFS="$lt_save_ifs"
5015 if test "X$pkg" = "X$p"; then
5016 enable_shared=yes
5017 fi
5018 done
5019 IFS="$lt_save_ifs"
5020 ;;
5021 esac
b57f37fb 5022else
f030cae8 5023 enable_shared=yes
b57f37fb 5024fi
b57f37fb
WP
5025
5026
f030cae8
VY
5027{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5028$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5029 # Check whether --enable-maintainer-mode was given.
5030if test "${enable_maintainer_mode+set}" = set; then
5031 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
b57f37fb 5032else
f030cae8 5033 USE_MAINTAINER_MODE=no
b57f37fb 5034fi
f030cae8
VY
5035
5036 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5037$as_echo "$USE_MAINTAINER_MODE" >&6; }
5038 if test $USE_MAINTAINER_MODE = yes; then
5039 MAINTAINER_MODE_TRUE=
5040 MAINTAINER_MODE_FALSE='#'
5041else
5042 MAINTAINER_MODE_TRUE='#'
5043 MAINTAINER_MODE_FALSE=
5044fi
5045
5046 MAINT=$MAINTAINER_MODE_TRUE
5047
5048
5049
5050{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
5051$as_echo_n "checking for library containing strerror... " >&6; }
5052if test "${ac_cv_search_strerror+set}" = set; then
5053 $as_echo_n "(cached) " >&6
5054else
5055 ac_func_search_save_LIBS=$LIBS
5056cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
5062
5063/* Override any GCC internal prototype to avoid an error.
5064 Use char because int might match the return type of a GCC
5065 builtin and then its argument prototype would still apply. */
5066#ifdef __cplusplus
5067extern "C"
5068#endif
5069char strerror ();
5070int
5071main ()
5072{
5073return strerror ();
5074 ;
5075 return 0;
5076}
5077_ACEOF
5078for ac_lib in '' cposix; do
5079 if test -z "$ac_lib"; then
5080 ac_res="none required"
5081 else
5082 ac_res=-l$ac_lib
5083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5084 fi
5085 rm -f conftest.$ac_objext conftest$ac_exeext
5086if { (ac_try="$ac_link"
5087case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
b57f37fb 5090esac
f030cae8
VY
5091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5092$as_echo "$ac_try_echo") >&5
5093 (eval "$ac_link") 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } && {
5100 test -z "$ac_c_werror_flag" ||
5101 test ! -s conftest.err
5102 } && test -s conftest$ac_exeext && {
5103 test "$cross_compiling" = yes ||
5104 $as_test_x conftest$ac_exeext
5105 }; then
5106 ac_cv_search_strerror=$ac_res
5107else
5108 $as_echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111
5112fi
5113
5114rm -rf conftest.dSYM
5115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5116 conftest$ac_exeext
5117 if test "${ac_cv_search_strerror+set}" = set; then
5118 break
5119fi
5120done
5121if test "${ac_cv_search_strerror+set}" = set; then
5122 :
5123else
5124 ac_cv_search_strerror=no
5125fi
5126rm conftest.$ac_ext
5127LIBS=$ac_func_search_save_LIBS
5128fi
5129{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5130$as_echo "$ac_cv_search_strerror" >&6; }
5131ac_res=$ac_cv_search_strerror
5132if test "$ac_res" != no; then
5133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5134
5135fi
5136
5137{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5138$as_echo_n "checking for inline... " >&6; }
5139if test "${ac_cv_c_inline+set}" = set; then
5140 $as_echo_n "(cached) " >&6
5141else
5142 ac_cv_c_inline=no
5143for ac_kw in inline __inline__ __inline; do
5144 cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h. */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h. */
5150#ifndef __cplusplus
5151typedef int foo_t;
5152static $ac_kw foo_t static_foo () {return 0; }
5153$ac_kw foo_t foo () {return 0; }
5154#endif
5155
5156_ACEOF
5157rm -f conftest.$ac_objext
5158if { (ac_try="$ac_compile"
5159case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5162esac
5163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5164$as_echo "$ac_try_echo") >&5
5165 (eval "$ac_compile") 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest.$ac_objext; then
5175 ac_cv_c_inline=$ac_kw
5176else
5177 $as_echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180
5181fi
5182
5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 test "$ac_cv_c_inline" != no && break
5185done
5186
5187fi
5188{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5189$as_echo "$ac_cv_c_inline" >&6; }
5190
5191
5192case $ac_cv_c_inline in
5193 inline | yes) ;;
5194 *)
5195 case $ac_cv_c_inline in
5196 no) ac_val=;;
5197 *) ac_val=$ac_cv_c_inline;;
5198 esac
5199 cat >>confdefs.h <<_ACEOF
5200#ifndef __cplusplus
5201#define inline $ac_val
5202#endif
5203_ACEOF
b57f37fb
WP
5204 ;;
5205esac
5206
f030cae8
VY
5207{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5208$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5209if test "${ac_cv_c_const+set}" = set; then
5210 $as_echo_n "(cached) " >&6
b57f37fb 5211else
f030cae8
VY
5212 cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218
5219int
5220main ()
5221{
5222/* FIXME: Include the comments suggested by Paul. */
5223#ifndef __cplusplus
5224 /* Ultrix mips cc rejects this. */
5225 typedef int charset[2];
5226 const charset cs;
5227 /* SunOS 4.1.1 cc rejects this. */
5228 char const *const *pcpcc;
5229 char **ppc;
5230 /* NEC SVR4.0.2 mips cc rejects this. */
5231 struct point {int x, y;};
5232 static struct point const zero = {0,0};
5233 /* AIX XL C 1.02.0.0 rejects this.
5234 It does not let you subtract one const X* pointer from another in
5235 an arm of an if-expression whose if-part is not a constant
5236 expression */
5237 const char *g = "string";
5238 pcpcc = &g + (g ? g-g : 0);
5239 /* HPUX 7.0 cc rejects these. */
5240 ++pcpcc;
5241 ppc = (char**) pcpcc;
5242 pcpcc = (char const *const *) ppc;
5243 { /* SCO 3.2v4 cc rejects this. */
5244 char *t;
5245 char const *s = 0 ? (char *) 0 : (char const *) 0;
5246
5247 *t++ = 0;
5248 if (s) return 0;
5249 }
5250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5251 int x[] = {25, 17};
5252 const int *foo = &x[0];
5253 ++foo;
5254 }
5255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5256 typedef const int *iptr;
5257 iptr p = 0;
5258 ++p;
5259 }
5260 { /* AIX XL C 1.02.0.0 rejects this saying
5261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5262 struct s { int j; const int *ap[3]; };
5263 struct s *b; b->j = 5;
5264 }
5265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5266 const int foo = 10;
5267 if (!foo) return 0;
5268 }
5269 return !cs[0] && !zero.x;
5270#endif
5271
5272 ;
5273 return 0;
5274}
5275_ACEOF
5276rm -f conftest.$ac_objext
5277if { (ac_try="$ac_compile"
5278case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281esac
5282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5283$as_echo "$ac_try_echo") >&5
5284 (eval "$ac_compile") 2>conftest.er1
5285 ac_status=$?
5286 grep -v '^ *+' conftest.er1 >conftest.err
5287 rm -f conftest.er1
5288 cat conftest.err >&5
5289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && {
5291 test -z "$ac_c_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest.$ac_objext; then
5294 ac_cv_c_const=yes
b57f37fb 5295else
f030cae8
VY
5296 $as_echo "$as_me: failed program was:" >&5
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 ac_cv_c_const=no
5300fi
5301
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303fi
5304{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5305$as_echo "$ac_cv_c_const" >&6; }
5306if test $ac_cv_c_const = no; then
5307
5308cat >>confdefs.h <<\_ACEOF
5309#define const /**/
5310_ACEOF
5311
5312fi
5313
5314{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5315$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5316set x ${MAKE-make}
5317ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5318if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5319 $as_echo_n "(cached) " >&6
5320else
5321 cat >conftest.make <<\_ACEOF
5322SHELL = /bin/sh
5323all:
5324 @echo '@@@%%%=$(MAKE)=@@@%%%'
5325_ACEOF
5326# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5327case `${MAKE-make} -f conftest.make 2>/dev/null` in
5328 *@@@%%%=?*=@@@%%%*)
5329 eval ac_cv_prog_make_${ac_make}_set=yes;;
5330 *)
5331 eval ac_cv_prog_make_${ac_make}_set=no;;
5332esac
5333rm -f conftest.make
5334fi
5335if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5336 { $as_echo "$as_me:$LINENO: result: yes" >&5
5337$as_echo "yes" >&6; }
5338 SET_MAKE=
5339else
5340 { $as_echo "$as_me:$LINENO: result: no" >&5
5341$as_echo "no" >&6; }
5342 SET_MAKE="MAKE=${MAKE-make}"
5343fi
5344
5345# Find a good install program. We prefer a C program (faster),
5346# so one script is as good as another. But avoid the broken or
5347# incompatible versions:
5348# SysV /etc/install, /usr/sbin/install
5349# SunOS /usr/etc/install
5350# IRIX /sbin/install
5351# AIX /bin/install
5352# AmigaOS /C/install, which installs bootblocks on floppy discs
5353# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5354# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5355# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5356# OS/2's system install, which has a completely different semantic
5357# ./install, which can be erroneously created by make from ./install.sh.
5358# Reject install programs that cannot install multiple files.
5359{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5360$as_echo_n "checking for a BSD-compatible install... " >&6; }
5361if test -z "$INSTALL"; then
5362if test "${ac_cv_path_install+set}" = set; then
5363 $as_echo_n "(cached) " >&6
5364else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 # Account for people who put trailing slashes in PATH elements.
5371case $as_dir/ in
5372 ./ | .// | /cC/* | \
5373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5374 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5375 /usr/ucb/* ) ;;
5376 *)
5377 # OSF1 and SCO ODT 3.0 have their own names for install.
5378 # Don't use installbsd from OSF since it installs stuff as root
5379 # by default.
5380 for ac_prog in ginstall scoinst install; do
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5383 if test $ac_prog = install &&
5384 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5385 # AIX install. It has an incompatible calling convention.
5386 :
5387 elif test $ac_prog = install &&
5388 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5389 # program-specific install script used by HP pwplus--don't use.
5390 :
5391 else
5392 rm -rf conftest.one conftest.two conftest.dir
5393 echo one > conftest.one
5394 echo two > conftest.two
5395 mkdir conftest.dir
5396 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5397 test -s conftest.one && test -s conftest.two &&
5398 test -s conftest.dir/conftest.one &&
5399 test -s conftest.dir/conftest.two
5400 then
5401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5402 break 3
5403 fi
5404 fi
5405 fi
5406 done
b57f37fb 5407 done
f030cae8
VY
5408 ;;
5409esac
b57f37fb 5410
f030cae8
VY
5411done
5412IFS=$as_save_IFS
b57f37fb 5413
f030cae8 5414rm -rf conftest.one conftest.two conftest.dir
b57f37fb 5415
f030cae8
VY
5416fi
5417 if test "${ac_cv_path_install+set}" = set; then
5418 INSTALL=$ac_cv_path_install
5419 else
5420 # As a last resort, use the slow shell script. Don't cache a
5421 # value for INSTALL within a source directory, because that will
5422 # break other packages using the cache if that directory is
5423 # removed, or if the value is a relative name.
5424 INSTALL=$ac_install_sh
5425 fi
5426fi
5427{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5428$as_echo "$INSTALL" >&6; }
b57f37fb 5429
f030cae8
VY
5430# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5431# It thinks the first close brace ends the variable substitution.
5432test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b57f37fb 5433
f030cae8 5434test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b57f37fb 5435
f030cae8 5436test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
b57f37fb 5437
f030cae8
VY
5438# Extract the first word of "automake", so it can be a program name with args.
5439set dummy automake; ac_word=$2
5440{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
5442if test "${ac_cv_path_AUTOMAKE+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5444else
5445 case $AUTOMAKE in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
b57f37fb 5448 ;;
f030cae8
VY
5449 *)
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461done
5462done
5463IFS=$as_save_IFS
b57f37fb 5464
b57f37fb 5465 ;;
f030cae8
VY
5466esac
5467fi
5468AUTOMAKE=$ac_cv_path_AUTOMAKE
5469if test -n "$AUTOMAKE"; then
5470 { $as_echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
5471$as_echo "$AUTOMAKE" >&6; }
5472else
5473 { $as_echo "$as_me:$LINENO: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
b57f37fb 5476
b57f37fb 5477
f030cae8
VY
5478# Extract the first word of "aclocal", so it can be a program name with args.
5479set dummy aclocal; ac_word=$2
5480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5481$as_echo_n "checking for $ac_word... " >&6; }
5482if test "${ac_cv_path_ACLOCAL+set}" = set; then
5483 $as_echo_n "(cached) " >&6
5484else
5485 case $ACLOCAL in
5486 [\\/]* | ?:[\\/]*)
5487 ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
b57f37fb 5488 ;;
b57f37fb 5489 *)
f030cae8
VY
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
5498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501done
5502done
5503IFS=$as_save_IFS
b57f37fb 5504
b57f37fb 5505 ;;
f030cae8
VY
5506esac
5507fi
5508ACLOCAL=$ac_cv_path_ACLOCAL
5509if test -n "$ACLOCAL"; then
5510 { $as_echo "$as_me:$LINENO: result: $ACLOCAL" >&5
5511$as_echo "$ACLOCAL" >&6; }
5512else
5513 { $as_echo "$as_me:$LINENO: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
b57f37fb 5516
b57f37fb 5517
f030cae8
VY
5518# Extract the first word of "autoheader", so it can be a program name with args.
5519set dummy autoheader; ac_word=$2
5520{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5521$as_echo_n "checking for $ac_word... " >&6; }
5522if test "${ac_cv_path_AUTOHEADER+set}" = set; then
5523 $as_echo_n "(cached) " >&6
5524else
5525 case $AUTOHEADER in
5526 [\\/]* | ?:[\\/]*)
5527 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
b57f37fb 5528 ;;
f030cae8
VY
5529 *)
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
5538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 break 2
b57f37fb 5540 fi
f030cae8
VY
5541done
5542done
5543IFS=$as_save_IFS
5544
b57f37fb 5545 ;;
f030cae8
VY
5546esac
5547fi
5548AUTOHEADER=$ac_cv_path_AUTOHEADER
5549if test -n "$AUTOHEADER"; then
5550 { $as_echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
5551$as_echo "$AUTOHEADER" >&6; }
5552else
5553 { $as_echo "$as_me:$LINENO: result: no" >&5
5554$as_echo "no" >&6; }
5555fi
b57f37fb 5556
f030cae8
VY
5557
5558# Extract the first word of "as", so it can be a program name with args.
5559set dummy as; ac_word=$2
5560{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5561$as_echo_n "checking for $ac_word... " >&6; }
5562if test "${ac_cv_path_AS+set}" = set; then
5563 $as_echo_n "(cached) " >&6
5564else
5565 case $AS in
5566 [\\/]* | ?:[\\/]*)
5567 ac_cv_path_AS="$AS" # Let the user override the test with a path.
b57f37fb 5568 ;;
f030cae8
VY
5569 *)
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
5578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581done
5582done
5583IFS=$as_save_IFS
b57f37fb 5584
b57f37fb 5585 ;;
f030cae8
VY
5586esac
5587fi
5588AS=$ac_cv_path_AS
5589if test -n "$AS"; then
5590 { $as_echo "$as_me:$LINENO: result: $AS" >&5
5591$as_echo "$AS" >&6; }
5592else
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594$as_echo "no" >&6; }
5595fi
b57f37fb 5596
b57f37fb 5597
f030cae8
VY
5598# Extract the first word of "rm", so it can be a program name with args.
5599set dummy rm; ac_word=$2
5600{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
5602if test "${ac_cv_path_RM+set}" = set; then
5603 $as_echo_n "(cached) " >&6
5604else
5605 case $RM in
5606 [\\/]* | ?:[\\/]*)
5607 ac_cv_path_RM="$RM" # Let the user override the test with a path.
b57f37fb 5608 ;;
f030cae8
VY
5609 *)
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5620 fi
5621done
5622done
5623IFS=$as_save_IFS
b57f37fb 5624
b57f37fb 5625 ;;
f030cae8
VY
5626esac
5627fi
5628RM=$ac_cv_path_RM
5629if test -n "$RM"; then
5630 { $as_echo "$as_me:$LINENO: result: $RM" >&5
5631$as_echo "$RM" >&6; }
5632else
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
b57f37fb 5636
b57f37fb 5637
f030cae8
VY
5638# Extract the first word of "cp", so it can be a program name with args.
5639set dummy cp; ac_word=$2
5640{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5641$as_echo_n "checking for $ac_word... " >&6; }
5642if test "${ac_cv_path_CP+set}" = set; then
5643 $as_echo_n "(cached) " >&6
5644else
5645 case $CP in
5646 [\\/]* | ?:[\\/]*)
5647 ac_cv_path_CP="$CP" # Let the user override the test with a path.
b57f37fb 5648 ;;
f030cae8
VY
5649 *)
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661done
5662done
5663IFS=$as_save_IFS
b57f37fb 5664
b57f37fb
WP
5665 ;;
5666esac
b57f37fb 5667fi
f030cae8
VY
5668CP=$ac_cv_path_CP
5669if test -n "$CP"; then
5670 { $as_echo "$as_me:$LINENO: result: $CP" >&5
5671$as_echo "$CP" >&6; }
5672else
5673 { $as_echo "$as_me:$LINENO: result: no" >&5
5674$as_echo "no" >&6; }
b57f37fb
WP
5675fi
5676
b57f37fb 5677
f030cae8
VY
5678# Extract the first word of "mv", so it can be a program name with args.
5679set dummy mv; ac_word=$2
5680{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5681$as_echo_n "checking for $ac_word... " >&6; }
5682if test "${ac_cv_path_MV+set}" = set; then
5683 $as_echo_n "(cached) " >&6
5684else
5685 case $MV in
5686 [\\/]* | ?:[\\/]*)
5687 ac_cv_path_MV="$MV" # Let the user override the test with a path.
b57f37fb 5688 ;;
f030cae8
VY
5689 *)
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
b57f37fb 5700 fi
f030cae8
VY
5701done
5702done
5703IFS=$as_save_IFS
b57f37fb 5704
b57f37fb 5705 ;;
f030cae8
VY
5706esac
5707fi
5708MV=$ac_cv_path_MV
5709if test -n "$MV"; then
5710 { $as_echo "$as_me:$LINENO: result: $MV" >&5
5711$as_echo "$MV" >&6; }
5712else
5713 { $as_echo "$as_me:$LINENO: result: no" >&5
5714$as_echo "no" >&6; }
5715fi
5716
5717
5718# Extract the first word of "ln", so it can be a program name with args.
5719set dummy ln; ac_word=$2
5720{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5721$as_echo_n "checking for $ac_word... " >&6; }
5722if test "${ac_cv_path_LN+set}" = set; then
5723 $as_echo_n "(cached) " >&6
5724else
5725 case $LN in
5726 [\\/]* | ?:[\\/]*)
5727 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5728 ;;
5729 *)
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5740 fi
5741done
5742done
5743IFS=$as_save_IFS
b57f37fb 5744
f030cae8
VY
5745 ;;
5746esac
5747fi
5748LN=$ac_cv_path_LN
5749if test -n "$LN"; then
5750 { $as_echo "$as_me:$LINENO: result: $LN" >&5
5751$as_echo "$LN" >&6; }
b57f37fb 5752else
f030cae8
VY
5753 { $as_echo "$as_me:$LINENO: result: no" >&5
5754$as_echo "no" >&6; }
5755fi
b57f37fb 5756
b57f37fb 5757
f030cae8
VY
5758# Extract the first word of "touch", so it can be a program name with args.
5759set dummy touch; ac_word=$2
5760{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5761$as_echo_n "checking for $ac_word... " >&6; }
5762if test "${ac_cv_path_TOUCH+set}" = set; then
5763 $as_echo_n "(cached) " >&6
5764else
5765 case $TOUCH in
5766 [\\/]* | ?:[\\/]*)
5767 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5768 ;;
5769 *)
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771for as_dir in $PATH
5772do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781done
5782done
5783IFS=$as_save_IFS
b57f37fb 5784
f030cae8 5785 ;;
b57f37fb 5786esac
f030cae8
VY
5787fi
5788TOUCH=$ac_cv_path_TOUCH
5789if test -n "$TOUCH"; then
5790 { $as_echo "$as_me:$LINENO: result: $TOUCH" >&5
5791$as_echo "$TOUCH" >&6; }
b57f37fb 5792else
f030cae8
VY
5793 { $as_echo "$as_me:$LINENO: result: no" >&5
5794$as_echo "no" >&6; }
b57f37fb
WP
5795fi
5796
f030cae8
VY
5797
5798ac_ext=c
b57f37fb
WP
5799ac_cpp='$CPP $CPPFLAGS'
5800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803
f030cae8
VY
5804
5805# Check whether --enable-fast-install was given.
5806if test "${enable_fast_install+set}" = set; then
5807 enableval=$enable_fast_install; p=${PACKAGE-default}
5808 case $enableval in
5809 yes) enable_fast_install=yes ;;
5810 no) enable_fast_install=no ;;
5811 *)
5812 enable_fast_install=no
5813 # Look at the argument we got. We use all the common list separators.
5814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5815 for pkg in $enableval; do
5816 IFS="$lt_save_ifs"
5817 if test "X$pkg" = "X$p"; then
5818 enable_fast_install=yes
56efe974 5819 fi
f030cae8
VY
5820 done
5821 IFS="$lt_save_ifs"
b57f37fb
WP
5822 ;;
5823 esac
f030cae8
VY
5824else
5825 enable_fast_install=yes
5826fi
5827
5828
5829# Make sure we can run config.sub.
5830$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5831 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5832$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5833 { (exit 1); exit 1; }; }
5834
5835{ $as_echo "$as_me:$LINENO: checking build system type" >&5
5836$as_echo_n "checking build system type... " >&6; }
5837if test "${ac_cv_build+set}" = set; then
5838 $as_echo_n "(cached) " >&6
5839else
5840 ac_build_alias=$build_alias
5841test "x$ac_build_alias" = x &&
5842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5843test "x$ac_build_alias" = x &&
5844 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5845$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5846 { (exit 1); exit 1; }; }
5847ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5848 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5849$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5850 { (exit 1); exit 1; }; }
5851
5852fi
5853{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5854$as_echo "$ac_cv_build" >&6; }
5855case $ac_cv_build in
5856*-*-*) ;;
5857*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5858$as_echo "$as_me: error: invalid value of canonical build" >&2;}
5859 { (exit 1); exit 1; }; };;
5860esac
5861build=$ac_cv_build
5862ac_save_IFS=$IFS; IFS='-'
5863set x $ac_cv_build
5864shift
5865build_cpu=$1
5866build_vendor=$2
5867shift; shift
5868# Remember, the first character of IFS is used to create $*,
5869# except with old shells:
5870build_os=$*
5871IFS=$ac_save_IFS
5872case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5873
5874
5875{ $as_echo "$as_me:$LINENO: checking host system type" >&5
5876$as_echo_n "checking host system type... " >&6; }
5877if test "${ac_cv_host+set}" = set; then
5878 $as_echo_n "(cached) " >&6
5879else
5880 if test "x$host_alias" = x; then
5881 ac_cv_host=$ac_cv_build
5882else
5883 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5884 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5885$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5886 { (exit 1); exit 1; }; }
5887fi
5888
5889fi
5890{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5891$as_echo "$ac_cv_host" >&6; }
5892case $ac_cv_host in
5893*-*-*) ;;
5894*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5895$as_echo "$as_me: error: invalid value of canonical host" >&2;}
5896 { (exit 1); exit 1; }; };;
5897esac
5898host=$ac_cv_host
5899ac_save_IFS=$IFS; IFS='-'
5900set x $ac_cv_host
5901shift
5902host_cpu=$1
5903host_vendor=$2
5904shift; shift
5905# Remember, the first character of IFS is used to create $*,
5906# except with old shells:
5907host_os=$*
5908IFS=$ac_save_IFS
5909case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5910
5911
5912{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5913$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5914if test "${lt_cv_path_SED+set}" = set; then
5915 $as_echo_n "(cached) " >&6
5916else
5917 # Loop through the user's path and test for sed and gsed.
5918# Then use that list of sed's as ones to test for truncation.
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for lt_ac_prog in sed gsed; do
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5927 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5928 fi
5929 done
5930 done
5931done
5932IFS=$as_save_IFS
5933lt_ac_max=0
5934lt_ac_count=0
5935# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5936# along with /bin/sed that truncates output.
5937for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5938 test ! -f $lt_ac_sed && continue
5939 cat /dev/null > conftest.in
5940 lt_ac_count=0
5941 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5942 # Check for GNU sed and select it if it is found.
5943 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5944 lt_cv_path_SED=$lt_ac_sed
5945 break
b57f37fb 5946 fi
f030cae8
VY
5947 while true; do
5948 cat conftest.in conftest.in >conftest.tmp
5949 mv conftest.tmp conftest.in
5950 cp conftest.in conftest.nl
5951 echo >>conftest.nl
5952 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5953 cmp -s conftest.out conftest.nl || break
5954 # 10000 chars as input seems more than enough
5955 test $lt_ac_count -gt 10 && break
5956 lt_ac_count=`expr $lt_ac_count + 1`
5957 if test $lt_ac_count -gt $lt_ac_max; then
5958 lt_ac_max=$lt_ac_count
5959 lt_cv_path_SED=$lt_ac_sed
5960 fi
5961 done
5962done
b57f37fb 5963
f030cae8 5964fi
b57f37fb 5965
f030cae8 5966SED=$lt_cv_path_SED
b57f37fb 5967
f030cae8
VY
5968{ $as_echo "$as_me:$LINENO: result: $SED" >&5
5969$as_echo "$SED" >&6; }
b57f37fb
WP
5970
5971
f030cae8
VY
5972# Check whether --with-gnu-ld was given.
5973if test "${with_gnu_ld+set}" = set; then
5974 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
b57f37fb 5975else
f030cae8 5976 with_gnu_ld=no
b57f37fb
WP
5977fi
5978
f030cae8
VY
5979ac_prog=ld
5980if test "$GCC" = yes; then
5981 # Check if gcc -print-prog-name=ld gives a path.
5982 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5983$as_echo_n "checking for ld used by $CC... " >&6; }
5984 case $host in
5985 *-*-mingw*)
5986 # gcc leaves a trailing carriage return which upsets mingw
5987 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5988 *)
5989 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5990 esac
5991 case $ac_prog in
5992 # Accept absolute paths.
5993 [\\/]* | ?:[\\/]*)
5994 re_direlt='/[^/][^/]*/\.\./'
5995 # Canonicalize the pathname of ld
5996 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5997 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5998 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5999 done
6000 test -z "$LD" && LD="$ac_prog"
6001 ;;
6002 "")
6003 # If it fails, then pretend we aren't using GCC.
6004 ac_prog=ld
6005 ;;
6006 *)
6007 # If it is relative, then search for the first ld in PATH.
6008 with_gnu_ld=unknown
6009 ;;
6010 esac
6011elif test "$with_gnu_ld" = yes; then
6012 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6013$as_echo_n "checking for GNU ld... " >&6; }
b57f37fb 6014else
f030cae8
VY
6015 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6016$as_echo_n "checking for non-GNU ld... " >&6; }
b57f37fb 6017fi
f030cae8
VY
6018if test "${lt_cv_path_LD+set}" = set; then
6019 $as_echo_n "(cached) " >&6
6020else
6021 if test -z "$LD"; then
6022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6023 for ac_dir in $PATH; do
6024 IFS="$lt_save_ifs"
6025 test -z "$ac_dir" && ac_dir=.
6026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6027 lt_cv_path_LD="$ac_dir/$ac_prog"
6028 # Check to see if the program is GNU ld. I'd rather use --version,
6029 # but apparently some variants of GNU ld only accept -v.
6030 # Break only if it was the GNU/non-GNU ld that we prefer.
6031 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6032 *GNU* | *'with BFD'*)
6033 test "$with_gnu_ld" != no && break
6034 ;;
6035 *)
6036 test "$with_gnu_ld" != yes && break
6037 ;;
6038 esac
6039 fi
6040 done
6041 IFS="$lt_save_ifs"
6042else
6043 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b57f37fb 6044fi
b57f37fb 6045fi
f030cae8
VY
6046
6047LD="$lt_cv_path_LD"
6048if test -n "$LD"; then
6049 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6050$as_echo "$LD" >&6; }
b57f37fb 6051else
f030cae8
VY
6052 { $as_echo "$as_me:$LINENO: result: no" >&5
6053$as_echo "no" >&6; }
b57f37fb 6054fi
f030cae8
VY
6055test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6056$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6057 { (exit 1); exit 1; }; }
6058{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6059$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6060if test "${lt_cv_prog_gnu_ld+set}" = set; then
6061 $as_echo_n "(cached) " >&6
b57f37fb 6062else
f030cae8
VY
6063 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6064case `$LD -v 2>&1 </dev/null` in
6065*GNU* | *'with BFD'*)
6066 lt_cv_prog_gnu_ld=yes
6067 ;;
6068*)
6069 lt_cv_prog_gnu_ld=no
6070 ;;
6071esac
b57f37fb 6072fi
f030cae8
VY
6073{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6074$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6075with_gnu_ld=$lt_cv_prog_gnu_ld
b57f37fb 6076
b57f37fb 6077
f030cae8
VY
6078{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6079$as_echo_n "checking for $LD option to reload object files... " >&6; }
6080if test "${lt_cv_ld_reload_flag+set}" = set; then
6081 $as_echo_n "(cached) " >&6
6082else
6083 lt_cv_ld_reload_flag='-r'
6084fi
6085{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6086$as_echo "$lt_cv_ld_reload_flag" >&6; }
6087reload_flag=$lt_cv_ld_reload_flag
6088case $reload_flag in
6089"" | " "*) ;;
6090*) reload_flag=" $reload_flag" ;;
6091esac
6092reload_cmds='$LD$reload_flag -o $output$reload_objs'
6093case $host_os in
6094 darwin*)
6095 if test "$GCC" = yes; then
6096 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6097 else
6098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6099 fi
6100 ;;
b57f37fb 6101esac
b57f37fb 6102
f030cae8
VY
6103{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6104$as_echo_n "checking for BSD-compatible nm... " >&6; }
6105if test "${lt_cv_path_NM+set}" = set; then
6106 $as_echo_n "(cached) " >&6
6107else
6108 if test -n "$NM"; then
6109 # Let the user override the test.
6110 lt_cv_path_NM="$NM"
6111else
6112 lt_nm_to_check="${ac_tool_prefix}nm"
6113 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6114 lt_nm_to_check="$lt_nm_to_check nm"
6115 fi
6116 for lt_tmp_nm in $lt_nm_to_check; do
6117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6118 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6119 IFS="$lt_save_ifs"
6120 test -z "$ac_dir" && ac_dir=.
6121 tmp_nm="$ac_dir/$lt_tmp_nm"
6122 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6123 # Check to see if the nm accepts a BSD-compat flag.
6124 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6125 # nm: unknown option "B" ignored
6126 # Tru64's nm complains that /dev/null is an invalid object file
6127 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6128 */dev/null* | *'Invalid file or object type'*)
6129 lt_cv_path_NM="$tmp_nm -B"
6130 break
6131 ;;
6132 *)
6133 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6134 */dev/null*)
6135 lt_cv_path_NM="$tmp_nm -p"
6136 break
6137 ;;
6138 *)
6139 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6140 continue # so that we can try to find one that supports BSD flags
6141 ;;
6142 esac
6143 ;;
6144 esac
6145 fi
6146 done
6147 IFS="$lt_save_ifs"
6148 done
6149 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
b57f37fb 6150fi
f030cae8
VY
6151fi
6152{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6153$as_echo "$lt_cv_path_NM" >&6; }
6154NM="$lt_cv_path_NM"
b57f37fb 6155
f030cae8
VY
6156{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6157$as_echo_n "checking whether ln -s works... " >&6; }
6158LN_S=$as_ln_s
6159if test "$LN_S" = "ln -s"; then
6160 { $as_echo "$as_me:$LINENO: result: yes" >&5
6161$as_echo "yes" >&6; }
b57f37fb 6162else
f030cae8
VY
6163 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6164$as_echo "no, using $LN_S" >&6; }
b57f37fb
WP
6165fi
6166
f030cae8
VY
6167{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6168$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6169if test "${lt_cv_deplibs_check_method+set}" = set; then
6170 $as_echo_n "(cached) " >&6
6171else
6172 lt_cv_file_magic_cmd='$MAGIC_CMD'
6173lt_cv_file_magic_test_file=
6174lt_cv_deplibs_check_method='unknown'
6175# Need to set the preceding variable on all platforms that support
6176# interlibrary dependencies.
6177# 'none' -- dependencies not supported.
6178# `unknown' -- same as none, but documents that we really don't know.
6179# 'pass_all' -- all dependencies passed with no checks.
6180# 'test_compile' -- check by making test program.
6181# 'file_magic [[regex]]' -- check by looking for files in library path
6182# which responds to the $file_magic_cmd with a given extended regex.
6183# If you have `file' or equivalent on your system and you're not sure
6184# whether `pass_all' will *always* work, you probably want this one.
b57f37fb 6185
f030cae8
VY
6186case $host_os in
6187aix[4-9]*)
6188 lt_cv_deplibs_check_method=pass_all
6189 ;;
b57f37fb 6190
f030cae8
VY
6191beos*)
6192 lt_cv_deplibs_check_method=pass_all
6193 ;;
b57f37fb 6194
f030cae8
VY
6195bsdi[45]*)
6196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6197 lt_cv_file_magic_cmd='/usr/bin/file -L'
6198 lt_cv_file_magic_test_file=/shlib/libc.so
6199 ;;
b57f37fb 6200
f030cae8
VY
6201cygwin*)
6202 # func_win32_libid is a shell function defined in ltmain.sh
6203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6204 lt_cv_file_magic_cmd='func_win32_libid'
6205 ;;
b57f37fb 6206
f030cae8
VY
6207mingw* | pw32*)
6208 # Base MSYS/MinGW do not provide the 'file' command needed by
6209 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6210 # unless we find 'file', for example because we are cross-compiling.
6211 if ( file / ) >/dev/null 2>&1; then
6212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6213 lt_cv_file_magic_cmd='func_win32_libid'
6214 else
6215 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6216 lt_cv_file_magic_cmd='$OBJDUMP -f'
6217 fi
6218 ;;
b57f37fb 6219
f030cae8
VY
6220darwin* | rhapsody*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
b57f37fb 6223
f030cae8
VY
6224freebsd* | dragonfly*)
6225 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6226 case $host_cpu in
6227 i*86 )
6228 # Not sure whether the presence of OpenBSD here was a mistake.
6229 # Let's accept both of them until this is cleared up.
6230 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6231 lt_cv_file_magic_cmd=/usr/bin/file
6232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6233 ;;
6234 esac
6235 else
6236 lt_cv_deplibs_check_method=pass_all
6237 fi
6238 ;;
b57f37fb 6239
f030cae8
VY
6240gnu*)
6241 lt_cv_deplibs_check_method=pass_all
6242 ;;
b57f37fb 6243
f030cae8
VY
6244hpux10.20* | hpux11*)
6245 lt_cv_file_magic_cmd=/usr/bin/file
6246 case $host_cpu in
6247 ia64*)
6248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6249 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6250 ;;
6251 hppa*64*)
6252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6253 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6254 ;;
6255 *)
6256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6257 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6258 ;;
6259 esac
6260 ;;
b57f37fb 6261
f030cae8
VY
6262interix[3-9]*)
6263 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6265 ;;
b57f37fb 6266
f030cae8
VY
6267irix5* | irix6* | nonstopux*)
6268 case $LD in
6269 *-32|*"-32 ") libmagic=32-bit;;
6270 *-n32|*"-n32 ") libmagic=N32;;
6271 *-64|*"-64 ") libmagic=64-bit;;
6272 *) libmagic=never-match;;
6273 esac
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276
6277# This must be Linux ELF.
6278linux* | k*bsd*-gnu)
6279 lt_cv_deplibs_check_method=pass_all
6280 ;;
6281
6282netbsd* | netbsdelf*-gnu)
6283 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6285 else
6286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6287 fi
6288 ;;
b57f37fb 6289
f030cae8
VY
6290newos6*)
6291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6292 lt_cv_file_magic_cmd=/usr/bin/file
6293 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6294 ;;
b57f37fb 6295
f030cae8
VY
6296nto-qnx*)
6297 lt_cv_deplibs_check_method=unknown
6298 ;;
b57f37fb 6299
f030cae8
VY
6300openbsd*)
6301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6303 else
6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6305 fi
6306 ;;
b57f37fb 6307
f030cae8
VY
6308osf3* | osf4* | osf5*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
b57f37fb 6311
f030cae8
VY
6312rdos*)
6313 lt_cv_deplibs_check_method=pass_all
6314 ;;
b57f37fb 6315
f030cae8
VY
6316solaris*)
6317 lt_cv_deplibs_check_method=pass_all
6318 ;;
b57f37fb 6319
f030cae8
VY
6320sysv4 | sysv4.3*)
6321 case $host_vendor in
6322 motorola)
6323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6325 ;;
6326 ncr)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329 sequent)
6330 lt_cv_file_magic_cmd='/bin/file'
6331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6332 ;;
6333 sni)
6334 lt_cv_file_magic_cmd='/bin/file'
6335 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6336 lt_cv_file_magic_test_file=/lib/libc.so
6337 ;;
6338 siemens)
6339 lt_cv_deplibs_check_method=pass_all
6340 ;;
6341 pc)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344 esac
6345 ;;
6346
6347sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6348 lt_cv_deplibs_check_method=pass_all
6349 ;;
6350esac
b57f37fb
WP
6351
6352fi
f030cae8
VY
6353{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6354$as_echo "$lt_cv_deplibs_check_method" >&6; }
6355file_magic_cmd=$lt_cv_file_magic_cmd
6356deplibs_check_method=$lt_cv_deplibs_check_method
6357test -z "$deplibs_check_method" && deplibs_check_method=unknown
6358
b57f37fb 6359
b57f37fb
WP
6360
6361
f030cae8
VY
6362# If no C compiler was specified, use CC.
6363LTCC=${LTCC-"$CC"}
b57f37fb 6364
f030cae8
VY
6365# If no C compiler flags were specified, use CFLAGS.
6366LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
b57f37fb 6367
f030cae8
VY
6368# Allow CC to be a program name with arguments.
6369compiler=$CC
b57f37fb 6370
f030cae8
VY
6371# Check whether --enable-libtool-lock was given.
6372if test "${enable_libtool_lock+set}" = set; then
6373 enableval=$enable_libtool_lock;
6374fi
b57f37fb 6375
f030cae8 6376test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
b57f37fb 6377
f030cae8
VY
6378# Some flags need to be propagated to the compiler or linker for good
6379# libtool support.
6380case $host in
6381ia64-*-hpux*)
6382 # Find out which ABI we are using.
6383 echo 'int i;' > conftest.$ac_ext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>&5
6386 ac_status=$?
6387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; then
6389 case `/usr/bin/file conftest.$ac_objext` in
6390 *ELF-32*)
6391 HPUX_IA64_MODE="32"
6392 ;;
6393 *ELF-64*)
6394 HPUX_IA64_MODE="64"
6395 ;;
6396 esac
6397 fi
6398 rm -rf conftest*
6399 ;;
6400*-*-irix6*)
6401 # Find out which ABI we are using.
6402 echo '#line 6402 "configure"' > conftest.$ac_ext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; then
6408 if test "$lt_cv_prog_gnu_ld" = yes; then
6409 case `/usr/bin/file conftest.$ac_objext` in
6410 *32-bit*)
6411 LD="${LD-ld} -melf32bsmip"
6412 ;;
6413 *N32*)
6414 LD="${LD-ld} -melf32bmipn32"
6415 ;;
6416 *64-bit*)
6417 LD="${LD-ld} -melf64bmip"
6418 ;;
6419 esac
6420 else
6421 case `/usr/bin/file conftest.$ac_objext` in
6422 *32-bit*)
6423 LD="${LD-ld} -32"
6424 ;;
6425 *N32*)
6426 LD="${LD-ld} -n32"
6427 ;;
6428 *64-bit*)
6429 LD="${LD-ld} -64"
6430 ;;
6431 esac
6432 fi
6433 fi
6434 rm -rf conftest*
6435 ;;
b57f37fb 6436
f030cae8
VY
6437x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6438s390*-*linux*|sparc*-*linux*)
6439 # Find out which ABI we are using.
6440 echo 'int i;' > conftest.$ac_ext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442 (eval $ac_compile) 2>&5
6443 ac_status=$?
6444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; then
6446 case `/usr/bin/file conftest.o` in
6447 *32-bit*)
6448 case $host in
6449 x86_64-*kfreebsd*-gnu)
6450 LD="${LD-ld} -m elf_i386_fbsd"
6451 ;;
6452 x86_64-*linux*)
6453 LD="${LD-ld} -m elf_i386"
6454 ;;
6455 ppc64-*linux*|powerpc64-*linux*)
6456 LD="${LD-ld} -m elf32ppclinux"
6457 ;;
6458 s390x-*linux*)
6459 LD="${LD-ld} -m elf_s390"
6460 ;;
6461 sparc64-*linux*)
6462 LD="${LD-ld} -m elf32_sparc"
6463 ;;
6464 esac
6465 ;;
6466 *64-bit*)
6467 case $host in
6468 x86_64-*kfreebsd*-gnu)
6469 LD="${LD-ld} -m elf_x86_64_fbsd"
6470 ;;
6471 x86_64-*linux*)
6472 LD="${LD-ld} -m elf_x86_64"
6473 ;;
6474 ppc*-*linux*|powerpc*-*linux*)
6475 LD="${LD-ld} -m elf64ppc"
6476 ;;
6477 s390*-*linux*)
6478 LD="${LD-ld} -m elf64_s390"
6479 ;;
6480 sparc*-*linux*)
6481 LD="${LD-ld} -m elf64_sparc"
6482 ;;
6483 esac
6484 ;;
6485 esac
6486 fi
6487 rm -rf conftest*
6488 ;;
b57f37fb 6489
f030cae8
VY
6490*-*-sco3.2v5*)
6491 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6492 SAVE_CFLAGS="$CFLAGS"
6493 CFLAGS="$CFLAGS -belf"
6494 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6495$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6496if test "${lt_cv_cc_needs_belf+set}" = set; then
6497 $as_echo_n "(cached) " >&6
b57f37fb 6498else
f030cae8
VY
6499 ac_ext=c
6500ac_cpp='$CPP $CPPFLAGS'
6501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6503ac_compiler_gnu=$ac_cv_c_compiler_gnu
6504
6505 cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
6506/* confdefs.h. */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h. */
b57f37fb 6511
f030cae8
VY
6512int
6513main ()
6514{
6515
6516 ;
6517 return 0;
6518}
b57f37fb 6519_ACEOF
f030cae8
VY
6520rm -f conftest.$ac_objext conftest$ac_exeext
6521if { (ac_try="$ac_link"
b57f37fb
WP
6522case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525esac
f030cae8
VY
6526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6527$as_echo "$ac_try_echo") >&5
6528 (eval "$ac_link") 2>conftest.er1
b57f37fb
WP
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
f030cae8 6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
6534 (exit $ac_status); } && {
6535 test -z "$ac_c_werror_flag" ||
6536 test ! -s conftest.err
f030cae8
VY
6537 } && test -s conftest$ac_exeext && {
6538 test "$cross_compiling" = yes ||
6539 $as_test_x conftest$ac_exeext
6540 }; then
6541 lt_cv_cc_needs_belf=yes
b57f37fb 6542else
f030cae8 6543 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
f030cae8 6546 lt_cv_cc_needs_belf=no
b57f37fb
WP
6547fi
6548
f030cae8
VY
6549rm -rf conftest.dSYM
6550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6551 conftest$ac_exeext conftest.$ac_ext
6552 ac_ext=c
6553ac_cpp='$CPP $CPPFLAGS'
6554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556ac_compiler_gnu=$ac_cv_c_compiler_gnu
b57f37fb
WP
6557
6558fi
f030cae8
VY
6559{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6560$as_echo "$lt_cv_cc_needs_belf" >&6; }
6561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6563 CFLAGS="$SAVE_CFLAGS"
6564 fi
6565 ;;
6566sparc*-*solaris*)
6567 # Find out which ABI we are using.
6568 echo 'int i;' > conftest.$ac_ext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; then
6574 case `/usr/bin/file conftest.o` in
6575 *64-bit*)
6576 case $lt_cv_prog_gnu_ld in
6577 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6578 *)
6579 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6580 LD="${LD-ld} -64"
6581 fi
6582 ;;
6583 esac
6584 ;;
6585 esac
6586 fi
6587 rm -rf conftest*
6588 ;;
b57f37fb 6589
f030cae8
VY
6590
6591esac
6592
6593need_locks="$enable_libtool_lock"
b57f37fb
WP
6594
6595
6596
6597for ac_header in dlfcn.h
6598do
f030cae8 6599as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
b57f37fb 6600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8
VY
6601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6602$as_echo_n "checking for $ac_header... " >&6; }
b57f37fb 6603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 6604 $as_echo_n "(cached) " >&6
b57f37fb 6605fi
f030cae8
VY
6606ac_res=`eval 'as_val=${'$as_ac_Header'}
6607 $as_echo "$as_val"'`
6608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6609$as_echo "$ac_res" >&6; }
b57f37fb
WP
6610else
6611 # Is the header compilable?
f030cae8
VY
6612{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6613$as_echo_n "checking $ac_header usability... " >&6; }
b57f37fb
WP
6614cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h. */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h. */
6620$ac_includes_default
6621#include <$ac_header>
6622_ACEOF
6623rm -f conftest.$ac_objext
6624if { (ac_try="$ac_compile"
6625case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628esac
f030cae8
VY
6629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6630$as_echo "$ac_try_echo") >&5
b57f37fb
WP
6631 (eval "$ac_compile") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
f030cae8 6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
6637 (exit $ac_status); } && {
6638 test -z "$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 } && test -s conftest.$ac_objext; then
6641 ac_header_compiler=yes
6642else
f030cae8 6643 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
6644sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ac_header_compiler=no
6647fi
6648
6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
6650{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6651$as_echo "$ac_header_compiler" >&6; }
b57f37fb
WP
6652
6653# Is the header present?
f030cae8
VY
6654{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6655$as_echo_n "checking $ac_header presence... " >&6; }
b57f37fb
WP
6656cat >conftest.$ac_ext <<_ACEOF
6657/* confdefs.h. */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h. */
6662#include <$ac_header>
6663_ACEOF
6664if { (ac_try="$ac_cpp conftest.$ac_ext"
6665case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668esac
f030cae8
VY
6669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6670$as_echo "$ac_try_echo") >&5
b57f37fb
WP
6671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
f030cae8 6676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
6677 (exit $ac_status); } >/dev/null && {
6678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 }; then
6681 ac_header_preproc=yes
6682else
f030cae8 6683 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686 ac_header_preproc=no
6687fi
6688
6689rm -f conftest.err conftest.$ac_ext
f030cae8
VY
6690{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6691$as_echo "$ac_header_preproc" >&6; }
b57f37fb
WP
6692
6693# So? What about this header?
6694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6695 yes:no: )
f030cae8
VY
6696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6697$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6699$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
b57f37fb
WP
6700 ac_header_preproc=yes
6701 ;;
6702 no:yes:* )
f030cae8
VY
6703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6704$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6706$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6708$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6710$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6712$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6714$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b57f37fb
WP
6715
6716 ;;
6717esac
f030cae8
VY
6718{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6719$as_echo_n "checking for $ac_header... " >&6; }
b57f37fb 6720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 6721 $as_echo_n "(cached) " >&6
b57f37fb
WP
6722else
6723 eval "$as_ac_Header=\$ac_header_preproc"
6724fi
f030cae8
VY
6725ac_res=`eval 'as_val=${'$as_ac_Header'}
6726 $as_echo "$as_val"'`
6727 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6728$as_echo "$ac_res" >&6; }
b57f37fb
WP
6729
6730fi
f030cae8
VY
6731as_val=`eval 'as_val=${'$as_ac_Header'}
6732 $as_echo "$as_val"'`
6733 if test "x$as_val" = x""yes; then
b57f37fb 6734 cat >>confdefs.h <<_ACEOF
f030cae8 6735#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b57f37fb
WP
6736_ACEOF
6737
6738fi
6739
6740done
6741
6742ac_ext=cpp
6743ac_cpp='$CXXCPP $CPPFLAGS'
6744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6747if test -z "$CXX"; then
6748 if test -n "$CCC"; then
6749 CXX=$CCC
6750 else
6751 if test -n "$ac_tool_prefix"; then
6752 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6753 do
6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f030cae8
VY
6756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 6758if test "${ac_cv_prog_CXX+set}" = set; then
f030cae8 6759 $as_echo_n "(cached) " >&6
b57f37fb
WP
6760else
6761 if test -n "$CXX"; then
6762 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
f030cae8 6772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6773 break 2
6774 fi
6775done
6776done
6777IFS=$as_save_IFS
6778
6779fi
6780fi
6781CXX=$ac_cv_prog_CXX
6782if test -n "$CXX"; then
f030cae8
VY
6783 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
6784$as_echo "$CXX" >&6; }
b57f37fb 6785else
f030cae8
VY
6786 { $as_echo "$as_me:$LINENO: result: no" >&5
6787$as_echo "no" >&6; }
b57f37fb
WP
6788fi
6789
6790
6791 test -n "$CXX" && break
6792 done
6793fi
6794if test -z "$CXX"; then
6795 ac_ct_CXX=$CXX
6796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6797do
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799set dummy $ac_prog; ac_word=$2
f030cae8
VY
6800{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6801$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 6802if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
f030cae8 6803 $as_echo_n "(cached) " >&6
b57f37fb
WP
6804else
6805 if test -n "$ac_ct_CXX"; then
6806 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_CXX="$ac_prog"
f030cae8 6816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
6817 break 2
6818 fi
6819done
6820done
6821IFS=$as_save_IFS
6822
6823fi
6824fi
6825ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6826if test -n "$ac_ct_CXX"; then
f030cae8
VY
6827 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6828$as_echo "$ac_ct_CXX" >&6; }
b57f37fb 6829else
f030cae8
VY
6830 { $as_echo "$as_me:$LINENO: result: no" >&5
6831$as_echo "no" >&6; }
b57f37fb
WP
6832fi
6833
6834
6835 test -n "$ac_ct_CXX" && break
6836done
6837
6838 if test "x$ac_ct_CXX" = x; then
6839 CXX="g++"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842yes:)
f030cae8
VY
6843{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
6845ac_tool_warned=yes ;;
6846esac
6847 CXX=$ac_ct_CXX
6848 fi
6849fi
6850
6851 fi
6852fi
6853# Provide some information about the compiler.
f030cae8
VY
6854$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6855set X $ac_compile
6856ac_compiler=$2
b57f37fb
WP
6857{ (ac_try="$ac_compiler --version >&5"
6858case "(($ac_try" in
6859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6860 *) ac_try_echo=$ac_try;;
6861esac
f030cae8
VY
6862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6863$as_echo "$ac_try_echo") >&5
b57f37fb
WP
6864 (eval "$ac_compiler --version >&5") 2>&5
6865 ac_status=$?
f030cae8 6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
6867 (exit $ac_status); }
6868{ (ac_try="$ac_compiler -v >&5"
6869case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872esac
f030cae8
VY
6873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874$as_echo "$ac_try_echo") >&5
b57f37fb
WP
6875 (eval "$ac_compiler -v >&5") 2>&5
6876 ac_status=$?
f030cae8 6877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
6878 (exit $ac_status); }
6879{ (ac_try="$ac_compiler -V >&5"
6880case "(($ac_try" in
6881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 *) ac_try_echo=$ac_try;;
6883esac
f030cae8
VY
6884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6885$as_echo "$ac_try_echo") >&5
b57f37fb
WP
6886 (eval "$ac_compiler -V >&5") 2>&5
6887 ac_status=$?
f030cae8 6888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
6889 (exit $ac_status); }
6890
f030cae8
VY
6891{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6892$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
b57f37fb 6893if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
f030cae8 6894 $as_echo_n "(cached) " >&6
b57f37fb
WP
6895else
6896 cat >conftest.$ac_ext <<_ACEOF
6897/* confdefs.h. */
6898_ACEOF
6899cat confdefs.h >>conftest.$ac_ext
6900cat >>conftest.$ac_ext <<_ACEOF
6901/* end confdefs.h. */
6902
6903int
6904main ()
6905{
6906#ifndef __GNUC__
6907 choke me
6908#endif
6909
6910 ;
6911 return 0;
6912}
6913_ACEOF
6914rm -f conftest.$ac_objext
6915if { (ac_try="$ac_compile"
6916case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919esac
f030cae8
VY
6920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6921$as_echo "$ac_try_echo") >&5
b57f37fb
WP
6922 (eval "$ac_compile") 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
f030cae8 6927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
6928 (exit $ac_status); } && {
6929 test -z "$ac_cxx_werror_flag" ||
6930 test ! -s conftest.err
6931 } && test -s conftest.$ac_objext; then
6932 ac_compiler_gnu=yes
6933else
f030cae8 6934 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_compiler_gnu=no
6938fi
6939
6940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6942
6943fi
f030cae8
VY
6944{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6945$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6946if test $ac_compiler_gnu = yes; then
6947 GXX=yes
6948else
6949 GXX=
6950fi
b57f37fb
WP
6951ac_test_CXXFLAGS=${CXXFLAGS+set}
6952ac_save_CXXFLAGS=$CXXFLAGS
f030cae8
VY
6953{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6954$as_echo_n "checking whether $CXX accepts -g... " >&6; }
b57f37fb 6955if test "${ac_cv_prog_cxx_g+set}" = set; then
f030cae8 6956 $as_echo_n "(cached) " >&6
b57f37fb
WP
6957else
6958 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6959 ac_cxx_werror_flag=yes
6960 ac_cv_prog_cxx_g=no
6961 CXXFLAGS="-g"
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968
6969int
6970main ()
6971{
6972
6973 ;
6974 return 0;
6975}
6976_ACEOF
6977rm -f conftest.$ac_objext
6978if { (ac_try="$ac_compile"
6979case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982esac
f030cae8
VY
6983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6984$as_echo "$ac_try_echo") >&5
b57f37fb
WP
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
f030cae8 6990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
6991 (exit $ac_status); } && {
6992 test -z "$ac_cxx_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_prog_cxx_g=yes
6996else
f030cae8 6997 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 CXXFLAGS=""
7001 cat >conftest.$ac_ext <<_ACEOF
7002/* confdefs.h. */
7003_ACEOF
7004cat confdefs.h >>conftest.$ac_ext
7005cat >>conftest.$ac_ext <<_ACEOF
7006/* end confdefs.h. */
7007
7008int
7009main ()
7010{
7011
7012 ;
7013 return 0;
7014}
7015_ACEOF
7016rm -f conftest.$ac_objext
7017if { (ac_try="$ac_compile"
7018case "(($ac_try" in
7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7021esac
f030cae8
VY
7022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7023$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7024 (eval "$ac_compile") 2>conftest.er1
7025 ac_status=$?
7026 grep -v '^ *+' conftest.er1 >conftest.err
7027 rm -f conftest.er1
7028 cat conftest.err >&5
f030cae8 7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7030 (exit $ac_status); } && {
7031 test -z "$ac_cxx_werror_flag" ||
7032 test ! -s conftest.err
7033 } && test -s conftest.$ac_objext; then
7034 :
7035else
f030cae8 7036 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7040 CXXFLAGS="-g"
7041 cat >conftest.$ac_ext <<_ACEOF
7042/* confdefs.h. */
7043_ACEOF
7044cat confdefs.h >>conftest.$ac_ext
7045cat >>conftest.$ac_ext <<_ACEOF
7046/* end confdefs.h. */
7047
7048int
7049main ()
7050{
7051
7052 ;
7053 return 0;
7054}
7055_ACEOF
7056rm -f conftest.$ac_objext
7057if { (ac_try="$ac_compile"
7058case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061esac
f030cae8
VY
7062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7063$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7064 (eval "$ac_compile") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
f030cae8 7069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7070 (exit $ac_status); } && {
7071 test -z "$ac_cxx_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_prog_cxx_g=yes
7075else
f030cae8 7076 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
7077sed 's/^/| /' conftest.$ac_ext >&5
7078
7079
7080fi
7081
7082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083fi
7084
7085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086fi
7087
7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7090fi
f030cae8
VY
7091{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7092$as_echo "$ac_cv_prog_cxx_g" >&6; }
b57f37fb
WP
7093if test "$ac_test_CXXFLAGS" = set; then
7094 CXXFLAGS=$ac_save_CXXFLAGS
7095elif test $ac_cv_prog_cxx_g = yes; then
7096 if test "$GXX" = yes; then
7097 CXXFLAGS="-g -O2"
7098 else
7099 CXXFLAGS="-g"
7100 fi
7101else
7102 if test "$GXX" = yes; then
7103 CXXFLAGS="-O2"
7104 else
7105 CXXFLAGS=
7106 fi
7107fi
7108ac_ext=cpp
7109ac_cpp='$CXXCPP $CPPFLAGS'
7110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7113
7114depcc="$CXX" am_compiler_list=
7115
f030cae8
VY
7116{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7117$as_echo_n "checking dependency style of $depcc... " >&6; }
b57f37fb 7118if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
f030cae8 7119 $as_echo_n "(cached) " >&6
b57f37fb
WP
7120else
7121 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7122 # We make a subdir and do the tests there. Otherwise we can end up
7123 # making bogus files that we don't know about and never remove. For
7124 # instance it was reported that on HP-UX the gcc test will end up
7125 # making a dummy file named `D' -- because `-MD' means `put the output
7126 # in D'.
7127 mkdir conftest.dir
7128 # Copy depcomp to subdir because otherwise we won't find it if we're
7129 # using a relative directory.
7130 cp "$am_depcomp" conftest.dir
7131 cd conftest.dir
7132 # We will build objects and dependencies in a subdirectory because
7133 # it helps to detect inapplicable dependency modes. For instance
7134 # both Tru64's cc and ICC support -MD to output dependencies as a
7135 # side effect of compilation, but ICC will put the dependencies in
7136 # the current directory while Tru64 will put them in the object
7137 # directory.
7138 mkdir sub
7139
7140 am_cv_CXX_dependencies_compiler_type=none
7141 if test "$am_compiler_list" = ""; then
7142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7143 fi
7144 for depmode in $am_compiler_list; do
7145 # Setup a source with many dependencies, because some compilers
7146 # like to wrap large dependency lists on column 80 (with \), and
7147 # we should not choose a depcomp mode which is confused by this.
7148 #
7149 # We need to recreate these files for each test, as the compiler may
7150 # overwrite some of them when testing with obscure command lines.
7151 # This happens at least with the AIX C compiler.
7152 : > sub/conftest.c
7153 for i in 1 2 3 4 5 6; do
7154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7156 # Solaris 8's {/usr,}/bin/sh.
7157 touch sub/conftst$i.h
7158 done
7159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7160
7161 case $depmode in
7162 nosideeffect)
7163 # after this tag, mechanisms are not by side-effect, so they'll
7164 # only be used when explicitly requested
7165 if test "x$enable_dependency_tracking" = xyes; then
7166 continue
7167 else
7168 break
7169 fi
7170 ;;
7171 none) break ;;
7172 esac
7173 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7174 # mode. It turns out that the SunPro C++ compiler does not properly
7175 # handle `-M -o', and we need to detect this.
7176 if depmode=$depmode \
7177 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7178 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7179 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7180 >/dev/null 2>conftest.err &&
7181 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7185 # icc doesn't choke on unknown options, it will just issue warnings
7186 # or remarks (even with -Werror). So we grep stderr for any message
7187 # that says an option was ignored or not supported.
7188 # When given -MP, icc 7.0 and 7.1 complain thusly:
7189 # icc: Command line warning: ignoring option '-M'; no argument required
7190 # The diagnosis changed in icc 8.0:
7191 # icc: Command line remark: option '-MP' not supported
7192 if (grep 'ignoring option' conftest.err ||
7193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7194 am_cv_CXX_dependencies_compiler_type=$depmode
7195 break
7196 fi
7197 fi
7198 done
7199
7200 cd ..
7201 rm -rf conftest.dir
7202else
7203 am_cv_CXX_dependencies_compiler_type=none
7204fi
7205
7206fi
f030cae8
VY
7207{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7208$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
b57f37fb
WP
7209CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7210
7211 if
7212 test "x$enable_dependency_tracking" != xno \
7213 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7214 am__fastdepCXX_TRUE=
7215 am__fastdepCXX_FALSE='#'
7216else
7217 am__fastdepCXX_TRUE='#'
7218 am__fastdepCXX_FALSE=
7219fi
7220
7221
7222
7223
7224if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7225 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7226 (test "X$CXX" != "Xg++"))) ; then
7227 ac_ext=cpp
7228ac_cpp='$CXXCPP $CPPFLAGS'
7229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
f030cae8
VY
7232{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7233$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
b57f37fb
WP
7234if test -z "$CXXCPP"; then
7235 if test "${ac_cv_prog_CXXCPP+set}" = set; then
f030cae8 7236 $as_echo_n "(cached) " >&6
b57f37fb
WP
7237else
7238 # Double quotes because CXXCPP needs to be expanded
7239 for CXXCPP in "$CXX -E" "/lib/cpp"
7240 do
7241 ac_preproc_ok=false
7242for ac_cxx_preproc_warn_flag in '' yes
7243do
7244 # Use a header file that comes with gcc, so configuring glibc
7245 # with a fresh cross-compiler works.
7246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247 # <limits.h> exists even on freestanding compilers.
7248 # On the NeXT, cc -E runs the code through the compiler's parser,
7249 # not just through cpp. "Syntax error" is here to catch this case.
7250 cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h. */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h. */
7256#ifdef __STDC__
7257# include <limits.h>
7258#else
7259# include <assert.h>
7260#endif
7261 Syntax error
7262_ACEOF
7263if { (ac_try="$ac_cpp conftest.$ac_ext"
7264case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267esac
f030cae8
VY
7268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
f030cae8 7275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7276 (exit $ac_status); } >/dev/null && {
7277 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7278 test ! -s conftest.err
7279 }; then
7280 :
7281else
f030cae8 7282 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
7283sed 's/^/| /' conftest.$ac_ext >&5
7284
7285 # Broken: fails on valid input.
7286continue
7287fi
7288
7289rm -f conftest.err conftest.$ac_ext
7290
7291 # OK, works on sane cases. Now check whether nonexistent headers
7292 # can be detected and how.
7293 cat >conftest.$ac_ext <<_ACEOF
7294/* confdefs.h. */
7295_ACEOF
7296cat confdefs.h >>conftest.$ac_ext
7297cat >>conftest.$ac_ext <<_ACEOF
7298/* end confdefs.h. */
7299#include <ac_nonexistent.h>
7300_ACEOF
7301if { (ac_try="$ac_cpp conftest.$ac_ext"
7302case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7305esac
f030cae8
VY
7306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7307$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7309 ac_status=$?
7310 grep -v '^ *+' conftest.er1 >conftest.err
7311 rm -f conftest.er1
7312 cat conftest.err >&5
f030cae8 7313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7314 (exit $ac_status); } >/dev/null && {
7315 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7316 test ! -s conftest.err
7317 }; then
7318 # Broken: success on invalid input.
7319continue
7320else
f030cae8 7321 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
7322sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 # Passes both tests.
7325ac_preproc_ok=:
7326break
7327fi
7328
7329rm -f conftest.err conftest.$ac_ext
7330
7331done
7332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7333rm -f conftest.err conftest.$ac_ext
7334if $ac_preproc_ok; then
7335 break
7336fi
7337
7338 done
7339 ac_cv_prog_CXXCPP=$CXXCPP
7340
7341fi
7342 CXXCPP=$ac_cv_prog_CXXCPP
7343else
7344 ac_cv_prog_CXXCPP=$CXXCPP
7345fi
f030cae8
VY
7346{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7347$as_echo "$CXXCPP" >&6; }
b57f37fb
WP
7348ac_preproc_ok=false
7349for ac_cxx_preproc_warn_flag in '' yes
7350do
7351 # Use a header file that comes with gcc, so configuring glibc
7352 # with a fresh cross-compiler works.
7353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7354 # <limits.h> exists even on freestanding compilers.
7355 # On the NeXT, cc -E runs the code through the compiler's parser,
7356 # not just through cpp. "Syntax error" is here to catch this case.
7357 cat >conftest.$ac_ext <<_ACEOF
7358/* confdefs.h. */
7359_ACEOF
7360cat confdefs.h >>conftest.$ac_ext
7361cat >>conftest.$ac_ext <<_ACEOF
7362/* end confdefs.h. */
7363#ifdef __STDC__
7364# include <limits.h>
7365#else
7366# include <assert.h>
7367#endif
7368 Syntax error
7369_ACEOF
7370if { (ac_try="$ac_cpp conftest.$ac_ext"
7371case "(($ac_try" in
7372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7374esac
f030cae8
VY
7375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
f030cae8 7382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7383 (exit $ac_status); } >/dev/null && {
7384 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7385 test ! -s conftest.err
7386 }; then
7387 :
7388else
f030cae8 7389 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
7390sed 's/^/| /' conftest.$ac_ext >&5
7391
7392 # Broken: fails on valid input.
7393continue
7394fi
7395
7396rm -f conftest.err conftest.$ac_ext
7397
7398 # OK, works on sane cases. Now check whether nonexistent headers
7399 # can be detected and how.
7400 cat >conftest.$ac_ext <<_ACEOF
7401/* confdefs.h. */
7402_ACEOF
7403cat confdefs.h >>conftest.$ac_ext
7404cat >>conftest.$ac_ext <<_ACEOF
7405/* end confdefs.h. */
7406#include <ac_nonexistent.h>
7407_ACEOF
7408if { (ac_try="$ac_cpp conftest.$ac_ext"
7409case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412esac
f030cae8
VY
7413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
f030cae8 7420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7421 (exit $ac_status); } >/dev/null && {
7422 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7423 test ! -s conftest.err
7424 }; then
7425 # Broken: success on invalid input.
7426continue
7427else
f030cae8 7428 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
7429sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 # Passes both tests.
7432ac_preproc_ok=:
7433break
7434fi
7435
7436rm -f conftest.err conftest.$ac_ext
7437
7438done
7439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7440rm -f conftest.err conftest.$ac_ext
7441if $ac_preproc_ok; then
7442 :
7443else
f030cae8
VY
7444 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7446{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
b57f37fb 7447See \`config.log' for more details." >&5
f030cae8 7448$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
b57f37fb 7449See \`config.log' for more details." >&2;}
f030cae8 7450 { (exit 1); exit 1; }; }; }
b57f37fb
WP
7451fi
7452
7453ac_ext=cpp
7454ac_cpp='$CXXCPP $CPPFLAGS'
7455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7458
7459fi
7460
7461
7462ac_ext=f
7463ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7464ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7466if test -n "$ac_tool_prefix"; then
7467 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7468 do
7469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7470set dummy $ac_tool_prefix$ac_prog; ac_word=$2
f030cae8
VY
7471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7472$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 7473if test "${ac_cv_prog_F77+set}" = set; then
f030cae8 7474 $as_echo_n "(cached) " >&6
b57f37fb
WP
7475else
7476 if test -n "$F77"; then
7477 ac_cv_prog_F77="$F77" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
f030cae8 7487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
7488 break 2
7489 fi
7490done
7491done
7492IFS=$as_save_IFS
7493
7494fi
7495fi
7496F77=$ac_cv_prog_F77
7497if test -n "$F77"; then
f030cae8
VY
7498 { $as_echo "$as_me:$LINENO: result: $F77" >&5
7499$as_echo "$F77" >&6; }
b57f37fb 7500else
f030cae8
VY
7501 { $as_echo "$as_me:$LINENO: result: no" >&5
7502$as_echo "no" >&6; }
b57f37fb
WP
7503fi
7504
7505
7506 test -n "$F77" && break
7507 done
7508fi
7509if test -z "$F77"; then
7510 ac_ct_F77=$F77
7511 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7512do
7513 # Extract the first word of "$ac_prog", so it can be a program name with args.
7514set dummy $ac_prog; ac_word=$2
f030cae8
VY
7515{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7516$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 7517if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
f030cae8 7518 $as_echo_n "(cached) " >&6
b57f37fb
WP
7519else
7520 if test -n "$ac_ct_F77"; then
7521 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7522else
7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_prog_ac_ct_F77="$ac_prog"
f030cae8 7531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
7532 break 2
7533 fi
7534done
7535done
7536IFS=$as_save_IFS
7537
7538fi
7539fi
7540ac_ct_F77=$ac_cv_prog_ac_ct_F77
7541if test -n "$ac_ct_F77"; then
f030cae8
VY
7542 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7543$as_echo "$ac_ct_F77" >&6; }
b57f37fb 7544else
f030cae8
VY
7545 { $as_echo "$as_me:$LINENO: result: no" >&5
7546$as_echo "no" >&6; }
b57f37fb
WP
7547fi
7548
7549
7550 test -n "$ac_ct_F77" && break
7551done
7552
7553 if test "x$ac_ct_F77" = x; then
7554 F77=""
7555 else
7556 case $cross_compiling:$ac_tool_warned in
7557yes:)
f030cae8
VY
7558{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
7560ac_tool_warned=yes ;;
7561esac
7562 F77=$ac_ct_F77
7563 fi
7564fi
7565
7566
7567# Provide some information about the compiler.
f030cae8
VY
7568$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7569set X $ac_compile
7570ac_compiler=$2
b57f37fb
WP
7571{ (ac_try="$ac_compiler --version >&5"
7572case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575esac
f030cae8
VY
7576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7577$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7578 (eval "$ac_compiler --version >&5") 2>&5
7579 ac_status=$?
f030cae8 7580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7581 (exit $ac_status); }
7582{ (ac_try="$ac_compiler -v >&5"
7583case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586esac
f030cae8
VY
7587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7588$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7589 (eval "$ac_compiler -v >&5") 2>&5
7590 ac_status=$?
f030cae8 7591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7592 (exit $ac_status); }
7593{ (ac_try="$ac_compiler -V >&5"
7594case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597esac
f030cae8
VY
7598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7599$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7600 (eval "$ac_compiler -V >&5") 2>&5
7601 ac_status=$?
f030cae8 7602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7603 (exit $ac_status); }
7604rm -f a.out
7605
7606# If we don't use `.F' as extension, the preprocessor is not run on the
7607# input file. (Note that this only needs to work for GNU compilers.)
7608ac_save_ext=$ac_ext
7609ac_ext=F
f030cae8
VY
7610{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7611$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
b57f37fb 7612if test "${ac_cv_f77_compiler_gnu+set}" = set; then
f030cae8 7613 $as_echo_n "(cached) " >&6
b57f37fb
WP
7614else
7615 cat >conftest.$ac_ext <<_ACEOF
7616 program main
7617#ifndef __GNUC__
7618 choke me
7619#endif
7620
7621 end
7622_ACEOF
7623rm -f conftest.$ac_objext
7624if { (ac_try="$ac_compile"
7625case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628esac
f030cae8
VY
7629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7630$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7631 (eval "$ac_compile") 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
f030cae8 7636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7637 (exit $ac_status); } && {
7638 test -z "$ac_f77_werror_flag" ||
7639 test ! -s conftest.err
7640 } && test -s conftest.$ac_objext; then
7641 ac_compiler_gnu=yes
7642else
f030cae8 7643 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
7644sed 's/^/| /' conftest.$ac_ext >&5
7645
7646 ac_compiler_gnu=no
7647fi
7648
7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7651
7652fi
f030cae8
VY
7653{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7654$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
b57f37fb
WP
7655ac_ext=$ac_save_ext
7656ac_test_FFLAGS=${FFLAGS+set}
7657ac_save_FFLAGS=$FFLAGS
7658FFLAGS=
f030cae8
VY
7659{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7660$as_echo_n "checking whether $F77 accepts -g... " >&6; }
b57f37fb 7661if test "${ac_cv_prog_f77_g+set}" = set; then
f030cae8 7662 $as_echo_n "(cached) " >&6
b57f37fb
WP
7663else
7664 FFLAGS=-g
7665cat >conftest.$ac_ext <<_ACEOF
7666 program main
7667
7668 end
7669_ACEOF
7670rm -f conftest.$ac_objext
7671if { (ac_try="$ac_compile"
7672case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675esac
f030cae8
VY
7676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7677$as_echo "$ac_try_echo") >&5
b57f37fb
WP
7678 (eval "$ac_compile") 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
f030cae8 7683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7684 (exit $ac_status); } && {
7685 test -z "$ac_f77_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest.$ac_objext; then
7688 ac_cv_prog_f77_g=yes
7689else
f030cae8 7690 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 ac_cv_prog_f77_g=no
7694fi
7695
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697
7698fi
f030cae8
VY
7699{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7700$as_echo "$ac_cv_prog_f77_g" >&6; }
b57f37fb
WP
7701if test "$ac_test_FFLAGS" = set; then
7702 FFLAGS=$ac_save_FFLAGS
7703elif test $ac_cv_prog_f77_g = yes; then
7704 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7705 FFLAGS="-g -O2"
7706 else
7707 FFLAGS="-g"
7708 fi
7709else
7710 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7711 FFLAGS="-O2"
7712 else
7713 FFLAGS=
7714 fi
7715fi
7716
f030cae8
VY
7717if test $ac_compiler_gnu = yes; then
7718 G77=yes
7719else
7720 G77=
7721fi
b57f37fb
WP
7722ac_ext=c
7723ac_cpp='$CPP $CPPFLAGS'
7724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726ac_compiler_gnu=$ac_cv_c_compiler_gnu
7727
7728
7729
7730# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
b57f37fb 7731# find the maximum length of command line arguments
f030cae8
VY
7732{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7733$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b57f37fb 7734if test "${lt_cv_sys_max_cmd_len+set}" = set; then
f030cae8 7735 $as_echo_n "(cached) " >&6
b57f37fb
WP
7736else
7737 i=0
7738 teststring="ABCD"
7739
7740 case $build_os in
7741 msdosdjgpp*)
7742 # On DJGPP, this test can blow up pretty badly due to problems in libc
7743 # (any single argument exceeding 2000 bytes causes a buffer overrun
7744 # during glob expansion). Even if it were fixed, the result of this
7745 # check would be larger than it should be.
7746 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7747 ;;
7748
7749 gnu*)
7750 # Under GNU Hurd, this test is not required because there is
7751 # no limit to the length of command line arguments.
7752 # Libtool will interpret -1 as no limit whatsoever
7753 lt_cv_sys_max_cmd_len=-1;
7754 ;;
7755
7756 cygwin* | mingw*)
7757 # On Win9x/ME, this test blows up -- it succeeds, but takes
7758 # about 5 minutes as the teststring grows exponentially.
7759 # Worse, since 9x/ME are not pre-emptively multitasking,
7760 # you end up with a "frozen" computer, even though with patience
7761 # the test eventually succeeds (with a max line length of 256k).
7762 # Instead, let's just punt: use the minimum linelength reported by
7763 # all of the supported platforms: 8192 (on NT/2K/XP).
7764 lt_cv_sys_max_cmd_len=8192;
7765 ;;
7766
7767 amigaos*)
7768 # On AmigaOS with pdksh, this test takes hours, literally.
7769 # So we just punt and use a minimum line length of 8192.
7770 lt_cv_sys_max_cmd_len=8192;
7771 ;;
7772
7773 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7774 # This has been around since 386BSD, at least. Likely further.
7775 if test -x /sbin/sysctl; then
7776 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7777 elif test -x /usr/sbin/sysctl; then
7778 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7779 else
7780 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7781 fi
7782 # And add a safety zone
7783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7785 ;;
7786
7787 interix*)
7788 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7789 lt_cv_sys_max_cmd_len=196608
7790 ;;
7791
7792 osf*)
7793 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7794 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7795 # nice to cause kernel panics so lets avoid the loop below.
7796 # First set a reasonable default.
7797 lt_cv_sys_max_cmd_len=16384
7798 #
7799 if test -x /sbin/sysconfig; then
7800 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7801 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7802 esac
7803 fi
7804 ;;
7805 sco3.2v5*)
7806 lt_cv_sys_max_cmd_len=102400
7807 ;;
7808 sysv5* | sco5v6* | sysv4.2uw2*)
7809 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7810 if test -n "$kargmax"; then
7811 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7812 else
7813 lt_cv_sys_max_cmd_len=32768
7814 fi
7815 ;;
7816 *)
7817 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7818 if test -n "$lt_cv_sys_max_cmd_len"; then
7819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7821 else
7822 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7823 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7824 = "XX$teststring") >/dev/null 2>&1 &&
7825 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7826 lt_cv_sys_max_cmd_len=$new_result &&
7827 test $i != 17 # 1/2 MB should be enough
7828 do
7829 i=`expr $i + 1`
7830 teststring=$teststring$teststring
7831 done
7832 teststring=
7833 # Add a significant safety factor because C++ compilers can tack on massive
7834 # amounts of additional arguments before passing them to the linker.
7835 # It appears as though 1/2 is a usable value.
7836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7837 fi
7838 ;;
7839 esac
7840
7841fi
7842
7843if test -n $lt_cv_sys_max_cmd_len ; then
f030cae8
VY
7844 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7845$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
b57f37fb 7846else
f030cae8
VY
7847 { $as_echo "$as_me:$LINENO: result: none" >&5
7848$as_echo "none" >&6; }
b57f37fb
WP
7849fi
7850
7851
7852
7853
7854
7855# Check for command to grab the raw symbol name followed by C symbol from nm.
f030cae8
VY
7856{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7857$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b57f37fb 7858if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
f030cae8 7859 $as_echo_n "(cached) " >&6
b57f37fb
WP
7860else
7861
7862# These are sane defaults that work on at least a few old systems.
7863# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7864
7865# Character class describing NM global symbol codes.
7866symcode='[BCDEGRST]'
7867
7868# Regexp to match symbols that can be accessed directly from C.
7869sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7870
7871# Transform an extracted symbol line into a proper C declaration
7872lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7873
7874# Transform an extracted symbol line into symbol name and symbol address
7875lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7876
7877# Define system-specific variables.
7878case $host_os in
7879aix*)
7880 symcode='[BCDT]'
7881 ;;
7882cygwin* | mingw* | pw32*)
7883 symcode='[ABCDGISTW]'
7884 ;;
7885hpux*) # Its linker distinguishes data from code symbols
7886 if test "$host_cpu" = ia64; then
7887 symcode='[ABCDEGRST]'
7888 fi
7889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7890 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7891 ;;
7892linux* | k*bsd*-gnu)
7893 if test "$host_cpu" = ia64; then
7894 symcode='[ABCDGIRSTW]'
7895 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7896 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7897 fi
7898 ;;
7899irix* | nonstopux*)
7900 symcode='[BCDEGRST]'
7901 ;;
7902osf*)
7903 symcode='[BCDEGQRST]'
7904 ;;
7905solaris*)
7906 symcode='[BDRT]'
7907 ;;
7908sco3.2v5*)
7909 symcode='[DT]'
7910 ;;
7911sysv4.2uw2*)
7912 symcode='[DT]'
7913 ;;
7914sysv5* | sco5v6* | unixware* | OpenUNIX*)
7915 symcode='[ABDT]'
7916 ;;
7917sysv4)
7918 symcode='[DFNSTU]'
7919 ;;
7920esac
7921
7922# Handle CRLF in mingw tool chain
7923opt_cr=
7924case $build_os in
7925mingw*)
7926 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7927 ;;
7928esac
7929
7930# If we're using GNU nm, then use its standard symbol codes.
7931case `$NM -V 2>&1` in
7932*GNU* | *'with BFD'*)
7933 symcode='[ABCDGIRSTW]' ;;
7934esac
7935
7936# Try without a prefix undercore, then with it.
7937for ac_symprfx in "" "_"; do
7938
7939 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7940 symxfrm="\\1 $ac_symprfx\\2 \\2"
7941
7942 # Write the raw and C identifiers.
7943 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7944
7945 # Check to see that the pipe works correctly.
7946 pipe_works=no
7947
7948 rm -f conftest*
7949 cat > conftest.$ac_ext <<EOF
7950#ifdef __cplusplus
7951extern "C" {
7952#endif
7953char nm_test_var;
7954void nm_test_func(){}
7955#ifdef __cplusplus
7956}
7957#endif
7958int main(){nm_test_var='a';nm_test_func();return(0);}
7959EOF
7960
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>&5
7963 ac_status=$?
f030cae8 7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7965 (exit $ac_status); }; then
7966 # Now try to grab the symbols.
7967 nlist=conftest.nm
7968 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7969 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7970 ac_status=$?
f030cae8 7971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
7972 (exit $ac_status); } && test -s "$nlist"; then
7973 # Try sorting and uniquifying the output.
7974 if sort "$nlist" | uniq > "$nlist"T; then
7975 mv -f "$nlist"T "$nlist"
7976 else
7977 rm -f "$nlist"T
7978 fi
7979
7980 # Make sure that we snagged all the symbols we need.
7981 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7982 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7983 cat <<EOF > conftest.$ac_ext
7984#ifdef __cplusplus
7985extern "C" {
7986#endif
7987
7988EOF
7989 # Now generate the symbol file.
7990 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7991
7992 cat <<EOF >> conftest.$ac_ext
7993#if defined (__STDC__) && __STDC__
7994# define lt_ptr_t void *
7995#else
7996# define lt_ptr_t char *
7997# define const
7998#endif
7999
8000/* The mapping between symbol names and symbols. */
8001const struct {
8002 const char *name;
8003 lt_ptr_t address;
8004}
8005lt_preloaded_symbols[] =
8006{
8007EOF
8008 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8009 cat <<\EOF >> conftest.$ac_ext
8010 {0, (lt_ptr_t) 0}
8011};
8012
8013#ifdef __cplusplus
8014}
8015#endif
8016EOF
8017 # Now try linking the two files.
8018 mv conftest.$ac_objext conftstm.$ac_objext
8019 lt_save_LIBS="$LIBS"
8020 lt_save_CFLAGS="$CFLAGS"
8021 LIBS="conftstm.$ac_objext"
8022 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>&5
8025 ac_status=$?
f030cae8 8026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
8027 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8028 pipe_works=yes
8029 fi
8030 LIBS="$lt_save_LIBS"
8031 CFLAGS="$lt_save_CFLAGS"
8032 else
8033 echo "cannot find nm_test_func in $nlist" >&5
8034 fi
8035 else
8036 echo "cannot find nm_test_var in $nlist" >&5
8037 fi
8038 else
8039 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8040 fi
8041 else
8042 echo "$progname: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8044 fi
56efe974 8045 rm -rf conftest* conftst*
b57f37fb
WP
8046
8047 # Do not use the global_symbol_pipe unless it works.
8048 if test "$pipe_works" = yes; then
8049 break
8050 else
8051 lt_cv_sys_global_symbol_pipe=
8052 fi
8053done
8054
8055fi
8056
8057if test -z "$lt_cv_sys_global_symbol_pipe"; then
8058 lt_cv_sys_global_symbol_to_cdecl=
8059fi
8060if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
f030cae8
VY
8061 { $as_echo "$as_me:$LINENO: result: failed" >&5
8062$as_echo "failed" >&6; }
b57f37fb 8063else
f030cae8
VY
8064 { $as_echo "$as_me:$LINENO: result: ok" >&5
8065$as_echo "ok" >&6; }
b57f37fb
WP
8066fi
8067
f030cae8
VY
8068{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8069$as_echo_n "checking for objdir... " >&6; }
b57f37fb 8070if test "${lt_cv_objdir+set}" = set; then
f030cae8 8071 $as_echo_n "(cached) " >&6
b57f37fb
WP
8072else
8073 rm -f .libs 2>/dev/null
8074mkdir .libs 2>/dev/null
8075if test -d .libs; then
8076 lt_cv_objdir=.libs
8077else
8078 # MS-DOS does not allow filenames that begin with a dot.
8079 lt_cv_objdir=_libs
8080fi
8081rmdir .libs 2>/dev/null
8082fi
f030cae8
VY
8083{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8084$as_echo "$lt_cv_objdir" >&6; }
b57f37fb
WP
8085objdir=$lt_cv_objdir
8086
8087
8088
8089
8090
8091case $host_os in
8092aix3*)
8093 # AIX sometimes has problems with the GCC collect2 program. For some
8094 # reason, if we set the COLLECT_NAMES environment variable, the problems
8095 # vanish in a puff of smoke.
8096 if test "X${COLLECT_NAMES+set}" != Xset; then
8097 COLLECT_NAMES=
8098 export COLLECT_NAMES
8099 fi
8100 ;;
8101esac
8102
8103# Sed substitution that helps us do robust quoting. It backslashifies
8104# metacharacters that are still active within double-quoted strings.
8105Xsed='sed -e 1s/^X//'
8106sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8107
8108# Same as above, but do not quote variable references.
8109double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8110
8111# Sed substitution to delay expansion of an escaped shell variable in a
8112# double_quote_subst'ed string.
8113delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8114
8115# Sed substitution to avoid accidental globbing in evaled expressions
8116no_glob_subst='s/\*/\\\*/g'
8117
8118# Constants:
8119rm="rm -f"
8120
8121# Global variables:
8122default_ofile=libtool
8123can_build_shared=yes
8124
8125# All known linkers require a `.a' archive for static linking (except MSVC,
8126# which needs '.lib').
8127libext=a
8128ltmain="$ac_aux_dir/ltmain.sh"
8129ofile="$default_ofile"
8130with_gnu_ld="$lt_cv_prog_gnu_ld"
8131
8132if test -n "$ac_tool_prefix"; then
8133 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8134set dummy ${ac_tool_prefix}ar; ac_word=$2
f030cae8
VY
8135{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8136$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 8137if test "${ac_cv_prog_AR+set}" = set; then
f030cae8 8138 $as_echo_n "(cached) " >&6
b57f37fb
WP
8139else
8140 if test -n "$AR"; then
8141 ac_cv_prog_AR="$AR" # Let the user override the test.
8142else
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150 ac_cv_prog_AR="${ac_tool_prefix}ar"
f030cae8 8151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8152 break 2
8153 fi
8154done
8155done
8156IFS=$as_save_IFS
8157
8158fi
8159fi
8160AR=$ac_cv_prog_AR
8161if test -n "$AR"; then
f030cae8
VY
8162 { $as_echo "$as_me:$LINENO: result: $AR" >&5
8163$as_echo "$AR" >&6; }
b57f37fb 8164else
f030cae8
VY
8165 { $as_echo "$as_me:$LINENO: result: no" >&5
8166$as_echo "no" >&6; }
b57f37fb
WP
8167fi
8168
8169
8170fi
8171if test -z "$ac_cv_prog_AR"; then
8172 ac_ct_AR=$AR
8173 # Extract the first word of "ar", so it can be a program name with args.
8174set dummy ar; ac_word=$2
f030cae8
VY
8175{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 8177if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
f030cae8 8178 $as_echo_n "(cached) " >&6
b57f37fb
WP
8179else
8180 if test -n "$ac_ct_AR"; then
8181 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_ac_ct_AR="ar"
f030cae8 8191 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8192 break 2
8193 fi
8194done
8195done
8196IFS=$as_save_IFS
8197
8198fi
8199fi
8200ac_ct_AR=$ac_cv_prog_ac_ct_AR
8201if test -n "$ac_ct_AR"; then
f030cae8
VY
8202 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8203$as_echo "$ac_ct_AR" >&6; }
b57f37fb 8204else
f030cae8
VY
8205 { $as_echo "$as_me:$LINENO: result: no" >&5
8206$as_echo "no" >&6; }
b57f37fb
WP
8207fi
8208
8209 if test "x$ac_ct_AR" = x; then
8210 AR="false"
8211 else
8212 case $cross_compiling:$ac_tool_warned in
8213yes:)
f030cae8
VY
8214{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
8216ac_tool_warned=yes ;;
8217esac
8218 AR=$ac_ct_AR
8219 fi
8220else
8221 AR="$ac_cv_prog_AR"
8222fi
8223
8224if test -n "$ac_tool_prefix"; then
8225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8226set dummy ${ac_tool_prefix}ranlib; ac_word=$2
f030cae8
VY
8227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 8229if test "${ac_cv_prog_RANLIB+set}" = set; then
f030cae8 8230 $as_echo_n "(cached) " >&6
b57f37fb
WP
8231else
8232 if test -n "$RANLIB"; then
8233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8234else
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
f030cae8 8243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8244 break 2
8245 fi
8246done
8247done
8248IFS=$as_save_IFS
8249
8250fi
8251fi
8252RANLIB=$ac_cv_prog_RANLIB
8253if test -n "$RANLIB"; then
f030cae8
VY
8254 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8255$as_echo "$RANLIB" >&6; }
b57f37fb 8256else
f030cae8
VY
8257 { $as_echo "$as_me:$LINENO: result: no" >&5
8258$as_echo "no" >&6; }
b57f37fb
WP
8259fi
8260
8261
8262fi
8263if test -z "$ac_cv_prog_RANLIB"; then
8264 ac_ct_RANLIB=$RANLIB
8265 # Extract the first word of "ranlib", so it can be a program name with args.
8266set dummy ranlib; ac_word=$2
f030cae8
VY
8267{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8268$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 8269if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
f030cae8 8270 $as_echo_n "(cached) " >&6
b57f37fb
WP
8271else
8272 if test -n "$ac_ct_RANLIB"; then
8273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8274else
8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276for as_dir in $PATH
8277do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_prog_ac_ct_RANLIB="ranlib"
f030cae8 8283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8284 break 2
8285 fi
8286done
8287done
8288IFS=$as_save_IFS
8289
8290fi
8291fi
8292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8293if test -n "$ac_ct_RANLIB"; then
f030cae8
VY
8294 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8295$as_echo "$ac_ct_RANLIB" >&6; }
b57f37fb 8296else
f030cae8
VY
8297 { $as_echo "$as_me:$LINENO: result: no" >&5
8298$as_echo "no" >&6; }
b57f37fb
WP
8299fi
8300
8301 if test "x$ac_ct_RANLIB" = x; then
8302 RANLIB=":"
8303 else
8304 case $cross_compiling:$ac_tool_warned in
8305yes:)
f030cae8
VY
8306{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
8308ac_tool_warned=yes ;;
8309esac
8310 RANLIB=$ac_ct_RANLIB
8311 fi
8312else
8313 RANLIB="$ac_cv_prog_RANLIB"
8314fi
8315
8316if test -n "$ac_tool_prefix"; then
8317 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8318set dummy ${ac_tool_prefix}strip; ac_word=$2
f030cae8
VY
8319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8320$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 8321if test "${ac_cv_prog_STRIP+set}" = set; then
f030cae8 8322 $as_echo_n "(cached) " >&6
b57f37fb
WP
8323else
8324 if test -n "$STRIP"; then
8325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8326else
8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8334 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
f030cae8 8335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8336 break 2
8337 fi
8338done
8339done
8340IFS=$as_save_IFS
8341
8342fi
8343fi
8344STRIP=$ac_cv_prog_STRIP
8345if test -n "$STRIP"; then
f030cae8
VY
8346 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8347$as_echo "$STRIP" >&6; }
b57f37fb 8348else
f030cae8
VY
8349 { $as_echo "$as_me:$LINENO: result: no" >&5
8350$as_echo "no" >&6; }
b57f37fb
WP
8351fi
8352
8353
8354fi
8355if test -z "$ac_cv_prog_STRIP"; then
8356 ac_ct_STRIP=$STRIP
8357 # Extract the first word of "strip", so it can be a program name with args.
8358set dummy strip; ac_word=$2
f030cae8
VY
8359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8360$as_echo_n "checking for $ac_word... " >&6; }
b57f37fb 8361if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
f030cae8 8362 $as_echo_n "(cached) " >&6
b57f37fb
WP
8363else
8364 if test -n "$ac_ct_STRIP"; then
8365 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8366else
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_ac_ct_STRIP="strip"
f030cae8 8375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b57f37fb
WP
8376 break 2
8377 fi
8378done
8379done
8380IFS=$as_save_IFS
8381
8382fi
8383fi
8384ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8385if test -n "$ac_ct_STRIP"; then
f030cae8
VY
8386 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8387$as_echo "$ac_ct_STRIP" >&6; }
b57f37fb 8388else
f030cae8
VY
8389 { $as_echo "$as_me:$LINENO: result: no" >&5
8390$as_echo "no" >&6; }
b57f37fb
WP
8391fi
8392
8393 if test "x$ac_ct_STRIP" = x; then
8394 STRIP=":"
8395 else
8396 case $cross_compiling:$ac_tool_warned in
8397yes:)
f030cae8
VY
8398{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b57f37fb
WP
8400ac_tool_warned=yes ;;
8401esac
8402 STRIP=$ac_ct_STRIP
8403 fi
8404else
8405 STRIP="$ac_cv_prog_STRIP"
8406fi
8407
8408
8409old_CC="$CC"
8410old_CFLAGS="$CFLAGS"
8411
8412# Set sane defaults for various variables
8413test -z "$AR" && AR=ar
8414test -z "$AR_FLAGS" && AR_FLAGS=cru
8415test -z "$AS" && AS=as
8416test -z "$CC" && CC=cc
8417test -z "$LTCC" && LTCC=$CC
8418test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8419test -z "$DLLTOOL" && DLLTOOL=dlltool
8420test -z "$LD" && LD=ld
8421test -z "$LN_S" && LN_S="ln -s"
8422test -z "$MAGIC_CMD" && MAGIC_CMD=file
8423test -z "$NM" && NM=nm
8424test -z "$SED" && SED=sed
8425test -z "$OBJDUMP" && OBJDUMP=objdump
8426test -z "$RANLIB" && RANLIB=:
8427test -z "$STRIP" && STRIP=:
8428test -z "$ac_objext" && ac_objext=o
8429
8430# Determine commands to create old-style static archives.
8431old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8432old_postinstall_cmds='chmod 644 $oldlib'
8433old_postuninstall_cmds=
8434
8435if test -n "$RANLIB"; then
8436 case $host_os in
8437 openbsd*)
8438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8439 ;;
8440 *)
8441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8442 ;;
8443 esac
8444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8445fi
8446
8447for cc_temp in $compiler""; do
8448 case $cc_temp in
8449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8451 \-*) ;;
8452 *) break;;
8453 esac
8454done
8455cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8456
8457
8458# Only perform the check for file, if the check method requires it
8459case $deplibs_check_method in
8460file_magic*)
8461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
f030cae8
VY
8462 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8463$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b57f37fb 8464if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
f030cae8 8465 $as_echo_n "(cached) " >&6
b57f37fb
WP
8466else
8467 case $MAGIC_CMD in
8468[\\/*] | ?:[\\/]*)
8469 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470 ;;
8471*)
8472 lt_save_MAGIC_CMD="$MAGIC_CMD"
8473 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475 for ac_dir in $ac_dummy; do
8476 IFS="$lt_save_ifs"
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f $ac_dir/${ac_tool_prefix}file; then
8479 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480 if test -n "$file_magic_test_file"; then
8481 case $deplibs_check_method in
8482 "file_magic "*)
8483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486 $EGREP "$file_magic_regex" > /dev/null; then
8487 :
8488 else
8489 cat <<EOF 1>&2
8490
8491*** Warning: the command libtool uses to detect shared libraries,
8492*** $file_magic_cmd, produces output that libtool cannot recognize.
8493*** The result is that libtool may fail to recognize shared libraries
8494*** as such. This will affect the creation of libtool libraries that
8495*** depend on shared libraries, but programs linked with such libtool
8496*** libraries will work regardless of this problem. Nevertheless, you
8497*** may want to report the problem to your system manager and/or to
8498*** bug-libtool@gnu.org
8499
8500EOF
8501 fi ;;
8502 esac
8503 fi
8504 break
8505 fi
8506 done
8507 IFS="$lt_save_ifs"
8508 MAGIC_CMD="$lt_save_MAGIC_CMD"
8509 ;;
8510esac
8511fi
8512
8513MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514if test -n "$MAGIC_CMD"; then
f030cae8
VY
8515 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8516$as_echo "$MAGIC_CMD" >&6; }
b57f37fb 8517else
f030cae8
VY
8518 { $as_echo "$as_me:$LINENO: result: no" >&5
8519$as_echo "no" >&6; }
b57f37fb
WP
8520fi
8521
8522if test -z "$lt_cv_path_MAGIC_CMD"; then
8523 if test -n "$ac_tool_prefix"; then
f030cae8
VY
8524 { $as_echo "$as_me:$LINENO: checking for file" >&5
8525$as_echo_n "checking for file... " >&6; }
b57f37fb 8526if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
f030cae8 8527 $as_echo_n "(cached) " >&6
b57f37fb
WP
8528else
8529 case $MAGIC_CMD in
8530[\\/*] | ?:[\\/]*)
8531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8532 ;;
8533*)
8534 lt_save_MAGIC_CMD="$MAGIC_CMD"
8535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8537 for ac_dir in $ac_dummy; do
8538 IFS="$lt_save_ifs"
8539 test -z "$ac_dir" && ac_dir=.
8540 if test -f $ac_dir/file; then
8541 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8542 if test -n "$file_magic_test_file"; then
8543 case $deplibs_check_method in
8544 "file_magic "*)
8545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8548 $EGREP "$file_magic_regex" > /dev/null; then
8549 :
8550 else
8551 cat <<EOF 1>&2
8552
8553*** Warning: the command libtool uses to detect shared libraries,
8554*** $file_magic_cmd, produces output that libtool cannot recognize.
8555*** The result is that libtool may fail to recognize shared libraries
8556*** as such. This will affect the creation of libtool libraries that
8557*** depend on shared libraries, but programs linked with such libtool
8558*** libraries will work regardless of this problem. Nevertheless, you
8559*** may want to report the problem to your system manager and/or to
8560*** bug-libtool@gnu.org
8561
8562EOF
8563 fi ;;
8564 esac
8565 fi
8566 break
8567 fi
8568 done
8569 IFS="$lt_save_ifs"
8570 MAGIC_CMD="$lt_save_MAGIC_CMD"
8571 ;;
8572esac
8573fi
8574
8575MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8576if test -n "$MAGIC_CMD"; then
f030cae8
VY
8577 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8578$as_echo "$MAGIC_CMD" >&6; }
b57f37fb 8579else
f030cae8
VY
8580 { $as_echo "$as_me:$LINENO: result: no" >&5
8581$as_echo "no" >&6; }
b57f37fb
WP
8582fi
8583
8584 else
8585 MAGIC_CMD=:
8586 fi
8587fi
8588
8589 fi
8590 ;;
8591esac
8592
56efe974
WP
8593
8594 case $host_os in
8595 rhapsody* | darwin*)
8596 if test -n "$ac_tool_prefix"; then
8597 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8598set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
f030cae8
VY
8599{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8600$as_echo_n "checking for $ac_word... " >&6; }
56efe974 8601if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
f030cae8 8602 $as_echo_n "(cached) " >&6
56efe974
WP
8603else
8604 if test -n "$DSYMUTIL"; then
8605 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8606else
8607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608for as_dir in $PATH
8609do
8610 IFS=$as_save_IFS
8611 test -z "$as_dir" && as_dir=.
8612 for ac_exec_ext in '' $ac_executable_extensions; do
8613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8614 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
f030cae8 8615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
8616 break 2
8617 fi
8618done
8619done
8620IFS=$as_save_IFS
8621
8622fi
8623fi
8624DSYMUTIL=$ac_cv_prog_DSYMUTIL
8625if test -n "$DSYMUTIL"; then
f030cae8
VY
8626 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8627$as_echo "$DSYMUTIL" >&6; }
56efe974 8628else
f030cae8
VY
8629 { $as_echo "$as_me:$LINENO: result: no" >&5
8630$as_echo "no" >&6; }
56efe974
WP
8631fi
8632
8633
8634fi
8635if test -z "$ac_cv_prog_DSYMUTIL"; then
8636 ac_ct_DSYMUTIL=$DSYMUTIL
8637 # Extract the first word of "dsymutil", so it can be a program name with args.
8638set dummy dsymutil; ac_word=$2
f030cae8
VY
8639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8640$as_echo_n "checking for $ac_word... " >&6; }
56efe974 8641if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
f030cae8 8642 $as_echo_n "(cached) " >&6
56efe974
WP
8643else
8644 if test -n "$ac_ct_DSYMUTIL"; then
8645 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8646else
8647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648for as_dir in $PATH
8649do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
f030cae8 8655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
8656 break 2
8657 fi
8658done
8659done
8660IFS=$as_save_IFS
8661
8662fi
8663fi
8664ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8665if test -n "$ac_ct_DSYMUTIL"; then
f030cae8
VY
8666 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8667$as_echo "$ac_ct_DSYMUTIL" >&6; }
56efe974 8668else
f030cae8
VY
8669 { $as_echo "$as_me:$LINENO: result: no" >&5
8670$as_echo "no" >&6; }
56efe974
WP
8671fi
8672
8673 if test "x$ac_ct_DSYMUTIL" = x; then
8674 DSYMUTIL=":"
8675 else
8676 case $cross_compiling:$ac_tool_warned in
8677yes:)
f030cae8
VY
8678{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56efe974
WP
8680ac_tool_warned=yes ;;
8681esac
8682 DSYMUTIL=$ac_ct_DSYMUTIL
8683 fi
8684else
8685 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8686fi
8687
8688 if test -n "$ac_tool_prefix"; then
8689 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8690set dummy ${ac_tool_prefix}nmedit; ac_word=$2
f030cae8
VY
8691{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8692$as_echo_n "checking for $ac_word... " >&6; }
56efe974 8693if test "${ac_cv_prog_NMEDIT+set}" = set; then
f030cae8 8694 $as_echo_n "(cached) " >&6
56efe974
WP
8695else
8696 if test -n "$NMEDIT"; then
8697 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8698else
8699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702 IFS=$as_save_IFS
8703 test -z "$as_dir" && as_dir=.
8704 for ac_exec_ext in '' $ac_executable_extensions; do
8705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8706 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
f030cae8 8707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
8708 break 2
8709 fi
8710done
8711done
8712IFS=$as_save_IFS
8713
8714fi
8715fi
8716NMEDIT=$ac_cv_prog_NMEDIT
8717if test -n "$NMEDIT"; then
f030cae8
VY
8718 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8719$as_echo "$NMEDIT" >&6; }
56efe974 8720else
f030cae8
VY
8721 { $as_echo "$as_me:$LINENO: result: no" >&5
8722$as_echo "no" >&6; }
56efe974
WP
8723fi
8724
8725
8726fi
8727if test -z "$ac_cv_prog_NMEDIT"; then
8728 ac_ct_NMEDIT=$NMEDIT
8729 # Extract the first word of "nmedit", so it can be a program name with args.
8730set dummy nmedit; ac_word=$2
f030cae8
VY
8731{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8732$as_echo_n "checking for $ac_word... " >&6; }
56efe974 8733if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
f030cae8 8734 $as_echo_n "(cached) " >&6
56efe974
WP
8735else
8736 if test -n "$ac_ct_NMEDIT"; then
8737 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8738else
8739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740for as_dir in $PATH
8741do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_ac_ct_NMEDIT="nmedit"
f030cae8 8747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56efe974
WP
8748 break 2
8749 fi
8750done
8751done
8752IFS=$as_save_IFS
8753
8754fi
8755fi
8756ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8757if test -n "$ac_ct_NMEDIT"; then
f030cae8
VY
8758 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8759$as_echo "$ac_ct_NMEDIT" >&6; }
56efe974 8760else
f030cae8
VY
8761 { $as_echo "$as_me:$LINENO: result: no" >&5
8762$as_echo "no" >&6; }
56efe974
WP
8763fi
8764
8765 if test "x$ac_ct_NMEDIT" = x; then
8766 NMEDIT=":"
8767 else
8768 case $cross_compiling:$ac_tool_warned in
8769yes:)
f030cae8
VY
8770{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56efe974
WP
8772ac_tool_warned=yes ;;
8773esac
8774 NMEDIT=$ac_ct_NMEDIT
8775 fi
8776else
8777 NMEDIT="$ac_cv_prog_NMEDIT"
8778fi
8779
8780
f030cae8
VY
8781 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8782$as_echo_n "checking for -single_module linker flag... " >&6; }
56efe974 8783if test "${lt_cv_apple_cc_single_mod+set}" = set; then
f030cae8 8784 $as_echo_n "(cached) " >&6
56efe974
WP
8785else
8786 lt_cv_apple_cc_single_mod=no
8787 if test -z "${LT_MULTI_MODULE}"; then
8788 # By default we will add the -single_module flag. You can override
8789 # by either setting the environment variable LT_MULTI_MODULE
8790 # non-empty at configure time, or by adding -multi_module to the
8791 # link flags.
8792 echo "int foo(void){return 1;}" > conftest.c
8793 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8794 -dynamiclib ${wl}-single_module conftest.c
8795 if test -f libconftest.dylib; then
8796 lt_cv_apple_cc_single_mod=yes
8797 rm -rf libconftest.dylib*
8798 fi
8799 rm conftest.c
8800 fi
8801fi
f030cae8
VY
8802{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8803$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8804 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8805$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
56efe974 8806if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
f030cae8 8807 $as_echo_n "(cached) " >&6
56efe974
WP
8808else
8809 lt_cv_ld_exported_symbols_list=no
8810 save_LDFLAGS=$LDFLAGS
8811 echo "_main" > conftest.sym
8812 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8813 cat >conftest.$ac_ext <<_ACEOF
8814/* confdefs.h. */
8815_ACEOF
8816cat confdefs.h >>conftest.$ac_ext
8817cat >>conftest.$ac_ext <<_ACEOF
8818/* end confdefs.h. */
8819
8820int
8821main ()
8822{
8823
8824 ;
8825 return 0;
8826}
8827_ACEOF
8828rm -f conftest.$ac_objext conftest$ac_exeext
8829if { (ac_try="$ac_link"
8830case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833esac
f030cae8
VY
8834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835$as_echo "$ac_try_echo") >&5
56efe974
WP
8836 (eval "$ac_link") 2>conftest.er1
8837 ac_status=$?
8838 grep -v '^ *+' conftest.er1 >conftest.err
8839 rm -f conftest.er1
8840 cat conftest.err >&5
f030cae8 8841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56efe974
WP
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
f030cae8
VY
8845 } && test -s conftest$ac_exeext && {
8846 test "$cross_compiling" = yes ||
8847 $as_test_x conftest$ac_exeext
8848 }; then
56efe974
WP
8849 lt_cv_ld_exported_symbols_list=yes
8850else
f030cae8 8851 $as_echo "$as_me: failed program was:" >&5
56efe974
WP
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 lt_cv_ld_exported_symbols_list=no
8855fi
8856
f030cae8 8857rm -rf conftest.dSYM
56efe974
WP
8858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8859 conftest$ac_exeext conftest.$ac_ext
8860 LDFLAGS="$save_LDFLAGS"
8861
8862fi
f030cae8
VY
8863{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8864$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
56efe974
WP
8865 case $host_os in
8866 rhapsody* | darwin1.[0123])
8867 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8868 darwin1.*)
8869 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8870 darwin*)
8871 # if running on 10.5 or later, the deployment target defaults
8872 # to the OS version, if on x86, and 10.4, the deployment
8873 # target defaults to 10.4. Don't you love it?
8874 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8875 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8877 10.[012]*)
8878 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8879 10.*)
8880 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8881 esac
8882 ;;
8883 esac
8884 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8885 _lt_dar_single_mod='$single_module'
8886 fi
8887 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8888 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8889 else
8890 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
8891 fi
8892 if test "$DSYMUTIL" != ":"; then
8893 _lt_dsymutil="~$DSYMUTIL \$lib || :"
8894 else
8895 _lt_dsymutil=
8896 fi
8897 ;;
8898 esac
8899
8900
b57f37fb
WP
8901enable_dlopen=no
8902enable_win32_dll=no
8903
8904# Check whether --enable-libtool-lock was given.
8905if test "${enable_libtool_lock+set}" = set; then
8906 enableval=$enable_libtool_lock;
8907fi
8908
8909test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8910
8911
8912# Check whether --with-pic was given.
8913if test "${with_pic+set}" = set; then
8914 withval=$with_pic; pic_mode="$withval"
8915else
8916 pic_mode=default
8917fi
8918
8919test -z "$pic_mode" && pic_mode=default
8920
8921# Use C for the default configuration in the libtool script
8922tagname=
8923lt_save_CC="$CC"
8924ac_ext=c
8925ac_cpp='$CPP $CPPFLAGS'
8926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928ac_compiler_gnu=$ac_cv_c_compiler_gnu
8929
8930
8931# Source file extension for C test sources.
8932ac_ext=c
8933
8934# Object file extension for compiled C test sources.
8935objext=o
8936objext=$objext
8937
8938# Code to be used in simple compile tests
8939lt_simple_compile_test_code="int some_variable = 0;"
8940
8941# Code to be used in simple link tests
8942lt_simple_link_test_code='int main(){return(0);}'
8943
8944
8945# If no C compiler was specified, use CC.
8946LTCC=${LTCC-"$CC"}
8947
8948# If no C compiler flags were specified, use CFLAGS.
8949LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8950
8951# Allow CC to be a program name with arguments.
8952compiler=$CC
8953
8954
8955# save warnings/boilerplate of simple test code
8956ac_outfile=conftest.$ac_objext
8957echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8958eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8959_lt_compiler_boilerplate=`cat conftest.err`
8960$rm conftest*
8961
8962ac_outfile=conftest.$ac_objext
8963echo "$lt_simple_link_test_code" >conftest.$ac_ext
8964eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8965_lt_linker_boilerplate=`cat conftest.err`
56efe974 8966$rm -r conftest*
b57f37fb
WP
8967
8968
8969
8970lt_prog_compiler_no_builtin_flag=
8971
8972if test "$GCC" = yes; then
8973 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8974
8975
f030cae8
VY
8976{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8977$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b57f37fb 8978if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
f030cae8 8979 $as_echo_n "(cached) " >&6
b57f37fb
WP
8980else
8981 lt_cv_prog_compiler_rtti_exceptions=no
8982 ac_outfile=conftest.$ac_objext
8983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8984 lt_compiler_flag="-fno-rtti -fno-exceptions"
8985 # Insert the option either (1) after the last *FLAGS variable, or
8986 # (2) before a word containing "conftest.", or (3) at the end.
8987 # Note that $ac_compile itself does not contain backslashes and begins
8988 # with a dollar sign (not a hyphen), so the echo should work correctly.
8989 # The option is referenced via a variable to avoid confusing sed.
8990 lt_compile=`echo "$ac_compile" | $SED \
8991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8993 -e 's:$: $lt_compiler_flag:'`
f030cae8 8994 (eval echo "\"\$as_me:8994: $lt_compile\"" >&5)
b57f37fb
WP
8995 (eval "$lt_compile" 2>conftest.err)
8996 ac_status=$?
8997 cat conftest.err >&5
f030cae8 8998 echo "$as_me:8998: \$? = $ac_status" >&5
b57f37fb
WP
8999 if (exit $ac_status) && test -s "$ac_outfile"; then
9000 # The compiler can only warn and ignore the option if not recognized
9001 # So say no if there are warnings other than the usual output.
9002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9005 lt_cv_prog_compiler_rtti_exceptions=yes
9006 fi
9007 fi
9008 $rm conftest*
9009
9010fi
f030cae8
VY
9011{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9012$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b57f37fb
WP
9013
9014if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9015 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9016else
9017 :
9018fi
9019
9020fi
9021
9022lt_prog_compiler_wl=
9023lt_prog_compiler_pic=
9024lt_prog_compiler_static=
9025
f030cae8
VY
9026{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9027$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
b57f37fb
WP
9028
9029 if test "$GCC" = yes; then
9030 lt_prog_compiler_wl='-Wl,'
9031 lt_prog_compiler_static='-static'
9032
9033 case $host_os in
9034 aix*)
9035 # All AIX code is PIC.
9036 if test "$host_cpu" = ia64; then
9037 # AIX 5 now supports IA64 processor
9038 lt_prog_compiler_static='-Bstatic'
9039 fi
9040 ;;
9041
9042 amigaos*)
9043 # FIXME: we need at least 68020 code to build shared libraries, but
9044 # adding the `-m68020' flag to GCC prevents building anything better,
9045 # like `-m68040'.
9046 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9047 ;;
9048
9049 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9050 # PIC is the default for these OSes.
9051 ;;
9052
9053 mingw* | cygwin* | pw32* | os2*)
9054 # This hack is so that the source file can tell whether it is being
9055 # built for inclusion in a dll (and should export symbols for example).
9056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9057 # (--disable-auto-import) libraries
9058 lt_prog_compiler_pic='-DDLL_EXPORT'
9059 ;;
9060
9061 darwin* | rhapsody*)
9062 # PIC is the default on this platform
9063 # Common symbols not allowed in MH_DYLIB files
9064 lt_prog_compiler_pic='-fno-common'
9065 ;;
9066
9067 interix[3-9]*)
9068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9069 # Instead, we relocate shared libraries at runtime.
9070 ;;
9071
9072 msdosdjgpp*)
9073 # Just because we use GCC doesn't mean we suddenly get shared libraries
9074 # on systems that don't support them.
9075 lt_prog_compiler_can_build_shared=no
9076 enable_shared=no
9077 ;;
9078
9079 sysv4*MP*)
9080 if test -d /usr/nec; then
9081 lt_prog_compiler_pic=-Kconform_pic
9082 fi
9083 ;;
9084
9085 hpux*)
9086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9087 # not for PA HP-UX.
9088 case $host_cpu in
9089 hppa*64*|ia64*)
9090 # +Z the default
9091 ;;
9092 *)
9093 lt_prog_compiler_pic='-fPIC'
9094 ;;
9095 esac
9096 ;;
9097
9098 *)
9099 lt_prog_compiler_pic='-fPIC'
9100 ;;
9101 esac
9102 else
9103 # PORTME Check for flag to pass linker flags through the system compiler.
9104 case $host_os in
9105 aix*)
9106 lt_prog_compiler_wl='-Wl,'
9107 if test "$host_cpu" = ia64; then
9108 # AIX 5 now supports IA64 processor
9109 lt_prog_compiler_static='-Bstatic'
9110 else
9111 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9112 fi
9113 ;;
9114 darwin*)
9115 # PIC is the default on this platform
9116 # Common symbols not allowed in MH_DYLIB files
9117 case $cc_basename in
9118 xlc*)
9119 lt_prog_compiler_pic='-qnocommon'
9120 lt_prog_compiler_wl='-Wl,'
9121 ;;
9122 esac
9123 ;;
9124
9125 mingw* | cygwin* | pw32* | os2*)
9126 # This hack is so that the source file can tell whether it is being
9127 # built for inclusion in a dll (and should export symbols for example).
9128 lt_prog_compiler_pic='-DDLL_EXPORT'
9129 ;;
9130
9131 hpux9* | hpux10* | hpux11*)
9132 lt_prog_compiler_wl='-Wl,'
9133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9134 # not for PA HP-UX.
9135 case $host_cpu in
9136 hppa*64*|ia64*)
9137 # +Z the default
9138 ;;
9139 *)
9140 lt_prog_compiler_pic='+Z'
9141 ;;
9142 esac
9143 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9144 lt_prog_compiler_static='${wl}-a ${wl}archive'
9145 ;;
9146
9147 irix5* | irix6* | nonstopux*)
9148 lt_prog_compiler_wl='-Wl,'
9149 # PIC (with -KPIC) is the default.
9150 lt_prog_compiler_static='-non_shared'
9151 ;;
9152
9153 newsos6)
9154 lt_prog_compiler_pic='-KPIC'
9155 lt_prog_compiler_static='-Bstatic'
9156 ;;
9157
9158 linux* | k*bsd*-gnu)
9159 case $cc_basename in
9160 icc* | ecc*)
9161 lt_prog_compiler_wl='-Wl,'
9162 lt_prog_compiler_pic='-KPIC'
9163 lt_prog_compiler_static='-static'
9164 ;;
9165 pgcc* | pgf77* | pgf90* | pgf95*)
9166 # Portland Group compilers (*not* the Pentium gcc compiler,
9167 # which looks to be a dead project)
9168 lt_prog_compiler_wl='-Wl,'
9169 lt_prog_compiler_pic='-fpic'
9170 lt_prog_compiler_static='-Bstatic'
9171 ;;
9172 ccc*)
9173 lt_prog_compiler_wl='-Wl,'
9174 # All Alpha code is PIC.
9175 lt_prog_compiler_static='-non_shared'
9176 ;;
9177 *)
9178 case `$CC -V 2>&1 | sed 5q` in
9179 *Sun\ C*)
9180 # Sun C 5.9
9181 lt_prog_compiler_pic='-KPIC'
9182 lt_prog_compiler_static='-Bstatic'
9183 lt_prog_compiler_wl='-Wl,'
9184 ;;
9185 *Sun\ F*)
9186 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9187 lt_prog_compiler_pic='-KPIC'
9188 lt_prog_compiler_static='-Bstatic'
9189 lt_prog_compiler_wl=''
9190 ;;
9191 esac
9192 ;;
9193 esac
9194 ;;
9195
9196 osf3* | osf4* | osf5*)
9197 lt_prog_compiler_wl='-Wl,'
9198 # All OSF/1 code is PIC.
9199 lt_prog_compiler_static='-non_shared'
9200 ;;
9201
9202 rdos*)
9203 lt_prog_compiler_static='-non_shared'
9204 ;;
9205
9206 solaris*)
9207 lt_prog_compiler_pic='-KPIC'
9208 lt_prog_compiler_static='-Bstatic'
9209 case $cc_basename in
9210 f77* | f90* | f95*)
9211 lt_prog_compiler_wl='-Qoption ld ';;
9212 *)
9213 lt_prog_compiler_wl='-Wl,';;
9214 esac
9215 ;;
9216
9217 sunos4*)
9218 lt_prog_compiler_wl='-Qoption ld '
9219 lt_prog_compiler_pic='-PIC'
9220 lt_prog_compiler_static='-Bstatic'
9221 ;;
9222
9223 sysv4 | sysv4.2uw2* | sysv4.3*)
9224 lt_prog_compiler_wl='-Wl,'
9225 lt_prog_compiler_pic='-KPIC'
9226 lt_prog_compiler_static='-Bstatic'
9227 ;;
9228
9229 sysv4*MP*)
9230 if test -d /usr/nec ;then
9231 lt_prog_compiler_pic='-Kconform_pic'
9232 lt_prog_compiler_static='-Bstatic'
9233 fi
9234 ;;
9235
9236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_pic='-KPIC'
9239 lt_prog_compiler_static='-Bstatic'
9240 ;;
9241
9242 unicos*)
9243 lt_prog_compiler_wl='-Wl,'
9244 lt_prog_compiler_can_build_shared=no
9245 ;;
9246
9247 uts4*)
9248 lt_prog_compiler_pic='-pic'
9249 lt_prog_compiler_static='-Bstatic'
9250 ;;
9251
9252 *)
9253 lt_prog_compiler_can_build_shared=no
9254 ;;
9255 esac
9256 fi
9257
f030cae8
VY
9258{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9259$as_echo "$lt_prog_compiler_pic" >&6; }
b57f37fb
WP
9260
9261#
9262# Check to make sure the PIC flag actually works.
9263#
9264if test -n "$lt_prog_compiler_pic"; then
9265
f030cae8
VY
9266{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9267$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
56efe974 9268if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
f030cae8 9269 $as_echo_n "(cached) " >&6
b57f37fb 9270else
56efe974 9271 lt_cv_prog_compiler_pic_works=no
b57f37fb
WP
9272 ac_outfile=conftest.$ac_objext
9273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9274 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9275 # Insert the option either (1) after the last *FLAGS variable, or
9276 # (2) before a word containing "conftest.", or (3) at the end.
9277 # Note that $ac_compile itself does not contain backslashes and begins
9278 # with a dollar sign (not a hyphen), so the echo should work correctly.
9279 # The option is referenced via a variable to avoid confusing sed.
9280 lt_compile=`echo "$ac_compile" | $SED \
9281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283 -e 's:$: $lt_compiler_flag:'`
f030cae8 9284 (eval echo "\"\$as_me:9284: $lt_compile\"" >&5)
b57f37fb
WP
9285 (eval "$lt_compile" 2>conftest.err)
9286 ac_status=$?
9287 cat conftest.err >&5
f030cae8 9288 echo "$as_me:9288: \$? = $ac_status" >&5
b57f37fb
WP
9289 if (exit $ac_status) && test -s "$ac_outfile"; then
9290 # The compiler can only warn and ignore the option if not recognized
9291 # So say no if there are warnings other than the usual output.
9292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 9295 lt_cv_prog_compiler_pic_works=yes
b57f37fb
WP
9296 fi
9297 fi
9298 $rm conftest*
9299
9300fi
f030cae8
VY
9301{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9302$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
b57f37fb 9303
56efe974 9304if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
b57f37fb
WP
9305 case $lt_prog_compiler_pic in
9306 "" | " "*) ;;
9307 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9308 esac
9309else
9310 lt_prog_compiler_pic=
9311 lt_prog_compiler_can_build_shared=no
9312fi
9313
9314fi
9315case $host_os in
9316 # For platforms which do not support PIC, -DPIC is meaningless:
9317 *djgpp*)
9318 lt_prog_compiler_pic=
9319 ;;
9320 *)
9321 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9322 ;;
9323esac
9324
9325#
9326# Check to make sure the static flag actually works.
9327#
9328wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
f030cae8
VY
9329{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9330$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
56efe974 9331if test "${lt_cv_prog_compiler_static_works+set}" = set; then
f030cae8 9332 $as_echo_n "(cached) " >&6
b57f37fb 9333else
56efe974 9334 lt_cv_prog_compiler_static_works=no
b57f37fb
WP
9335 save_LDFLAGS="$LDFLAGS"
9336 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9337 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9338 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9339 # The linker can only warn and ignore the option if not recognized
9340 # So say no if there are warnings
9341 if test -s conftest.err; then
9342 # Append any errors to the config.log.
9343 cat conftest.err 1>&5
9344 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9346 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 9347 lt_cv_prog_compiler_static_works=yes
b57f37fb
WP
9348 fi
9349 else
56efe974 9350 lt_cv_prog_compiler_static_works=yes
b57f37fb
WP
9351 fi
9352 fi
56efe974 9353 $rm -r conftest*
b57f37fb
WP
9354 LDFLAGS="$save_LDFLAGS"
9355
9356fi
f030cae8
VY
9357{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9358$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
b57f37fb 9359
56efe974 9360if test x"$lt_cv_prog_compiler_static_works" = xyes; then
b57f37fb
WP
9361 :
9362else
9363 lt_prog_compiler_static=
9364fi
9365
9366
f030cae8
VY
9367{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9368$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b57f37fb 9369if test "${lt_cv_prog_compiler_c_o+set}" = set; then
f030cae8 9370 $as_echo_n "(cached) " >&6
b57f37fb
WP
9371else
9372 lt_cv_prog_compiler_c_o=no
9373 $rm -r conftest 2>/dev/null
9374 mkdir conftest
9375 cd conftest
9376 mkdir out
9377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9378
9379 lt_compiler_flag="-o out/conftest2.$ac_objext"
9380 # Insert the option either (1) after the last *FLAGS variable, or
9381 # (2) before a word containing "conftest.", or (3) at the end.
9382 # Note that $ac_compile itself does not contain backslashes and begins
9383 # with a dollar sign (not a hyphen), so the echo should work correctly.
9384 lt_compile=`echo "$ac_compile" | $SED \
9385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9387 -e 's:$: $lt_compiler_flag:'`
f030cae8 9388 (eval echo "\"\$as_me:9388: $lt_compile\"" >&5)
b57f37fb
WP
9389 (eval "$lt_compile" 2>out/conftest.err)
9390 ac_status=$?
9391 cat out/conftest.err >&5
f030cae8 9392 echo "$as_me:9392: \$? = $ac_status" >&5
b57f37fb
WP
9393 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9394 then
9395 # The compiler can only warn and ignore the option if not recognized
9396 # So say no if there are warnings
9397 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9398 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9399 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9400 lt_cv_prog_compiler_c_o=yes
9401 fi
9402 fi
9403 chmod u+w . 2>&5
9404 $rm conftest*
9405 # SGI C++ compiler will create directory out/ii_files/ for
9406 # template instantiation
9407 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9408 $rm out/* && rmdir out
9409 cd ..
9410 rmdir conftest
9411 $rm conftest*
9412
9413fi
f030cae8
VY
9414{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9415$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
b57f37fb
WP
9416
9417
9418hard_links="nottested"
9419if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9420 # do not overwrite the value of need_locks provided by the user
f030cae8
VY
9421 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9422$as_echo_n "checking if we can lock with hard links... " >&6; }
b57f37fb
WP
9423 hard_links=yes
9424 $rm conftest*
9425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9426 touch conftest.a
9427 ln conftest.a conftest.b 2>&5 || hard_links=no
9428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
f030cae8
VY
9429 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9430$as_echo "$hard_links" >&6; }
b57f37fb 9431 if test "$hard_links" = no; then
f030cae8
VY
9432 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9433$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
b57f37fb
WP
9434 need_locks=warn
9435 fi
9436else
9437 need_locks=no
9438fi
9439
f030cae8
VY
9440{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9441$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
b57f37fb
WP
9442
9443 runpath_var=
9444 allow_undefined_flag=
9445 enable_shared_with_static_runtimes=no
9446 archive_cmds=
9447 archive_expsym_cmds=
9448 old_archive_From_new_cmds=
9449 old_archive_from_expsyms_cmds=
9450 export_dynamic_flag_spec=
9451 whole_archive_flag_spec=
9452 thread_safe_flag_spec=
9453 hardcode_libdir_flag_spec=
9454 hardcode_libdir_flag_spec_ld=
9455 hardcode_libdir_separator=
9456 hardcode_direct=no
9457 hardcode_minus_L=no
9458 hardcode_shlibpath_var=unsupported
9459 link_all_deplibs=unknown
9460 hardcode_automatic=no
9461 module_cmds=
9462 module_expsym_cmds=
9463 always_export_symbols=no
9464 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9465 # include_expsyms should be a list of space-separated symbols to be *always*
9466 # included in the symbol list
9467 include_expsyms=
9468 # exclude_expsyms can be an extended regexp of symbols to exclude
9469 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9470 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9471 # as well as any symbol that contains `d'.
56efe974 9472 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
9473 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9474 # platforms (ab)use it in PIC code, but their linkers get confused if
9475 # the symbol is explicitly referenced. Since portable code cannot
9476 # rely on this symbol name, it's probably fine to never include it in
9477 # preloaded symbol tables.
56efe974 9478 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
9479 extract_expsyms_cmds=
9480 # Just being paranoid about ensuring that cc_basename is set.
9481 for cc_temp in $compiler""; do
9482 case $cc_temp in
9483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9485 \-*) ;;
9486 *) break;;
9487 esac
9488done
9489cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9490
9491 case $host_os in
9492 cygwin* | mingw* | pw32*)
9493 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9494 # When not using gcc, we currently assume that we are using
9495 # Microsoft Visual C++.
9496 if test "$GCC" != yes; then
9497 with_gnu_ld=no
9498 fi
9499 ;;
9500 interix*)
9501 # we just hope/assume this is gcc and not c89 (= MSVC++)
9502 with_gnu_ld=yes
9503 ;;
9504 openbsd*)
9505 with_gnu_ld=no
9506 ;;
9507 esac
9508
9509 ld_shlibs=yes
9510 if test "$with_gnu_ld" = yes; then
9511 # If archive_cmds runs LD, not CC, wlarc should be empty
9512 wlarc='${wl}'
9513
9514 # Set some defaults for GNU ld with shared library support. These
9515 # are reset later if shared libraries are not supported. Putting them
9516 # here allows them to be overridden if necessary.
9517 runpath_var=LD_RUN_PATH
9518 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9519 export_dynamic_flag_spec='${wl}--export-dynamic'
9520 # ancient GNU ld didn't support --whole-archive et. al.
9521 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9522 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9523 else
9524 whole_archive_flag_spec=
9525 fi
9526 supports_anon_versioning=no
9527 case `$LD -v 2>/dev/null` in
9528 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9529 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9530 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9531 *\ 2.11.*) ;; # other 2.11 versions
9532 *) supports_anon_versioning=yes ;;
9533 esac
9534
9535 # See if GNU ld supports shared libraries.
9536 case $host_os in
56efe974 9537 aix[3-9]*)
b57f37fb
WP
9538 # On AIX/PPC, the GNU linker is very broken
9539 if test "$host_cpu" != ia64; then
9540 ld_shlibs=no
9541 cat <<EOF 1>&2
9542
9543*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9544*** to be unable to reliably create shared libraries on AIX.
9545*** Therefore, libtool is disabling shared libraries support. If you
9546*** really care for shared libraries, you may want to modify your PATH
9547*** so that a non-GNU linker is found, and then restart.
9548
9549EOF
9550 fi
9551 ;;
9552
9553 amigaos*)
9554 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9555 hardcode_libdir_flag_spec='-L$libdir'
9556 hardcode_minus_L=yes
9557
9558 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9559 # that the semantics of dynamic libraries on AmigaOS, at least up
9560 # to version 4, is to share data among multiple programs linked
9561 # with the same dynamic library. Since this doesn't match the
9562 # behavior of shared libraries on other platforms, we can't use
9563 # them.
9564 ld_shlibs=no
9565 ;;
9566
9567 beos*)
9568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9569 allow_undefined_flag=unsupported
9570 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9571 # support --undefined. This deserves some investigation. FIXME
9572 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 else
9574 ld_shlibs=no
9575 fi
9576 ;;
9577
9578 cygwin* | mingw* | pw32*)
9579 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9580 # as there is no search path for DLLs.
9581 hardcode_libdir_flag_spec='-L$libdir'
9582 allow_undefined_flag=unsupported
9583 always_export_symbols=no
9584 enable_shared_with_static_runtimes=yes
9585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9586
9587 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9589 # If the export-symbols file already is a .def file (1st line
9590 # is EXPORTS), use it as is; otherwise, prepend...
9591 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9592 cp $export_symbols $output_objdir/$soname.def;
9593 else
9594 echo EXPORTS > $output_objdir/$soname.def;
9595 cat $export_symbols >> $output_objdir/$soname.def;
9596 fi~
9597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9598 else
9599 ld_shlibs=no
9600 fi
9601 ;;
9602
9603 interix[3-9]*)
9604 hardcode_direct=no
9605 hardcode_shlibpath_var=no
9606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9607 export_dynamic_flag_spec='${wl}-E'
9608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9609 # Instead, shared libraries are loaded at an image base (0x10000000 by
9610 # default) and relocated if they conflict, which is a slow very memory
9611 # consuming and fragmenting process. To avoid this, we pick a random,
9612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9615 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9616 ;;
9617
9618 gnu* | linux* | k*bsd*-gnu)
9619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9620 tmp_addflag=
9621 case $cc_basename,$host_cpu in
9622 pgcc*) # Portland Group C compiler
9623 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9624 tmp_addflag=' $pic_flag'
9625 ;;
9626 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9627 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9628 tmp_addflag=' $pic_flag -Mnomain' ;;
9629 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9630 tmp_addflag=' -i_dynamic' ;;
9631 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9632 tmp_addflag=' -i_dynamic -nofor_main' ;;
9633 ifc* | ifort*) # Intel Fortran compiler
9634 tmp_addflag=' -nofor_main' ;;
9635 esac
9636 case `$CC -V 2>&1 | sed 5q` in
9637 *Sun\ C*) # Sun C 5.9
9638 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9639 tmp_sharedflag='-G' ;;
9640 *Sun\ F*) # Sun Fortran 8.3
9641 tmp_sharedflag='-G' ;;
9642 *)
9643 tmp_sharedflag='-shared' ;;
9644 esac
9645 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646
9647 if test $supports_anon_versioning = yes; then
9648 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9650 $echo "local: *; };" >> $output_objdir/$libname.ver~
9651 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9652 fi
9653 link_all_deplibs=no
9654 else
9655 ld_shlibs=no
9656 fi
9657 ;;
9658
9659 netbsd* | netbsdelf*-gnu)
9660 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9662 wlarc=
9663 else
9664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9666 fi
9667 ;;
9668
9669 solaris*)
9670 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9671 ld_shlibs=no
9672 cat <<EOF 1>&2
9673
9674*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9675*** create shared libraries on Solaris systems. Therefore, libtool
9676*** is disabling shared libraries support. We urge you to upgrade GNU
9677*** binutils to release 2.9.1 or newer. Another option is to modify
9678*** your PATH or compiler configuration so that the native linker is
9679*** used, and then restart.
9680
9681EOF
9682 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9685 else
9686 ld_shlibs=no
9687 fi
9688 ;;
9689
9690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9691 case `$LD -v 2>&1` in
9692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9693 ld_shlibs=no
9694 cat <<_LT_EOF 1>&2
9695
9696*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9697*** reliably create shared libraries on SCO systems. Therefore, libtool
9698*** is disabling shared libraries support. We urge you to upgrade GNU
9699*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9700*** your PATH or compiler configuration so that the native linker is
9701*** used, and then restart.
9702
9703_LT_EOF
9704 ;;
9705 *)
9706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9707 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9710 else
9711 ld_shlibs=no
9712 fi
9713 ;;
9714 esac
9715 ;;
9716
9717 sunos4*)
9718 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9719 wlarc=
9720 hardcode_direct=yes
9721 hardcode_shlibpath_var=no
9722 ;;
9723
9724 *)
9725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9728 else
9729 ld_shlibs=no
9730 fi
9731 ;;
9732 esac
9733
9734 if test "$ld_shlibs" = no; then
9735 runpath_var=
9736 hardcode_libdir_flag_spec=
9737 export_dynamic_flag_spec=
9738 whole_archive_flag_spec=
9739 fi
9740 else
9741 # PORTME fill in a description of your system's linker (not GNU ld)
9742 case $host_os in
9743 aix3*)
9744 allow_undefined_flag=unsupported
9745 always_export_symbols=yes
9746 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9747 # Note: this linker hardcodes the directories in LIBPATH if there
9748 # are no directories specified by -L.
9749 hardcode_minus_L=yes
9750 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9751 # Neither direct hardcoding nor static linking is supported with a
9752 # broken collect2.
9753 hardcode_direct=unsupported
9754 fi
9755 ;;
9756
56efe974 9757 aix[4-9]*)
b57f37fb
WP
9758 if test "$host_cpu" = ia64; then
9759 # On IA64, the linker does run time linking by default, so we don't
9760 # have to do anything special.
9761 aix_use_runtimelinking=no
9762 exp_sym_flag='-Bexport'
9763 no_entry_flag=""
9764 else
9765 # If we're using GNU nm, then we don't want the "-C" option.
9766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9767 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9768 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9769 else
9770 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9771 fi
9772 aix_use_runtimelinking=no
9773
9774 # Test if we are trying to use run time linking or normal
9775 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9776 # need to do runtime linking.
56efe974 9777 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
9778 for ld_flag in $LDFLAGS; do
9779 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9780 aix_use_runtimelinking=yes
9781 break
9782 fi
9783 done
9784 ;;
9785 esac
9786
9787 exp_sym_flag='-bexport'
9788 no_entry_flag='-bnoentry'
9789 fi
9790
9791 # When large executables or shared objects are built, AIX ld can
9792 # have problems creating the table of contents. If linking a library
9793 # or program results in "error TOC overflow" add -mminimal-toc to
9794 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9795 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9796
9797 archive_cmds=''
9798 hardcode_direct=yes
9799 hardcode_libdir_separator=':'
9800 link_all_deplibs=yes
9801
9802 if test "$GCC" = yes; then
9803 case $host_os in aix4.[012]|aix4.[012].*)
9804 # We only want to do this on AIX 4.2 and lower, the check
9805 # below for broken collect2 doesn't work under 4.3+
9806 collect2name=`${CC} -print-prog-name=collect2`
9807 if test -f "$collect2name" && \
9808 strings "$collect2name" | grep resolve_lib_name >/dev/null
9809 then
9810 # We have reworked collect2
9811 :
9812 else
9813 # We have old collect2
9814 hardcode_direct=unsupported
9815 # It fails to find uninstalled libraries when the uninstalled
9816 # path is not listed in the libpath. Setting hardcode_minus_L
9817 # to unsupported forces relinking
9818 hardcode_minus_L=yes
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_libdir_separator=
9821 fi
9822 ;;
9823 esac
9824 shared_flag='-shared'
9825 if test "$aix_use_runtimelinking" = yes; then
9826 shared_flag="$shared_flag "'${wl}-G'
9827 fi
9828 else
9829 # not using gcc
9830 if test "$host_cpu" = ia64; then
9831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9832 # chokes on -Wl,-G. The following line is correct:
9833 shared_flag='-G'
9834 else
9835 if test "$aix_use_runtimelinking" = yes; then
9836 shared_flag='${wl}-G'
9837 else
9838 shared_flag='${wl}-bM:SRE'
9839 fi
9840 fi
9841 fi
9842
9843 # It seems that -bexpall does not export symbols beginning with
9844 # underscore (_), so it is better to generate a list of symbols to export.
9845 always_export_symbols=yes
9846 if test "$aix_use_runtimelinking" = yes; then
9847 # Warning - without using the other runtime loading flags (-brtl),
9848 # -berok will link without error, but may produce a broken library.
9849 allow_undefined_flag='-berok'
9850 # Determine the default libpath from the value encoded in an empty executable.
9851 cat >conftest.$ac_ext <<_ACEOF
9852/* confdefs.h. */
9853_ACEOF
9854cat confdefs.h >>conftest.$ac_ext
9855cat >>conftest.$ac_ext <<_ACEOF
9856/* end confdefs.h. */
9857
9858int
9859main ()
9860{
9861
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866rm -f conftest.$ac_objext conftest$ac_exeext
9867if { (ac_try="$ac_link"
9868case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871esac
f030cae8
VY
9872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9873$as_echo "$ac_try_echo") >&5
b57f37fb
WP
9874 (eval "$ac_link") 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
f030cae8 9879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
9880 (exit $ac_status); } && {
9881 test -z "$ac_c_werror_flag" ||
9882 test ! -s conftest.err
f030cae8
VY
9883 } && test -s conftest$ac_exeext && {
9884 test "$cross_compiling" = yes ||
9885 $as_test_x conftest$ac_exeext
9886 }; then
b57f37fb
WP
9887
9888lt_aix_libpath_sed='
9889 /Import File Strings/,/^$/ {
9890 /^0/ {
9891 s/^0 *\(.*\)$/\1/
9892 p
9893 }
9894 }'
9895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9896# Check for a 64-bit object if we didn't find anything.
9897if test -z "$aix_libpath"; then
9898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9899fi
9900else
f030cae8 9901 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
9904
9905fi
9906
f030cae8 9907rm -rf conftest.dSYM
b57f37fb
WP
9908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909 conftest$ac_exeext conftest.$ac_ext
9910if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9911
9912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9913 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9914 else
9915 if test "$host_cpu" = ia64; then
9916 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9917 allow_undefined_flag="-z nodefs"
9918 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9919 else
9920 # Determine the default libpath from the value encoded in an empty executable.
9921 cat >conftest.$ac_ext <<_ACEOF
9922/* confdefs.h. */
9923_ACEOF
9924cat confdefs.h >>conftest.$ac_ext
9925cat >>conftest.$ac_ext <<_ACEOF
9926/* end confdefs.h. */
9927
9928int
9929main ()
9930{
9931
9932 ;
9933 return 0;
9934}
9935_ACEOF
9936rm -f conftest.$ac_objext conftest$ac_exeext
9937if { (ac_try="$ac_link"
9938case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941esac
f030cae8
VY
9942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9943$as_echo "$ac_try_echo") >&5
b57f37fb
WP
9944 (eval "$ac_link") 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
f030cae8 9949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
f030cae8
VY
9953 } && test -s conftest$ac_exeext && {
9954 test "$cross_compiling" = yes ||
9955 $as_test_x conftest$ac_exeext
9956 }; then
b57f37fb
WP
9957
9958lt_aix_libpath_sed='
9959 /Import File Strings/,/^$/ {
9960 /^0/ {
9961 s/^0 *\(.*\)$/\1/
9962 p
9963 }
9964 }'
9965aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9966# Check for a 64-bit object if we didn't find anything.
9967if test -z "$aix_libpath"; then
9968 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9969fi
9970else
f030cae8 9971 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
9972sed 's/^/| /' conftest.$ac_ext >&5
9973
9974
9975fi
9976
f030cae8 9977rm -rf conftest.dSYM
b57f37fb
WP
9978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext conftest.$ac_ext
9980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9981
9982 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9983 # Warning - without using the other run time loading flags,
9984 # -berok will link without error, but may produce a broken library.
9985 no_undefined_flag=' ${wl}-bernotok'
9986 allow_undefined_flag=' ${wl}-berok'
9987 # Exported symbols can be pulled into shared objects from archives
9988 whole_archive_flag_spec='$convenience'
9989 archive_cmds_need_lc=yes
9990 # This is similar to how AIX traditionally builds its shared libraries.
9991 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9992 fi
9993 fi
9994 ;;
9995
9996 amigaos*)
9997 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9998 hardcode_libdir_flag_spec='-L$libdir'
9999 hardcode_minus_L=yes
10000 # see comment about different semantics on the GNU ld section
10001 ld_shlibs=no
10002 ;;
10003
10004 bsdi[45]*)
10005 export_dynamic_flag_spec=-rdynamic
10006 ;;
10007
10008 cygwin* | mingw* | pw32*)
10009 # When not using gcc, we currently assume that we are using
10010 # Microsoft Visual C++.
10011 # hardcode_libdir_flag_spec is actually meaningless, as there is
10012 # no search path for DLLs.
10013 hardcode_libdir_flag_spec=' '
10014 allow_undefined_flag=unsupported
10015 # Tell ltmain to make .lib files, not .a files.
10016 libext=lib
10017 # Tell ltmain to make .dll files, not .so files.
10018 shrext_cmds=".dll"
10019 # FIXME: Setting linknames here is a bad hack.
10020 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10021 # The linker will automatically build a .lib file if we build a DLL.
10022 old_archive_From_new_cmds='true'
10023 # FIXME: Should let the user specify the lib program.
10024 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10025 fix_srcfile_path='`cygpath -w "$srcfile"`'
10026 enable_shared_with_static_runtimes=yes
10027 ;;
10028
10029 darwin* | rhapsody*)
10030 case $host_os in
10031 rhapsody* | darwin1.[012])
10032 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10033 ;;
10034 *) # Darwin 1.3 on
10035 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10036 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10037 else
10038 case ${MACOSX_DEPLOYMENT_TARGET} in
10039 10.[012])
10040 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10041 ;;
10042 10.*)
10043 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10044 ;;
10045 esac
10046 fi
10047 ;;
10048 esac
10049 archive_cmds_need_lc=no
10050 hardcode_direct=no
10051 hardcode_automatic=yes
10052 hardcode_shlibpath_var=unsupported
10053 whole_archive_flag_spec=''
10054 link_all_deplibs=yes
10055 if test "$GCC" = yes ; then
10056 output_verbose_link_cmd='echo'
56efe974
WP
10057 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10058 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10059 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10060 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
10061 else
10062 case $cc_basename in
10063 xlc*)
10064 output_verbose_link_cmd='echo'
10065 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10066 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10067 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10068 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10069 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10070 ;;
10071 *)
10072 ld_shlibs=no
10073 ;;
10074 esac
10075 fi
10076 ;;
10077
10078 dgux*)
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_libdir_flag_spec='-L$libdir'
10081 hardcode_shlibpath_var=no
10082 ;;
10083
10084 freebsd1*)
10085 ld_shlibs=no
10086 ;;
10087
10088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10089 # support. Future versions do this automatically, but an explicit c++rt0.o
10090 # does not break anything, and helps significantly (at the cost of a little
10091 # extra space).
10092 freebsd2.2*)
10093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10094 hardcode_libdir_flag_spec='-R$libdir'
10095 hardcode_direct=yes
10096 hardcode_shlibpath_var=no
10097 ;;
10098
10099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10100 freebsd2*)
10101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_direct=yes
10103 hardcode_minus_L=yes
10104 hardcode_shlibpath_var=no
10105 ;;
10106
10107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10108 freebsd* | dragonfly*)
10109 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10110 hardcode_libdir_flag_spec='-R$libdir'
10111 hardcode_direct=yes
10112 hardcode_shlibpath_var=no
10113 ;;
10114
10115 hpux9*)
10116 if test "$GCC" = yes; then
10117 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10118 else
10119 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10120 fi
10121 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10122 hardcode_libdir_separator=:
10123 hardcode_direct=yes
10124
10125 # hardcode_minus_L: Not really in the search PATH,
10126 # but as the default location of the library.
10127 hardcode_minus_L=yes
10128 export_dynamic_flag_spec='${wl}-E'
10129 ;;
10130
10131 hpux10*)
10132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10133 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10134 else
10135 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10136 fi
10137 if test "$with_gnu_ld" = no; then
10138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10139 hardcode_libdir_separator=:
10140
10141 hardcode_direct=yes
10142 export_dynamic_flag_spec='${wl}-E'
10143
10144 # hardcode_minus_L: Not really in the search PATH,
10145 # but as the default location of the library.
10146 hardcode_minus_L=yes
10147 fi
10148 ;;
10149
10150 hpux11*)
10151 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10152 case $host_cpu in
10153 hppa*64*)
10154 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 ;;
10156 ia64*)
10157 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10158 ;;
10159 *)
10160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10161 ;;
10162 esac
10163 else
10164 case $host_cpu in
10165 hppa*64*)
10166 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 ;;
10168 ia64*)
10169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10170 ;;
10171 *)
10172 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10173 ;;
10174 esac
10175 fi
10176 if test "$with_gnu_ld" = no; then
10177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10178 hardcode_libdir_separator=:
10179
10180 case $host_cpu in
10181 hppa*64*|ia64*)
10182 hardcode_libdir_flag_spec_ld='+b $libdir'
10183 hardcode_direct=no
10184 hardcode_shlibpath_var=no
10185 ;;
10186 *)
10187 hardcode_direct=yes
10188 export_dynamic_flag_spec='${wl}-E'
10189
10190 # hardcode_minus_L: Not really in the search PATH,
10191 # but as the default location of the library.
10192 hardcode_minus_L=yes
10193 ;;
10194 esac
10195 fi
10196 ;;
10197
10198 irix5* | irix6* | nonstopux*)
10199 if test "$GCC" = yes; then
10200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10201 else
10202 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10203 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10204 fi
10205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10206 hardcode_libdir_separator=:
10207 link_all_deplibs=yes
10208 ;;
10209
10210 netbsd* | netbsdelf*-gnu)
10211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10213 else
10214 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10215 fi
10216 hardcode_libdir_flag_spec='-R$libdir'
10217 hardcode_direct=yes
10218 hardcode_shlibpath_var=no
10219 ;;
10220
10221 newsos6)
10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_direct=yes
10224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10225 hardcode_libdir_separator=:
10226 hardcode_shlibpath_var=no
10227 ;;
10228
10229 openbsd*)
10230 if test -f /usr/libexec/ld.so; then
10231 hardcode_direct=yes
10232 hardcode_shlibpath_var=no
10233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10237 export_dynamic_flag_spec='${wl}-E'
10238 else
10239 case $host_os in
10240 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_libdir_flag_spec='-R$libdir'
10243 ;;
10244 *)
10245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10247 ;;
10248 esac
10249 fi
10250 else
10251 ld_shlibs=no
10252 fi
10253 ;;
10254
10255 os2*)
10256 hardcode_libdir_flag_spec='-L$libdir'
10257 hardcode_minus_L=yes
10258 allow_undefined_flag=unsupported
10259 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10260 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10261 ;;
10262
10263 osf3*)
10264 if test "$GCC" = yes; then
10265 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10266 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10267 else
10268 allow_undefined_flag=' -expect_unresolved \*'
10269 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10270 fi
10271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272 hardcode_libdir_separator=:
10273 ;;
10274
10275 osf4* | osf5*) # as osf3* with the addition of -msym flag
10276 if test "$GCC" = yes; then
10277 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10278 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280 else
10281 allow_undefined_flag=' -expect_unresolved \*'
10282 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10283 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10284 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10285
10286 # Both c and cxx compiler support -rpath directly
10287 hardcode_libdir_flag_spec='-rpath $libdir'
10288 fi
10289 hardcode_libdir_separator=:
10290 ;;
10291
10292 solaris*)
10293 no_undefined_flag=' -z text'
10294 if test "$GCC" = yes; then
10295 wlarc='${wl}'
10296 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10298 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10299 else
10300 wlarc=''
10301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10304 fi
10305 hardcode_libdir_flag_spec='-R$libdir'
10306 hardcode_shlibpath_var=no
10307 case $host_os in
10308 solaris2.[0-5] | solaris2.[0-5].*) ;;
10309 *)
10310 # The compiler driver will combine and reorder linker options,
10311 # but understands `-z linker_flag'. GCC discards it without `$wl',
10312 # but is careful enough not to reorder.
10313 # Supported since Solaris 2.6 (maybe 2.5.1?)
10314 if test "$GCC" = yes; then
10315 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10316 else
10317 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10318 fi
10319 ;;
10320 esac
10321 link_all_deplibs=yes
10322 ;;
10323
10324 sunos4*)
10325 if test "x$host_vendor" = xsequent; then
10326 # Use $CC to link under sequent, because it throws in some extra .o
10327 # files that make .init and .fini sections work.
10328 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10329 else
10330 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10331 fi
10332 hardcode_libdir_flag_spec='-L$libdir'
10333 hardcode_direct=yes
10334 hardcode_minus_L=yes
10335 hardcode_shlibpath_var=no
10336 ;;
10337
10338 sysv4)
10339 case $host_vendor in
10340 sni)
10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_direct=yes # is this really true???
10343 ;;
10344 siemens)
10345 ## LD is ld it makes a PLAMLIB
10346 ## CC just makes a GrossModule.
10347 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10348 reload_cmds='$CC -r -o $output$reload_objs'
10349 hardcode_direct=no
10350 ;;
10351 motorola)
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10354 ;;
10355 esac
10356 runpath_var='LD_RUN_PATH'
10357 hardcode_shlibpath_var=no
10358 ;;
10359
10360 sysv4.3*)
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_shlibpath_var=no
10363 export_dynamic_flag_spec='-Bexport'
10364 ;;
10365
10366 sysv4*MP*)
10367 if test -d /usr/nec; then
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_shlibpath_var=no
10370 runpath_var=LD_RUN_PATH
10371 hardcode_runpath_var=yes
10372 ld_shlibs=yes
10373 fi
10374 ;;
10375
10376 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10377 no_undefined_flag='${wl}-z,text'
10378 archive_cmds_need_lc=no
10379 hardcode_shlibpath_var=no
10380 runpath_var='LD_RUN_PATH'
10381
10382 if test "$GCC" = yes; then
10383 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385 else
10386 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 fi
10389 ;;
10390
10391 sysv5* | sco3.2v5* | sco5v6*)
10392 # Note: We can NOT use -z defs as we might desire, because we do not
10393 # link with -lc, and that would cause any symbols used from libc to
10394 # always be unresolved, which means just about no library would
10395 # ever link correctly. If we're not using GNU ld we use -z text
10396 # though, which does catch some bad symbols but isn't as heavy-handed
10397 # as -z defs.
10398 no_undefined_flag='${wl}-z,text'
10399 allow_undefined_flag='${wl}-z,nodefs'
10400 archive_cmds_need_lc=no
10401 hardcode_shlibpath_var=no
10402 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10403 hardcode_libdir_separator=':'
10404 link_all_deplibs=yes
10405 export_dynamic_flag_spec='${wl}-Bexport'
10406 runpath_var='LD_RUN_PATH'
10407
10408 if test "$GCC" = yes; then
10409 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10410 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10411 else
10412 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10413 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10414 fi
10415 ;;
10416
10417 uts4*)
10418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10419 hardcode_libdir_flag_spec='-L$libdir'
10420 hardcode_shlibpath_var=no
10421 ;;
10422
10423 *)
10424 ld_shlibs=no
10425 ;;
10426 esac
10427 fi
10428
f030cae8
VY
10429{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10430$as_echo "$ld_shlibs" >&6; }
b57f37fb
WP
10431test "$ld_shlibs" = no && can_build_shared=no
10432
10433#
10434# Do we need to explicitly link libc?
10435#
10436case "x$archive_cmds_need_lc" in
10437x|xyes)
10438 # Assume -lc should be added
10439 archive_cmds_need_lc=yes
10440
10441 if test "$enable_shared" = yes && test "$GCC" = yes; then
10442 case $archive_cmds in
10443 *'~'*)
10444 # FIXME: we may have to deal with multi-command sequences.
10445 ;;
10446 '$CC '*)
10447 # Test whether the compiler implicitly links with -lc since on some
10448 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10449 # to ld, don't add -lc before -lgcc.
f030cae8
VY
10450 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10451$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b57f37fb
WP
10452 $rm conftest*
10453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10454
10455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>&5
10457 ac_status=$?
f030cae8 10458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
10459 (exit $ac_status); } 2>conftest.err; then
10460 soname=conftest
10461 lib=conftest
10462 libobjs=conftest.$ac_objext
10463 deplibs=
10464 wl=$lt_prog_compiler_wl
10465 pic_flag=$lt_prog_compiler_pic
10466 compiler_flags=-v
10467 linker_flags=-v
10468 verstring=
10469 output_objdir=.
10470 libname=conftest
10471 lt_save_allow_undefined_flag=$allow_undefined_flag
10472 allow_undefined_flag=
10473 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10474 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10475 ac_status=$?
f030cae8 10476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
10477 (exit $ac_status); }
10478 then
10479 archive_cmds_need_lc=no
10480 else
10481 archive_cmds_need_lc=yes
10482 fi
10483 allow_undefined_flag=$lt_save_allow_undefined_flag
10484 else
10485 cat conftest.err 1>&5
10486 fi
10487 $rm conftest*
f030cae8
VY
10488 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10489$as_echo "$archive_cmds_need_lc" >&6; }
b57f37fb
WP
10490 ;;
10491 esac
10492 fi
10493 ;;
10494esac
10495
f030cae8
VY
10496{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10497$as_echo_n "checking dynamic linker characteristics... " >&6; }
b57f37fb
WP
10498library_names_spec=
10499libname_spec='lib$name'
10500soname_spec=
10501shrext_cmds=".so"
10502postinstall_cmds=
10503postuninstall_cmds=
10504finish_cmds=
10505finish_eval=
10506shlibpath_var=
10507shlibpath_overrides_runpath=unknown
10508version_type=none
10509dynamic_linker="$host_os ld.so"
10510sys_lib_dlsearch_path_spec="/lib /usr/lib"
10511
10512if test "$GCC" = yes; then
10513 case $host_os in
10514 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10515 *) lt_awk_arg="/^libraries:/" ;;
10516 esac
10517 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10518 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10519 # if the path contains ";" then we assume it to be the separator
10520 # otherwise default to the standard path separator (i.e. ":") - it is
10521 # assumed that no part of a normal pathname contains ";" but that should
10522 # okay in the real world where ";" in dirpaths is itself problematic.
10523 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10524 else
10525 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10526 fi
10527 # Ok, now we have the path, separated by spaces, we can step through it
10528 # and add multilib dir if necessary.
10529 lt_tmp_lt_search_path_spec=
10530 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10531 for lt_sys_path in $lt_search_path_spec; do
10532 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10533 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10534 else
10535 test -d "$lt_sys_path" && \
10536 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10537 fi
10538 done
10539 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10540BEGIN {RS=" "; FS="/|\n";} {
10541 lt_foo="";
10542 lt_count=0;
10543 for (lt_i = NF; lt_i > 0; lt_i--) {
10544 if ($lt_i != "" && $lt_i != ".") {
10545 if ($lt_i == "..") {
10546 lt_count++;
10547 } else {
10548 if (lt_count == 0) {
10549 lt_foo="/" $lt_i lt_foo;
10550 } else {
10551 lt_count--;
10552 }
10553 }
10554 }
10555 }
10556 if (lt_foo != "") { lt_freq[lt_foo]++; }
10557 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10558}'`
10559 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10560else
10561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10562fi
10563need_lib_prefix=unknown
10564hardcode_into_libs=no
10565
10566# when you set need_version to no, make sure it does not cause -set_version
10567# flags to be left without arguments
10568need_version=unknown
10569
10570case $host_os in
10571aix3*)
10572 version_type=linux
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10574 shlibpath_var=LIBPATH
10575
10576 # AIX 3 has no versioning support, so we append a major version to the name.
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 ;;
10579
56efe974 10580aix[4-9]*)
b57f37fb
WP
10581 version_type=linux
10582 need_lib_prefix=no
10583 need_version=no
10584 hardcode_into_libs=yes
10585 if test "$host_cpu" = ia64; then
10586 # AIX 5 supports IA64
10587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 else
10590 # With GCC up to 2.95.x, collect2 would create an import file
10591 # for dependence libraries. The import file would start with
10592 # the line `#! .'. This would cause the generated library to
10593 # depend on `.', always an invalid library. This was fixed in
10594 # development snapshots of GCC prior to 3.0.
10595 case $host_os in
10596 aix4 | aix4.[01] | aix4.[01].*)
10597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10598 echo ' yes '
10599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10600 :
10601 else
10602 can_build_shared=no
10603 fi
10604 ;;
10605 esac
10606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10607 # soname into executable. Probably we can add versioning support to
10608 # collect2, so additional links can be useful in future.
10609 if test "$aix_use_runtimelinking" = yes; then
10610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10611 # instead of lib<name>.a to let people know that these are not
10612 # typical AIX shared libraries.
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 else
10615 # We preserve .a as extension for shared libraries through AIX4.2
10616 # and later when we are not doing run time linking.
10617 library_names_spec='${libname}${release}.a $libname.a'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 fi
10620 shlibpath_var=LIBPATH
10621 fi
10622 ;;
10623
10624amigaos*)
10625 library_names_spec='$libname.ixlibrary $libname.a'
10626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10627 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10628 ;;
10629
10630beos*)
10631 library_names_spec='${libname}${shared_ext}'
10632 dynamic_linker="$host_os ld.so"
10633 shlibpath_var=LIBRARY_PATH
10634 ;;
10635
10636bsdi[45]*)
10637 version_type=linux
10638 need_version=no
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10645 # the default ld.so.conf also contains /usr/contrib/lib and
10646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10647 # libtool to hard-code these into programs
10648 ;;
10649
10650cygwin* | mingw* | pw32*)
10651 version_type=windows
10652 shrext_cmds=".dll"
10653 need_version=no
10654 need_lib_prefix=no
10655
10656 case $GCC,$host_os in
10657 yes,cygwin* | yes,mingw* | yes,pw32*)
10658 library_names_spec='$libname.dll.a'
10659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10660 postinstall_cmds='base_file=`basename \${file}`~
10661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10662 dldir=$destdir/`dirname \$dlpath`~
10663 test -d \$dldir || mkdir -p \$dldir~
10664 $install_prog $dir/$dlname \$dldir/$dlname~
10665 chmod a+x \$dldir/$dlname'
10666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10667 dlpath=$dir/\$dldll~
10668 $rm \$dlpath'
10669 shlibpath_overrides_runpath=yes
10670
10671 case $host_os in
10672 cygwin*)
10673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10676 ;;
10677 mingw*)
10678 # MinGW DLLs use traditional 'lib' prefix
10679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10682 # It is most probably a Windows format PATH printed by
10683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10684 # path with ; separators, and with drive letters. We can handle the
10685 # drive letters (cygwin fileutils understands them), so leave them,
10686 # especially as we might pass files found there to a mingw objdump,
10687 # which wouldn't understand a cygwinified path. Ahh.
10688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10689 else
10690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10691 fi
10692 ;;
10693 pw32*)
10694 # pw32 DLLs use 'pw' prefix rather than 'lib'
10695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696 ;;
10697 esac
10698 ;;
10699
10700 *)
10701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10702 ;;
10703 esac
10704 dynamic_linker='Win32 ld.exe'
10705 # FIXME: first we should search . and the directory the executable is in
10706 shlibpath_var=PATH
10707 ;;
10708
10709darwin* | rhapsody*)
10710 dynamic_linker="$host_os dyld"
10711 version_type=darwin
10712 need_lib_prefix=no
10713 need_version=no
10714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10715 soname_spec='${libname}${release}${major}$shared_ext'
10716 shlibpath_overrides_runpath=yes
10717 shlibpath_var=DYLD_LIBRARY_PATH
10718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10719
10720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10721 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10722 ;;
10723
10724dgux*)
10725 version_type=linux
10726 need_lib_prefix=no
10727 need_version=no
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 ;;
10732
10733freebsd1*)
10734 dynamic_linker=no
10735 ;;
10736
10737freebsd* | dragonfly*)
10738 # DragonFly does not have aout. When/if they implement a new
10739 # versioning mechanism, adjust this.
10740 if test -x /usr/bin/objformat; then
10741 objformat=`/usr/bin/objformat`
10742 else
10743 case $host_os in
10744 freebsd[123]*) objformat=aout ;;
10745 *) objformat=elf ;;
10746 esac
10747 fi
10748 version_type=freebsd-$objformat
10749 case $version_type in
10750 freebsd-elf*)
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10752 need_version=no
10753 need_lib_prefix=no
10754 ;;
10755 freebsd-*)
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10757 need_version=yes
10758 ;;
10759 esac
10760 shlibpath_var=LD_LIBRARY_PATH
10761 case $host_os in
10762 freebsd2*)
10763 shlibpath_overrides_runpath=yes
10764 ;;
10765 freebsd3.[01]* | freebsdelf3.[01]*)
10766 shlibpath_overrides_runpath=yes
10767 hardcode_into_libs=yes
10768 ;;
10769 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10770 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10771 shlibpath_overrides_runpath=no
10772 hardcode_into_libs=yes
10773 ;;
10774 *) # from 4.6 on, and DragonFly
10775 shlibpath_overrides_runpath=yes
10776 hardcode_into_libs=yes
10777 ;;
10778 esac
10779 ;;
10780
10781gnu*)
10782 version_type=linux
10783 need_lib_prefix=no
10784 need_version=no
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 hardcode_into_libs=yes
10789 ;;
10790
10791hpux9* | hpux10* | hpux11*)
10792 # Give a soname corresponding to the major version so that dld.sl refuses to
10793 # link against other versions.
10794 version_type=sunos
10795 need_lib_prefix=no
10796 need_version=no
10797 case $host_cpu in
10798 ia64*)
10799 shrext_cmds='.so'
10800 hardcode_into_libs=yes
10801 dynamic_linker="$host_os dld.so"
10802 shlibpath_var=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 if test "X$HPUX_IA64_MODE" = X32; then
10807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10808 else
10809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10810 fi
10811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10812 ;;
10813 hppa*64*)
10814 shrext_cmds='.sl'
10815 hardcode_into_libs=yes
10816 dynamic_linker="$host_os dld.sl"
10817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10823 ;;
10824 *)
10825 shrext_cmds='.sl'
10826 dynamic_linker="$host_os dld.sl"
10827 shlibpath_var=SHLIB_PATH
10828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 ;;
10832 esac
10833 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10834 postinstall_cmds='chmod 555 $lib'
10835 ;;
10836
10837interix[3-9]*)
10838 version_type=linux
10839 need_lib_prefix=no
10840 need_version=no
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10844 shlibpath_var=LD_LIBRARY_PATH
10845 shlibpath_overrides_runpath=no
10846 hardcode_into_libs=yes
10847 ;;
10848
10849irix5* | irix6* | nonstopux*)
10850 case $host_os in
10851 nonstopux*) version_type=nonstopux ;;
10852 *)
10853 if test "$lt_cv_prog_gnu_ld" = yes; then
10854 version_type=linux
10855 else
10856 version_type=irix
10857 fi ;;
10858 esac
10859 need_lib_prefix=no
10860 need_version=no
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10863 case $host_os in
10864 irix5* | nonstopux*)
10865 libsuff= shlibsuff=
10866 ;;
10867 *)
10868 case $LD in # libtool.m4 will add one of these switches to LD
10869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10870 libsuff= shlibsuff= libmagic=32-bit;;
10871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10872 libsuff=32 shlibsuff=N32 libmagic=N32;;
10873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10875 *) libsuff= shlibsuff= libmagic=never-match;;
10876 esac
10877 ;;
10878 esac
10879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10880 shlibpath_overrides_runpath=no
10881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10883 hardcode_into_libs=yes
10884 ;;
10885
10886# No shared lib support for Linux oldld, aout, or coff.
10887linux*oldld* | linux*aout* | linux*coff*)
10888 dynamic_linker=no
10889 ;;
10890
10891# This must be Linux ELF.
10892linux* | k*bsd*-gnu)
10893 version_type=linux
10894 need_lib_prefix=no
10895 need_version=no
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 # This implies no fast_install, which is unacceptable.
10902 # Some rework will be needed to allow for fast_install
10903 # before this can be enabled.
10904 hardcode_into_libs=yes
10905
10906 # Append ld.so.conf contents to the search path
10907 if test -f /etc/ld.so.conf; then
10908 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10909 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10910 fi
10911
10912 # We used to test for /lib/ld.so.1 and disable shared libraries on
10913 # powerpc, because MkLinux only supported shared libraries with the
10914 # GNU dynamic linker. Since this was broken with cross compilers,
10915 # most powerpc-linux boxes support dynamic linking these days and
10916 # people can always --disable-shared, the test was removed, and we
10917 # assume the GNU/Linux dynamic linker is in use.
10918 dynamic_linker='GNU/Linux ld.so'
10919 ;;
10920
10921netbsdelf*-gnu)
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=no
10929 hardcode_into_libs=yes
10930 dynamic_linker='NetBSD ld.elf_so'
10931 ;;
10932
10933netbsd*)
10934 version_type=sunos
10935 need_lib_prefix=no
10936 need_version=no
10937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10940 dynamic_linker='NetBSD (a.out) ld.so'
10941 else
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 dynamic_linker='NetBSD ld.elf_so'
10945 fi
10946 shlibpath_var=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath=yes
10948 hardcode_into_libs=yes
10949 ;;
10950
10951newsos6)
10952 version_type=linux
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=yes
10956 ;;
10957
10958nto-qnx*)
10959 version_type=linux
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10966 ;;
10967
10968openbsd*)
10969 version_type=sunos
10970 sys_lib_dlsearch_path_spec="/usr/lib"
10971 need_lib_prefix=no
10972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10973 case $host_os in
10974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10975 *) need_version=no ;;
10976 esac
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10981 case $host_os in
10982 openbsd2.[89] | openbsd2.[89].*)
10983 shlibpath_overrides_runpath=no
10984 ;;
10985 *)
10986 shlibpath_overrides_runpath=yes
10987 ;;
10988 esac
10989 else
10990 shlibpath_overrides_runpath=yes
10991 fi
10992 ;;
10993
10994os2*)
10995 libname_spec='$name'
10996 shrext_cmds=".dll"
10997 need_lib_prefix=no
10998 library_names_spec='$libname${shared_ext} $libname.a'
10999 dynamic_linker='OS/2 ld.exe'
11000 shlibpath_var=LIBPATH
11001 ;;
11002
11003osf3* | osf4* | osf5*)
11004 version_type=osf
11005 need_lib_prefix=no
11006 need_version=no
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11012 ;;
11013
11014rdos*)
11015 dynamic_linker=no
11016 ;;
11017
11018solaris*)
11019 version_type=linux
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11027 # ldd complains unless libraries are executable
11028 postinstall_cmds='chmod +x $lib'
11029 ;;
11030
11031sunos4*)
11032 version_type=sunos
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037 if test "$with_gnu_ld" = yes; then
11038 need_lib_prefix=no
11039 fi
11040 need_version=yes
11041 ;;
11042
11043sysv4 | sysv4.3*)
11044 version_type=linux
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 case $host_vendor in
11049 sni)
11050 shlibpath_overrides_runpath=no
11051 need_lib_prefix=no
11052 export_dynamic_flag_spec='${wl}-Blargedynsym'
11053 runpath_var=LD_RUN_PATH
11054 ;;
11055 siemens)
11056 need_lib_prefix=no
11057 ;;
11058 motorola)
11059 need_lib_prefix=no
11060 need_version=no
11061 shlibpath_overrides_runpath=no
11062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11063 ;;
11064 esac
11065 ;;
11066
11067sysv4*MP*)
11068 if test -d /usr/nec ;then
11069 version_type=linux
11070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11071 soname_spec='$libname${shared_ext}.$major'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 fi
11074 ;;
11075
11076sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077 version_type=freebsd-elf
11078 need_lib_prefix=no
11079 need_version=no
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 hardcode_into_libs=yes
11084 if test "$with_gnu_ld" = yes; then
11085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11086 shlibpath_overrides_runpath=no
11087 else
11088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11089 shlibpath_overrides_runpath=yes
11090 case $host_os in
11091 sco3.2v5*)
11092 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11093 ;;
11094 esac
11095 fi
11096 sys_lib_dlsearch_path_spec='/usr/lib'
11097 ;;
11098
11099uts4*)
11100 version_type=linux
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 ;;
11105
11106*)
11107 dynamic_linker=no
11108 ;;
11109esac
f030cae8
VY
11110{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11111$as_echo "$dynamic_linker" >&6; }
b57f37fb
WP
11112test "$dynamic_linker" = no && can_build_shared=no
11113
56efe974 11114if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
f030cae8 11115 $as_echo_n "(cached) " >&6
56efe974
WP
11116else
11117 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11118fi
11119
11120sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11121if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
f030cae8 11122 $as_echo_n "(cached) " >&6
56efe974
WP
11123else
11124 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11125fi
11126
11127sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11128
b57f37fb
WP
11129variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11130if test "$GCC" = yes; then
11131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11132fi
11133
f030cae8
VY
11134{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11135$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
b57f37fb
WP
11136hardcode_action=
11137if test -n "$hardcode_libdir_flag_spec" || \
11138 test -n "$runpath_var" || \
11139 test "X$hardcode_automatic" = "Xyes" ; then
11140
11141 # We can hardcode non-existant directories.
11142 if test "$hardcode_direct" != no &&
11143 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11144 # have to relink, otherwise we might link with an installed library
11145 # when we should be linking with a yet-to-be-installed one
11146 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11147 test "$hardcode_minus_L" != no; then
11148 # Linking always hardcodes the temporary library directory.
11149 hardcode_action=relink
11150 else
11151 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11152 hardcode_action=immediate
11153 fi
11154else
11155 # We cannot hardcode anything, or else we can only hardcode existing
11156 # directories.
11157 hardcode_action=unsupported
11158fi
f030cae8
VY
11159{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11160$as_echo "$hardcode_action" >&6; }
b57f37fb
WP
11161
11162if test "$hardcode_action" = relink; then
11163 # Fast installation is not supported
11164 enable_fast_install=no
11165elif test "$shlibpath_overrides_runpath" = yes ||
11166 test "$enable_shared" = no; then
11167 # Fast installation is not necessary
11168 enable_fast_install=needless
11169fi
11170
11171striplib=
11172old_striplib=
f030cae8
VY
11173{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11174$as_echo_n "checking whether stripping libraries is possible... " >&6; }
b57f37fb
WP
11175if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11176 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11177 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
f030cae8
VY
11178 { $as_echo "$as_me:$LINENO: result: yes" >&5
11179$as_echo "yes" >&6; }
b57f37fb
WP
11180else
11181# FIXME - insert some real tests, host_os isn't really good enough
11182 case $host_os in
11183 darwin*)
11184 if test -n "$STRIP" ; then
11185 striplib="$STRIP -x"
11186 old_striplib="$STRIP -S"
f030cae8
VY
11187 { $as_echo "$as_me:$LINENO: result: yes" >&5
11188$as_echo "yes" >&6; }
b57f37fb 11189 else
f030cae8
VY
11190 { $as_echo "$as_me:$LINENO: result: no" >&5
11191$as_echo "no" >&6; }
b57f37fb
WP
11192fi
11193 ;;
11194 *)
f030cae8
VY
11195 { $as_echo "$as_me:$LINENO: result: no" >&5
11196$as_echo "no" >&6; }
b57f37fb
WP
11197 ;;
11198 esac
11199fi
11200
11201if test "x$enable_dlopen" != xyes; then
11202 enable_dlopen=unknown
11203 enable_dlopen_self=unknown
11204 enable_dlopen_self_static=unknown
11205else
11206 lt_cv_dlopen=no
11207 lt_cv_dlopen_libs=
11208
11209 case $host_os in
11210 beos*)
11211 lt_cv_dlopen="load_add_on"
11212 lt_cv_dlopen_libs=
11213 lt_cv_dlopen_self=yes
11214 ;;
11215
11216 mingw* | pw32*)
11217 lt_cv_dlopen="LoadLibrary"
11218 lt_cv_dlopen_libs=
11219 ;;
11220
11221 cygwin*)
11222 lt_cv_dlopen="dlopen"
11223 lt_cv_dlopen_libs=
11224 ;;
11225
11226 darwin*)
11227 # if libdl is installed we need to link against it
f030cae8
VY
11228 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11229$as_echo_n "checking for dlopen in -ldl... " >&6; }
b57f37fb 11230if test "${ac_cv_lib_dl_dlopen+set}" = set; then
f030cae8 11231 $as_echo_n "(cached) " >&6
b57f37fb
WP
11232else
11233 ac_check_lib_save_LIBS=$LIBS
11234LIBS="-ldl $LIBS"
11235cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
11241
11242/* Override any GCC internal prototype to avoid an error.
11243 Use char because int might match the return type of a GCC
11244 builtin and then its argument prototype would still apply. */
11245#ifdef __cplusplus
11246extern "C"
11247#endif
11248char dlopen ();
11249int
11250main ()
11251{
11252return dlopen ();
11253 ;
11254 return 0;
11255}
11256_ACEOF
11257rm -f conftest.$ac_objext conftest$ac_exeext
11258if { (ac_try="$ac_link"
11259case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262esac
f030cae8
VY
11263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11264$as_echo "$ac_try_echo") >&5
b57f37fb
WP
11265 (eval "$ac_link") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
f030cae8 11270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
f030cae8
VY
11274 } && test -s conftest$ac_exeext && {
11275 test "$cross_compiling" = yes ||
11276 $as_test_x conftest$ac_exeext
11277 }; then
b57f37fb
WP
11278 ac_cv_lib_dl_dlopen=yes
11279else
f030cae8 11280 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
11281sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 ac_cv_lib_dl_dlopen=no
11284fi
11285
f030cae8 11286rm -rf conftest.dSYM
b57f37fb
WP
11287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11289LIBS=$ac_check_lib_save_LIBS
11290fi
f030cae8
VY
11291{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11292$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11293if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
b57f37fb
WP
11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11295else
11296
11297 lt_cv_dlopen="dyld"
11298 lt_cv_dlopen_libs=
11299 lt_cv_dlopen_self=yes
11300
11301fi
11302
11303 ;;
11304
11305 *)
f030cae8
VY
11306 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11307$as_echo_n "checking for shl_load... " >&6; }
b57f37fb 11308if test "${ac_cv_func_shl_load+set}" = set; then
f030cae8 11309 $as_echo_n "(cached) " >&6
b57f37fb
WP
11310else
11311 cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11319#define shl_load innocuous_shl_load
11320
11321/* System header to define __stub macros and hopefully few prototypes,
11322 which can conflict with char shl_load (); below.
11323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11324 <limits.h> exists even on freestanding compilers. */
11325
11326#ifdef __STDC__
11327# include <limits.h>
11328#else
11329# include <assert.h>
11330#endif
11331
11332#undef shl_load
11333
11334/* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11337#ifdef __cplusplus
11338extern "C"
11339#endif
11340char shl_load ();
11341/* The GNU C library defines this for functions which it implements
11342 to always fail with ENOSYS. Some functions are actually named
11343 something starting with __ and the normal name is an alias. */
11344#if defined __stub_shl_load || defined __stub___shl_load
11345choke me
11346#endif
11347
11348int
11349main ()
11350{
11351return shl_load ();
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext conftest$ac_exeext
11357if { (ac_try="$ac_link"
11358case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361esac
f030cae8
VY
11362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11363$as_echo "$ac_try_echo") >&5
b57f37fb
WP
11364 (eval "$ac_link") 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
f030cae8 11369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11370 (exit $ac_status); } && {
11371 test -z "$ac_c_werror_flag" ||
11372 test ! -s conftest.err
f030cae8
VY
11373 } && test -s conftest$ac_exeext && {
11374 test "$cross_compiling" = yes ||
11375 $as_test_x conftest$ac_exeext
11376 }; then
b57f37fb
WP
11377 ac_cv_func_shl_load=yes
11378else
f030cae8 11379 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 ac_cv_func_shl_load=no
11383fi
11384
f030cae8 11385rm -rf conftest.dSYM
b57f37fb
WP
11386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11387 conftest$ac_exeext conftest.$ac_ext
11388fi
f030cae8
VY
11389{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11390$as_echo "$ac_cv_func_shl_load" >&6; }
11391if test "x$ac_cv_func_shl_load" = x""yes; then
b57f37fb
WP
11392 lt_cv_dlopen="shl_load"
11393else
f030cae8
VY
11394 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11395$as_echo_n "checking for shl_load in -ldld... " >&6; }
b57f37fb 11396if test "${ac_cv_lib_dld_shl_load+set}" = set; then
f030cae8 11397 $as_echo_n "(cached) " >&6
b57f37fb
WP
11398else
11399 ac_check_lib_save_LIBS=$LIBS
11400LIBS="-ldld $LIBS"
11401cat >conftest.$ac_ext <<_ACEOF
11402/* confdefs.h. */
11403_ACEOF
11404cat confdefs.h >>conftest.$ac_ext
11405cat >>conftest.$ac_ext <<_ACEOF
11406/* end confdefs.h. */
11407
11408/* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411#ifdef __cplusplus
11412extern "C"
11413#endif
11414char shl_load ();
11415int
11416main ()
11417{
11418return shl_load ();
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext conftest$ac_exeext
11424if { (ac_try="$ac_link"
11425case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428esac
f030cae8
VY
11429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11430$as_echo "$ac_try_echo") >&5
b57f37fb
WP
11431 (eval "$ac_link") 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
f030cae8 11436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
f030cae8
VY
11440 } && test -s conftest$ac_exeext && {
11441 test "$cross_compiling" = yes ||
11442 $as_test_x conftest$ac_exeext
11443 }; then
b57f37fb
WP
11444 ac_cv_lib_dld_shl_load=yes
11445else
f030cae8 11446 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
11449 ac_cv_lib_dld_shl_load=no
11450fi
11451
f030cae8 11452rm -rf conftest.dSYM
b57f37fb
WP
11453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11454 conftest$ac_exeext conftest.$ac_ext
11455LIBS=$ac_check_lib_save_LIBS
11456fi
f030cae8
VY
11457{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11458$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11459if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
56efe974 11460 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
b57f37fb 11461else
f030cae8
VY
11462 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11463$as_echo_n "checking for dlopen... " >&6; }
b57f37fb 11464if test "${ac_cv_func_dlopen+set}" = set; then
f030cae8 11465 $as_echo_n "(cached) " >&6
b57f37fb
WP
11466else
11467 cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
11473/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11475#define dlopen innocuous_dlopen
11476
11477/* System header to define __stub macros and hopefully few prototypes,
11478 which can conflict with char dlopen (); below.
11479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11480 <limits.h> exists even on freestanding compilers. */
11481
11482#ifdef __STDC__
11483# include <limits.h>
11484#else
11485# include <assert.h>
11486#endif
11487
11488#undef dlopen
11489
11490/* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493#ifdef __cplusplus
11494extern "C"
11495#endif
11496char dlopen ();
11497/* The GNU C library defines this for functions which it implements
11498 to always fail with ENOSYS. Some functions are actually named
11499 something starting with __ and the normal name is an alias. */
11500#if defined __stub_dlopen || defined __stub___dlopen
11501choke me
11502#endif
11503
11504int
11505main ()
11506{
11507return dlopen ();
11508 ;
11509 return 0;
11510}
11511_ACEOF
11512rm -f conftest.$ac_objext conftest$ac_exeext
11513if { (ac_try="$ac_link"
11514case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11517esac
f030cae8
VY
11518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11519$as_echo "$ac_try_echo") >&5
b57f37fb
WP
11520 (eval "$ac_link") 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
f030cae8 11525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
f030cae8
VY
11529 } && test -s conftest$ac_exeext && {
11530 test "$cross_compiling" = yes ||
11531 $as_test_x conftest$ac_exeext
11532 }; then
b57f37fb
WP
11533 ac_cv_func_dlopen=yes
11534else
f030cae8 11535 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 ac_cv_func_dlopen=no
11539fi
11540
f030cae8 11541rm -rf conftest.dSYM
b57f37fb
WP
11542rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11543 conftest$ac_exeext conftest.$ac_ext
11544fi
f030cae8
VY
11545{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11546$as_echo "$ac_cv_func_dlopen" >&6; }
11547if test "x$ac_cv_func_dlopen" = x""yes; then
b57f37fb
WP
11548 lt_cv_dlopen="dlopen"
11549else
f030cae8
VY
11550 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11551$as_echo_n "checking for dlopen in -ldl... " >&6; }
b57f37fb 11552if test "${ac_cv_lib_dl_dlopen+set}" = set; then
f030cae8 11553 $as_echo_n "(cached) " >&6
b57f37fb
WP
11554else
11555 ac_check_lib_save_LIBS=$LIBS
11556LIBS="-ldl $LIBS"
11557cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h. */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h. */
11563
11564/* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567#ifdef __cplusplus
11568extern "C"
11569#endif
11570char dlopen ();
11571int
11572main ()
11573{
11574return dlopen ();
11575 ;
11576 return 0;
11577}
11578_ACEOF
11579rm -f conftest.$ac_objext conftest$ac_exeext
11580if { (ac_try="$ac_link"
11581case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11584esac
f030cae8
VY
11585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586$as_echo "$ac_try_echo") >&5
b57f37fb
WP
11587 (eval "$ac_link") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
f030cae8 11592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
f030cae8
VY
11596 } && test -s conftest$ac_exeext && {
11597 test "$cross_compiling" = yes ||
11598 $as_test_x conftest$ac_exeext
11599 }; then
b57f37fb
WP
11600 ac_cv_lib_dl_dlopen=yes
11601else
f030cae8 11602 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
11603sed 's/^/| /' conftest.$ac_ext >&5
11604
11605 ac_cv_lib_dl_dlopen=no
11606fi
11607
f030cae8 11608rm -rf conftest.dSYM
b57f37fb
WP
11609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11610 conftest$ac_exeext conftest.$ac_ext
11611LIBS=$ac_check_lib_save_LIBS
11612fi
f030cae8
VY
11613{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11614$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11615if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
b57f37fb
WP
11616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11617else
f030cae8
VY
11618 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11619$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b57f37fb 11620if test "${ac_cv_lib_svld_dlopen+set}" = set; then
f030cae8 11621 $as_echo_n "(cached) " >&6
b57f37fb
WP
11622else
11623 ac_check_lib_save_LIBS=$LIBS
11624LIBS="-lsvld $LIBS"
11625cat >conftest.$ac_ext <<_ACEOF
11626/* confdefs.h. */
11627_ACEOF
11628cat confdefs.h >>conftest.$ac_ext
11629cat >>conftest.$ac_ext <<_ACEOF
11630/* end confdefs.h. */
11631
11632/* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635#ifdef __cplusplus
11636extern "C"
11637#endif
11638char dlopen ();
11639int
11640main ()
11641{
11642return dlopen ();
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext conftest$ac_exeext
11648if { (ac_try="$ac_link"
11649case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
f030cae8
VY
11653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11654$as_echo "$ac_try_echo") >&5
b57f37fb
WP
11655 (eval "$ac_link") 2>conftest.er1
11656 ac_status=$?
11657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
f030cae8 11660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11661 (exit $ac_status); } && {
11662 test -z "$ac_c_werror_flag" ||
11663 test ! -s conftest.err
f030cae8
VY
11664 } && test -s conftest$ac_exeext && {
11665 test "$cross_compiling" = yes ||
11666 $as_test_x conftest$ac_exeext
11667 }; then
b57f37fb
WP
11668 ac_cv_lib_svld_dlopen=yes
11669else
f030cae8 11670 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_cv_lib_svld_dlopen=no
11674fi
11675
f030cae8 11676rm -rf conftest.dSYM
b57f37fb
WP
11677rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11678 conftest$ac_exeext conftest.$ac_ext
11679LIBS=$ac_check_lib_save_LIBS
11680fi
f030cae8
VY
11681{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11682$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11683if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
b57f37fb
WP
11684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11685else
f030cae8
VY
11686 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11687$as_echo_n "checking for dld_link in -ldld... " >&6; }
b57f37fb 11688if test "${ac_cv_lib_dld_dld_link+set}" = set; then
f030cae8 11689 $as_echo_n "(cached) " >&6
b57f37fb
WP
11690else
11691 ac_check_lib_save_LIBS=$LIBS
11692LIBS="-ldld $LIBS"
11693cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
11699
11700/* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char dld_link ();
11707int
11708main ()
11709{
11710return dld_link ();
11711 ;
11712 return 0;
11713}
11714_ACEOF
11715rm -f conftest.$ac_objext conftest$ac_exeext
11716if { (ac_try="$ac_link"
11717case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720esac
f030cae8
VY
11721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11722$as_echo "$ac_try_echo") >&5
b57f37fb
WP
11723 (eval "$ac_link") 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
f030cae8 11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
f030cae8
VY
11732 } && test -s conftest$ac_exeext && {
11733 test "$cross_compiling" = yes ||
11734 $as_test_x conftest$ac_exeext
11735 }; then
b57f37fb
WP
11736 ac_cv_lib_dld_dld_link=yes
11737else
f030cae8 11738 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
11739sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 ac_cv_lib_dld_dld_link=no
11742fi
11743
f030cae8 11744rm -rf conftest.dSYM
b57f37fb
WP
11745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11746 conftest$ac_exeext conftest.$ac_ext
11747LIBS=$ac_check_lib_save_LIBS
11748fi
f030cae8
VY
11749{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11750$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11751if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
56efe974 11752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
b57f37fb
WP
11753fi
11754
11755
11756fi
11757
11758
11759fi
11760
11761
11762fi
11763
11764
11765fi
11766
11767
11768fi
11769
11770 ;;
11771 esac
11772
11773 if test "x$lt_cv_dlopen" != xno; then
11774 enable_dlopen=yes
11775 else
11776 enable_dlopen=no
11777 fi
11778
11779 case $lt_cv_dlopen in
11780 dlopen)
11781 save_CPPFLAGS="$CPPFLAGS"
11782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11783
11784 save_LDFLAGS="$LDFLAGS"
11785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11786
11787 save_LIBS="$LIBS"
11788 LIBS="$lt_cv_dlopen_libs $LIBS"
11789
f030cae8
VY
11790 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11791$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b57f37fb 11792if test "${lt_cv_dlopen_self+set}" = set; then
f030cae8 11793 $as_echo_n "(cached) " >&6
b57f37fb
WP
11794else
11795 if test "$cross_compiling" = yes; then :
11796 lt_cv_dlopen_self=cross
11797else
11798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11799 lt_status=$lt_dlunknown
11800 cat > conftest.$ac_ext <<EOF
f030cae8 11801#line 11801 "configure"
b57f37fb
WP
11802#include "confdefs.h"
11803
11804#if HAVE_DLFCN_H
11805#include <dlfcn.h>
11806#endif
11807
11808#include <stdio.h>
11809
11810#ifdef RTLD_GLOBAL
11811# define LT_DLGLOBAL RTLD_GLOBAL
11812#else
11813# ifdef DL_GLOBAL
11814# define LT_DLGLOBAL DL_GLOBAL
11815# else
11816# define LT_DLGLOBAL 0
11817# endif
11818#endif
11819
11820/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11821 find out it does not work in some platform. */
11822#ifndef LT_DLLAZY_OR_NOW
11823# ifdef RTLD_LAZY
11824# define LT_DLLAZY_OR_NOW RTLD_LAZY
11825# else
11826# ifdef DL_LAZY
11827# define LT_DLLAZY_OR_NOW DL_LAZY
11828# else
11829# ifdef RTLD_NOW
11830# define LT_DLLAZY_OR_NOW RTLD_NOW
11831# else
11832# ifdef DL_NOW
11833# define LT_DLLAZY_OR_NOW DL_NOW
11834# else
11835# define LT_DLLAZY_OR_NOW 0
11836# endif
11837# endif
11838# endif
11839# endif
11840#endif
11841
11842#ifdef __cplusplus
11843extern "C" void exit (int);
11844#endif
11845
11846void fnord() { int i=42;}
11847int main ()
11848{
11849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11850 int status = $lt_dlunknown;
11851
11852 if (self)
11853 {
11854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11856 /* dlclose (self); */
11857 }
11858 else
11859 puts (dlerror ());
11860
11861 exit (status);
11862}
11863EOF
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>&5
11866 ac_status=$?
f030cae8 11867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11868 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11869 (./conftest; exit; ) >&5 2>/dev/null
11870 lt_status=$?
11871 case x$lt_status in
11872 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11873 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11874 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11875 esac
11876 else :
11877 # compilation failed
11878 lt_cv_dlopen_self=no
11879 fi
11880fi
11881rm -fr conftest*
11882
11883
11884fi
f030cae8
VY
11885{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11886$as_echo "$lt_cv_dlopen_self" >&6; }
b57f37fb
WP
11887
11888 if test "x$lt_cv_dlopen_self" = xyes; then
11889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
f030cae8
VY
11890 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11891$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b57f37fb 11892if test "${lt_cv_dlopen_self_static+set}" = set; then
f030cae8 11893 $as_echo_n "(cached) " >&6
b57f37fb
WP
11894else
11895 if test "$cross_compiling" = yes; then :
11896 lt_cv_dlopen_self_static=cross
11897else
11898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11899 lt_status=$lt_dlunknown
11900 cat > conftest.$ac_ext <<EOF
f030cae8 11901#line 11901 "configure"
b57f37fb
WP
11902#include "confdefs.h"
11903
11904#if HAVE_DLFCN_H
11905#include <dlfcn.h>
11906#endif
11907
11908#include <stdio.h>
11909
11910#ifdef RTLD_GLOBAL
11911# define LT_DLGLOBAL RTLD_GLOBAL
11912#else
11913# ifdef DL_GLOBAL
11914# define LT_DLGLOBAL DL_GLOBAL
11915# else
11916# define LT_DLGLOBAL 0
11917# endif
11918#endif
11919
11920/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11921 find out it does not work in some platform. */
11922#ifndef LT_DLLAZY_OR_NOW
11923# ifdef RTLD_LAZY
11924# define LT_DLLAZY_OR_NOW RTLD_LAZY
11925# else
11926# ifdef DL_LAZY
11927# define LT_DLLAZY_OR_NOW DL_LAZY
11928# else
11929# ifdef RTLD_NOW
11930# define LT_DLLAZY_OR_NOW RTLD_NOW
11931# else
11932# ifdef DL_NOW
11933# define LT_DLLAZY_OR_NOW DL_NOW
11934# else
11935# define LT_DLLAZY_OR_NOW 0
11936# endif
11937# endif
11938# endif
11939# endif
11940#endif
11941
11942#ifdef __cplusplus
11943extern "C" void exit (int);
11944#endif
11945
11946void fnord() { int i=42;}
11947int main ()
11948{
11949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11950 int status = $lt_dlunknown;
11951
11952 if (self)
11953 {
11954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11955 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11956 /* dlclose (self); */
11957 }
11958 else
11959 puts (dlerror ());
11960
11961 exit (status);
11962}
11963EOF
11964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11965 (eval $ac_link) 2>&5
11966 ac_status=$?
f030cae8 11967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
11968 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11969 (./conftest; exit; ) >&5 2>/dev/null
11970 lt_status=$?
11971 case x$lt_status in
11972 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11973 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11974 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11975 esac
11976 else :
11977 # compilation failed
11978 lt_cv_dlopen_self_static=no
11979 fi
11980fi
11981rm -fr conftest*
11982
11983
11984fi
f030cae8
VY
11985{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11986$as_echo "$lt_cv_dlopen_self_static" >&6; }
b57f37fb
WP
11987 fi
11988
11989 CPPFLAGS="$save_CPPFLAGS"
11990 LDFLAGS="$save_LDFLAGS"
11991 LIBS="$save_LIBS"
11992 ;;
11993 esac
11994
11995 case $lt_cv_dlopen_self in
11996 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11997 *) enable_dlopen_self=unknown ;;
11998 esac
11999
12000 case $lt_cv_dlopen_self_static in
12001 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12002 *) enable_dlopen_self_static=unknown ;;
12003 esac
12004fi
12005
12006
12007# Report which library types will actually be built
f030cae8
VY
12008{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12009$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12010{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12011$as_echo "$can_build_shared" >&6; }
b57f37fb 12012
f030cae8
VY
12013{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12014$as_echo_n "checking whether to build shared libraries... " >&6; }
b57f37fb
WP
12015test "$can_build_shared" = "no" && enable_shared=no
12016
12017# On AIX, shared libraries and static libraries use the same namespace, and
12018# are all built from PIC.
12019case $host_os in
12020aix3*)
12021 test "$enable_shared" = yes && enable_static=no
12022 if test -n "$RANLIB"; then
12023 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12024 postinstall_cmds='$RANLIB $lib'
12025 fi
12026 ;;
12027
56efe974 12028aix[4-9]*)
b57f37fb
WP
12029 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12030 test "$enable_shared" = yes && enable_static=no
12031 fi
12032 ;;
12033esac
f030cae8
VY
12034{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12035$as_echo "$enable_shared" >&6; }
b57f37fb 12036
f030cae8
VY
12037{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12038$as_echo_n "checking whether to build static libraries... " >&6; }
b57f37fb
WP
12039# Make sure either enable_shared or enable_static is yes.
12040test "$enable_shared" = yes || enable_static=yes
f030cae8
VY
12041{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12042$as_echo "$enable_static" >&6; }
b57f37fb
WP
12043
12044# The else clause should only fire when bootstrapping the
12045# libtool distribution, otherwise you forgot to ship ltmain.sh
12046# with your package, and you will get complaints that there are
12047# no rules to generate ltmain.sh.
12048if test -f "$ltmain"; then
12049 # See if we are running on zsh, and set the options which allow our commands through
12050 # without removal of \ escapes.
12051 if test -n "${ZSH_VERSION+set}" ; then
12052 setopt NO_GLOB_SUBST
12053 fi
12054 # Now quote all the things that may contain metacharacters while being
12055 # careful not to overquote the AC_SUBSTed values. We take copies of the
12056 # variables and quote the copies for generation of the libtool script.
12057 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12058 SED SHELL STRIP \
12059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12061 deplibs_check_method reload_flag reload_cmds need_locks \
12062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12063 lt_cv_sys_global_symbol_to_c_name_address \
12064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12065 old_postinstall_cmds old_postuninstall_cmds \
12066 compiler \
12067 CC \
12068 LD \
12069 lt_prog_compiler_wl \
12070 lt_prog_compiler_pic \
12071 lt_prog_compiler_static \
12072 lt_prog_compiler_no_builtin_flag \
12073 export_dynamic_flag_spec \
12074 thread_safe_flag_spec \
12075 whole_archive_flag_spec \
12076 enable_shared_with_static_runtimes \
12077 old_archive_cmds \
12078 old_archive_from_new_cmds \
12079 predep_objects \
12080 postdep_objects \
12081 predeps \
12082 postdeps \
12083 compiler_lib_search_path \
56efe974 12084 compiler_lib_search_dirs \
b57f37fb
WP
12085 archive_cmds \
12086 archive_expsym_cmds \
12087 postinstall_cmds \
12088 postuninstall_cmds \
12089 old_archive_from_expsyms_cmds \
12090 allow_undefined_flag \
12091 no_undefined_flag \
12092 export_symbols_cmds \
12093 hardcode_libdir_flag_spec \
12094 hardcode_libdir_flag_spec_ld \
12095 hardcode_libdir_separator \
12096 hardcode_automatic \
12097 module_cmds \
12098 module_expsym_cmds \
12099 lt_cv_prog_compiler_c_o \
12100 fix_srcfile_path \
12101 exclude_expsyms \
12102 include_expsyms; do
12103
12104 case $var in
12105 old_archive_cmds | \
12106 old_archive_from_new_cmds | \
12107 archive_cmds | \
12108 archive_expsym_cmds | \
12109 module_cmds | \
12110 module_expsym_cmds | \
12111 old_archive_from_expsyms_cmds | \
12112 export_symbols_cmds | \
12113 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12114 postinstall_cmds | postuninstall_cmds | \
12115 old_postinstall_cmds | old_postuninstall_cmds | \
12116 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12117 # Double-quote double-evaled strings.
12118 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12119 ;;
12120 *)
12121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12122 ;;
12123 esac
12124 done
12125
12126 case $lt_echo in
12127 *'\$0 --fallback-echo"')
12128 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12129 ;;
12130 esac
12131
12132cfgfile="${ofile}T"
12133 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12134 $rm -f "$cfgfile"
f030cae8
VY
12135 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
12136$as_echo "$as_me: creating $ofile" >&6;}
b57f37fb
WP
12137
12138 cat <<__EOF__ >> "$cfgfile"
12139#! $SHELL
12140
12141# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12142# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12143# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12144#
56efe974 12145# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
b57f37fb
WP
12146# Free Software Foundation, Inc.
12147#
12148# This file is part of GNU Libtool:
12149# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12150#
12151# This program is free software; you can redistribute it and/or modify
12152# it under the terms of the GNU General Public License as published by
12153# the Free Software Foundation; either version 2 of the License, or
12154# (at your option) any later version.
12155#
12156# This program is distributed in the hope that it will be useful, but
12157# WITHOUT ANY WARRANTY; without even the implied warranty of
12158# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12159# General Public License for more details.
12160#
12161# You should have received a copy of the GNU General Public License
12162# along with this program; if not, write to the Free Software
12163# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12164#
12165# As a special exception to the GNU General Public License, if you
12166# distribute this file as part of a program that contains a
12167# configuration script generated by Autoconf, you may include it under
12168# the same distribution terms that you use for the rest of that program.
12169
12170# A sed program that does not truncate output.
12171SED=$lt_SED
12172
12173# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12174Xsed="$SED -e 1s/^X//"
12175
12176# The HP-UX ksh and POSIX shell print the target directory to stdout
12177# if CDPATH is set.
12178(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12179
12180# The names of the tagged configurations supported by this script.
12181available_tags=
12182
12183# ### BEGIN LIBTOOL CONFIG
12184
12185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12186
12187# Shell to use when invoking shell scripts.
12188SHELL=$lt_SHELL
12189
12190# Whether or not to build shared libraries.
12191build_libtool_libs=$enable_shared
12192
12193# Whether or not to build static libraries.
12194build_old_libs=$enable_static
12195
12196# Whether or not to add -lc for building shared libraries.
12197build_libtool_need_lc=$archive_cmds_need_lc
12198
12199# Whether or not to disallow shared libs when runtime libs are static
12200allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12201
12202# Whether or not to optimize for fast installation.
12203fast_install=$enable_fast_install
12204
12205# The host system.
12206host_alias=$host_alias
12207host=$host
12208host_os=$host_os
12209
12210# The build system.
12211build_alias=$build_alias
12212build=$build
12213build_os=$build_os
12214
12215# An echo program that does not interpret backslashes.
12216echo=$lt_echo
12217
12218# The archiver.
12219AR=$lt_AR
12220AR_FLAGS=$lt_AR_FLAGS
12221
12222# A C compiler.
12223LTCC=$lt_LTCC
12224
12225# LTCC compiler flags.
12226LTCFLAGS=$lt_LTCFLAGS
12227
12228# A language-specific compiler.
12229CC=$lt_compiler
12230
12231# Is the compiler the GNU C compiler?
12232with_gcc=$GCC
12233
12234# An ERE matcher.
12235EGREP=$lt_EGREP
12236
12237# The linker used to build libraries.
12238LD=$lt_LD
12239
12240# Whether we need hard or soft links.
12241LN_S=$lt_LN_S
12242
12243# A BSD-compatible nm program.
12244NM=$lt_NM
12245
12246# A symbol stripping program
12247STRIP=$lt_STRIP
12248
12249# Used to examine libraries when file_magic_cmd begins "file"
12250MAGIC_CMD=$MAGIC_CMD
12251
12252# Used on cygwin: DLL creation program.
12253DLLTOOL="$DLLTOOL"
12254
12255# Used on cygwin: object dumper.
12256OBJDUMP="$OBJDUMP"
12257
12258# Used on cygwin: assembler.
12259AS="$AS"
12260
12261# The name of the directory that contains temporary libtool files.
12262objdir=$objdir
12263
12264# How to create reloadable object files.
12265reload_flag=$lt_reload_flag
12266reload_cmds=$lt_reload_cmds
12267
12268# How to pass a linker flag through the compiler.
12269wl=$lt_lt_prog_compiler_wl
12270
12271# Object file suffix (normally "o").
12272objext="$ac_objext"
12273
12274# Old archive suffix (normally "a").
12275libext="$libext"
12276
12277# Shared library suffix (normally ".so").
12278shrext_cmds='$shrext_cmds'
12279
12280# Executable file suffix (normally "").
12281exeext="$exeext"
12282
12283# Additional compiler flags for building library objects.
12284pic_flag=$lt_lt_prog_compiler_pic
12285pic_mode=$pic_mode
12286
12287# What is the maximum length of a command?
12288max_cmd_len=$lt_cv_sys_max_cmd_len
12289
12290# Does compiler simultaneously support -c and -o options?
12291compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12292
12293# Must we lock files when doing compilation?
12294need_locks=$lt_need_locks
12295
12296# Do we need the lib prefix for modules?
12297need_lib_prefix=$need_lib_prefix
12298
12299# Do we need a version for libraries?
12300need_version=$need_version
12301
12302# Whether dlopen is supported.
12303dlopen_support=$enable_dlopen
12304
12305# Whether dlopen of programs is supported.
12306dlopen_self=$enable_dlopen_self
12307
12308# Whether dlopen of statically linked programs is supported.
12309dlopen_self_static=$enable_dlopen_self_static
12310
12311# Compiler flag to prevent dynamic linking.
12312link_static_flag=$lt_lt_prog_compiler_static
12313
12314# Compiler flag to turn off builtin functions.
12315no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12316
12317# Compiler flag to allow reflexive dlopens.
12318export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12319
12320# Compiler flag to generate shared objects directly from archives.
12321whole_archive_flag_spec=$lt_whole_archive_flag_spec
12322
12323# Compiler flag to generate thread-safe objects.
12324thread_safe_flag_spec=$lt_thread_safe_flag_spec
12325
12326# Library versioning type.
12327version_type=$version_type
12328
12329# Format of library name prefix.
12330libname_spec=$lt_libname_spec
12331
12332# List of archive names. First name is the real one, the rest are links.
12333# The last name is the one that the linker finds with -lNAME.
12334library_names_spec=$lt_library_names_spec
12335
12336# The coded name of the library, if different from the real name.
12337soname_spec=$lt_soname_spec
12338
12339# Commands used to build and install an old-style archive.
12340RANLIB=$lt_RANLIB
12341old_archive_cmds=$lt_old_archive_cmds
12342old_postinstall_cmds=$lt_old_postinstall_cmds
12343old_postuninstall_cmds=$lt_old_postuninstall_cmds
12344
12345# Create an old-style archive from a shared archive.
12346old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12347
12348# Create a temporary old-style archive to link instead of a shared archive.
12349old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12350
12351# Commands used to build and install a shared archive.
12352archive_cmds=$lt_archive_cmds
12353archive_expsym_cmds=$lt_archive_expsym_cmds
12354postinstall_cmds=$lt_postinstall_cmds
12355postuninstall_cmds=$lt_postuninstall_cmds
12356
12357# Commands used to build a loadable module (assumed same as above if empty)
12358module_cmds=$lt_module_cmds
12359module_expsym_cmds=$lt_module_expsym_cmds
12360
12361# Commands to strip libraries.
12362old_striplib=$lt_old_striplib
12363striplib=$lt_striplib
12364
12365# Dependencies to place before the objects being linked to create a
12366# shared library.
12367predep_objects=$lt_predep_objects
12368
12369# Dependencies to place after the objects being linked to create a
12370# shared library.
12371postdep_objects=$lt_postdep_objects
12372
12373# Dependencies to place before the objects being linked to create a
12374# shared library.
12375predeps=$lt_predeps
12376
12377# Dependencies to place after the objects being linked to create a
12378# shared library.
12379postdeps=$lt_postdeps
12380
56efe974
WP
12381# The directories searched by this compiler when creating a shared
12382# library
12383compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12384
b57f37fb
WP
12385# The library search path used internally by the compiler when linking
12386# a shared library.
12387compiler_lib_search_path=$lt_compiler_lib_search_path
12388
12389# Method to check whether dependent libraries are shared objects.
12390deplibs_check_method=$lt_deplibs_check_method
12391
12392# Command to use when deplibs_check_method == file_magic.
12393file_magic_cmd=$lt_file_magic_cmd
12394
12395# Flag that allows shared libraries with undefined symbols to be built.
12396allow_undefined_flag=$lt_allow_undefined_flag
12397
12398# Flag that forces no undefined symbols.
12399no_undefined_flag=$lt_no_undefined_flag
12400
12401# Commands used to finish a libtool library installation in a directory.
12402finish_cmds=$lt_finish_cmds
12403
12404# Same as above, but a single script fragment to be evaled but not shown.
12405finish_eval=$lt_finish_eval
12406
12407# Take the output of nm and produce a listing of raw symbols and C names.
12408global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12409
12410# Transform the output of nm in a proper C declaration
12411global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12412
12413# Transform the output of nm in a C name address pair
12414global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12415
12416# This is the shared library runtime path variable.
12417runpath_var=$runpath_var
12418
12419# This is the shared library path variable.
12420shlibpath_var=$shlibpath_var
12421
12422# Is shlibpath searched before the hard-coded library search path?
12423shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12424
12425# How to hardcode a shared library path into an executable.
12426hardcode_action=$hardcode_action
12427
12428# Whether we should hardcode library paths into libraries.
12429hardcode_into_libs=$hardcode_into_libs
12430
12431# Flag to hardcode \$libdir into a binary during linking.
12432# This must work even if \$libdir does not exist.
12433hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12434
12435# If ld is used when linking, flag to hardcode \$libdir into
12436# a binary during linking. This must work even if \$libdir does
12437# not exist.
12438hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12439
12440# Whether we need a single -rpath flag with a separated argument.
12441hardcode_libdir_separator=$lt_hardcode_libdir_separator
12442
12443# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12444# resulting binary.
12445hardcode_direct=$hardcode_direct
12446
12447# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12448# resulting binary.
12449hardcode_minus_L=$hardcode_minus_L
12450
12451# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12452# the resulting binary.
12453hardcode_shlibpath_var=$hardcode_shlibpath_var
12454
12455# Set to yes if building a shared library automatically hardcodes DIR into the library
12456# and all subsequent libraries and executables linked against it.
12457hardcode_automatic=$hardcode_automatic
12458
12459# Variables whose values should be saved in libtool wrapper scripts and
12460# restored at relink time.
12461variables_saved_for_relink="$variables_saved_for_relink"
12462
12463# Whether libtool must link a program against all its dependency libraries.
12464link_all_deplibs=$link_all_deplibs
12465
12466# Compile-time system search path for libraries
12467sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12468
12469# Run-time system search path for libraries
12470sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12471
12472# Fix the shell variable \$srcfile for the compiler.
12473fix_srcfile_path=$lt_fix_srcfile_path
12474
12475# Set to yes if exported symbols are required.
12476always_export_symbols=$always_export_symbols
12477
12478# The commands to list exported symbols.
12479export_symbols_cmds=$lt_export_symbols_cmds
12480
12481# The commands to extract the exported symbol list from a shared archive.
12482extract_expsyms_cmds=$lt_extract_expsyms_cmds
12483
12484# Symbols that should not be listed in the preloaded symbols.
12485exclude_expsyms=$lt_exclude_expsyms
12486
12487# Symbols that must always be exported.
12488include_expsyms=$lt_include_expsyms
12489
12490# ### END LIBTOOL CONFIG
12491
12492__EOF__
12493
12494
12495 case $host_os in
12496 aix3*)
12497 cat <<\EOF >> "$cfgfile"
12498
12499# AIX sometimes has problems with the GCC collect2 program. For some
12500# reason, if we set the COLLECT_NAMES environment variable, the problems
12501# vanish in a puff of smoke.
12502if test "X${COLLECT_NAMES+set}" != Xset; then
12503 COLLECT_NAMES=
12504 export COLLECT_NAMES
12505fi
12506EOF
12507 ;;
12508 esac
12509
12510 # We use sed instead of cat because bash on DJGPP gets confused if
12511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12512 # text mode, it properly converts lines to CR/LF. This bash problem
12513 # is reportedly fixed, but why not run on old versions too?
12514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12515
12516 mv -f "$cfgfile" "$ofile" || \
12517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12518 chmod +x "$ofile"
12519
12520else
12521 # If there is no Makefile yet, we rely on a make rule to execute
12522 # `config.status --recheck' to rerun these tests and create the
12523 # libtool script then.
12524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12525 if test -f "$ltmain_in"; then
12526 test -f Makefile && make "$ltmain"
12527 fi
12528fi
12529
12530
12531ac_ext=c
12532ac_cpp='$CPP $CPPFLAGS'
12533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12535ac_compiler_gnu=$ac_cv_c_compiler_gnu
12536
12537CC="$lt_save_CC"
12538
12539
12540# Check whether --with-tags was given.
12541if test "${with_tags+set}" = set; then
12542 withval=$with_tags; tagnames="$withval"
12543fi
12544
12545
12546if test -f "$ltmain" && test -n "$tagnames"; then
12547 if test ! -f "${ofile}"; then
f030cae8
VY
12548 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12549$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
b57f37fb
WP
12550 fi
12551
12552 if test -z "$LTCC"; then
12553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12554 if test -z "$LTCC"; then
f030cae8
VY
12555 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12556$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
b57f37fb 12557 else
f030cae8
VY
12558 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12559$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
b57f37fb
WP
12560 fi
12561 fi
12562 if test -z "$LTCFLAGS"; then
12563 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12564 fi
12565
12566 # Extract list of available tagged configurations in $ofile.
12567 # Note that this assumes the entire list is on one line.
12568 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12569
12570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12571 for tagname in $tagnames; do
12572 IFS="$lt_save_ifs"
12573 # Check whether tagname contains only valid characters
12574 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12575 "") ;;
f030cae8
VY
12576 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12577$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
b57f37fb
WP
12578 { (exit 1); exit 1; }; }
12579 ;;
12580 esac
12581
12582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12583 then
f030cae8
VY
12584 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12585$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
b57f37fb
WP
12586 { (exit 1); exit 1; }; }
12587 fi
12588
12589 # Update the list of available tags.
12590 if test -n "$tagname"; then
12591 echo appending configuration tag \"$tagname\" to $ofile
12592
12593 case $tagname in
12594 CXX)
12595 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12596 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12597 (test "X$CXX" != "Xg++"))) ; then
12598 ac_ext=cpp
12599ac_cpp='$CXXCPP $CPPFLAGS'
12600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12603
12604
12605
12606
12607archive_cmds_need_lc_CXX=no
12608allow_undefined_flag_CXX=
12609always_export_symbols_CXX=no
12610archive_expsym_cmds_CXX=
12611export_dynamic_flag_spec_CXX=
12612hardcode_direct_CXX=no
12613hardcode_libdir_flag_spec_CXX=
12614hardcode_libdir_flag_spec_ld_CXX=
12615hardcode_libdir_separator_CXX=
12616hardcode_minus_L_CXX=no
12617hardcode_shlibpath_var_CXX=unsupported
12618hardcode_automatic_CXX=no
12619module_cmds_CXX=
12620module_expsym_cmds_CXX=
12621link_all_deplibs_CXX=unknown
12622old_archive_cmds_CXX=$old_archive_cmds
12623no_undefined_flag_CXX=
12624whole_archive_flag_spec_CXX=
12625enable_shared_with_static_runtimes_CXX=no
12626
12627# Dependencies to place before and after the object being linked:
12628predep_objects_CXX=
12629postdep_objects_CXX=
12630predeps_CXX=
12631postdeps_CXX=
12632compiler_lib_search_path_CXX=
56efe974 12633compiler_lib_search_dirs_CXX=
b57f37fb
WP
12634
12635# Source file extension for C++ test sources.
12636ac_ext=cpp
12637
12638# Object file extension for compiled C++ test sources.
12639objext=o
12640objext_CXX=$objext
12641
12642# Code to be used in simple compile tests
12643lt_simple_compile_test_code="int some_variable = 0;"
12644
12645# Code to be used in simple link tests
12646lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12647
12648# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12649
12650# If no C compiler was specified, use CC.
12651LTCC=${LTCC-"$CC"}
12652
12653# If no C compiler flags were specified, use CFLAGS.
12654LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12655
12656# Allow CC to be a program name with arguments.
12657compiler=$CC
12658
12659
12660# save warnings/boilerplate of simple test code
12661ac_outfile=conftest.$ac_objext
12662echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12663eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12664_lt_compiler_boilerplate=`cat conftest.err`
12665$rm conftest*
12666
12667ac_outfile=conftest.$ac_objext
12668echo "$lt_simple_link_test_code" >conftest.$ac_ext
12669eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12670_lt_linker_boilerplate=`cat conftest.err`
56efe974 12671$rm -r conftest*
b57f37fb
WP
12672
12673
12674# Allow CC to be a program name with arguments.
12675lt_save_CC=$CC
12676lt_save_LD=$LD
12677lt_save_GCC=$GCC
12678GCC=$GXX
12679lt_save_with_gnu_ld=$with_gnu_ld
12680lt_save_path_LD=$lt_cv_path_LD
12681if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12682 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12683else
12684 $as_unset lt_cv_prog_gnu_ld
12685fi
12686if test -n "${lt_cv_path_LDCXX+set}"; then
12687 lt_cv_path_LD=$lt_cv_path_LDCXX
12688else
12689 $as_unset lt_cv_path_LD
12690fi
12691test -z "${LDCXX+set}" || LD=$LDCXX
12692CC=${CXX-"c++"}
12693compiler=$CC
12694compiler_CXX=$CC
12695for cc_temp in $compiler""; do
12696 case $cc_temp in
12697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12699 \-*) ;;
12700 *) break;;
12701 esac
12702done
12703cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12704
12705
12706# We don't want -fno-exception wen compiling C++ code, so set the
12707# no_builtin_flag separately
12708if test "$GXX" = yes; then
12709 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12710else
12711 lt_prog_compiler_no_builtin_flag_CXX=
12712fi
12713
12714if test "$GXX" = yes; then
12715 # Set up default GNU C++ configuration
12716
12717
12718# Check whether --with-gnu-ld was given.
12719if test "${with_gnu_ld+set}" = set; then
12720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12721else
12722 with_gnu_ld=no
12723fi
12724
12725ac_prog=ld
12726if test "$GCC" = yes; then
12727 # Check if gcc -print-prog-name=ld gives a path.
f030cae8
VY
12728 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12729$as_echo_n "checking for ld used by $CC... " >&6; }
b57f37fb
WP
12730 case $host in
12731 *-*-mingw*)
12732 # gcc leaves a trailing carriage return which upsets mingw
12733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12734 *)
12735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12736 esac
12737 case $ac_prog in
12738 # Accept absolute paths.
12739 [\\/]* | ?:[\\/]*)
12740 re_direlt='/[^/][^/]*/\.\./'
12741 # Canonicalize the pathname of ld
12742 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12743 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12744 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12745 done
12746 test -z "$LD" && LD="$ac_prog"
12747 ;;
12748 "")
12749 # If it fails, then pretend we aren't using GCC.
12750 ac_prog=ld
12751 ;;
12752 *)
12753 # If it is relative, then search for the first ld in PATH.
12754 with_gnu_ld=unknown
12755 ;;
12756 esac
12757elif test "$with_gnu_ld" = yes; then
f030cae8
VY
12758 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12759$as_echo_n "checking for GNU ld... " >&6; }
b57f37fb 12760else
f030cae8
VY
12761 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12762$as_echo_n "checking for non-GNU ld... " >&6; }
b57f37fb
WP
12763fi
12764if test "${lt_cv_path_LD+set}" = set; then
f030cae8 12765 $as_echo_n "(cached) " >&6
b57f37fb
WP
12766else
12767 if test -z "$LD"; then
12768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12769 for ac_dir in $PATH; do
12770 IFS="$lt_save_ifs"
12771 test -z "$ac_dir" && ac_dir=.
12772 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12773 lt_cv_path_LD="$ac_dir/$ac_prog"
12774 # Check to see if the program is GNU ld. I'd rather use --version,
12775 # but apparently some variants of GNU ld only accept -v.
12776 # Break only if it was the GNU/non-GNU ld that we prefer.
12777 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12778 *GNU* | *'with BFD'*)
12779 test "$with_gnu_ld" != no && break
12780 ;;
12781 *)
12782 test "$with_gnu_ld" != yes && break
12783 ;;
12784 esac
12785 fi
12786 done
12787 IFS="$lt_save_ifs"
12788else
12789 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12790fi
12791fi
12792
12793LD="$lt_cv_path_LD"
12794if test -n "$LD"; then
f030cae8
VY
12795 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12796$as_echo "$LD" >&6; }
b57f37fb 12797else
f030cae8
VY
12798 { $as_echo "$as_me:$LINENO: result: no" >&5
12799$as_echo "no" >&6; }
b57f37fb 12800fi
f030cae8
VY
12801test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12802$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
b57f37fb 12803 { (exit 1); exit 1; }; }
f030cae8
VY
12804{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12805$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b57f37fb 12806if test "${lt_cv_prog_gnu_ld+set}" = set; then
f030cae8 12807 $as_echo_n "(cached) " >&6
b57f37fb
WP
12808else
12809 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12810case `$LD -v 2>&1 </dev/null` in
12811*GNU* | *'with BFD'*)
12812 lt_cv_prog_gnu_ld=yes
12813 ;;
12814*)
12815 lt_cv_prog_gnu_ld=no
12816 ;;
12817esac
12818fi
f030cae8
VY
12819{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12820$as_echo "$lt_cv_prog_gnu_ld" >&6; }
b57f37fb
WP
12821with_gnu_ld=$lt_cv_prog_gnu_ld
12822
12823
12824
12825 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12826 # archiving commands below assume that GNU ld is being used.
12827 if test "$with_gnu_ld" = yes; then
12828 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12830
12831 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12833
12834 # If archive_cmds runs LD, not CC, wlarc should be empty
12835 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12836 # investigate it a little bit more. (MM)
12837 wlarc='${wl}'
12838
12839 # ancient GNU ld didn't support --whole-archive et. al.
12840 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12841 grep 'no-whole-archive' > /dev/null; then
12842 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12843 else
12844 whole_archive_flag_spec_CXX=
12845 fi
12846 else
12847 with_gnu_ld=no
12848 wlarc=
12849
12850 # A generic and very simple default shared library creation
12851 # command for GNU C++ for the case where it uses the native
12852 # linker, instead of GNU ld. If possible, this setting should
12853 # overridden to take advantage of the native linker features on
12854 # the platform it is being used on.
12855 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12856 fi
12857
12858 # Commands to make compiler produce verbose output that lists
12859 # what "hidden" libraries, object files and flags are used when
12860 # linking a shared library.
12861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12862
12863else
12864 GXX=no
12865 with_gnu_ld=no
12866 wlarc=
12867fi
12868
12869# PORTME: fill in a description of your system's C++ link characteristics
f030cae8
VY
12870{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12871$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
b57f37fb
WP
12872ld_shlibs_CXX=yes
12873case $host_os in
12874 aix3*)
12875 # FIXME: insert proper C++ library support
12876 ld_shlibs_CXX=no
12877 ;;
56efe974 12878 aix[4-9]*)
b57f37fb
WP
12879 if test "$host_cpu" = ia64; then
12880 # On IA64, the linker does run time linking by default, so we don't
12881 # have to do anything special.
12882 aix_use_runtimelinking=no
12883 exp_sym_flag='-Bexport'
12884 no_entry_flag=""
12885 else
12886 aix_use_runtimelinking=no
12887
12888 # Test if we are trying to use run time linking or normal
12889 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12890 # need to do runtime linking.
56efe974 12891 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
12892 for ld_flag in $LDFLAGS; do
12893 case $ld_flag in
12894 *-brtl*)
12895 aix_use_runtimelinking=yes
12896 break
12897 ;;
12898 esac
12899 done
12900 ;;
12901 esac
12902
12903 exp_sym_flag='-bexport'
12904 no_entry_flag='-bnoentry'
12905 fi
12906
12907 # When large executables or shared objects are built, AIX ld can
12908 # have problems creating the table of contents. If linking a library
12909 # or program results in "error TOC overflow" add -mminimal-toc to
12910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12912
12913 archive_cmds_CXX=''
12914 hardcode_direct_CXX=yes
12915 hardcode_libdir_separator_CXX=':'
12916 link_all_deplibs_CXX=yes
12917
12918 if test "$GXX" = yes; then
12919 case $host_os in aix4.[012]|aix4.[012].*)
12920 # We only want to do this on AIX 4.2 and lower, the check
12921 # below for broken collect2 doesn't work under 4.3+
12922 collect2name=`${CC} -print-prog-name=collect2`
12923 if test -f "$collect2name" && \
12924 strings "$collect2name" | grep resolve_lib_name >/dev/null
12925 then
12926 # We have reworked collect2
12927 :
12928 else
12929 # We have old collect2
12930 hardcode_direct_CXX=unsupported
12931 # It fails to find uninstalled libraries when the uninstalled
12932 # path is not listed in the libpath. Setting hardcode_minus_L
12933 # to unsupported forces relinking
12934 hardcode_minus_L_CXX=yes
12935 hardcode_libdir_flag_spec_CXX='-L$libdir'
12936 hardcode_libdir_separator_CXX=
12937 fi
12938 ;;
12939 esac
12940 shared_flag='-shared'
12941 if test "$aix_use_runtimelinking" = yes; then
12942 shared_flag="$shared_flag "'${wl}-G'
12943 fi
12944 else
12945 # not using gcc
12946 if test "$host_cpu" = ia64; then
12947 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12948 # chokes on -Wl,-G. The following line is correct:
12949 shared_flag='-G'
12950 else
12951 if test "$aix_use_runtimelinking" = yes; then
12952 shared_flag='${wl}-G'
12953 else
12954 shared_flag='${wl}-bM:SRE'
12955 fi
12956 fi
12957 fi
12958
12959 # It seems that -bexpall does not export symbols beginning with
12960 # underscore (_), so it is better to generate a list of symbols to export.
12961 always_export_symbols_CXX=yes
12962 if test "$aix_use_runtimelinking" = yes; then
12963 # Warning - without using the other runtime loading flags (-brtl),
12964 # -berok will link without error, but may produce a broken library.
12965 allow_undefined_flag_CXX='-berok'
12966 # Determine the default libpath from the value encoded in an empty executable.
12967 cat >conftest.$ac_ext <<_ACEOF
12968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
12973
12974int
12975main ()
12976{
12977
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982rm -f conftest.$ac_objext conftest$ac_exeext
12983if { (ac_try="$ac_link"
12984case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12987esac
f030cae8
VY
12988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12989$as_echo "$ac_try_echo") >&5
b57f37fb
WP
12990 (eval "$ac_link") 2>conftest.er1
12991 ac_status=$?
12992 grep -v '^ *+' conftest.er1 >conftest.err
12993 rm -f conftest.er1
12994 cat conftest.err >&5
f030cae8 12995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
12996 (exit $ac_status); } && {
12997 test -z "$ac_cxx_werror_flag" ||
12998 test ! -s conftest.err
f030cae8
VY
12999 } && test -s conftest$ac_exeext && {
13000 test "$cross_compiling" = yes ||
13001 $as_test_x conftest$ac_exeext
13002 }; then
b57f37fb
WP
13003
13004lt_aix_libpath_sed='
13005 /Import File Strings/,/^$/ {
13006 /^0/ {
13007 s/^0 *\(.*\)$/\1/
13008 p
13009 }
13010 }'
13011aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13012# Check for a 64-bit object if we didn't find anything.
13013if test -z "$aix_libpath"; then
13014 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13015fi
13016else
f030cae8 13017 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
13020
13021fi
13022
f030cae8 13023rm -rf conftest.dSYM
b57f37fb
WP
13024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13025 conftest$ac_exeext conftest.$ac_ext
13026if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13027
13028 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13029
13030 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13031 else
13032 if test "$host_cpu" = ia64; then
13033 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13034 allow_undefined_flag_CXX="-z nodefs"
13035 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13036 else
13037 # Determine the default libpath from the value encoded in an empty executable.
13038 cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
13044
13045int
13046main ()
13047{
13048
13049 ;
13050 return 0;
13051}
13052_ACEOF
13053rm -f conftest.$ac_objext conftest$ac_exeext
13054if { (ac_try="$ac_link"
13055case "(($ac_try" in
13056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057 *) ac_try_echo=$ac_try;;
13058esac
f030cae8
VY
13059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13060$as_echo "$ac_try_echo") >&5
b57f37fb
WP
13061 (eval "$ac_link") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
f030cae8 13066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
13067 (exit $ac_status); } && {
13068 test -z "$ac_cxx_werror_flag" ||
13069 test ! -s conftest.err
f030cae8
VY
13070 } && test -s conftest$ac_exeext && {
13071 test "$cross_compiling" = yes ||
13072 $as_test_x conftest$ac_exeext
13073 }; then
b57f37fb
WP
13074
13075lt_aix_libpath_sed='
13076 /Import File Strings/,/^$/ {
13077 /^0/ {
13078 s/^0 *\(.*\)$/\1/
13079 p
13080 }
13081 }'
13082aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13083# Check for a 64-bit object if we didn't find anything.
13084if test -z "$aix_libpath"; then
13085 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13086fi
13087else
f030cae8 13088 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
13089sed 's/^/| /' conftest.$ac_ext >&5
13090
13091
13092fi
13093
f030cae8 13094rm -rf conftest.dSYM
b57f37fb
WP
13095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13096 conftest$ac_exeext conftest.$ac_ext
13097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13098
13099 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13100 # Warning - without using the other run time loading flags,
13101 # -berok will link without error, but may produce a broken library.
13102 no_undefined_flag_CXX=' ${wl}-bernotok'
13103 allow_undefined_flag_CXX=' ${wl}-berok'
13104 # Exported symbols can be pulled into shared objects from archives
13105 whole_archive_flag_spec_CXX='$convenience'
13106 archive_cmds_need_lc_CXX=yes
13107 # This is similar to how AIX traditionally builds its shared libraries.
13108 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13109 fi
13110 fi
13111 ;;
13112
13113 beos*)
13114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13115 allow_undefined_flag_CXX=unsupported
13116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13117 # support --undefined. This deserves some investigation. FIXME
13118 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13119 else
13120 ld_shlibs_CXX=no
13121 fi
13122 ;;
13123
13124 chorus*)
13125 case $cc_basename in
13126 *)
13127 # FIXME: insert proper C++ library support
13128 ld_shlibs_CXX=no
13129 ;;
13130 esac
13131 ;;
13132
13133 cygwin* | mingw* | pw32*)
13134 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13135 # as there is no search path for DLLs.
13136 hardcode_libdir_flag_spec_CXX='-L$libdir'
13137 allow_undefined_flag_CXX=unsupported
13138 always_export_symbols_CXX=no
13139 enable_shared_with_static_runtimes_CXX=yes
13140
13141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13142 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13143 # If the export-symbols file already is a .def file (1st line
13144 # is EXPORTS), use it as is; otherwise, prepend...
13145 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13146 cp $export_symbols $output_objdir/$soname.def;
13147 else
13148 echo EXPORTS > $output_objdir/$soname.def;
13149 cat $export_symbols >> $output_objdir/$soname.def;
13150 fi~
13151 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13152 else
13153 ld_shlibs_CXX=no
13154 fi
13155 ;;
13156 darwin* | rhapsody*)
b57f37fb
WP
13157 archive_cmds_need_lc_CXX=no
13158 hardcode_direct_CXX=no
13159 hardcode_automatic_CXX=yes
13160 hardcode_shlibpath_var_CXX=unsupported
13161 whole_archive_flag_spec_CXX=''
13162 link_all_deplibs_CXX=yes
56efe974
WP
13163 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13164 if test "$GXX" = yes ; then
b57f37fb 13165 output_verbose_link_cmd='echo'
56efe974
WP
13166 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13167 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13168 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13169 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13170 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13171 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13172 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb 13173 fi
b57f37fb
WP
13174 else
13175 case $cc_basename in
13176 xlc*)
13177 output_verbose_link_cmd='echo'
13178 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13179 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13180 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13181 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13182 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13183 ;;
13184 *)
13185 ld_shlibs_CXX=no
13186 ;;
13187 esac
13188 fi
13189 ;;
13190
13191 dgux*)
13192 case $cc_basename in
13193 ec++*)
13194 # FIXME: insert proper C++ library support
13195 ld_shlibs_CXX=no
13196 ;;
13197 ghcx*)
13198 # Green Hills C++ Compiler
13199 # FIXME: insert proper C++ library support
13200 ld_shlibs_CXX=no
13201 ;;
13202 *)
13203 # FIXME: insert proper C++ library support
13204 ld_shlibs_CXX=no
13205 ;;
13206 esac
13207 ;;
13208 freebsd[12]*)
13209 # C++ shared libraries reported to be fairly broken before switch to ELF
13210 ld_shlibs_CXX=no
13211 ;;
13212 freebsd-elf*)
13213 archive_cmds_need_lc_CXX=no
13214 ;;
13215 freebsd* | dragonfly*)
13216 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13217 # conventions
13218 ld_shlibs_CXX=yes
13219 ;;
13220 gnu*)
13221 ;;
13222 hpux9*)
13223 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_separator_CXX=:
13225 export_dynamic_flag_spec_CXX='${wl}-E'
13226 hardcode_direct_CXX=yes
13227 hardcode_minus_L_CXX=yes # Not in the search PATH,
13228 # but as the default
13229 # location of the library.
13230
13231 case $cc_basename in
13232 CC*)
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 ;;
13236 aCC*)
13237 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13238 # Commands to make compiler produce verbose output that lists
13239 # what "hidden" libraries, object files and flags are used when
13240 # linking a shared library.
13241 #
13242 # There doesn't appear to be a way to prevent this compiler from
13243 # explicitly linking system object files so we need to strip them
13244 # from the output so that they don't get included in the library
13245 # dependencies.
13246 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13247 ;;
13248 *)
13249 if test "$GXX" = yes; then
13250 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13251 else
13252 # FIXME: insert proper C++ library support
13253 ld_shlibs_CXX=no
13254 fi
13255 ;;
13256 esac
13257 ;;
13258 hpux10*|hpux11*)
13259 if test $with_gnu_ld = no; then
13260 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13261 hardcode_libdir_separator_CXX=:
13262
13263 case $host_cpu in
13264 hppa*64*|ia64*) ;;
13265 *)
13266 export_dynamic_flag_spec_CXX='${wl}-E'
13267 ;;
13268 esac
13269 fi
13270 case $host_cpu in
13271 hppa*64*|ia64*)
13272 hardcode_direct_CXX=no
13273 hardcode_shlibpath_var_CXX=no
13274 ;;
13275 *)
13276 hardcode_direct_CXX=yes
13277 hardcode_minus_L_CXX=yes # Not in the search PATH,
13278 # but as the default
13279 # location of the library.
13280 ;;
13281 esac
13282
13283 case $cc_basename in
13284 CC*)
13285 # FIXME: insert proper C++ library support
13286 ld_shlibs_CXX=no
13287 ;;
13288 aCC*)
13289 case $host_cpu in
13290 hppa*64*)
13291 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13292 ;;
13293 ia64*)
13294 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13295 ;;
13296 *)
13297 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13298 ;;
13299 esac
13300 # Commands to make compiler produce verbose output that lists
13301 # what "hidden" libraries, object files and flags are used when
13302 # linking a shared library.
13303 #
13304 # There doesn't appear to be a way to prevent this compiler from
13305 # explicitly linking system object files so we need to strip them
13306 # from the output so that they don't get included in the library
13307 # dependencies.
13308 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13309 ;;
13310 *)
13311 if test "$GXX" = yes; then
13312 if test $with_gnu_ld = no; then
13313 case $host_cpu in
13314 hppa*64*)
13315 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13316 ;;
13317 ia64*)
13318 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13319 ;;
13320 *)
13321 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13322 ;;
13323 esac
13324 fi
13325 else
13326 # FIXME: insert proper C++ library support
13327 ld_shlibs_CXX=no
13328 fi
13329 ;;
13330 esac
13331 ;;
13332 interix[3-9]*)
13333 hardcode_direct_CXX=no
13334 hardcode_shlibpath_var_CXX=no
13335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13336 export_dynamic_flag_spec_CXX='${wl}-E'
13337 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13338 # Instead, shared libraries are loaded at an image base (0x10000000 by
13339 # default) and relocated if they conflict, which is a slow very memory
13340 # consuming and fragmenting process. To avoid this, we pick a random,
13341 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13342 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13343 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13344 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13345 ;;
13346 irix5* | irix6*)
13347 case $cc_basename in
13348 CC*)
13349 # SGI C++
13350 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13351
13352 # Archives containing C++ object files must be created using
13353 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13354 # necessary to make sure instantiated templates are included
13355 # in the archive.
13356 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13357 ;;
13358 *)
13359 if test "$GXX" = yes; then
13360 if test "$with_gnu_ld" = no; then
13361 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13362 else
13363 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13364 fi
13365 fi
13366 link_all_deplibs_CXX=yes
13367 ;;
13368 esac
13369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13370 hardcode_libdir_separator_CXX=:
13371 ;;
13372 linux* | k*bsd*-gnu)
13373 case $cc_basename in
13374 KCC*)
13375 # Kuck and Associates, Inc. (KAI) C++ Compiler
13376
13377 # KCC will only create a shared library if the output file
13378 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13379 # to its proper name (with version) after linking.
13380 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13381 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13382 # Commands to make compiler produce verbose output that lists
13383 # what "hidden" libraries, object files and flags are used when
13384 # linking a shared library.
13385 #
13386 # There doesn't appear to be a way to prevent this compiler from
13387 # explicitly linking system object files so we need to strip them
13388 # from the output so that they don't get included in the library
13389 # dependencies.
13390 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13391
13392 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13393 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13394
13395 # Archives containing C++ object files must be created using
13396 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13397 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13398 ;;
13399 icpc*)
13400 # Intel C++
13401 with_gnu_ld=yes
13402 # version 8.0 and above of icpc choke on multiply defined symbols
13403 # if we add $predep_objects and $postdep_objects, however 7.1 and
13404 # earlier do not add the objects themselves.
13405 case `$CC -V 2>&1` in
13406 *"Version 7."*)
13407 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13408 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13409 ;;
13410 *) # Version 8.0 or newer
13411 tmp_idyn=
13412 case $host_cpu in
13413 ia64*) tmp_idyn=' -i_dynamic';;
13414 esac
13415 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13416 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13417 ;;
13418 esac
13419 archive_cmds_need_lc_CXX=no
13420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13423 ;;
56efe974 13424 pgCC* | pgcpp*)
b57f37fb
WP
13425 # Portland Group C++ compiler
13426 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13427 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13428
13429 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13431 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13432 ;;
13433 cxx*)
13434 # Compaq C++
13435 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13436 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13437
13438 runpath_var=LD_RUN_PATH
13439 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13440 hardcode_libdir_separator_CXX=:
13441
13442 # Commands to make compiler produce verbose output that lists
13443 # what "hidden" libraries, object files and flags are used when
13444 # linking a shared library.
13445 #
13446 # There doesn't appear to be a way to prevent this compiler from
13447 # explicitly linking system object files so we need to strip them
13448 # from the output so that they don't get included in the library
13449 # dependencies.
13450 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13451 ;;
13452 *)
13453 case `$CC -V 2>&1 | sed 5q` in
13454 *Sun\ C*)
13455 # Sun C++ 5.9
13456 no_undefined_flag_CXX=' -zdefs'
13457 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13458 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13459 hardcode_libdir_flag_spec_CXX='-R$libdir'
13460 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13461
13462 # Not sure whether something based on
13463 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13464 # would be better.
13465 output_verbose_link_cmd='echo'
13466
13467 # Archives containing C++ object files must be created using
13468 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13469 # necessary to make sure instantiated templates are included
13470 # in the archive.
13471 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13472 ;;
13473 esac
13474 ;;
13475 esac
13476 ;;
13477 lynxos*)
13478 # FIXME: insert proper C++ library support
13479 ld_shlibs_CXX=no
13480 ;;
13481 m88k*)
13482 # FIXME: insert proper C++ library support
13483 ld_shlibs_CXX=no
13484 ;;
13485 mvs*)
13486 case $cc_basename in
13487 cxx*)
13488 # FIXME: insert proper C++ library support
13489 ld_shlibs_CXX=no
13490 ;;
13491 *)
13492 # FIXME: insert proper C++ library support
13493 ld_shlibs_CXX=no
13494 ;;
13495 esac
13496 ;;
13497 netbsd* | netbsdelf*-gnu)
13498 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13499 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13500 wlarc=
13501 hardcode_libdir_flag_spec_CXX='-R$libdir'
13502 hardcode_direct_CXX=yes
13503 hardcode_shlibpath_var_CXX=no
13504 fi
13505 # Workaround some broken pre-1.5 toolchains
13506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13507 ;;
13508 openbsd2*)
13509 # C++ shared libraries are fairly broken
13510 ld_shlibs_CXX=no
13511 ;;
13512 openbsd*)
13513 if test -f /usr/libexec/ld.so; then
13514 hardcode_direct_CXX=yes
13515 hardcode_shlibpath_var_CXX=no
13516 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13519 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13520 export_dynamic_flag_spec_CXX='${wl}-E'
13521 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13522 fi
13523 output_verbose_link_cmd='echo'
13524 else
13525 ld_shlibs_CXX=no
13526 fi
13527 ;;
13528 osf3*)
13529 case $cc_basename in
13530 KCC*)
13531 # Kuck and Associates, Inc. (KAI) C++ Compiler
13532
13533 # KCC will only create a shared library if the output file
13534 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13535 # to its proper name (with version) after linking.
13536 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13537
13538 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13539 hardcode_libdir_separator_CXX=:
13540
13541 # Archives containing C++ object files must be created using
13542 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13543 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13544
13545 ;;
13546 RCC*)
13547 # Rational C++ 2.4.1
13548 # FIXME: insert proper C++ library support
13549 ld_shlibs_CXX=no
13550 ;;
13551 cxx*)
13552 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13553 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13554
13555 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13556 hardcode_libdir_separator_CXX=:
13557
13558 # Commands to make compiler produce verbose output that lists
13559 # what "hidden" libraries, object files and flags are used when
13560 # linking a shared library.
13561 #
13562 # There doesn't appear to be a way to prevent this compiler from
13563 # explicitly linking system object files so we need to strip them
13564 # from the output so that they don't get included in the library
13565 # dependencies.
13566 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13567 ;;
13568 *)
13569 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13570 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13571 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13572
13573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13574 hardcode_libdir_separator_CXX=:
13575
13576 # Commands to make compiler produce verbose output that lists
13577 # what "hidden" libraries, object files and flags are used when
13578 # linking a shared library.
13579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13580
13581 else
13582 # FIXME: insert proper C++ library support
13583 ld_shlibs_CXX=no
13584 fi
13585 ;;
13586 esac
13587 ;;
13588 osf4* | osf5*)
13589 case $cc_basename in
13590 KCC*)
13591 # Kuck and Associates, Inc. (KAI) C++ Compiler
13592
13593 # KCC will only create a shared library if the output file
13594 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13595 # to its proper name (with version) after linking.
13596 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13597
13598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13599 hardcode_libdir_separator_CXX=:
13600
13601 # Archives containing C++ object files must be created using
13602 # the KAI C++ compiler.
13603 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13604 ;;
13605 RCC*)
13606 # Rational C++ 2.4.1
13607 # FIXME: insert proper C++ library support
13608 ld_shlibs_CXX=no
13609 ;;
13610 cxx*)
13611 allow_undefined_flag_CXX=' -expect_unresolved \*'
13612 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13613 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13614 echo "-hidden">> $lib.exp~
13615 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13616 $rm $lib.exp'
13617
13618 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13619 hardcode_libdir_separator_CXX=:
13620
13621 # Commands to make compiler produce verbose output that lists
13622 # what "hidden" libraries, object files and flags are used when
13623 # linking a shared library.
13624 #
13625 # There doesn't appear to be a way to prevent this compiler from
13626 # explicitly linking system object files so we need to strip them
13627 # from the output so that they don't get included in the library
13628 # dependencies.
13629 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13630 ;;
13631 *)
13632 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13634 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13635
13636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637 hardcode_libdir_separator_CXX=:
13638
13639 # Commands to make compiler produce verbose output that lists
13640 # what "hidden" libraries, object files and flags are used when
13641 # linking a shared library.
13642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13643
13644 else
13645 # FIXME: insert proper C++ library support
13646 ld_shlibs_CXX=no
13647 fi
13648 ;;
13649 esac
13650 ;;
13651 psos*)
13652 # FIXME: insert proper C++ library support
13653 ld_shlibs_CXX=no
13654 ;;
13655 sunos4*)
13656 case $cc_basename in
13657 CC*)
13658 # Sun C++ 4.x
13659 # FIXME: insert proper C++ library support
13660 ld_shlibs_CXX=no
13661 ;;
13662 lcc*)
13663 # Lucid
13664 # FIXME: insert proper C++ library support
13665 ld_shlibs_CXX=no
13666 ;;
13667 *)
13668 # FIXME: insert proper C++ library support
13669 ld_shlibs_CXX=no
13670 ;;
13671 esac
13672 ;;
13673 solaris*)
13674 case $cc_basename in
13675 CC*)
13676 # Sun C++ 4.2, 5.x and Centerline C++
13677 archive_cmds_need_lc_CXX=yes
13678 no_undefined_flag_CXX=' -zdefs'
13679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13680 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13681 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13682
13683 hardcode_libdir_flag_spec_CXX='-R$libdir'
13684 hardcode_shlibpath_var_CXX=no
13685 case $host_os in
13686 solaris2.[0-5] | solaris2.[0-5].*) ;;
13687 *)
13688 # The compiler driver will combine and reorder linker options,
13689 # but understands `-z linker_flag'.
13690 # Supported since Solaris 2.6 (maybe 2.5.1?)
13691 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13692 ;;
13693 esac
13694 link_all_deplibs_CXX=yes
13695
13696 output_verbose_link_cmd='echo'
13697
13698 # Archives containing C++ object files must be created using
13699 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13700 # necessary to make sure instantiated templates are included
13701 # in the archive.
13702 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13703 ;;
13704 gcx*)
13705 # Green Hills C++ Compiler
13706 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13707
13708 # The C++ compiler must be used to create the archive.
13709 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13710 ;;
13711 *)
13712 # GNU C++ compiler with Solaris linker
13713 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13714 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13715 if $CC --version | grep -v '^2\.7' > /dev/null; then
13716 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13717 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13718 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13719
13720 # Commands to make compiler produce verbose output that lists
13721 # what "hidden" libraries, object files and flags are used when
13722 # linking a shared library.
13723 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13724 else
13725 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13726 # platform.
13727 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13728 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13729 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13730
13731 # Commands to make compiler produce verbose output that lists
13732 # what "hidden" libraries, object files and flags are used when
13733 # linking a shared library.
13734 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13735 fi
13736
13737 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13738 case $host_os in
13739 solaris2.[0-5] | solaris2.[0-5].*) ;;
13740 *)
13741 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13742 ;;
13743 esac
13744 fi
13745 ;;
13746 esac
13747 ;;
13748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13749 no_undefined_flag_CXX='${wl}-z,text'
13750 archive_cmds_need_lc_CXX=no
13751 hardcode_shlibpath_var_CXX=no
13752 runpath_var='LD_RUN_PATH'
13753
13754 case $cc_basename in
13755 CC*)
13756 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13758 ;;
13759 *)
13760 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 ;;
13763 esac
13764 ;;
13765 sysv5* | sco3.2v5* | sco5v6*)
13766 # Note: We can NOT use -z defs as we might desire, because we do not
13767 # link with -lc, and that would cause any symbols used from libc to
13768 # always be unresolved, which means just about no library would
13769 # ever link correctly. If we're not using GNU ld we use -z text
13770 # though, which does catch some bad symbols but isn't as heavy-handed
13771 # as -z defs.
13772 # For security reasons, it is highly recommended that you always
13773 # use absolute paths for naming shared libraries, and exclude the
13774 # DT_RUNPATH tag from executables and libraries. But doing so
13775 # requires that you compile everything twice, which is a pain.
13776 # So that behaviour is only enabled if SCOABSPATH is set to a
13777 # non-empty value in the environment. Most likely only useful for
13778 # creating official distributions of packages.
13779 # This is a hack until libtool officially supports absolute path
13780 # names for shared libraries.
13781 no_undefined_flag_CXX='${wl}-z,text'
13782 allow_undefined_flag_CXX='${wl}-z,nodefs'
13783 archive_cmds_need_lc_CXX=no
13784 hardcode_shlibpath_var_CXX=no
13785 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13786 hardcode_libdir_separator_CXX=':'
13787 link_all_deplibs_CXX=yes
13788 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13789 runpath_var='LD_RUN_PATH'
13790
13791 case $cc_basename in
13792 CC*)
13793 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13794 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13795 ;;
13796 *)
13797 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 ;;
13800 esac
13801 ;;
13802 tandem*)
13803 case $cc_basename in
13804 NCC*)
13805 # NonStop-UX NCC 3.20
13806 # FIXME: insert proper C++ library support
13807 ld_shlibs_CXX=no
13808 ;;
13809 *)
13810 # FIXME: insert proper C++ library support
13811 ld_shlibs_CXX=no
13812 ;;
13813 esac
13814 ;;
13815 vxworks*)
13816 # FIXME: insert proper C++ library support
13817 ld_shlibs_CXX=no
13818 ;;
13819 *)
13820 # FIXME: insert proper C++ library support
13821 ld_shlibs_CXX=no
13822 ;;
13823esac
f030cae8
VY
13824{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13825$as_echo "$ld_shlibs_CXX" >&6; }
b57f37fb
WP
13826test "$ld_shlibs_CXX" = no && can_build_shared=no
13827
13828GCC_CXX="$GXX"
13829LD_CXX="$LD"
13830
b57f37fb
WP
13831cat > conftest.$ac_ext <<EOF
13832class Foo
13833{
13834public:
13835 Foo (void) { a = 0; }
13836private:
13837 int a;
13838};
13839EOF
13840
13841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13842 (eval $ac_compile) 2>&5
13843 ac_status=$?
f030cae8 13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
13845 (exit $ac_status); }; then
13846 # Parse the compiler output and extract the necessary
13847 # objects, libraries and library flags.
13848
13849 # Sentinel used to keep track of whether or not we are before
13850 # the conftest object file.
13851 pre_test_object_deps_done=no
13852
13853 # The `*' in the case matches for architectures that use `case' in
13854 # $output_verbose_cmd can trigger glob expansion during the loop
13855 # eval without this substitution.
13856 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13857
13858 for p in `eval $output_verbose_link_cmd`; do
13859 case $p in
13860
13861 -L* | -R* | -l*)
13862 # Some compilers place space between "-{L,R}" and the path.
13863 # Remove the space.
13864 if test $p = "-L" \
13865 || test $p = "-R"; then
13866 prev=$p
13867 continue
13868 else
13869 prev=
13870 fi
13871
13872 if test "$pre_test_object_deps_done" = no; then
13873 case $p in
13874 -L* | -R*)
13875 # Internal compiler library paths should come after those
13876 # provided the user. The postdeps already come after the
13877 # user supplied libs so there is no need to process them.
13878 if test -z "$compiler_lib_search_path_CXX"; then
13879 compiler_lib_search_path_CXX="${prev}${p}"
13880 else
13881 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13882 fi
13883 ;;
13884 # The "-l" case would never come before the object being
13885 # linked, so don't bother handling this case.
13886 esac
13887 else
13888 if test -z "$postdeps_CXX"; then
13889 postdeps_CXX="${prev}${p}"
13890 else
13891 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13892 fi
13893 fi
13894 ;;
13895
13896 *.$objext)
13897 # This assumes that the test object file only shows up
13898 # once in the compiler output.
13899 if test "$p" = "conftest.$objext"; then
13900 pre_test_object_deps_done=yes
13901 continue
13902 fi
13903
13904 if test "$pre_test_object_deps_done" = no; then
13905 if test -z "$predep_objects_CXX"; then
13906 predep_objects_CXX="$p"
13907 else
13908 predep_objects_CXX="$predep_objects_CXX $p"
13909 fi
13910 else
13911 if test -z "$postdep_objects_CXX"; then
13912 postdep_objects_CXX="$p"
13913 else
13914 postdep_objects_CXX="$postdep_objects_CXX $p"
13915 fi
13916 fi
13917 ;;
13918
13919 *) ;; # Ignore the rest.
13920
13921 esac
13922 done
13923
13924 # Clean up.
13925 rm -f a.out a.exe
13926else
13927 echo "libtool.m4: error: problem compiling CXX test program"
13928fi
13929
13930$rm -f confest.$objext
13931
56efe974
WP
13932compiler_lib_search_dirs_CXX=
13933if test -n "$compiler_lib_search_path_CXX"; then
13934 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13935fi
13936
b57f37fb
WP
13937# PORTME: override above test on systems where it is broken
13938case $host_os in
13939interix[3-9]*)
13940 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13941 # hack all around it, let's just trust "g++" to DTRT.
13942 predep_objects_CXX=
13943 postdep_objects_CXX=
13944 postdeps_CXX=
13945 ;;
13946
13947linux*)
13948 case `$CC -V 2>&1 | sed 5q` in
13949 *Sun\ C*)
13950 # Sun C++ 5.9
13951 #
13952 # The more standards-conforming stlport4 library is
13953 # incompatible with the Cstd library. Avoid specifying
13954 # it if it's in CXXFLAGS. Ignore libCrun as
13955 # -library=stlport4 depends on it.
13956 case " $CXX $CXXFLAGS " in
13957 *" -library=stlport4 "*)
13958 solaris_use_stlport4=yes
13959 ;;
13960 esac
13961 if test "$solaris_use_stlport4" != yes; then
13962 postdeps_CXX='-library=Cstd -library=Crun'
13963 fi
13964 ;;
13965 esac
13966 ;;
13967
13968solaris*)
13969 case $cc_basename in
13970 CC*)
13971 # The more standards-conforming stlport4 library is
13972 # incompatible with the Cstd library. Avoid specifying
13973 # it if it's in CXXFLAGS. Ignore libCrun as
13974 # -library=stlport4 depends on it.
13975 case " $CXX $CXXFLAGS " in
13976 *" -library=stlport4 "*)
13977 solaris_use_stlport4=yes
13978 ;;
13979 esac
13980
13981 # Adding this requires a known-good setup of shared libraries for
13982 # Sun compiler versions before 5.6, else PIC objects from an old
13983 # archive will be linked into the output, leading to subtle bugs.
13984 if test "$solaris_use_stlport4" != yes; then
13985 postdeps_CXX='-library=Cstd -library=Crun'
13986 fi
13987 ;;
13988 esac
13989 ;;
13990esac
13991
b57f37fb
WP
13992case " $postdeps_CXX " in
13993*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13994esac
13995
13996lt_prog_compiler_wl_CXX=
13997lt_prog_compiler_pic_CXX=
13998lt_prog_compiler_static_CXX=
13999
f030cae8
VY
14000{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14001$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
b57f37fb
WP
14002
14003 # C++ specific cases for pic, static, wl, etc.
14004 if test "$GXX" = yes; then
14005 lt_prog_compiler_wl_CXX='-Wl,'
14006 lt_prog_compiler_static_CXX='-static'
14007
14008 case $host_os in
14009 aix*)
14010 # All AIX code is PIC.
14011 if test "$host_cpu" = ia64; then
14012 # AIX 5 now supports IA64 processor
14013 lt_prog_compiler_static_CXX='-Bstatic'
14014 fi
14015 ;;
14016 amigaos*)
14017 # FIXME: we need at least 68020 code to build shared libraries, but
14018 # adding the `-m68020' flag to GCC prevents building anything better,
14019 # like `-m68040'.
14020 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14021 ;;
14022 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14023 # PIC is the default for these OSes.
14024 ;;
14025 mingw* | cygwin* | os2* | pw32*)
14026 # This hack is so that the source file can tell whether it is being
14027 # built for inclusion in a dll (and should export symbols for example).
14028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14029 # (--disable-auto-import) libraries
14030 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14031 ;;
14032 darwin* | rhapsody*)
14033 # PIC is the default on this platform
14034 # Common symbols not allowed in MH_DYLIB files
14035 lt_prog_compiler_pic_CXX='-fno-common'
14036 ;;
14037 *djgpp*)
14038 # DJGPP does not support shared libraries at all
14039 lt_prog_compiler_pic_CXX=
14040 ;;
14041 interix[3-9]*)
14042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14043 # Instead, we relocate shared libraries at runtime.
14044 ;;
14045 sysv4*MP*)
14046 if test -d /usr/nec; then
14047 lt_prog_compiler_pic_CXX=-Kconform_pic
14048 fi
14049 ;;
14050 hpux*)
14051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14052 # not for PA HP-UX.
14053 case $host_cpu in
14054 hppa*64*|ia64*)
14055 ;;
14056 *)
14057 lt_prog_compiler_pic_CXX='-fPIC'
14058 ;;
14059 esac
14060 ;;
14061 *)
14062 lt_prog_compiler_pic_CXX='-fPIC'
14063 ;;
14064 esac
14065 else
14066 case $host_os in
56efe974 14067 aix[4-9]*)
b57f37fb
WP
14068 # All AIX code is PIC.
14069 if test "$host_cpu" = ia64; then
14070 # AIX 5 now supports IA64 processor
14071 lt_prog_compiler_static_CXX='-Bstatic'
14072 else
14073 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14074 fi
14075 ;;
14076 chorus*)
14077 case $cc_basename in
14078 cxch68*)
14079 # Green Hills C++ Compiler
14080 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14081 ;;
14082 esac
14083 ;;
14084 darwin*)
14085 # PIC is the default on this platform
14086 # Common symbols not allowed in MH_DYLIB files
14087 case $cc_basename in
14088 xlc*)
14089 lt_prog_compiler_pic_CXX='-qnocommon'
14090 lt_prog_compiler_wl_CXX='-Wl,'
14091 ;;
14092 esac
14093 ;;
14094 dgux*)
14095 case $cc_basename in
14096 ec++*)
14097 lt_prog_compiler_pic_CXX='-KPIC'
14098 ;;
14099 ghcx*)
14100 # Green Hills C++ Compiler
14101 lt_prog_compiler_pic_CXX='-pic'
14102 ;;
14103 *)
14104 ;;
14105 esac
14106 ;;
14107 freebsd* | dragonfly*)
14108 # FreeBSD uses GNU C++
14109 ;;
14110 hpux9* | hpux10* | hpux11*)
14111 case $cc_basename in
14112 CC*)
14113 lt_prog_compiler_wl_CXX='-Wl,'
14114 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14115 if test "$host_cpu" != ia64; then
14116 lt_prog_compiler_pic_CXX='+Z'
14117 fi
14118 ;;
14119 aCC*)
14120 lt_prog_compiler_wl_CXX='-Wl,'
14121 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14122 case $host_cpu in
14123 hppa*64*|ia64*)
14124 # +Z the default
14125 ;;
14126 *)
14127 lt_prog_compiler_pic_CXX='+Z'
14128 ;;
14129 esac
14130 ;;
14131 *)
14132 ;;
14133 esac
14134 ;;
14135 interix*)
14136 # This is c89, which is MS Visual C++ (no shared libs)
14137 # Anyone wants to do a port?
14138 ;;
14139 irix5* | irix6* | nonstopux*)
14140 case $cc_basename in
14141 CC*)
14142 lt_prog_compiler_wl_CXX='-Wl,'
14143 lt_prog_compiler_static_CXX='-non_shared'
14144 # CC pic flag -KPIC is the default.
14145 ;;
14146 *)
14147 ;;
14148 esac
14149 ;;
14150 linux* | k*bsd*-gnu)
14151 case $cc_basename in
14152 KCC*)
14153 # KAI C++ Compiler
14154 lt_prog_compiler_wl_CXX='--backend -Wl,'
14155 lt_prog_compiler_pic_CXX='-fPIC'
14156 ;;
14157 icpc* | ecpc*)
14158 # Intel C++
14159 lt_prog_compiler_wl_CXX='-Wl,'
14160 lt_prog_compiler_pic_CXX='-KPIC'
14161 lt_prog_compiler_static_CXX='-static'
14162 ;;
56efe974 14163 pgCC* | pgcpp*)
b57f37fb
WP
14164 # Portland Group C++ compiler.
14165 lt_prog_compiler_wl_CXX='-Wl,'
14166 lt_prog_compiler_pic_CXX='-fpic'
14167 lt_prog_compiler_static_CXX='-Bstatic'
14168 ;;
14169 cxx*)
14170 # Compaq C++
14171 # Make sure the PIC flag is empty. It appears that all Alpha
14172 # Linux and Compaq Tru64 Unix objects are PIC.
14173 lt_prog_compiler_pic_CXX=
14174 lt_prog_compiler_static_CXX='-non_shared'
14175 ;;
14176 *)
14177 case `$CC -V 2>&1 | sed 5q` in
14178 *Sun\ C*)
14179 # Sun C++ 5.9
14180 lt_prog_compiler_pic_CXX='-KPIC'
14181 lt_prog_compiler_static_CXX='-Bstatic'
14182 lt_prog_compiler_wl_CXX='-Qoption ld '
14183 ;;
14184 esac
14185 ;;
14186 esac
14187 ;;
14188 lynxos*)
14189 ;;
14190 m88k*)
14191 ;;
14192 mvs*)
14193 case $cc_basename in
14194 cxx*)
14195 lt_prog_compiler_pic_CXX='-W c,exportall'
14196 ;;
14197 *)
14198 ;;
14199 esac
14200 ;;
14201 netbsd* | netbsdelf*-gnu)
14202 ;;
14203 osf3* | osf4* | osf5*)
14204 case $cc_basename in
14205 KCC*)
14206 lt_prog_compiler_wl_CXX='--backend -Wl,'
14207 ;;
14208 RCC*)
14209 # Rational C++ 2.4.1
14210 lt_prog_compiler_pic_CXX='-pic'
14211 ;;
14212 cxx*)
14213 # Digital/Compaq C++
14214 lt_prog_compiler_wl_CXX='-Wl,'
14215 # Make sure the PIC flag is empty. It appears that all Alpha
14216 # Linux and Compaq Tru64 Unix objects are PIC.
14217 lt_prog_compiler_pic_CXX=
14218 lt_prog_compiler_static_CXX='-non_shared'
14219 ;;
14220 *)
14221 ;;
14222 esac
14223 ;;
14224 psos*)
14225 ;;
14226 solaris*)
14227 case $cc_basename in
14228 CC*)
14229 # Sun C++ 4.2, 5.x and Centerline C++
14230 lt_prog_compiler_pic_CXX='-KPIC'
14231 lt_prog_compiler_static_CXX='-Bstatic'
14232 lt_prog_compiler_wl_CXX='-Qoption ld '
14233 ;;
14234 gcx*)
14235 # Green Hills C++ Compiler
14236 lt_prog_compiler_pic_CXX='-PIC'
14237 ;;
14238 *)
14239 ;;
14240 esac
14241 ;;
14242 sunos4*)
14243 case $cc_basename in
14244 CC*)
14245 # Sun C++ 4.x
14246 lt_prog_compiler_pic_CXX='-pic'
14247 lt_prog_compiler_static_CXX='-Bstatic'
14248 ;;
14249 lcc*)
14250 # Lucid
14251 lt_prog_compiler_pic_CXX='-pic'
14252 ;;
14253 *)
14254 ;;
14255 esac
14256 ;;
14257 tandem*)
14258 case $cc_basename in
14259 NCC*)
14260 # NonStop-UX NCC 3.20
14261 lt_prog_compiler_pic_CXX='-KPIC'
14262 ;;
14263 *)
14264 ;;
14265 esac
14266 ;;
14267 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14268 case $cc_basename in
14269 CC*)
14270 lt_prog_compiler_wl_CXX='-Wl,'
14271 lt_prog_compiler_pic_CXX='-KPIC'
14272 lt_prog_compiler_static_CXX='-Bstatic'
14273 ;;
14274 esac
14275 ;;
14276 vxworks*)
14277 ;;
14278 *)
14279 lt_prog_compiler_can_build_shared_CXX=no
14280 ;;
14281 esac
14282 fi
14283
f030cae8
VY
14284{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14285$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
b57f37fb
WP
14286
14287#
14288# Check to make sure the PIC flag actually works.
14289#
14290if test -n "$lt_prog_compiler_pic_CXX"; then
14291
f030cae8
VY
14292{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14293$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
56efe974 14294if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
f030cae8 14295 $as_echo_n "(cached) " >&6
b57f37fb 14296else
56efe974 14297 lt_cv_prog_compiler_pic_works_CXX=no
b57f37fb
WP
14298 ac_outfile=conftest.$ac_objext
14299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14300 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14301 # Insert the option either (1) after the last *FLAGS variable, or
14302 # (2) before a word containing "conftest.", or (3) at the end.
14303 # Note that $ac_compile itself does not contain backslashes and begins
14304 # with a dollar sign (not a hyphen), so the echo should work correctly.
14305 # The option is referenced via a variable to avoid confusing sed.
14306 lt_compile=`echo "$ac_compile" | $SED \
14307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309 -e 's:$: $lt_compiler_flag:'`
f030cae8 14310 (eval echo "\"\$as_me:14310: $lt_compile\"" >&5)
b57f37fb
WP
14311 (eval "$lt_compile" 2>conftest.err)
14312 ac_status=$?
14313 cat conftest.err >&5
f030cae8 14314 echo "$as_me:14314: \$? = $ac_status" >&5
b57f37fb
WP
14315 if (exit $ac_status) && test -s "$ac_outfile"; then
14316 # The compiler can only warn and ignore the option if not recognized
14317 # So say no if there are warnings other than the usual output.
14318 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 14321 lt_cv_prog_compiler_pic_works_CXX=yes
b57f37fb
WP
14322 fi
14323 fi
14324 $rm conftest*
14325
14326fi
f030cae8
VY
14327{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14328$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
b57f37fb 14329
56efe974 14330if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
b57f37fb
WP
14331 case $lt_prog_compiler_pic_CXX in
14332 "" | " "*) ;;
14333 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14334 esac
14335else
14336 lt_prog_compiler_pic_CXX=
14337 lt_prog_compiler_can_build_shared_CXX=no
14338fi
14339
14340fi
14341case $host_os in
14342 # For platforms which do not support PIC, -DPIC is meaningless:
14343 *djgpp*)
14344 lt_prog_compiler_pic_CXX=
14345 ;;
14346 *)
14347 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14348 ;;
14349esac
14350
14351#
14352# Check to make sure the static flag actually works.
14353#
14354wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
f030cae8
VY
14355{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14356$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
56efe974 14357if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
f030cae8 14358 $as_echo_n "(cached) " >&6
b57f37fb 14359else
56efe974 14360 lt_cv_prog_compiler_static_works_CXX=no
b57f37fb
WP
14361 save_LDFLAGS="$LDFLAGS"
14362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14363 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14365 # The linker can only warn and ignore the option if not recognized
14366 # So say no if there are warnings
14367 if test -s conftest.err; then
14368 # Append any errors to the config.log.
14369 cat conftest.err 1>&5
14370 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 14373 lt_cv_prog_compiler_static_works_CXX=yes
b57f37fb
WP
14374 fi
14375 else
56efe974 14376 lt_cv_prog_compiler_static_works_CXX=yes
b57f37fb
WP
14377 fi
14378 fi
56efe974 14379 $rm -r conftest*
b57f37fb
WP
14380 LDFLAGS="$save_LDFLAGS"
14381
14382fi
f030cae8
VY
14383{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14384$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
b57f37fb 14385
56efe974 14386if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
b57f37fb
WP
14387 :
14388else
14389 lt_prog_compiler_static_CXX=
14390fi
14391
14392
f030cae8
VY
14393{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14394$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b57f37fb 14395if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
f030cae8 14396 $as_echo_n "(cached) " >&6
b57f37fb
WP
14397else
14398 lt_cv_prog_compiler_c_o_CXX=no
14399 $rm -r conftest 2>/dev/null
14400 mkdir conftest
14401 cd conftest
14402 mkdir out
14403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14404
14405 lt_compiler_flag="-o out/conftest2.$ac_objext"
14406 # Insert the option either (1) after the last *FLAGS variable, or
14407 # (2) before a word containing "conftest.", or (3) at the end.
14408 # Note that $ac_compile itself does not contain backslashes and begins
14409 # with a dollar sign (not a hyphen), so the echo should work correctly.
14410 lt_compile=`echo "$ac_compile" | $SED \
14411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
f030cae8 14414 (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
b57f37fb
WP
14415 (eval "$lt_compile" 2>out/conftest.err)
14416 ac_status=$?
14417 cat out/conftest.err >&5
f030cae8 14418 echo "$as_me:14418: \$? = $ac_status" >&5
b57f37fb
WP
14419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14420 then
14421 # The compiler can only warn and ignore the option if not recognized
14422 # So say no if there are warnings
14423 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14424 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14425 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14426 lt_cv_prog_compiler_c_o_CXX=yes
14427 fi
14428 fi
14429 chmod u+w . 2>&5
14430 $rm conftest*
14431 # SGI C++ compiler will create directory out/ii_files/ for
14432 # template instantiation
14433 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14434 $rm out/* && rmdir out
14435 cd ..
14436 rmdir conftest
14437 $rm conftest*
14438
14439fi
f030cae8
VY
14440{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14441$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
b57f37fb
WP
14442
14443
14444hard_links="nottested"
14445if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14446 # do not overwrite the value of need_locks provided by the user
f030cae8
VY
14447 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14448$as_echo_n "checking if we can lock with hard links... " >&6; }
b57f37fb
WP
14449 hard_links=yes
14450 $rm conftest*
14451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14452 touch conftest.a
14453 ln conftest.a conftest.b 2>&5 || hard_links=no
14454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
f030cae8
VY
14455 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14456$as_echo "$hard_links" >&6; }
b57f37fb 14457 if test "$hard_links" = no; then
f030cae8
VY
14458 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14459$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
b57f37fb
WP
14460 need_locks=warn
14461 fi
14462else
14463 need_locks=no
14464fi
14465
f030cae8
VY
14466{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14467$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
b57f37fb
WP
14468
14469 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14470 case $host_os in
56efe974 14471 aix[4-9]*)
b57f37fb
WP
14472 # If we're using GNU nm, then we don't want the "-C" option.
14473 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14474 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14475 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14476 else
14477 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14478 fi
14479 ;;
14480 pw32*)
14481 export_symbols_cmds_CXX="$ltdll_cmds"
14482 ;;
14483 cygwin* | mingw*)
14484 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14485 ;;
14486 linux* | k*bsd*-gnu)
14487 link_all_deplibs_CXX=no
14488 ;;
14489 *)
14490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14491 ;;
14492 esac
56efe974 14493 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb 14494
f030cae8
VY
14495{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14496$as_echo "$ld_shlibs_CXX" >&6; }
b57f37fb
WP
14497test "$ld_shlibs_CXX" = no && can_build_shared=no
14498
14499#
14500# Do we need to explicitly link libc?
14501#
14502case "x$archive_cmds_need_lc_CXX" in
14503x|xyes)
14504 # Assume -lc should be added
14505 archive_cmds_need_lc_CXX=yes
14506
14507 if test "$enable_shared" = yes && test "$GCC" = yes; then
14508 case $archive_cmds_CXX in
14509 *'~'*)
14510 # FIXME: we may have to deal with multi-command sequences.
14511 ;;
14512 '$CC '*)
14513 # Test whether the compiler implicitly links with -lc since on some
14514 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14515 # to ld, don't add -lc before -lgcc.
f030cae8
VY
14516 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14517$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b57f37fb
WP
14518 $rm conftest*
14519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14520
14521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14522 (eval $ac_compile) 2>&5
14523 ac_status=$?
f030cae8 14524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
14525 (exit $ac_status); } 2>conftest.err; then
14526 soname=conftest
14527 lib=conftest
14528 libobjs=conftest.$ac_objext
14529 deplibs=
14530 wl=$lt_prog_compiler_wl_CXX
14531 pic_flag=$lt_prog_compiler_pic_CXX
14532 compiler_flags=-v
14533 linker_flags=-v
14534 verstring=
14535 output_objdir=.
14536 libname=conftest
14537 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14538 allow_undefined_flag_CXX=
14539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14540 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14541 ac_status=$?
f030cae8 14542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
14543 (exit $ac_status); }
14544 then
14545 archive_cmds_need_lc_CXX=no
14546 else
14547 archive_cmds_need_lc_CXX=yes
14548 fi
14549 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14550 else
14551 cat conftest.err 1>&5
14552 fi
14553 $rm conftest*
f030cae8
VY
14554 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14555$as_echo "$archive_cmds_need_lc_CXX" >&6; }
b57f37fb
WP
14556 ;;
14557 esac
14558 fi
14559 ;;
14560esac
14561
f030cae8
VY
14562{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14563$as_echo_n "checking dynamic linker characteristics... " >&6; }
b57f37fb
WP
14564library_names_spec=
14565libname_spec='lib$name'
14566soname_spec=
14567shrext_cmds=".so"
14568postinstall_cmds=
14569postuninstall_cmds=
14570finish_cmds=
14571finish_eval=
14572shlibpath_var=
14573shlibpath_overrides_runpath=unknown
14574version_type=none
14575dynamic_linker="$host_os ld.so"
14576sys_lib_dlsearch_path_spec="/lib /usr/lib"
14577
14578need_lib_prefix=unknown
14579hardcode_into_libs=no
14580
14581# when you set need_version to no, make sure it does not cause -set_version
14582# flags to be left without arguments
14583need_version=unknown
14584
14585case $host_os in
14586aix3*)
14587 version_type=linux
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14589 shlibpath_var=LIBPATH
14590
14591 # AIX 3 has no versioning support, so we append a major version to the name.
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 ;;
14594
56efe974 14595aix[4-9]*)
b57f37fb
WP
14596 version_type=linux
14597 need_lib_prefix=no
14598 need_version=no
14599 hardcode_into_libs=yes
14600 if test "$host_cpu" = ia64; then
14601 # AIX 5 supports IA64
14602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 else
14605 # With GCC up to 2.95.x, collect2 would create an import file
14606 # for dependence libraries. The import file would start with
14607 # the line `#! .'. This would cause the generated library to
14608 # depend on `.', always an invalid library. This was fixed in
14609 # development snapshots of GCC prior to 3.0.
14610 case $host_os in
14611 aix4 | aix4.[01] | aix4.[01].*)
14612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14613 echo ' yes '
14614 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14615 :
14616 else
14617 can_build_shared=no
14618 fi
14619 ;;
14620 esac
14621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14622 # soname into executable. Probably we can add versioning support to
14623 # collect2, so additional links can be useful in future.
14624 if test "$aix_use_runtimelinking" = yes; then
14625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14626 # instead of lib<name>.a to let people know that these are not
14627 # typical AIX shared libraries.
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629 else
14630 # We preserve .a as extension for shared libraries through AIX4.2
14631 # and later when we are not doing run time linking.
14632 library_names_spec='${libname}${release}.a $libname.a'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14634 fi
14635 shlibpath_var=LIBPATH
14636 fi
14637 ;;
14638
14639amigaos*)
14640 library_names_spec='$libname.ixlibrary $libname.a'
14641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14642 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14643 ;;
14644
14645beos*)
14646 library_names_spec='${libname}${shared_ext}'
14647 dynamic_linker="$host_os ld.so"
14648 shlibpath_var=LIBRARY_PATH
14649 ;;
14650
14651bsdi[45]*)
14652 version_type=linux
14653 need_version=no
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14657 shlibpath_var=LD_LIBRARY_PATH
14658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14660 # the default ld.so.conf also contains /usr/contrib/lib and
14661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14662 # libtool to hard-code these into programs
14663 ;;
14664
14665cygwin* | mingw* | pw32*)
14666 version_type=windows
14667 shrext_cmds=".dll"
14668 need_version=no
14669 need_lib_prefix=no
14670
14671 case $GCC,$host_os in
14672 yes,cygwin* | yes,mingw* | yes,pw32*)
14673 library_names_spec='$libname.dll.a'
14674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14675 postinstall_cmds='base_file=`basename \${file}`~
14676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14677 dldir=$destdir/`dirname \$dlpath`~
14678 test -d \$dldir || mkdir -p \$dldir~
14679 $install_prog $dir/$dlname \$dldir/$dlname~
14680 chmod a+x \$dldir/$dlname'
14681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14682 dlpath=$dir/\$dldll~
14683 $rm \$dlpath'
14684 shlibpath_overrides_runpath=yes
14685
14686 case $host_os in
14687 cygwin*)
14688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14690 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14691 ;;
14692 mingw*)
14693 # MinGW DLLs use traditional 'lib' prefix
14694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14697 # It is most probably a Windows format PATH printed by
14698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14699 # path with ; separators, and with drive letters. We can handle the
14700 # drive letters (cygwin fileutils understands them), so leave them,
14701 # especially as we might pass files found there to a mingw objdump,
14702 # which wouldn't understand a cygwinified path. Ahh.
14703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14704 else
14705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14706 fi
14707 ;;
14708 pw32*)
14709 # pw32 DLLs use 'pw' prefix rather than 'lib'
14710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14711 ;;
14712 esac
14713 ;;
14714
14715 *)
14716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14717 ;;
14718 esac
14719 dynamic_linker='Win32 ld.exe'
14720 # FIXME: first we should search . and the directory the executable is in
14721 shlibpath_var=PATH
14722 ;;
14723
14724darwin* | rhapsody*)
14725 dynamic_linker="$host_os dyld"
14726 version_type=darwin
14727 need_lib_prefix=no
14728 need_version=no
14729 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14730 soname_spec='${libname}${release}${major}$shared_ext'
14731 shlibpath_overrides_runpath=yes
14732 shlibpath_var=DYLD_LIBRARY_PATH
14733 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14734
14735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14736 ;;
14737
14738dgux*)
14739 version_type=linux
14740 need_lib_prefix=no
14741 need_version=no
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14743 soname_spec='${libname}${release}${shared_ext}$major'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 ;;
14746
14747freebsd1*)
14748 dynamic_linker=no
14749 ;;
14750
14751freebsd* | dragonfly*)
14752 # DragonFly does not have aout. When/if they implement a new
14753 # versioning mechanism, adjust this.
14754 if test -x /usr/bin/objformat; then
14755 objformat=`/usr/bin/objformat`
14756 else
14757 case $host_os in
14758 freebsd[123]*) objformat=aout ;;
14759 *) objformat=elf ;;
14760 esac
14761 fi
14762 version_type=freebsd-$objformat
14763 case $version_type in
14764 freebsd-elf*)
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14766 need_version=no
14767 need_lib_prefix=no
14768 ;;
14769 freebsd-*)
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14771 need_version=yes
14772 ;;
14773 esac
14774 shlibpath_var=LD_LIBRARY_PATH
14775 case $host_os in
14776 freebsd2*)
14777 shlibpath_overrides_runpath=yes
14778 ;;
14779 freebsd3.[01]* | freebsdelf3.[01]*)
14780 shlibpath_overrides_runpath=yes
14781 hardcode_into_libs=yes
14782 ;;
14783 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14784 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14785 shlibpath_overrides_runpath=no
14786 hardcode_into_libs=yes
14787 ;;
14788 *) # from 4.6 on, and DragonFly
14789 shlibpath_overrides_runpath=yes
14790 hardcode_into_libs=yes
14791 ;;
14792 esac
14793 ;;
14794
14795gnu*)
14796 version_type=linux
14797 need_lib_prefix=no
14798 need_version=no
14799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14800 soname_spec='${libname}${release}${shared_ext}$major'
14801 shlibpath_var=LD_LIBRARY_PATH
14802 hardcode_into_libs=yes
14803 ;;
14804
14805hpux9* | hpux10* | hpux11*)
14806 # Give a soname corresponding to the major version so that dld.sl refuses to
14807 # link against other versions.
14808 version_type=sunos
14809 need_lib_prefix=no
14810 need_version=no
14811 case $host_cpu in
14812 ia64*)
14813 shrext_cmds='.so'
14814 hardcode_into_libs=yes
14815 dynamic_linker="$host_os dld.so"
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 if test "X$HPUX_IA64_MODE" = X32; then
14821 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14822 else
14823 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14824 fi
14825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14826 ;;
14827 hppa*64*)
14828 shrext_cmds='.sl'
14829 hardcode_into_libs=yes
14830 dynamic_linker="$host_os dld.sl"
14831 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834 soname_spec='${libname}${release}${shared_ext}$major'
14835 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14837 ;;
14838 *)
14839 shrext_cmds='.sl'
14840 dynamic_linker="$host_os dld.sl"
14841 shlibpath_var=SHLIB_PATH
14842 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844 soname_spec='${libname}${release}${shared_ext}$major'
14845 ;;
14846 esac
14847 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14848 postinstall_cmds='chmod 555 $lib'
14849 ;;
14850
14851interix[3-9]*)
14852 version_type=linux
14853 need_lib_prefix=no
14854 need_version=no
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=no
14860 hardcode_into_libs=yes
14861 ;;
14862
14863irix5* | irix6* | nonstopux*)
14864 case $host_os in
14865 nonstopux*) version_type=nonstopux ;;
14866 *)
14867 if test "$lt_cv_prog_gnu_ld" = yes; then
14868 version_type=linux
14869 else
14870 version_type=irix
14871 fi ;;
14872 esac
14873 need_lib_prefix=no
14874 need_version=no
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14877 case $host_os in
14878 irix5* | nonstopux*)
14879 libsuff= shlibsuff=
14880 ;;
14881 *)
14882 case $LD in # libtool.m4 will add one of these switches to LD
14883 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14884 libsuff= shlibsuff= libmagic=32-bit;;
14885 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14886 libsuff=32 shlibsuff=N32 libmagic=N32;;
14887 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14888 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14889 *) libsuff= shlibsuff= libmagic=never-match;;
14890 esac
14891 ;;
14892 esac
14893 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14894 shlibpath_overrides_runpath=no
14895 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14896 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14897 hardcode_into_libs=yes
14898 ;;
14899
14900# No shared lib support for Linux oldld, aout, or coff.
14901linux*oldld* | linux*aout* | linux*coff*)
14902 dynamic_linker=no
14903 ;;
14904
14905# This must be Linux ELF.
14906linux* | k*bsd*-gnu)
14907 version_type=linux
14908 need_lib_prefix=no
14909 need_version=no
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 shlibpath_overrides_runpath=no
14915 # This implies no fast_install, which is unacceptable.
14916 # Some rework will be needed to allow for fast_install
14917 # before this can be enabled.
14918 hardcode_into_libs=yes
14919
14920 # Append ld.so.conf contents to the search path
14921 if test -f /etc/ld.so.conf; then
14922 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14924 fi
14925
14926 # We used to test for /lib/ld.so.1 and disable shared libraries on
14927 # powerpc, because MkLinux only supported shared libraries with the
14928 # GNU dynamic linker. Since this was broken with cross compilers,
14929 # most powerpc-linux boxes support dynamic linking these days and
14930 # people can always --disable-shared, the test was removed, and we
14931 # assume the GNU/Linux dynamic linker is in use.
14932 dynamic_linker='GNU/Linux ld.so'
14933 ;;
14934
14935netbsdelf*-gnu)
14936 version_type=linux
14937 need_lib_prefix=no
14938 need_version=no
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=no
14943 hardcode_into_libs=yes
14944 dynamic_linker='NetBSD ld.elf_so'
14945 ;;
14946
14947netbsd*)
14948 version_type=sunos
14949 need_lib_prefix=no
14950 need_version=no
14951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14954 dynamic_linker='NetBSD (a.out) ld.so'
14955 else
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14957 soname_spec='${libname}${release}${shared_ext}$major'
14958 dynamic_linker='NetBSD ld.elf_so'
14959 fi
14960 shlibpath_var=LD_LIBRARY_PATH
14961 shlibpath_overrides_runpath=yes
14962 hardcode_into_libs=yes
14963 ;;
14964
14965newsos6)
14966 version_type=linux
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968 shlibpath_var=LD_LIBRARY_PATH
14969 shlibpath_overrides_runpath=yes
14970 ;;
14971
14972nto-qnx*)
14973 version_type=linux
14974 need_lib_prefix=no
14975 need_version=no
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 shlibpath_var=LD_LIBRARY_PATH
14979 shlibpath_overrides_runpath=yes
14980 ;;
14981
14982openbsd*)
14983 version_type=sunos
14984 sys_lib_dlsearch_path_spec="/usr/lib"
14985 need_lib_prefix=no
14986 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14987 case $host_os in
14988 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14989 *) need_version=no ;;
14990 esac
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14993 shlibpath_var=LD_LIBRARY_PATH
14994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14995 case $host_os in
14996 openbsd2.[89] | openbsd2.[89].*)
14997 shlibpath_overrides_runpath=no
14998 ;;
14999 *)
15000 shlibpath_overrides_runpath=yes
15001 ;;
15002 esac
15003 else
15004 shlibpath_overrides_runpath=yes
15005 fi
15006 ;;
15007
15008os2*)
15009 libname_spec='$name'
15010 shrext_cmds=".dll"
15011 need_lib_prefix=no
15012 library_names_spec='$libname${shared_ext} $libname.a'
15013 dynamic_linker='OS/2 ld.exe'
15014 shlibpath_var=LIBPATH
15015 ;;
15016
15017osf3* | osf4* | osf5*)
15018 version_type=osf
15019 need_lib_prefix=no
15020 need_version=no
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 shlibpath_var=LD_LIBRARY_PATH
15024 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15025 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15026 ;;
15027
15028rdos*)
15029 dynamic_linker=no
15030 ;;
15031
15032solaris*)
15033 version_type=linux
15034 need_lib_prefix=no
15035 need_version=no
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes
15040 hardcode_into_libs=yes
15041 # ldd complains unless libraries are executable
15042 postinstall_cmds='chmod +x $lib'
15043 ;;
15044
15045sunos4*)
15046 version_type=sunos
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=yes
15051 if test "$with_gnu_ld" = yes; then
15052 need_lib_prefix=no
15053 fi
15054 need_version=yes
15055 ;;
15056
15057sysv4 | sysv4.3*)
15058 version_type=linux
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060 soname_spec='${libname}${release}${shared_ext}$major'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 case $host_vendor in
15063 sni)
15064 shlibpath_overrides_runpath=no
15065 need_lib_prefix=no
15066 export_dynamic_flag_spec='${wl}-Blargedynsym'
15067 runpath_var=LD_RUN_PATH
15068 ;;
15069 siemens)
15070 need_lib_prefix=no
15071 ;;
15072 motorola)
15073 need_lib_prefix=no
15074 need_version=no
15075 shlibpath_overrides_runpath=no
15076 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15077 ;;
15078 esac
15079 ;;
15080
15081sysv4*MP*)
15082 if test -d /usr/nec ;then
15083 version_type=linux
15084 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15085 soname_spec='$libname${shared_ext}.$major'
15086 shlibpath_var=LD_LIBRARY_PATH
15087 fi
15088 ;;
15089
15090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15091 version_type=freebsd-elf
15092 need_lib_prefix=no
15093 need_version=no
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 shlibpath_var=LD_LIBRARY_PATH
15097 hardcode_into_libs=yes
15098 if test "$with_gnu_ld" = yes; then
15099 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15100 shlibpath_overrides_runpath=no
15101 else
15102 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15103 shlibpath_overrides_runpath=yes
15104 case $host_os in
15105 sco3.2v5*)
15106 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15107 ;;
15108 esac
15109 fi
15110 sys_lib_dlsearch_path_spec='/usr/lib'
15111 ;;
15112
15113uts4*)
15114 version_type=linux
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 ;;
15119
15120*)
15121 dynamic_linker=no
15122 ;;
15123esac
f030cae8
VY
15124{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15125$as_echo "$dynamic_linker" >&6; }
b57f37fb
WP
15126test "$dynamic_linker" = no && can_build_shared=no
15127
56efe974 15128if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
f030cae8 15129 $as_echo_n "(cached) " >&6
56efe974
WP
15130else
15131 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15132fi
15133
15134sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15135if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
f030cae8 15136 $as_echo_n "(cached) " >&6
56efe974
WP
15137else
15138 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15139fi
15140
15141sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15142
b57f37fb
WP
15143variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15144if test "$GCC" = yes; then
15145 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15146fi
15147
f030cae8
VY
15148{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15149$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
b57f37fb
WP
15150hardcode_action_CXX=
15151if test -n "$hardcode_libdir_flag_spec_CXX" || \
15152 test -n "$runpath_var_CXX" || \
15153 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15154
15155 # We can hardcode non-existant directories.
15156 if test "$hardcode_direct_CXX" != no &&
15157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15158 # have to relink, otherwise we might link with an installed library
15159 # when we should be linking with a yet-to-be-installed one
15160 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15161 test "$hardcode_minus_L_CXX" != no; then
15162 # Linking always hardcodes the temporary library directory.
15163 hardcode_action_CXX=relink
15164 else
15165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15166 hardcode_action_CXX=immediate
15167 fi
15168else
15169 # We cannot hardcode anything, or else we can only hardcode existing
15170 # directories.
15171 hardcode_action_CXX=unsupported
15172fi
f030cae8
VY
15173{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15174$as_echo "$hardcode_action_CXX" >&6; }
b57f37fb
WP
15175
15176if test "$hardcode_action_CXX" = relink; then
15177 # Fast installation is not supported
15178 enable_fast_install=no
15179elif test "$shlibpath_overrides_runpath" = yes ||
15180 test "$enable_shared" = no; then
15181 # Fast installation is not necessary
15182 enable_fast_install=needless
15183fi
15184
15185
15186# The else clause should only fire when bootstrapping the
15187# libtool distribution, otherwise you forgot to ship ltmain.sh
15188# with your package, and you will get complaints that there are
15189# no rules to generate ltmain.sh.
15190if test -f "$ltmain"; then
15191 # See if we are running on zsh, and set the options which allow our commands through
15192 # without removal of \ escapes.
15193 if test -n "${ZSH_VERSION+set}" ; then
15194 setopt NO_GLOB_SUBST
15195 fi
15196 # Now quote all the things that may contain metacharacters while being
15197 # careful not to overquote the AC_SUBSTed values. We take copies of the
15198 # variables and quote the copies for generation of the libtool script.
15199 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15200 SED SHELL STRIP \
15201 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15202 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15203 deplibs_check_method reload_flag reload_cmds need_locks \
15204 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15205 lt_cv_sys_global_symbol_to_c_name_address \
15206 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15207 old_postinstall_cmds old_postuninstall_cmds \
15208 compiler_CXX \
15209 CC_CXX \
15210 LD_CXX \
15211 lt_prog_compiler_wl_CXX \
15212 lt_prog_compiler_pic_CXX \
15213 lt_prog_compiler_static_CXX \
15214 lt_prog_compiler_no_builtin_flag_CXX \
15215 export_dynamic_flag_spec_CXX \
15216 thread_safe_flag_spec_CXX \
15217 whole_archive_flag_spec_CXX \
15218 enable_shared_with_static_runtimes_CXX \
15219 old_archive_cmds_CXX \
15220 old_archive_from_new_cmds_CXX \
15221 predep_objects_CXX \
15222 postdep_objects_CXX \
15223 predeps_CXX \
15224 postdeps_CXX \
15225 compiler_lib_search_path_CXX \
56efe974 15226 compiler_lib_search_dirs_CXX \
b57f37fb
WP
15227 archive_cmds_CXX \
15228 archive_expsym_cmds_CXX \
15229 postinstall_cmds_CXX \
15230 postuninstall_cmds_CXX \
15231 old_archive_from_expsyms_cmds_CXX \
15232 allow_undefined_flag_CXX \
15233 no_undefined_flag_CXX \
15234 export_symbols_cmds_CXX \
15235 hardcode_libdir_flag_spec_CXX \
15236 hardcode_libdir_flag_spec_ld_CXX \
15237 hardcode_libdir_separator_CXX \
15238 hardcode_automatic_CXX \
15239 module_cmds_CXX \
15240 module_expsym_cmds_CXX \
15241 lt_cv_prog_compiler_c_o_CXX \
15242 fix_srcfile_path_CXX \
15243 exclude_expsyms_CXX \
15244 include_expsyms_CXX; do
15245
15246 case $var in
15247 old_archive_cmds_CXX | \
15248 old_archive_from_new_cmds_CXX | \
15249 archive_cmds_CXX | \
15250 archive_expsym_cmds_CXX | \
15251 module_cmds_CXX | \
15252 module_expsym_cmds_CXX | \
15253 old_archive_from_expsyms_cmds_CXX | \
15254 export_symbols_cmds_CXX | \
15255 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15256 postinstall_cmds | postuninstall_cmds | \
15257 old_postinstall_cmds | old_postuninstall_cmds | \
15258 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15259 # Double-quote double-evaled strings.
15260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15261 ;;
15262 *)
15263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15264 ;;
15265 esac
15266 done
15267
15268 case $lt_echo in
15269 *'\$0 --fallback-echo"')
15270 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15271 ;;
15272 esac
15273
15274cfgfile="$ofile"
15275
15276 cat <<__EOF__ >> "$cfgfile"
15277# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15278
15279# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15280
15281# Shell to use when invoking shell scripts.
15282SHELL=$lt_SHELL
15283
15284# Whether or not to build shared libraries.
15285build_libtool_libs=$enable_shared
15286
15287# Whether or not to build static libraries.
15288build_old_libs=$enable_static
15289
15290# Whether or not to add -lc for building shared libraries.
15291build_libtool_need_lc=$archive_cmds_need_lc_CXX
15292
15293# Whether or not to disallow shared libs when runtime libs are static
15294allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15295
15296# Whether or not to optimize for fast installation.
15297fast_install=$enable_fast_install
15298
15299# The host system.
15300host_alias=$host_alias
15301host=$host
15302host_os=$host_os
15303
15304# The build system.
15305build_alias=$build_alias
15306build=$build
15307build_os=$build_os
15308
15309# An echo program that does not interpret backslashes.
15310echo=$lt_echo
15311
15312# The archiver.
15313AR=$lt_AR
15314AR_FLAGS=$lt_AR_FLAGS
15315
15316# A C compiler.
15317LTCC=$lt_LTCC
15318
15319# LTCC compiler flags.
15320LTCFLAGS=$lt_LTCFLAGS
15321
15322# A language-specific compiler.
15323CC=$lt_compiler_CXX
15324
15325# Is the compiler the GNU C compiler?
15326with_gcc=$GCC_CXX
15327
15328# An ERE matcher.
15329EGREP=$lt_EGREP
15330
15331# The linker used to build libraries.
15332LD=$lt_LD_CXX
15333
15334# Whether we need hard or soft links.
15335LN_S=$lt_LN_S
15336
15337# A BSD-compatible nm program.
15338NM=$lt_NM
15339
15340# A symbol stripping program
15341STRIP=$lt_STRIP
15342
15343# Used to examine libraries when file_magic_cmd begins "file"
15344MAGIC_CMD=$MAGIC_CMD
15345
15346# Used on cygwin: DLL creation program.
15347DLLTOOL="$DLLTOOL"
15348
15349# Used on cygwin: object dumper.
15350OBJDUMP="$OBJDUMP"
15351
15352# Used on cygwin: assembler.
15353AS="$AS"
15354
15355# The name of the directory that contains temporary libtool files.
15356objdir=$objdir
15357
15358# How to create reloadable object files.
15359reload_flag=$lt_reload_flag
15360reload_cmds=$lt_reload_cmds
15361
15362# How to pass a linker flag through the compiler.
15363wl=$lt_lt_prog_compiler_wl_CXX
15364
15365# Object file suffix (normally "o").
15366objext="$ac_objext"
15367
15368# Old archive suffix (normally "a").
15369libext="$libext"
15370
15371# Shared library suffix (normally ".so").
15372shrext_cmds='$shrext_cmds'
15373
15374# Executable file suffix (normally "").
15375exeext="$exeext"
15376
15377# Additional compiler flags for building library objects.
15378pic_flag=$lt_lt_prog_compiler_pic_CXX
15379pic_mode=$pic_mode
15380
15381# What is the maximum length of a command?
15382max_cmd_len=$lt_cv_sys_max_cmd_len
15383
15384# Does compiler simultaneously support -c and -o options?
15385compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15386
15387# Must we lock files when doing compilation?
15388need_locks=$lt_need_locks
15389
15390# Do we need the lib prefix for modules?
15391need_lib_prefix=$need_lib_prefix
15392
15393# Do we need a version for libraries?
15394need_version=$need_version
15395
15396# Whether dlopen is supported.
15397dlopen_support=$enable_dlopen
15398
15399# Whether dlopen of programs is supported.
15400dlopen_self=$enable_dlopen_self
15401
15402# Whether dlopen of statically linked programs is supported.
15403dlopen_self_static=$enable_dlopen_self_static
15404
15405# Compiler flag to prevent dynamic linking.
15406link_static_flag=$lt_lt_prog_compiler_static_CXX
15407
15408# Compiler flag to turn off builtin functions.
15409no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15410
15411# Compiler flag to allow reflexive dlopens.
15412export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15413
15414# Compiler flag to generate shared objects directly from archives.
15415whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15416
15417# Compiler flag to generate thread-safe objects.
15418thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15419
15420# Library versioning type.
15421version_type=$version_type
15422
15423# Format of library name prefix.
15424libname_spec=$lt_libname_spec
15425
15426# List of archive names. First name is the real one, the rest are links.
15427# The last name is the one that the linker finds with -lNAME.
15428library_names_spec=$lt_library_names_spec
15429
15430# The coded name of the library, if different from the real name.
15431soname_spec=$lt_soname_spec
15432
15433# Commands used to build and install an old-style archive.
15434RANLIB=$lt_RANLIB
15435old_archive_cmds=$lt_old_archive_cmds_CXX
15436old_postinstall_cmds=$lt_old_postinstall_cmds
15437old_postuninstall_cmds=$lt_old_postuninstall_cmds
15438
15439# Create an old-style archive from a shared archive.
15440old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15441
15442# Create a temporary old-style archive to link instead of a shared archive.
15443old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15444
15445# Commands used to build and install a shared archive.
15446archive_cmds=$lt_archive_cmds_CXX
15447archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15448postinstall_cmds=$lt_postinstall_cmds
15449postuninstall_cmds=$lt_postuninstall_cmds
15450
15451# Commands used to build a loadable module (assumed same as above if empty)
15452module_cmds=$lt_module_cmds_CXX
15453module_expsym_cmds=$lt_module_expsym_cmds_CXX
15454
15455# Commands to strip libraries.
15456old_striplib=$lt_old_striplib
15457striplib=$lt_striplib
15458
15459# Dependencies to place before the objects being linked to create a
15460# shared library.
15461predep_objects=$lt_predep_objects_CXX
15462
15463# Dependencies to place after the objects being linked to create a
15464# shared library.
15465postdep_objects=$lt_postdep_objects_CXX
15466
15467# Dependencies to place before the objects being linked to create a
15468# shared library.
15469predeps=$lt_predeps_CXX
15470
15471# Dependencies to place after the objects being linked to create a
15472# shared library.
15473postdeps=$lt_postdeps_CXX
15474
56efe974
WP
15475# The directories searched by this compiler when creating a shared
15476# library
15477compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15478
b57f37fb
WP
15479# The library search path used internally by the compiler when linking
15480# a shared library.
15481compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15482
15483# Method to check whether dependent libraries are shared objects.
15484deplibs_check_method=$lt_deplibs_check_method
15485
15486# Command to use when deplibs_check_method == file_magic.
15487file_magic_cmd=$lt_file_magic_cmd
15488
15489# Flag that allows shared libraries with undefined symbols to be built.
15490allow_undefined_flag=$lt_allow_undefined_flag_CXX
15491
15492# Flag that forces no undefined symbols.
15493no_undefined_flag=$lt_no_undefined_flag_CXX
15494
15495# Commands used to finish a libtool library installation in a directory.
15496finish_cmds=$lt_finish_cmds
15497
15498# Same as above, but a single script fragment to be evaled but not shown.
15499finish_eval=$lt_finish_eval
15500
15501# Take the output of nm and produce a listing of raw symbols and C names.
15502global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15503
15504# Transform the output of nm in a proper C declaration
15505global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15506
15507# Transform the output of nm in a C name address pair
15508global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15509
15510# This is the shared library runtime path variable.
15511runpath_var=$runpath_var
15512
15513# This is the shared library path variable.
15514shlibpath_var=$shlibpath_var
15515
15516# Is shlibpath searched before the hard-coded library search path?
15517shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15518
15519# How to hardcode a shared library path into an executable.
15520hardcode_action=$hardcode_action_CXX
15521
15522# Whether we should hardcode library paths into libraries.
15523hardcode_into_libs=$hardcode_into_libs
15524
15525# Flag to hardcode \$libdir into a binary during linking.
15526# This must work even if \$libdir does not exist.
15527hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15528
15529# If ld is used when linking, flag to hardcode \$libdir into
15530# a binary during linking. This must work even if \$libdir does
15531# not exist.
15532hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15533
15534# Whether we need a single -rpath flag with a separated argument.
15535hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15536
15537# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15538# resulting binary.
15539hardcode_direct=$hardcode_direct_CXX
15540
15541# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15542# resulting binary.
15543hardcode_minus_L=$hardcode_minus_L_CXX
15544
15545# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15546# the resulting binary.
15547hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15548
15549# Set to yes if building a shared library automatically hardcodes DIR into the library
15550# and all subsequent libraries and executables linked against it.
15551hardcode_automatic=$hardcode_automatic_CXX
15552
15553# Variables whose values should be saved in libtool wrapper scripts and
15554# restored at relink time.
15555variables_saved_for_relink="$variables_saved_for_relink"
15556
15557# Whether libtool must link a program against all its dependency libraries.
15558link_all_deplibs=$link_all_deplibs_CXX
15559
15560# Compile-time system search path for libraries
15561sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15562
15563# Run-time system search path for libraries
15564sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15565
15566# Fix the shell variable \$srcfile for the compiler.
15567fix_srcfile_path=$lt_fix_srcfile_path
15568
15569# Set to yes if exported symbols are required.
15570always_export_symbols=$always_export_symbols_CXX
15571
15572# The commands to list exported symbols.
15573export_symbols_cmds=$lt_export_symbols_cmds_CXX
15574
15575# The commands to extract the exported symbol list from a shared archive.
15576extract_expsyms_cmds=$lt_extract_expsyms_cmds
15577
15578# Symbols that should not be listed in the preloaded symbols.
15579exclude_expsyms=$lt_exclude_expsyms_CXX
15580
15581# Symbols that must always be exported.
15582include_expsyms=$lt_include_expsyms_CXX
15583
15584# ### END LIBTOOL TAG CONFIG: $tagname
15585
15586__EOF__
15587
15588
15589else
15590 # If there is no Makefile yet, we rely on a make rule to execute
15591 # `config.status --recheck' to rerun these tests and create the
15592 # libtool script then.
15593 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15594 if test -f "$ltmain_in"; then
15595 test -f Makefile && make "$ltmain"
15596 fi
15597fi
15598
15599
15600ac_ext=c
15601ac_cpp='$CPP $CPPFLAGS'
15602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15604ac_compiler_gnu=$ac_cv_c_compiler_gnu
15605
15606CC=$lt_save_CC
15607LDCXX=$LD
15608LD=$lt_save_LD
15609GCC=$lt_save_GCC
15610with_gnu_ldcxx=$with_gnu_ld
15611with_gnu_ld=$lt_save_with_gnu_ld
15612lt_cv_path_LDCXX=$lt_cv_path_LD
15613lt_cv_path_LD=$lt_save_path_LD
15614lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15615lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15616
15617 else
15618 tagname=""
15619 fi
15620 ;;
15621
15622 F77)
15623 if test -n "$F77" && test "X$F77" != "Xno"; then
15624
15625ac_ext=f
15626ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15627ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15628ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15629
15630
15631archive_cmds_need_lc_F77=no
15632allow_undefined_flag_F77=
15633always_export_symbols_F77=no
15634archive_expsym_cmds_F77=
15635export_dynamic_flag_spec_F77=
15636hardcode_direct_F77=no
15637hardcode_libdir_flag_spec_F77=
15638hardcode_libdir_flag_spec_ld_F77=
15639hardcode_libdir_separator_F77=
15640hardcode_minus_L_F77=no
15641hardcode_automatic_F77=no
15642module_cmds_F77=
15643module_expsym_cmds_F77=
15644link_all_deplibs_F77=unknown
15645old_archive_cmds_F77=$old_archive_cmds
15646no_undefined_flag_F77=
15647whole_archive_flag_spec_F77=
15648enable_shared_with_static_runtimes_F77=no
15649
15650# Source file extension for f77 test sources.
15651ac_ext=f
15652
15653# Object file extension for compiled f77 test sources.
15654objext=o
15655objext_F77=$objext
15656
15657# Code to be used in simple compile tests
15658lt_simple_compile_test_code="\
15659 subroutine t
15660 return
15661 end
15662"
15663
15664# Code to be used in simple link tests
15665lt_simple_link_test_code="\
15666 program t
15667 end
15668"
15669
15670# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15671
15672# If no C compiler was specified, use CC.
15673LTCC=${LTCC-"$CC"}
15674
15675# If no C compiler flags were specified, use CFLAGS.
15676LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15677
15678# Allow CC to be a program name with arguments.
15679compiler=$CC
15680
15681
15682# save warnings/boilerplate of simple test code
15683ac_outfile=conftest.$ac_objext
15684echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15685eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15686_lt_compiler_boilerplate=`cat conftest.err`
15687$rm conftest*
15688
15689ac_outfile=conftest.$ac_objext
15690echo "$lt_simple_link_test_code" >conftest.$ac_ext
15691eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15692_lt_linker_boilerplate=`cat conftest.err`
56efe974 15693$rm -r conftest*
b57f37fb
WP
15694
15695
15696# Allow CC to be a program name with arguments.
15697lt_save_CC="$CC"
15698CC=${F77-"f77"}
15699compiler=$CC
15700compiler_F77=$CC
15701for cc_temp in $compiler""; do
15702 case $cc_temp in
15703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15705 \-*) ;;
15706 *) break;;
15707 esac
15708done
15709cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15710
15711
f030cae8
VY
15712{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15713$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15714{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15715$as_echo "$can_build_shared" >&6; }
b57f37fb 15716
f030cae8
VY
15717{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15718$as_echo_n "checking whether to build shared libraries... " >&6; }
b57f37fb
WP
15719test "$can_build_shared" = "no" && enable_shared=no
15720
15721# On AIX, shared libraries and static libraries use the same namespace, and
15722# are all built from PIC.
15723case $host_os in
15724aix3*)
15725 test "$enable_shared" = yes && enable_static=no
15726 if test -n "$RANLIB"; then
15727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15728 postinstall_cmds='$RANLIB $lib'
15729 fi
15730 ;;
56efe974 15731aix[4-9]*)
b57f37fb
WP
15732 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15733 test "$enable_shared" = yes && enable_static=no
15734 fi
15735 ;;
15736esac
f030cae8
VY
15737{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15738$as_echo "$enable_shared" >&6; }
b57f37fb 15739
f030cae8
VY
15740{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15741$as_echo_n "checking whether to build static libraries... " >&6; }
b57f37fb
WP
15742# Make sure either enable_shared or enable_static is yes.
15743test "$enable_shared" = yes || enable_static=yes
f030cae8
VY
15744{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15745$as_echo "$enable_static" >&6; }
b57f37fb
WP
15746
15747GCC_F77="$G77"
15748LD_F77="$LD"
15749
15750lt_prog_compiler_wl_F77=
15751lt_prog_compiler_pic_F77=
15752lt_prog_compiler_static_F77=
15753
f030cae8
VY
15754{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15755$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
b57f37fb
WP
15756
15757 if test "$GCC" = yes; then
15758 lt_prog_compiler_wl_F77='-Wl,'
15759 lt_prog_compiler_static_F77='-static'
15760
15761 case $host_os in
15762 aix*)
15763 # All AIX code is PIC.
15764 if test "$host_cpu" = ia64; then
15765 # AIX 5 now supports IA64 processor
15766 lt_prog_compiler_static_F77='-Bstatic'
15767 fi
15768 ;;
15769
15770 amigaos*)
15771 # FIXME: we need at least 68020 code to build shared libraries, but
15772 # adding the `-m68020' flag to GCC prevents building anything better,
15773 # like `-m68040'.
15774 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15775 ;;
15776
15777 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15778 # PIC is the default for these OSes.
15779 ;;
15780
15781 mingw* | cygwin* | pw32* | os2*)
15782 # This hack is so that the source file can tell whether it is being
15783 # built for inclusion in a dll (and should export symbols for example).
15784 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15785 # (--disable-auto-import) libraries
15786 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15787 ;;
15788
15789 darwin* | rhapsody*)
15790 # PIC is the default on this platform
15791 # Common symbols not allowed in MH_DYLIB files
15792 lt_prog_compiler_pic_F77='-fno-common'
15793 ;;
15794
15795 interix[3-9]*)
15796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15797 # Instead, we relocate shared libraries at runtime.
15798 ;;
15799
15800 msdosdjgpp*)
15801 # Just because we use GCC doesn't mean we suddenly get shared libraries
15802 # on systems that don't support them.
15803 lt_prog_compiler_can_build_shared_F77=no
15804 enable_shared=no
15805 ;;
15806
15807 sysv4*MP*)
15808 if test -d /usr/nec; then
15809 lt_prog_compiler_pic_F77=-Kconform_pic
15810 fi
15811 ;;
15812
15813 hpux*)
15814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15815 # not for PA HP-UX.
15816 case $host_cpu in
15817 hppa*64*|ia64*)
15818 # +Z the default
15819 ;;
15820 *)
15821 lt_prog_compiler_pic_F77='-fPIC'
15822 ;;
15823 esac
15824 ;;
15825
15826 *)
15827 lt_prog_compiler_pic_F77='-fPIC'
15828 ;;
15829 esac
15830 else
15831 # PORTME Check for flag to pass linker flags through the system compiler.
15832 case $host_os in
15833 aix*)
15834 lt_prog_compiler_wl_F77='-Wl,'
15835 if test "$host_cpu" = ia64; then
15836 # AIX 5 now supports IA64 processor
15837 lt_prog_compiler_static_F77='-Bstatic'
15838 else
15839 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15840 fi
15841 ;;
15842 darwin*)
15843 # PIC is the default on this platform
15844 # Common symbols not allowed in MH_DYLIB files
15845 case $cc_basename in
15846 xlc*)
15847 lt_prog_compiler_pic_F77='-qnocommon'
15848 lt_prog_compiler_wl_F77='-Wl,'
15849 ;;
15850 esac
15851 ;;
15852
15853 mingw* | cygwin* | pw32* | os2*)
15854 # This hack is so that the source file can tell whether it is being
15855 # built for inclusion in a dll (and should export symbols for example).
15856 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15857 ;;
15858
15859 hpux9* | hpux10* | hpux11*)
15860 lt_prog_compiler_wl_F77='-Wl,'
15861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15862 # not for PA HP-UX.
15863 case $host_cpu in
15864 hppa*64*|ia64*)
15865 # +Z the default
15866 ;;
15867 *)
15868 lt_prog_compiler_pic_F77='+Z'
15869 ;;
15870 esac
15871 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15872 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15873 ;;
15874
15875 irix5* | irix6* | nonstopux*)
15876 lt_prog_compiler_wl_F77='-Wl,'
15877 # PIC (with -KPIC) is the default.
15878 lt_prog_compiler_static_F77='-non_shared'
15879 ;;
15880
15881 newsos6)
15882 lt_prog_compiler_pic_F77='-KPIC'
15883 lt_prog_compiler_static_F77='-Bstatic'
15884 ;;
15885
15886 linux* | k*bsd*-gnu)
15887 case $cc_basename in
15888 icc* | ecc*)
15889 lt_prog_compiler_wl_F77='-Wl,'
15890 lt_prog_compiler_pic_F77='-KPIC'
15891 lt_prog_compiler_static_F77='-static'
15892 ;;
15893 pgcc* | pgf77* | pgf90* | pgf95*)
15894 # Portland Group compilers (*not* the Pentium gcc compiler,
15895 # which looks to be a dead project)
15896 lt_prog_compiler_wl_F77='-Wl,'
15897 lt_prog_compiler_pic_F77='-fpic'
15898 lt_prog_compiler_static_F77='-Bstatic'
15899 ;;
15900 ccc*)
15901 lt_prog_compiler_wl_F77='-Wl,'
15902 # All Alpha code is PIC.
15903 lt_prog_compiler_static_F77='-non_shared'
15904 ;;
15905 *)
15906 case `$CC -V 2>&1 | sed 5q` in
15907 *Sun\ C*)
15908 # Sun C 5.9
15909 lt_prog_compiler_pic_F77='-KPIC'
15910 lt_prog_compiler_static_F77='-Bstatic'
15911 lt_prog_compiler_wl_F77='-Wl,'
15912 ;;
15913 *Sun\ F*)
15914 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15915 lt_prog_compiler_pic_F77='-KPIC'
15916 lt_prog_compiler_static_F77='-Bstatic'
15917 lt_prog_compiler_wl_F77=''
15918 ;;
15919 esac
15920 ;;
15921 esac
15922 ;;
15923
15924 osf3* | osf4* | osf5*)
15925 lt_prog_compiler_wl_F77='-Wl,'
15926 # All OSF/1 code is PIC.
15927 lt_prog_compiler_static_F77='-non_shared'
15928 ;;
15929
15930 rdos*)
15931 lt_prog_compiler_static_F77='-non_shared'
15932 ;;
15933
15934 solaris*)
15935 lt_prog_compiler_pic_F77='-KPIC'
15936 lt_prog_compiler_static_F77='-Bstatic'
15937 case $cc_basename in
15938 f77* | f90* | f95*)
15939 lt_prog_compiler_wl_F77='-Qoption ld ';;
15940 *)
15941 lt_prog_compiler_wl_F77='-Wl,';;
15942 esac
15943 ;;
15944
15945 sunos4*)
15946 lt_prog_compiler_wl_F77='-Qoption ld '
15947 lt_prog_compiler_pic_F77='-PIC'
15948 lt_prog_compiler_static_F77='-Bstatic'
15949 ;;
15950
15951 sysv4 | sysv4.2uw2* | sysv4.3*)
15952 lt_prog_compiler_wl_F77='-Wl,'
15953 lt_prog_compiler_pic_F77='-KPIC'
15954 lt_prog_compiler_static_F77='-Bstatic'
15955 ;;
15956
15957 sysv4*MP*)
15958 if test -d /usr/nec ;then
15959 lt_prog_compiler_pic_F77='-Kconform_pic'
15960 lt_prog_compiler_static_F77='-Bstatic'
15961 fi
15962 ;;
15963
15964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15965 lt_prog_compiler_wl_F77='-Wl,'
15966 lt_prog_compiler_pic_F77='-KPIC'
15967 lt_prog_compiler_static_F77='-Bstatic'
15968 ;;
15969
15970 unicos*)
15971 lt_prog_compiler_wl_F77='-Wl,'
15972 lt_prog_compiler_can_build_shared_F77=no
15973 ;;
15974
15975 uts4*)
15976 lt_prog_compiler_pic_F77='-pic'
15977 lt_prog_compiler_static_F77='-Bstatic'
15978 ;;
15979
15980 *)
15981 lt_prog_compiler_can_build_shared_F77=no
15982 ;;
15983 esac
15984 fi
15985
f030cae8
VY
15986{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15987$as_echo "$lt_prog_compiler_pic_F77" >&6; }
b57f37fb
WP
15988
15989#
15990# Check to make sure the PIC flag actually works.
15991#
15992if test -n "$lt_prog_compiler_pic_F77"; then
15993
f030cae8
VY
15994{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15995$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
56efe974 15996if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
f030cae8 15997 $as_echo_n "(cached) " >&6
b57f37fb 15998else
56efe974 15999 lt_cv_prog_compiler_pic_works_F77=no
b57f37fb
WP
16000 ac_outfile=conftest.$ac_objext
16001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16002 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16003 # Insert the option either (1) after the last *FLAGS variable, or
16004 # (2) before a word containing "conftest.", or (3) at the end.
16005 # Note that $ac_compile itself does not contain backslashes and begins
16006 # with a dollar sign (not a hyphen), so the echo should work correctly.
16007 # The option is referenced via a variable to avoid confusing sed.
16008 lt_compile=`echo "$ac_compile" | $SED \
16009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16011 -e 's:$: $lt_compiler_flag:'`
f030cae8 16012 (eval echo "\"\$as_me:16012: $lt_compile\"" >&5)
b57f37fb
WP
16013 (eval "$lt_compile" 2>conftest.err)
16014 ac_status=$?
16015 cat conftest.err >&5
f030cae8 16016 echo "$as_me:16016: \$? = $ac_status" >&5
b57f37fb
WP
16017 if (exit $ac_status) && test -s "$ac_outfile"; then
16018 # The compiler can only warn and ignore the option if not recognized
16019 # So say no if there are warnings other than the usual output.
16020 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 16023 lt_cv_prog_compiler_pic_works_F77=yes
b57f37fb
WP
16024 fi
16025 fi
16026 $rm conftest*
16027
16028fi
f030cae8
VY
16029{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16030$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
b57f37fb 16031
56efe974 16032if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
b57f37fb
WP
16033 case $lt_prog_compiler_pic_F77 in
16034 "" | " "*) ;;
16035 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16036 esac
16037else
16038 lt_prog_compiler_pic_F77=
16039 lt_prog_compiler_can_build_shared_F77=no
16040fi
16041
16042fi
16043case $host_os in
16044 # For platforms which do not support PIC, -DPIC is meaningless:
16045 *djgpp*)
16046 lt_prog_compiler_pic_F77=
16047 ;;
16048 *)
16049 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16050 ;;
16051esac
16052
16053#
16054# Check to make sure the static flag actually works.
16055#
16056wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
f030cae8
VY
16057{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16058$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
56efe974 16059if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
f030cae8 16060 $as_echo_n "(cached) " >&6
b57f37fb 16061else
56efe974 16062 lt_cv_prog_compiler_static_works_F77=no
b57f37fb
WP
16063 save_LDFLAGS="$LDFLAGS"
16064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16067 # The linker can only warn and ignore the option if not recognized
16068 # So say no if there are warnings
16069 if test -s conftest.err; then
16070 # Append any errors to the config.log.
16071 cat conftest.err 1>&5
16072 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16074 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 16075 lt_cv_prog_compiler_static_works_F77=yes
b57f37fb
WP
16076 fi
16077 else
56efe974 16078 lt_cv_prog_compiler_static_works_F77=yes
b57f37fb
WP
16079 fi
16080 fi
56efe974 16081 $rm -r conftest*
b57f37fb
WP
16082 LDFLAGS="$save_LDFLAGS"
16083
16084fi
f030cae8
VY
16085{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16086$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
b57f37fb 16087
56efe974 16088if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
b57f37fb
WP
16089 :
16090else
16091 lt_prog_compiler_static_F77=
16092fi
16093
16094
f030cae8
VY
16095{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b57f37fb 16097if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
f030cae8 16098 $as_echo_n "(cached) " >&6
b57f37fb
WP
16099else
16100 lt_cv_prog_compiler_c_o_F77=no
16101 $rm -r conftest 2>/dev/null
16102 mkdir conftest
16103 cd conftest
16104 mkdir out
16105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16106
16107 lt_compiler_flag="-o out/conftest2.$ac_objext"
16108 # Insert the option either (1) after the last *FLAGS variable, or
16109 # (2) before a word containing "conftest.", or (3) at the end.
16110 # Note that $ac_compile itself does not contain backslashes and begins
16111 # with a dollar sign (not a hyphen), so the echo should work correctly.
16112 lt_compile=`echo "$ac_compile" | $SED \
16113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16115 -e 's:$: $lt_compiler_flag:'`
f030cae8 16116 (eval echo "\"\$as_me:16116: $lt_compile\"" >&5)
b57f37fb
WP
16117 (eval "$lt_compile" 2>out/conftest.err)
16118 ac_status=$?
16119 cat out/conftest.err >&5
f030cae8 16120 echo "$as_me:16120: \$? = $ac_status" >&5
b57f37fb
WP
16121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16122 then
16123 # The compiler can only warn and ignore the option if not recognized
16124 # So say no if there are warnings
16125 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16128 lt_cv_prog_compiler_c_o_F77=yes
16129 fi
16130 fi
16131 chmod u+w . 2>&5
16132 $rm conftest*
16133 # SGI C++ compiler will create directory out/ii_files/ for
16134 # template instantiation
16135 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16136 $rm out/* && rmdir out
16137 cd ..
16138 rmdir conftest
16139 $rm conftest*
16140
16141fi
f030cae8
VY
16142{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16143$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
b57f37fb
WP
16144
16145
16146hard_links="nottested"
16147if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16148 # do not overwrite the value of need_locks provided by the user
f030cae8
VY
16149 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16150$as_echo_n "checking if we can lock with hard links... " >&6; }
b57f37fb
WP
16151 hard_links=yes
16152 $rm conftest*
16153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16154 touch conftest.a
16155 ln conftest.a conftest.b 2>&5 || hard_links=no
16156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
f030cae8
VY
16157 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16158$as_echo "$hard_links" >&6; }
b57f37fb 16159 if test "$hard_links" = no; then
f030cae8
VY
16160 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16161$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
b57f37fb
WP
16162 need_locks=warn
16163 fi
16164else
16165 need_locks=no
16166fi
16167
f030cae8
VY
16168{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16169$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
b57f37fb
WP
16170
16171 runpath_var=
16172 allow_undefined_flag_F77=
16173 enable_shared_with_static_runtimes_F77=no
16174 archive_cmds_F77=
16175 archive_expsym_cmds_F77=
16176 old_archive_From_new_cmds_F77=
16177 old_archive_from_expsyms_cmds_F77=
16178 export_dynamic_flag_spec_F77=
16179 whole_archive_flag_spec_F77=
16180 thread_safe_flag_spec_F77=
16181 hardcode_libdir_flag_spec_F77=
16182 hardcode_libdir_flag_spec_ld_F77=
16183 hardcode_libdir_separator_F77=
16184 hardcode_direct_F77=no
16185 hardcode_minus_L_F77=no
16186 hardcode_shlibpath_var_F77=unsupported
16187 link_all_deplibs_F77=unknown
16188 hardcode_automatic_F77=no
16189 module_cmds_F77=
16190 module_expsym_cmds_F77=
16191 always_export_symbols_F77=no
16192 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16193 # include_expsyms should be a list of space-separated symbols to be *always*
16194 # included in the symbol list
16195 include_expsyms_F77=
16196 # exclude_expsyms can be an extended regexp of symbols to exclude
16197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16199 # as well as any symbol that contains `d'.
56efe974 16200 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
16201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16202 # platforms (ab)use it in PIC code, but their linkers get confused if
16203 # the symbol is explicitly referenced. Since portable code cannot
16204 # rely on this symbol name, it's probably fine to never include it in
16205 # preloaded symbol tables.
56efe974 16206 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
16207 extract_expsyms_cmds=
16208 # Just being paranoid about ensuring that cc_basename is set.
16209 for cc_temp in $compiler""; do
16210 case $cc_temp in
16211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16213 \-*) ;;
16214 *) break;;
16215 esac
16216done
16217cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16218
16219 case $host_os in
16220 cygwin* | mingw* | pw32*)
16221 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16222 # When not using gcc, we currently assume that we are using
16223 # Microsoft Visual C++.
16224 if test "$GCC" != yes; then
16225 with_gnu_ld=no
16226 fi
16227 ;;
16228 interix*)
16229 # we just hope/assume this is gcc and not c89 (= MSVC++)
16230 with_gnu_ld=yes
16231 ;;
16232 openbsd*)
16233 with_gnu_ld=no
16234 ;;
16235 esac
16236
16237 ld_shlibs_F77=yes
16238 if test "$with_gnu_ld" = yes; then
16239 # If archive_cmds runs LD, not CC, wlarc should be empty
16240 wlarc='${wl}'
16241
16242 # Set some defaults for GNU ld with shared library support. These
16243 # are reset later if shared libraries are not supported. Putting them
16244 # here allows them to be overridden if necessary.
16245 runpath_var=LD_RUN_PATH
16246 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16247 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16248 # ancient GNU ld didn't support --whole-archive et. al.
16249 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16250 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16251 else
16252 whole_archive_flag_spec_F77=
16253 fi
16254 supports_anon_versioning=no
16255 case `$LD -v 2>/dev/null` in
16256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16259 *\ 2.11.*) ;; # other 2.11 versions
16260 *) supports_anon_versioning=yes ;;
16261 esac
16262
16263 # See if GNU ld supports shared libraries.
16264 case $host_os in
56efe974 16265 aix[3-9]*)
b57f37fb
WP
16266 # On AIX/PPC, the GNU linker is very broken
16267 if test "$host_cpu" != ia64; then
16268 ld_shlibs_F77=no
16269 cat <<EOF 1>&2
16270
16271*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16272*** to be unable to reliably create shared libraries on AIX.
16273*** Therefore, libtool is disabling shared libraries support. If you
16274*** really care for shared libraries, you may want to modify your PATH
16275*** so that a non-GNU linker is found, and then restart.
16276
16277EOF
16278 fi
16279 ;;
16280
16281 amigaos*)
16282 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16283 hardcode_libdir_flag_spec_F77='-L$libdir'
16284 hardcode_minus_L_F77=yes
16285
16286 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16287 # that the semantics of dynamic libraries on AmigaOS, at least up
16288 # to version 4, is to share data among multiple programs linked
16289 # with the same dynamic library. Since this doesn't match the
16290 # behavior of shared libraries on other platforms, we can't use
16291 # them.
16292 ld_shlibs_F77=no
16293 ;;
16294
16295 beos*)
16296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16297 allow_undefined_flag_F77=unsupported
16298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16299 # support --undefined. This deserves some investigation. FIXME
16300 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16301 else
16302 ld_shlibs_F77=no
16303 fi
16304 ;;
16305
16306 cygwin* | mingw* | pw32*)
16307 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16308 # as there is no search path for DLLs.
16309 hardcode_libdir_flag_spec_F77='-L$libdir'
16310 allow_undefined_flag_F77=unsupported
16311 always_export_symbols_F77=no
16312 enable_shared_with_static_runtimes_F77=yes
16313 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16314
16315 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16316 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16317 # If the export-symbols file already is a .def file (1st line
16318 # is EXPORTS), use it as is; otherwise, prepend...
16319 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16320 cp $export_symbols $output_objdir/$soname.def;
16321 else
16322 echo EXPORTS > $output_objdir/$soname.def;
16323 cat $export_symbols >> $output_objdir/$soname.def;
16324 fi~
16325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16326 else
16327 ld_shlibs_F77=no
16328 fi
16329 ;;
16330
16331 interix[3-9]*)
16332 hardcode_direct_F77=no
16333 hardcode_shlibpath_var_F77=no
16334 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16335 export_dynamic_flag_spec_F77='${wl}-E'
16336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16337 # Instead, shared libraries are loaded at an image base (0x10000000 by
16338 # default) and relocated if they conflict, which is a slow very memory
16339 # consuming and fragmenting process. To avoid this, we pick a random,
16340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16342 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16343 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16344 ;;
16345
16346 gnu* | linux* | k*bsd*-gnu)
16347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16348 tmp_addflag=
16349 case $cc_basename,$host_cpu in
16350 pgcc*) # Portland Group C compiler
16351 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16352 tmp_addflag=' $pic_flag'
16353 ;;
16354 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16355 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16356 tmp_addflag=' $pic_flag -Mnomain' ;;
16357 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16358 tmp_addflag=' -i_dynamic' ;;
16359 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16360 tmp_addflag=' -i_dynamic -nofor_main' ;;
16361 ifc* | ifort*) # Intel Fortran compiler
16362 tmp_addflag=' -nofor_main' ;;
16363 esac
16364 case `$CC -V 2>&1 | sed 5q` in
16365 *Sun\ C*) # Sun C 5.9
16366 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16367 tmp_sharedflag='-G' ;;
16368 *Sun\ F*) # Sun Fortran 8.3
16369 tmp_sharedflag='-G' ;;
16370 *)
16371 tmp_sharedflag='-shared' ;;
16372 esac
16373 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16374
16375 if test $supports_anon_versioning = yes; then
16376 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16378 $echo "local: *; };" >> $output_objdir/$libname.ver~
16379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16380 fi
16381 link_all_deplibs_F77=no
16382 else
16383 ld_shlibs_F77=no
16384 fi
16385 ;;
16386
16387 netbsd* | netbsdelf*-gnu)
16388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16389 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16390 wlarc=
16391 else
16392 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16394 fi
16395 ;;
16396
16397 solaris*)
16398 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16399 ld_shlibs_F77=no
16400 cat <<EOF 1>&2
16401
16402*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16403*** create shared libraries on Solaris systems. Therefore, libtool
16404*** is disabling shared libraries support. We urge you to upgrade GNU
16405*** binutils to release 2.9.1 or newer. Another option is to modify
16406*** your PATH or compiler configuration so that the native linker is
16407*** used, and then restart.
16408
16409EOF
16410 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16411 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16412 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16413 else
16414 ld_shlibs_F77=no
16415 fi
16416 ;;
16417
16418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16419 case `$LD -v 2>&1` in
16420 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16421 ld_shlibs_F77=no
16422 cat <<_LT_EOF 1>&2
16423
16424*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16425*** reliably create shared libraries on SCO systems. Therefore, libtool
16426*** is disabling shared libraries support. We urge you to upgrade GNU
16427*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16428*** your PATH or compiler configuration so that the native linker is
16429*** used, and then restart.
16430
16431_LT_EOF
16432 ;;
16433 *)
16434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16435 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16436 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16437 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16438 else
16439 ld_shlibs_F77=no
16440 fi
16441 ;;
16442 esac
16443 ;;
16444
16445 sunos4*)
16446 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16447 wlarc=
16448 hardcode_direct_F77=yes
16449 hardcode_shlibpath_var_F77=no
16450 ;;
16451
16452 *)
16453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16454 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16456 else
16457 ld_shlibs_F77=no
16458 fi
16459 ;;
16460 esac
16461
16462 if test "$ld_shlibs_F77" = no; then
16463 runpath_var=
16464 hardcode_libdir_flag_spec_F77=
16465 export_dynamic_flag_spec_F77=
16466 whole_archive_flag_spec_F77=
16467 fi
16468 else
16469 # PORTME fill in a description of your system's linker (not GNU ld)
16470 case $host_os in
16471 aix3*)
16472 allow_undefined_flag_F77=unsupported
16473 always_export_symbols_F77=yes
16474 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16475 # Note: this linker hardcodes the directories in LIBPATH if there
16476 # are no directories specified by -L.
16477 hardcode_minus_L_F77=yes
16478 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16479 # Neither direct hardcoding nor static linking is supported with a
16480 # broken collect2.
16481 hardcode_direct_F77=unsupported
16482 fi
16483 ;;
16484
56efe974 16485 aix[4-9]*)
b57f37fb
WP
16486 if test "$host_cpu" = ia64; then
16487 # On IA64, the linker does run time linking by default, so we don't
16488 # have to do anything special.
16489 aix_use_runtimelinking=no
16490 exp_sym_flag='-Bexport'
16491 no_entry_flag=""
16492 else
16493 # If we're using GNU nm, then we don't want the "-C" option.
16494 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16495 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16496 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16497 else
16498 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16499 fi
16500 aix_use_runtimelinking=no
16501
16502 # Test if we are trying to use run time linking or normal
16503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16504 # need to do runtime linking.
56efe974 16505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
16506 for ld_flag in $LDFLAGS; do
16507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16508 aix_use_runtimelinking=yes
16509 break
16510 fi
16511 done
16512 ;;
16513 esac
16514
16515 exp_sym_flag='-bexport'
16516 no_entry_flag='-bnoentry'
16517 fi
16518
16519 # When large executables or shared objects are built, AIX ld can
16520 # have problems creating the table of contents. If linking a library
16521 # or program results in "error TOC overflow" add -mminimal-toc to
16522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16524
16525 archive_cmds_F77=''
16526 hardcode_direct_F77=yes
16527 hardcode_libdir_separator_F77=':'
16528 link_all_deplibs_F77=yes
16529
16530 if test "$GCC" = yes; then
16531 case $host_os in aix4.[012]|aix4.[012].*)
16532 # We only want to do this on AIX 4.2 and lower, the check
16533 # below for broken collect2 doesn't work under 4.3+
16534 collect2name=`${CC} -print-prog-name=collect2`
16535 if test -f "$collect2name" && \
16536 strings "$collect2name" | grep resolve_lib_name >/dev/null
16537 then
16538 # We have reworked collect2
16539 :
16540 else
16541 # We have old collect2
16542 hardcode_direct_F77=unsupported
16543 # It fails to find uninstalled libraries when the uninstalled
16544 # path is not listed in the libpath. Setting hardcode_minus_L
16545 # to unsupported forces relinking
16546 hardcode_minus_L_F77=yes
16547 hardcode_libdir_flag_spec_F77='-L$libdir'
16548 hardcode_libdir_separator_F77=
16549 fi
16550 ;;
16551 esac
16552 shared_flag='-shared'
16553 if test "$aix_use_runtimelinking" = yes; then
16554 shared_flag="$shared_flag "'${wl}-G'
16555 fi
16556 else
16557 # not using gcc
16558 if test "$host_cpu" = ia64; then
16559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16560 # chokes on -Wl,-G. The following line is correct:
16561 shared_flag='-G'
16562 else
16563 if test "$aix_use_runtimelinking" = yes; then
16564 shared_flag='${wl}-G'
16565 else
16566 shared_flag='${wl}-bM:SRE'
16567 fi
16568 fi
16569 fi
16570
16571 # It seems that -bexpall does not export symbols beginning with
16572 # underscore (_), so it is better to generate a list of symbols to export.
16573 always_export_symbols_F77=yes
16574 if test "$aix_use_runtimelinking" = yes; then
16575 # Warning - without using the other runtime loading flags (-brtl),
16576 # -berok will link without error, but may produce a broken library.
16577 allow_undefined_flag_F77='-berok'
16578 # Determine the default libpath from the value encoded in an empty executable.
16579 cat >conftest.$ac_ext <<_ACEOF
16580 program main
16581
16582 end
16583_ACEOF
16584rm -f conftest.$ac_objext conftest$ac_exeext
16585if { (ac_try="$ac_link"
16586case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589esac
f030cae8
VY
16590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16591$as_echo "$ac_try_echo") >&5
b57f37fb
WP
16592 (eval "$ac_link") 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
f030cae8 16597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
16598 (exit $ac_status); } && {
16599 test -z "$ac_f77_werror_flag" ||
16600 test ! -s conftest.err
f030cae8
VY
16601 } && test -s conftest$ac_exeext && {
16602 test "$cross_compiling" = yes ||
16603 $as_test_x conftest$ac_exeext
16604 }; then
b57f37fb
WP
16605
16606lt_aix_libpath_sed='
16607 /Import File Strings/,/^$/ {
16608 /^0/ {
16609 s/^0 *\(.*\)$/\1/
16610 p
16611 }
16612 }'
16613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16614# Check for a 64-bit object if we didn't find anything.
16615if test -z "$aix_libpath"; then
16616 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16617fi
16618else
f030cae8 16619 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622
16623fi
16624
f030cae8 16625rm -rf conftest.dSYM
b57f37fb
WP
16626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16627 conftest$ac_exeext conftest.$ac_ext
16628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16629
16630 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16631 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16632 else
16633 if test "$host_cpu" = ia64; then
16634 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16635 allow_undefined_flag_F77="-z nodefs"
16636 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16637 else
16638 # Determine the default libpath from the value encoded in an empty executable.
16639 cat >conftest.$ac_ext <<_ACEOF
16640 program main
16641
16642 end
16643_ACEOF
16644rm -f conftest.$ac_objext conftest$ac_exeext
16645if { (ac_try="$ac_link"
16646case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
f030cae8
VY
16650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16651$as_echo "$ac_try_echo") >&5
b57f37fb
WP
16652 (eval "$ac_link") 2>conftest.er1
16653 ac_status=$?
16654 grep -v '^ *+' conftest.er1 >conftest.err
16655 rm -f conftest.er1
16656 cat conftest.err >&5
f030cae8 16657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
16658 (exit $ac_status); } && {
16659 test -z "$ac_f77_werror_flag" ||
16660 test ! -s conftest.err
f030cae8
VY
16661 } && test -s conftest$ac_exeext && {
16662 test "$cross_compiling" = yes ||
16663 $as_test_x conftest$ac_exeext
16664 }; then
b57f37fb
WP
16665
16666lt_aix_libpath_sed='
16667 /Import File Strings/,/^$/ {
16668 /^0/ {
16669 s/^0 *\(.*\)$/\1/
16670 p
16671 }
16672 }'
16673aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16674# Check for a 64-bit object if we didn't find anything.
16675if test -z "$aix_libpath"; then
16676 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16677fi
16678else
f030cae8 16679 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
16680sed 's/^/| /' conftest.$ac_ext >&5
16681
16682
16683fi
16684
f030cae8 16685rm -rf conftest.dSYM
b57f37fb
WP
16686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16687 conftest$ac_exeext conftest.$ac_ext
16688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16689
16690 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16691 # Warning - without using the other run time loading flags,
16692 # -berok will link without error, but may produce a broken library.
16693 no_undefined_flag_F77=' ${wl}-bernotok'
16694 allow_undefined_flag_F77=' ${wl}-berok'
16695 # Exported symbols can be pulled into shared objects from archives
16696 whole_archive_flag_spec_F77='$convenience'
16697 archive_cmds_need_lc_F77=yes
16698 # This is similar to how AIX traditionally builds its shared libraries.
16699 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16700 fi
16701 fi
16702 ;;
16703
16704 amigaos*)
16705 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16706 hardcode_libdir_flag_spec_F77='-L$libdir'
16707 hardcode_minus_L_F77=yes
16708 # see comment about different semantics on the GNU ld section
16709 ld_shlibs_F77=no
16710 ;;
16711
16712 bsdi[45]*)
16713 export_dynamic_flag_spec_F77=-rdynamic
16714 ;;
16715
16716 cygwin* | mingw* | pw32*)
16717 # When not using gcc, we currently assume that we are using
16718 # Microsoft Visual C++.
16719 # hardcode_libdir_flag_spec is actually meaningless, as there is
16720 # no search path for DLLs.
16721 hardcode_libdir_flag_spec_F77=' '
16722 allow_undefined_flag_F77=unsupported
16723 # Tell ltmain to make .lib files, not .a files.
16724 libext=lib
16725 # Tell ltmain to make .dll files, not .so files.
16726 shrext_cmds=".dll"
16727 # FIXME: Setting linknames here is a bad hack.
16728 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16729 # The linker will automatically build a .lib file if we build a DLL.
16730 old_archive_From_new_cmds_F77='true'
16731 # FIXME: Should let the user specify the lib program.
16732 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16733 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16734 enable_shared_with_static_runtimes_F77=yes
16735 ;;
16736
16737 darwin* | rhapsody*)
16738 case $host_os in
16739 rhapsody* | darwin1.[012])
16740 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16741 ;;
16742 *) # Darwin 1.3 on
16743 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16744 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16745 else
16746 case ${MACOSX_DEPLOYMENT_TARGET} in
16747 10.[012])
16748 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16749 ;;
16750 10.*)
16751 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16752 ;;
16753 esac
16754 fi
16755 ;;
16756 esac
16757 archive_cmds_need_lc_F77=no
16758 hardcode_direct_F77=no
16759 hardcode_automatic_F77=yes
16760 hardcode_shlibpath_var_F77=unsupported
16761 whole_archive_flag_spec_F77=''
16762 link_all_deplibs_F77=yes
16763 if test "$GCC" = yes ; then
16764 output_verbose_link_cmd='echo'
56efe974
WP
16765 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16766 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16767 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16768 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
16769 else
16770 case $cc_basename in
16771 xlc*)
16772 output_verbose_link_cmd='echo'
16773 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16774 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16776 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16777 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16778 ;;
16779 *)
16780 ld_shlibs_F77=no
16781 ;;
16782 esac
16783 fi
16784 ;;
16785
16786 dgux*)
16787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16788 hardcode_libdir_flag_spec_F77='-L$libdir'
16789 hardcode_shlibpath_var_F77=no
16790 ;;
16791
16792 freebsd1*)
16793 ld_shlibs_F77=no
16794 ;;
16795
16796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16797 # support. Future versions do this automatically, but an explicit c++rt0.o
16798 # does not break anything, and helps significantly (at the cost of a little
16799 # extra space).
16800 freebsd2.2*)
16801 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16802 hardcode_libdir_flag_spec_F77='-R$libdir'
16803 hardcode_direct_F77=yes
16804 hardcode_shlibpath_var_F77=no
16805 ;;
16806
16807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16808 freebsd2*)
16809 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16810 hardcode_direct_F77=yes
16811 hardcode_minus_L_F77=yes
16812 hardcode_shlibpath_var_F77=no
16813 ;;
16814
16815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16816 freebsd* | dragonfly*)
16817 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16818 hardcode_libdir_flag_spec_F77='-R$libdir'
16819 hardcode_direct_F77=yes
16820 hardcode_shlibpath_var_F77=no
16821 ;;
16822
16823 hpux9*)
16824 if test "$GCC" = yes; then
16825 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16826 else
16827 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16828 fi
16829 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16830 hardcode_libdir_separator_F77=:
16831 hardcode_direct_F77=yes
16832
16833 # hardcode_minus_L: Not really in the search PATH,
16834 # but as the default location of the library.
16835 hardcode_minus_L_F77=yes
16836 export_dynamic_flag_spec_F77='${wl}-E'
16837 ;;
16838
16839 hpux10*)
16840 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16841 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16842 else
16843 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16844 fi
16845 if test "$with_gnu_ld" = no; then
16846 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16847 hardcode_libdir_separator_F77=:
16848
16849 hardcode_direct_F77=yes
16850 export_dynamic_flag_spec_F77='${wl}-E'
16851
16852 # hardcode_minus_L: Not really in the search PATH,
16853 # but as the default location of the library.
16854 hardcode_minus_L_F77=yes
16855 fi
16856 ;;
16857
16858 hpux11*)
16859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16860 case $host_cpu in
16861 hppa*64*)
16862 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16863 ;;
16864 ia64*)
16865 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16866 ;;
16867 *)
16868 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16869 ;;
16870 esac
16871 else
16872 case $host_cpu in
16873 hppa*64*)
16874 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16875 ;;
16876 ia64*)
16877 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16878 ;;
16879 *)
16880 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16881 ;;
16882 esac
16883 fi
16884 if test "$with_gnu_ld" = no; then
16885 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16886 hardcode_libdir_separator_F77=:
16887
16888 case $host_cpu in
16889 hppa*64*|ia64*)
16890 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16891 hardcode_direct_F77=no
16892 hardcode_shlibpath_var_F77=no
16893 ;;
16894 *)
16895 hardcode_direct_F77=yes
16896 export_dynamic_flag_spec_F77='${wl}-E'
16897
16898 # hardcode_minus_L: Not really in the search PATH,
16899 # but as the default location of the library.
16900 hardcode_minus_L_F77=yes
16901 ;;
16902 esac
16903 fi
16904 ;;
16905
16906 irix5* | irix6* | nonstopux*)
16907 if test "$GCC" = yes; then
16908 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16909 else
16910 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16911 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16912 fi
16913 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16914 hardcode_libdir_separator_F77=:
16915 link_all_deplibs_F77=yes
16916 ;;
16917
16918 netbsd* | netbsdelf*-gnu)
16919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16920 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16921 else
16922 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16923 fi
16924 hardcode_libdir_flag_spec_F77='-R$libdir'
16925 hardcode_direct_F77=yes
16926 hardcode_shlibpath_var_F77=no
16927 ;;
16928
16929 newsos6)
16930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931 hardcode_direct_F77=yes
16932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16933 hardcode_libdir_separator_F77=:
16934 hardcode_shlibpath_var_F77=no
16935 ;;
16936
16937 openbsd*)
16938 if test -f /usr/libexec/ld.so; then
16939 hardcode_direct_F77=yes
16940 hardcode_shlibpath_var_F77=no
16941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16942 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16943 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16944 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16945 export_dynamic_flag_spec_F77='${wl}-E'
16946 else
16947 case $host_os in
16948 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16949 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16950 hardcode_libdir_flag_spec_F77='-R$libdir'
16951 ;;
16952 *)
16953 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16954 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16955 ;;
16956 esac
16957 fi
16958 else
16959 ld_shlibs_F77=no
16960 fi
16961 ;;
16962
16963 os2*)
16964 hardcode_libdir_flag_spec_F77='-L$libdir'
16965 hardcode_minus_L_F77=yes
16966 allow_undefined_flag_F77=unsupported
16967 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16968 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16969 ;;
16970
16971 osf3*)
16972 if test "$GCC" = yes; then
16973 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16974 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16975 else
16976 allow_undefined_flag_F77=' -expect_unresolved \*'
16977 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16978 fi
16979 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16980 hardcode_libdir_separator_F77=:
16981 ;;
16982
16983 osf4* | osf5*) # as osf3* with the addition of -msym flag
16984 if test "$GCC" = yes; then
16985 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16986 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16987 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16988 else
16989 allow_undefined_flag_F77=' -expect_unresolved \*'
16990 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16991 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16992 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16993
16994 # Both c and cxx compiler support -rpath directly
16995 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16996 fi
16997 hardcode_libdir_separator_F77=:
16998 ;;
16999
17000 solaris*)
17001 no_undefined_flag_F77=' -z text'
17002 if test "$GCC" = yes; then
17003 wlarc='${wl}'
17004 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17005 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17006 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17007 else
17008 wlarc=''
17009 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17012 fi
17013 hardcode_libdir_flag_spec_F77='-R$libdir'
17014 hardcode_shlibpath_var_F77=no
17015 case $host_os in
17016 solaris2.[0-5] | solaris2.[0-5].*) ;;
17017 *)
17018 # The compiler driver will combine and reorder linker options,
17019 # but understands `-z linker_flag'. GCC discards it without `$wl',
17020 # but is careful enough not to reorder.
17021 # Supported since Solaris 2.6 (maybe 2.5.1?)
17022 if test "$GCC" = yes; then
17023 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17024 else
17025 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17026 fi
17027 ;;
17028 esac
17029 link_all_deplibs_F77=yes
17030 ;;
17031
17032 sunos4*)
17033 if test "x$host_vendor" = xsequent; then
17034 # Use $CC to link under sequent, because it throws in some extra .o
17035 # files that make .init and .fini sections work.
17036 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17037 else
17038 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17039 fi
17040 hardcode_libdir_flag_spec_F77='-L$libdir'
17041 hardcode_direct_F77=yes
17042 hardcode_minus_L_F77=yes
17043 hardcode_shlibpath_var_F77=no
17044 ;;
17045
17046 sysv4)
17047 case $host_vendor in
17048 sni)
17049 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17050 hardcode_direct_F77=yes # is this really true???
17051 ;;
17052 siemens)
17053 ## LD is ld it makes a PLAMLIB
17054 ## CC just makes a GrossModule.
17055 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17056 reload_cmds_F77='$CC -r -o $output$reload_objs'
17057 hardcode_direct_F77=no
17058 ;;
17059 motorola)
17060 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17061 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17062 ;;
17063 esac
17064 runpath_var='LD_RUN_PATH'
17065 hardcode_shlibpath_var_F77=no
17066 ;;
17067
17068 sysv4.3*)
17069 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070 hardcode_shlibpath_var_F77=no
17071 export_dynamic_flag_spec_F77='-Bexport'
17072 ;;
17073
17074 sysv4*MP*)
17075 if test -d /usr/nec; then
17076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077 hardcode_shlibpath_var_F77=no
17078 runpath_var=LD_RUN_PATH
17079 hardcode_runpath_var=yes
17080 ld_shlibs_F77=yes
17081 fi
17082 ;;
17083
17084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17085 no_undefined_flag_F77='${wl}-z,text'
17086 archive_cmds_need_lc_F77=no
17087 hardcode_shlibpath_var_F77=no
17088 runpath_var='LD_RUN_PATH'
17089
17090 if test "$GCC" = yes; then
17091 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17092 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17093 else
17094 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17095 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17096 fi
17097 ;;
17098
17099 sysv5* | sco3.2v5* | sco5v6*)
17100 # Note: We can NOT use -z defs as we might desire, because we do not
17101 # link with -lc, and that would cause any symbols used from libc to
17102 # always be unresolved, which means just about no library would
17103 # ever link correctly. If we're not using GNU ld we use -z text
17104 # though, which does catch some bad symbols but isn't as heavy-handed
17105 # as -z defs.
17106 no_undefined_flag_F77='${wl}-z,text'
17107 allow_undefined_flag_F77='${wl}-z,nodefs'
17108 archive_cmds_need_lc_F77=no
17109 hardcode_shlibpath_var_F77=no
17110 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17111 hardcode_libdir_separator_F77=':'
17112 link_all_deplibs_F77=yes
17113 export_dynamic_flag_spec_F77='${wl}-Bexport'
17114 runpath_var='LD_RUN_PATH'
17115
17116 if test "$GCC" = yes; then
17117 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17119 else
17120 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17121 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17122 fi
17123 ;;
17124
17125 uts4*)
17126 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17127 hardcode_libdir_flag_spec_F77='-L$libdir'
17128 hardcode_shlibpath_var_F77=no
17129 ;;
17130
17131 *)
17132 ld_shlibs_F77=no
17133 ;;
17134 esac
17135 fi
17136
f030cae8
VY
17137{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17138$as_echo "$ld_shlibs_F77" >&6; }
b57f37fb
WP
17139test "$ld_shlibs_F77" = no && can_build_shared=no
17140
17141#
17142# Do we need to explicitly link libc?
17143#
17144case "x$archive_cmds_need_lc_F77" in
17145x|xyes)
17146 # Assume -lc should be added
17147 archive_cmds_need_lc_F77=yes
17148
17149 if test "$enable_shared" = yes && test "$GCC" = yes; then
17150 case $archive_cmds_F77 in
17151 *'~'*)
17152 # FIXME: we may have to deal with multi-command sequences.
17153 ;;
17154 '$CC '*)
17155 # Test whether the compiler implicitly links with -lc since on some
17156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17157 # to ld, don't add -lc before -lgcc.
f030cae8
VY
17158 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17159$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b57f37fb
WP
17160 $rm conftest*
17161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17162
17163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17164 (eval $ac_compile) 2>&5
17165 ac_status=$?
f030cae8 17166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
17167 (exit $ac_status); } 2>conftest.err; then
17168 soname=conftest
17169 lib=conftest
17170 libobjs=conftest.$ac_objext
17171 deplibs=
17172 wl=$lt_prog_compiler_wl_F77
17173 pic_flag=$lt_prog_compiler_pic_F77
17174 compiler_flags=-v
17175 linker_flags=-v
17176 verstring=
17177 output_objdir=.
17178 libname=conftest
17179 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17180 allow_undefined_flag_F77=
17181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17182 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17183 ac_status=$?
f030cae8 17184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
17185 (exit $ac_status); }
17186 then
17187 archive_cmds_need_lc_F77=no
17188 else
17189 archive_cmds_need_lc_F77=yes
17190 fi
17191 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17192 else
17193 cat conftest.err 1>&5
17194 fi
17195 $rm conftest*
f030cae8
VY
17196 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17197$as_echo "$archive_cmds_need_lc_F77" >&6; }
b57f37fb
WP
17198 ;;
17199 esac
17200 fi
17201 ;;
17202esac
17203
f030cae8
VY
17204{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17205$as_echo_n "checking dynamic linker characteristics... " >&6; }
b57f37fb
WP
17206library_names_spec=
17207libname_spec='lib$name'
17208soname_spec=
17209shrext_cmds=".so"
17210postinstall_cmds=
17211postuninstall_cmds=
17212finish_cmds=
17213finish_eval=
17214shlibpath_var=
17215shlibpath_overrides_runpath=unknown
17216version_type=none
17217dynamic_linker="$host_os ld.so"
17218sys_lib_dlsearch_path_spec="/lib /usr/lib"
17219
17220need_lib_prefix=unknown
17221hardcode_into_libs=no
17222
17223# when you set need_version to no, make sure it does not cause -set_version
17224# flags to be left without arguments
17225need_version=unknown
17226
17227case $host_os in
17228aix3*)
17229 version_type=linux
17230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17231 shlibpath_var=LIBPATH
17232
17233 # AIX 3 has no versioning support, so we append a major version to the name.
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 ;;
17236
56efe974 17237aix[4-9]*)
b57f37fb
WP
17238 version_type=linux
17239 need_lib_prefix=no
17240 need_version=no
17241 hardcode_into_libs=yes
17242 if test "$host_cpu" = ia64; then
17243 # AIX 5 supports IA64
17244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 else
17247 # With GCC up to 2.95.x, collect2 would create an import file
17248 # for dependence libraries. The import file would start with
17249 # the line `#! .'. This would cause the generated library to
17250 # depend on `.', always an invalid library. This was fixed in
17251 # development snapshots of GCC prior to 3.0.
17252 case $host_os in
17253 aix4 | aix4.[01] | aix4.[01].*)
17254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17255 echo ' yes '
17256 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17257 :
17258 else
17259 can_build_shared=no
17260 fi
17261 ;;
17262 esac
17263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17264 # soname into executable. Probably we can add versioning support to
17265 # collect2, so additional links can be useful in future.
17266 if test "$aix_use_runtimelinking" = yes; then
17267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17268 # instead of lib<name>.a to let people know that these are not
17269 # typical AIX shared libraries.
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 else
17272 # We preserve .a as extension for shared libraries through AIX4.2
17273 # and later when we are not doing run time linking.
17274 library_names_spec='${libname}${release}.a $libname.a'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 fi
17277 shlibpath_var=LIBPATH
17278 fi
17279 ;;
17280
17281amigaos*)
17282 library_names_spec='$libname.ixlibrary $libname.a'
17283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17284 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17285 ;;
17286
17287beos*)
17288 library_names_spec='${libname}${shared_ext}'
17289 dynamic_linker="$host_os ld.so"
17290 shlibpath_var=LIBRARY_PATH
17291 ;;
17292
17293bsdi[45]*)
17294 version_type=linux
17295 need_version=no
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17302 # the default ld.so.conf also contains /usr/contrib/lib and
17303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17304 # libtool to hard-code these into programs
17305 ;;
17306
17307cygwin* | mingw* | pw32*)
17308 version_type=windows
17309 shrext_cmds=".dll"
17310 need_version=no
17311 need_lib_prefix=no
17312
17313 case $GCC,$host_os in
17314 yes,cygwin* | yes,mingw* | yes,pw32*)
17315 library_names_spec='$libname.dll.a'
17316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17317 postinstall_cmds='base_file=`basename \${file}`~
17318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17319 dldir=$destdir/`dirname \$dlpath`~
17320 test -d \$dldir || mkdir -p \$dldir~
17321 $install_prog $dir/$dlname \$dldir/$dlname~
17322 chmod a+x \$dldir/$dlname'
17323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17324 dlpath=$dir/\$dldll~
17325 $rm \$dlpath'
17326 shlibpath_overrides_runpath=yes
17327
17328 case $host_os in
17329 cygwin*)
17330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17332 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17333 ;;
17334 mingw*)
17335 # MinGW DLLs use traditional 'lib' prefix
17336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17337 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17338 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17339 # It is most probably a Windows format PATH printed by
17340 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17341 # path with ; separators, and with drive letters. We can handle the
17342 # drive letters (cygwin fileutils understands them), so leave them,
17343 # especially as we might pass files found there to a mingw objdump,
17344 # which wouldn't understand a cygwinified path. Ahh.
17345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17346 else
17347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17348 fi
17349 ;;
17350 pw32*)
17351 # pw32 DLLs use 'pw' prefix rather than 'lib'
17352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17353 ;;
17354 esac
17355 ;;
17356
17357 *)
17358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17359 ;;
17360 esac
17361 dynamic_linker='Win32 ld.exe'
17362 # FIXME: first we should search . and the directory the executable is in
17363 shlibpath_var=PATH
17364 ;;
17365
17366darwin* | rhapsody*)
17367 dynamic_linker="$host_os dyld"
17368 version_type=darwin
17369 need_lib_prefix=no
17370 need_version=no
17371 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17372 soname_spec='${libname}${release}${major}$shared_ext'
17373 shlibpath_overrides_runpath=yes
17374 shlibpath_var=DYLD_LIBRARY_PATH
17375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17376
17377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17378 ;;
17379
17380dgux*)
17381 version_type=linux
17382 need_lib_prefix=no
17383 need_version=no
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17385 soname_spec='${libname}${release}${shared_ext}$major'
17386 shlibpath_var=LD_LIBRARY_PATH
17387 ;;
17388
17389freebsd1*)
17390 dynamic_linker=no
17391 ;;
17392
17393freebsd* | dragonfly*)
17394 # DragonFly does not have aout. When/if they implement a new
17395 # versioning mechanism, adjust this.
17396 if test -x /usr/bin/objformat; then
17397 objformat=`/usr/bin/objformat`
17398 else
17399 case $host_os in
17400 freebsd[123]*) objformat=aout ;;
17401 *) objformat=elf ;;
17402 esac
17403 fi
17404 version_type=freebsd-$objformat
17405 case $version_type in
17406 freebsd-elf*)
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17408 need_version=no
17409 need_lib_prefix=no
17410 ;;
17411 freebsd-*)
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17413 need_version=yes
17414 ;;
17415 esac
17416 shlibpath_var=LD_LIBRARY_PATH
17417 case $host_os in
17418 freebsd2*)
17419 shlibpath_overrides_runpath=yes
17420 ;;
17421 freebsd3.[01]* | freebsdelf3.[01]*)
17422 shlibpath_overrides_runpath=yes
17423 hardcode_into_libs=yes
17424 ;;
17425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17427 shlibpath_overrides_runpath=no
17428 hardcode_into_libs=yes
17429 ;;
17430 *) # from 4.6 on, and DragonFly
17431 shlibpath_overrides_runpath=yes
17432 hardcode_into_libs=yes
17433 ;;
17434 esac
17435 ;;
17436
17437gnu*)
17438 version_type=linux
17439 need_lib_prefix=no
17440 need_version=no
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 hardcode_into_libs=yes
17445 ;;
17446
17447hpux9* | hpux10* | hpux11*)
17448 # Give a soname corresponding to the major version so that dld.sl refuses to
17449 # link against other versions.
17450 version_type=sunos
17451 need_lib_prefix=no
17452 need_version=no
17453 case $host_cpu in
17454 ia64*)
17455 shrext_cmds='.so'
17456 hardcode_into_libs=yes
17457 dynamic_linker="$host_os dld.so"
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 if test "X$HPUX_IA64_MODE" = X32; then
17463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17464 else
17465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17466 fi
17467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17468 ;;
17469 hppa*64*)
17470 shrext_cmds='.sl'
17471 hardcode_into_libs=yes
17472 dynamic_linker="$host_os dld.sl"
17473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476 soname_spec='${libname}${release}${shared_ext}$major'
17477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17479 ;;
17480 *)
17481 shrext_cmds='.sl'
17482 dynamic_linker="$host_os dld.sl"
17483 shlibpath_var=SHLIB_PATH
17484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 soname_spec='${libname}${release}${shared_ext}$major'
17487 ;;
17488 esac
17489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17490 postinstall_cmds='chmod 555 $lib'
17491 ;;
17492
17493interix[3-9]*)
17494 version_type=linux
17495 need_lib_prefix=no
17496 need_version=no
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=no
17502 hardcode_into_libs=yes
17503 ;;
17504
17505irix5* | irix6* | nonstopux*)
17506 case $host_os in
17507 nonstopux*) version_type=nonstopux ;;
17508 *)
17509 if test "$lt_cv_prog_gnu_ld" = yes; then
17510 version_type=linux
17511 else
17512 version_type=irix
17513 fi ;;
17514 esac
17515 need_lib_prefix=no
17516 need_version=no
17517 soname_spec='${libname}${release}${shared_ext}$major'
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17519 case $host_os in
17520 irix5* | nonstopux*)
17521 libsuff= shlibsuff=
17522 ;;
17523 *)
17524 case $LD in # libtool.m4 will add one of these switches to LD
17525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17526 libsuff= shlibsuff= libmagic=32-bit;;
17527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17528 libsuff=32 shlibsuff=N32 libmagic=N32;;
17529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17531 *) libsuff= shlibsuff= libmagic=never-match;;
17532 esac
17533 ;;
17534 esac
17535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17536 shlibpath_overrides_runpath=no
17537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17539 hardcode_into_libs=yes
17540 ;;
17541
17542# No shared lib support for Linux oldld, aout, or coff.
17543linux*oldld* | linux*aout* | linux*coff*)
17544 dynamic_linker=no
17545 ;;
17546
17547# This must be Linux ELF.
17548linux* | k*bsd*-gnu)
17549 version_type=linux
17550 need_lib_prefix=no
17551 need_version=no
17552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553 soname_spec='${libname}${release}${shared_ext}$major'
17554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17555 shlibpath_var=LD_LIBRARY_PATH
17556 shlibpath_overrides_runpath=no
17557 # This implies no fast_install, which is unacceptable.
17558 # Some rework will be needed to allow for fast_install
17559 # before this can be enabled.
17560 hardcode_into_libs=yes
17561
17562 # Append ld.so.conf contents to the search path
17563 if test -f /etc/ld.so.conf; then
17564 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17566 fi
17567
17568 # We used to test for /lib/ld.so.1 and disable shared libraries on
17569 # powerpc, because MkLinux only supported shared libraries with the
17570 # GNU dynamic linker. Since this was broken with cross compilers,
17571 # most powerpc-linux boxes support dynamic linking these days and
17572 # people can always --disable-shared, the test was removed, and we
17573 # assume the GNU/Linux dynamic linker is in use.
17574 dynamic_linker='GNU/Linux ld.so'
17575 ;;
17576
17577netbsdelf*-gnu)
17578 version_type=linux
17579 need_lib_prefix=no
17580 need_version=no
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17582 soname_spec='${libname}${release}${shared_ext}$major'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath=no
17585 hardcode_into_libs=yes
17586 dynamic_linker='NetBSD ld.elf_so'
17587 ;;
17588
17589netbsd*)
17590 version_type=sunos
17591 need_lib_prefix=no
17592 need_version=no
17593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17596 dynamic_linker='NetBSD (a.out) ld.so'
17597 else
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 dynamic_linker='NetBSD ld.elf_so'
17601 fi
17602 shlibpath_var=LD_LIBRARY_PATH
17603 shlibpath_overrides_runpath=yes
17604 hardcode_into_libs=yes
17605 ;;
17606
17607newsos6)
17608 version_type=linux
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 shlibpath_var=LD_LIBRARY_PATH
17611 shlibpath_overrides_runpath=yes
17612 ;;
17613
17614nto-qnx*)
17615 version_type=linux
17616 need_lib_prefix=no
17617 need_version=no
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17619 soname_spec='${libname}${release}${shared_ext}$major'
17620 shlibpath_var=LD_LIBRARY_PATH
17621 shlibpath_overrides_runpath=yes
17622 ;;
17623
17624openbsd*)
17625 version_type=sunos
17626 sys_lib_dlsearch_path_spec="/usr/lib"
17627 need_lib_prefix=no
17628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17629 case $host_os in
17630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17631 *) need_version=no ;;
17632 esac
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17637 case $host_os in
17638 openbsd2.[89] | openbsd2.[89].*)
17639 shlibpath_overrides_runpath=no
17640 ;;
17641 *)
17642 shlibpath_overrides_runpath=yes
17643 ;;
17644 esac
17645 else
17646 shlibpath_overrides_runpath=yes
17647 fi
17648 ;;
17649
17650os2*)
17651 libname_spec='$name'
17652 shrext_cmds=".dll"
17653 need_lib_prefix=no
17654 library_names_spec='$libname${shared_ext} $libname.a'
17655 dynamic_linker='OS/2 ld.exe'
17656 shlibpath_var=LIBPATH
17657 ;;
17658
17659osf3* | osf4* | osf5*)
17660 version_type=osf
17661 need_lib_prefix=no
17662 need_version=no
17663 soname_spec='${libname}${release}${shared_ext}$major'
17664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665 shlibpath_var=LD_LIBRARY_PATH
17666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17668 ;;
17669
17670rdos*)
17671 dynamic_linker=no
17672 ;;
17673
17674solaris*)
17675 version_type=linux
17676 need_lib_prefix=no
17677 need_version=no
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679 soname_spec='${libname}${release}${shared_ext}$major'
17680 shlibpath_var=LD_LIBRARY_PATH
17681 shlibpath_overrides_runpath=yes
17682 hardcode_into_libs=yes
17683 # ldd complains unless libraries are executable
17684 postinstall_cmds='chmod +x $lib'
17685 ;;
17686
17687sunos4*)
17688 version_type=sunos
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=yes
17693 if test "$with_gnu_ld" = yes; then
17694 need_lib_prefix=no
17695 fi
17696 need_version=yes
17697 ;;
17698
17699sysv4 | sysv4.3*)
17700 version_type=linux
17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17702 soname_spec='${libname}${release}${shared_ext}$major'
17703 shlibpath_var=LD_LIBRARY_PATH
17704 case $host_vendor in
17705 sni)
17706 shlibpath_overrides_runpath=no
17707 need_lib_prefix=no
17708 export_dynamic_flag_spec='${wl}-Blargedynsym'
17709 runpath_var=LD_RUN_PATH
17710 ;;
17711 siemens)
17712 need_lib_prefix=no
17713 ;;
17714 motorola)
17715 need_lib_prefix=no
17716 need_version=no
17717 shlibpath_overrides_runpath=no
17718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17719 ;;
17720 esac
17721 ;;
17722
17723sysv4*MP*)
17724 if test -d /usr/nec ;then
17725 version_type=linux
17726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17727 soname_spec='$libname${shared_ext}.$major'
17728 shlibpath_var=LD_LIBRARY_PATH
17729 fi
17730 ;;
17731
17732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17733 version_type=freebsd-elf
17734 need_lib_prefix=no
17735 need_version=no
17736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17737 soname_spec='${libname}${release}${shared_ext}$major'
17738 shlibpath_var=LD_LIBRARY_PATH
17739 hardcode_into_libs=yes
17740 if test "$with_gnu_ld" = yes; then
17741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17742 shlibpath_overrides_runpath=no
17743 else
17744 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17745 shlibpath_overrides_runpath=yes
17746 case $host_os in
17747 sco3.2v5*)
17748 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17749 ;;
17750 esac
17751 fi
17752 sys_lib_dlsearch_path_spec='/usr/lib'
17753 ;;
17754
17755uts4*)
17756 version_type=linux
17757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17758 soname_spec='${libname}${release}${shared_ext}$major'
17759 shlibpath_var=LD_LIBRARY_PATH
17760 ;;
17761
17762*)
17763 dynamic_linker=no
17764 ;;
17765esac
f030cae8
VY
17766{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17767$as_echo "$dynamic_linker" >&6; }
b57f37fb
WP
17768test "$dynamic_linker" = no && can_build_shared=no
17769
56efe974 17770if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
f030cae8 17771 $as_echo_n "(cached) " >&6
56efe974
WP
17772else
17773 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17774fi
17775
17776sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17777if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
f030cae8 17778 $as_echo_n "(cached) " >&6
56efe974
WP
17779else
17780 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17781fi
17782
17783sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17784
b57f37fb
WP
17785variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17786if test "$GCC" = yes; then
17787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17788fi
17789
f030cae8
VY
17790{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17791$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
b57f37fb
WP
17792hardcode_action_F77=
17793if test -n "$hardcode_libdir_flag_spec_F77" || \
17794 test -n "$runpath_var_F77" || \
17795 test "X$hardcode_automatic_F77" = "Xyes" ; then
17796
17797 # We can hardcode non-existant directories.
17798 if test "$hardcode_direct_F77" != no &&
17799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17800 # have to relink, otherwise we might link with an installed library
17801 # when we should be linking with a yet-to-be-installed one
17802 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17803 test "$hardcode_minus_L_F77" != no; then
17804 # Linking always hardcodes the temporary library directory.
17805 hardcode_action_F77=relink
17806 else
17807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17808 hardcode_action_F77=immediate
17809 fi
17810else
17811 # We cannot hardcode anything, or else we can only hardcode existing
17812 # directories.
17813 hardcode_action_F77=unsupported
17814fi
f030cae8
VY
17815{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17816$as_echo "$hardcode_action_F77" >&6; }
b57f37fb
WP
17817
17818if test "$hardcode_action_F77" = relink; then
17819 # Fast installation is not supported
17820 enable_fast_install=no
17821elif test "$shlibpath_overrides_runpath" = yes ||
17822 test "$enable_shared" = no; then
17823 # Fast installation is not necessary
17824 enable_fast_install=needless
17825fi
17826
17827
17828# The else clause should only fire when bootstrapping the
17829# libtool distribution, otherwise you forgot to ship ltmain.sh
17830# with your package, and you will get complaints that there are
17831# no rules to generate ltmain.sh.
17832if test -f "$ltmain"; then
17833 # See if we are running on zsh, and set the options which allow our commands through
17834 # without removal of \ escapes.
17835 if test -n "${ZSH_VERSION+set}" ; then
17836 setopt NO_GLOB_SUBST
17837 fi
17838 # Now quote all the things that may contain metacharacters while being
17839 # careful not to overquote the AC_SUBSTed values. We take copies of the
17840 # variables and quote the copies for generation of the libtool script.
17841 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17842 SED SHELL STRIP \
17843 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17844 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17845 deplibs_check_method reload_flag reload_cmds need_locks \
17846 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17847 lt_cv_sys_global_symbol_to_c_name_address \
17848 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17849 old_postinstall_cmds old_postuninstall_cmds \
17850 compiler_F77 \
17851 CC_F77 \
17852 LD_F77 \
17853 lt_prog_compiler_wl_F77 \
17854 lt_prog_compiler_pic_F77 \
17855 lt_prog_compiler_static_F77 \
17856 lt_prog_compiler_no_builtin_flag_F77 \
17857 export_dynamic_flag_spec_F77 \
17858 thread_safe_flag_spec_F77 \
17859 whole_archive_flag_spec_F77 \
17860 enable_shared_with_static_runtimes_F77 \
17861 old_archive_cmds_F77 \
17862 old_archive_from_new_cmds_F77 \
17863 predep_objects_F77 \
17864 postdep_objects_F77 \
17865 predeps_F77 \
17866 postdeps_F77 \
17867 compiler_lib_search_path_F77 \
56efe974 17868 compiler_lib_search_dirs_F77 \
b57f37fb
WP
17869 archive_cmds_F77 \
17870 archive_expsym_cmds_F77 \
17871 postinstall_cmds_F77 \
17872 postuninstall_cmds_F77 \
17873 old_archive_from_expsyms_cmds_F77 \
17874 allow_undefined_flag_F77 \
17875 no_undefined_flag_F77 \
17876 export_symbols_cmds_F77 \
17877 hardcode_libdir_flag_spec_F77 \
17878 hardcode_libdir_flag_spec_ld_F77 \
17879 hardcode_libdir_separator_F77 \
17880 hardcode_automatic_F77 \
17881 module_cmds_F77 \
17882 module_expsym_cmds_F77 \
17883 lt_cv_prog_compiler_c_o_F77 \
17884 fix_srcfile_path_F77 \
17885 exclude_expsyms_F77 \
17886 include_expsyms_F77; do
17887
17888 case $var in
17889 old_archive_cmds_F77 | \
17890 old_archive_from_new_cmds_F77 | \
17891 archive_cmds_F77 | \
17892 archive_expsym_cmds_F77 | \
17893 module_cmds_F77 | \
17894 module_expsym_cmds_F77 | \
17895 old_archive_from_expsyms_cmds_F77 | \
17896 export_symbols_cmds_F77 | \
17897 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17898 postinstall_cmds | postuninstall_cmds | \
17899 old_postinstall_cmds | old_postuninstall_cmds | \
17900 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17901 # Double-quote double-evaled strings.
17902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17903 ;;
17904 *)
17905 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17906 ;;
17907 esac
17908 done
17909
17910 case $lt_echo in
17911 *'\$0 --fallback-echo"')
17912 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17913 ;;
17914 esac
17915
17916cfgfile="$ofile"
17917
17918 cat <<__EOF__ >> "$cfgfile"
17919# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17920
17921# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17922
17923# Shell to use when invoking shell scripts.
17924SHELL=$lt_SHELL
17925
17926# Whether or not to build shared libraries.
17927build_libtool_libs=$enable_shared
17928
17929# Whether or not to build static libraries.
17930build_old_libs=$enable_static
17931
17932# Whether or not to add -lc for building shared libraries.
17933build_libtool_need_lc=$archive_cmds_need_lc_F77
17934
17935# Whether or not to disallow shared libs when runtime libs are static
17936allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17937
17938# Whether or not to optimize for fast installation.
17939fast_install=$enable_fast_install
17940
17941# The host system.
17942host_alias=$host_alias
17943host=$host
17944host_os=$host_os
17945
17946# The build system.
17947build_alias=$build_alias
17948build=$build
17949build_os=$build_os
17950
17951# An echo program that does not interpret backslashes.
17952echo=$lt_echo
17953
17954# The archiver.
17955AR=$lt_AR
17956AR_FLAGS=$lt_AR_FLAGS
17957
17958# A C compiler.
17959LTCC=$lt_LTCC
17960
17961# LTCC compiler flags.
17962LTCFLAGS=$lt_LTCFLAGS
17963
17964# A language-specific compiler.
17965CC=$lt_compiler_F77
17966
17967# Is the compiler the GNU C compiler?
17968with_gcc=$GCC_F77
17969
17970# An ERE matcher.
17971EGREP=$lt_EGREP
17972
17973# The linker used to build libraries.
17974LD=$lt_LD_F77
17975
17976# Whether we need hard or soft links.
17977LN_S=$lt_LN_S
17978
17979# A BSD-compatible nm program.
17980NM=$lt_NM
17981
17982# A symbol stripping program
17983STRIP=$lt_STRIP
17984
17985# Used to examine libraries when file_magic_cmd begins "file"
17986MAGIC_CMD=$MAGIC_CMD
17987
17988# Used on cygwin: DLL creation program.
17989DLLTOOL="$DLLTOOL"
17990
17991# Used on cygwin: object dumper.
17992OBJDUMP="$OBJDUMP"
17993
17994# Used on cygwin: assembler.
17995AS="$AS"
17996
17997# The name of the directory that contains temporary libtool files.
17998objdir=$objdir
17999
18000# How to create reloadable object files.
18001reload_flag=$lt_reload_flag
18002reload_cmds=$lt_reload_cmds
18003
18004# How to pass a linker flag through the compiler.
18005wl=$lt_lt_prog_compiler_wl_F77
18006
18007# Object file suffix (normally "o").
18008objext="$ac_objext"
18009
18010# Old archive suffix (normally "a").
18011libext="$libext"
18012
18013# Shared library suffix (normally ".so").
18014shrext_cmds='$shrext_cmds'
18015
18016# Executable file suffix (normally "").
18017exeext="$exeext"
18018
18019# Additional compiler flags for building library objects.
18020pic_flag=$lt_lt_prog_compiler_pic_F77
18021pic_mode=$pic_mode
18022
18023# What is the maximum length of a command?
18024max_cmd_len=$lt_cv_sys_max_cmd_len
18025
18026# Does compiler simultaneously support -c and -o options?
18027compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18028
18029# Must we lock files when doing compilation?
18030need_locks=$lt_need_locks
18031
18032# Do we need the lib prefix for modules?
18033need_lib_prefix=$need_lib_prefix
18034
18035# Do we need a version for libraries?
18036need_version=$need_version
18037
18038# Whether dlopen is supported.
18039dlopen_support=$enable_dlopen
18040
18041# Whether dlopen of programs is supported.
18042dlopen_self=$enable_dlopen_self
18043
18044# Whether dlopen of statically linked programs is supported.
18045dlopen_self_static=$enable_dlopen_self_static
18046
18047# Compiler flag to prevent dynamic linking.
18048link_static_flag=$lt_lt_prog_compiler_static_F77
18049
18050# Compiler flag to turn off builtin functions.
18051no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18052
18053# Compiler flag to allow reflexive dlopens.
18054export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18055
18056# Compiler flag to generate shared objects directly from archives.
18057whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18058
18059# Compiler flag to generate thread-safe objects.
18060thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18061
18062# Library versioning type.
18063version_type=$version_type
18064
18065# Format of library name prefix.
18066libname_spec=$lt_libname_spec
18067
18068# List of archive names. First name is the real one, the rest are links.
18069# The last name is the one that the linker finds with -lNAME.
18070library_names_spec=$lt_library_names_spec
18071
18072# The coded name of the library, if different from the real name.
18073soname_spec=$lt_soname_spec
18074
18075# Commands used to build and install an old-style archive.
18076RANLIB=$lt_RANLIB
18077old_archive_cmds=$lt_old_archive_cmds_F77
18078old_postinstall_cmds=$lt_old_postinstall_cmds
18079old_postuninstall_cmds=$lt_old_postuninstall_cmds
18080
18081# Create an old-style archive from a shared archive.
18082old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18083
18084# Create a temporary old-style archive to link instead of a shared archive.
18085old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18086
18087# Commands used to build and install a shared archive.
18088archive_cmds=$lt_archive_cmds_F77
18089archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18090postinstall_cmds=$lt_postinstall_cmds
18091postuninstall_cmds=$lt_postuninstall_cmds
18092
18093# Commands used to build a loadable module (assumed same as above if empty)
18094module_cmds=$lt_module_cmds_F77
18095module_expsym_cmds=$lt_module_expsym_cmds_F77
18096
18097# Commands to strip libraries.
18098old_striplib=$lt_old_striplib
18099striplib=$lt_striplib
18100
18101# Dependencies to place before the objects being linked to create a
18102# shared library.
18103predep_objects=$lt_predep_objects_F77
18104
18105# Dependencies to place after the objects being linked to create a
18106# shared library.
18107postdep_objects=$lt_postdep_objects_F77
18108
18109# Dependencies to place before the objects being linked to create a
18110# shared library.
18111predeps=$lt_predeps_F77
18112
18113# Dependencies to place after the objects being linked to create a
18114# shared library.
18115postdeps=$lt_postdeps_F77
18116
56efe974
WP
18117# The directories searched by this compiler when creating a shared
18118# library
18119compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18120
b57f37fb
WP
18121# The library search path used internally by the compiler when linking
18122# a shared library.
18123compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18124
18125# Method to check whether dependent libraries are shared objects.
18126deplibs_check_method=$lt_deplibs_check_method
18127
18128# Command to use when deplibs_check_method == file_magic.
18129file_magic_cmd=$lt_file_magic_cmd
18130
18131# Flag that allows shared libraries with undefined symbols to be built.
18132allow_undefined_flag=$lt_allow_undefined_flag_F77
18133
18134# Flag that forces no undefined symbols.
18135no_undefined_flag=$lt_no_undefined_flag_F77
18136
18137# Commands used to finish a libtool library installation in a directory.
18138finish_cmds=$lt_finish_cmds
18139
18140# Same as above, but a single script fragment to be evaled but not shown.
18141finish_eval=$lt_finish_eval
18142
18143# Take the output of nm and produce a listing of raw symbols and C names.
18144global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18145
18146# Transform the output of nm in a proper C declaration
18147global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18148
18149# Transform the output of nm in a C name address pair
18150global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18151
18152# This is the shared library runtime path variable.
18153runpath_var=$runpath_var
18154
18155# This is the shared library path variable.
18156shlibpath_var=$shlibpath_var
18157
18158# Is shlibpath searched before the hard-coded library search path?
18159shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18160
18161# How to hardcode a shared library path into an executable.
18162hardcode_action=$hardcode_action_F77
18163
18164# Whether we should hardcode library paths into libraries.
18165hardcode_into_libs=$hardcode_into_libs
18166
18167# Flag to hardcode \$libdir into a binary during linking.
18168# This must work even if \$libdir does not exist.
18169hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18170
18171# If ld is used when linking, flag to hardcode \$libdir into
18172# a binary during linking. This must work even if \$libdir does
18173# not exist.
18174hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18175
18176# Whether we need a single -rpath flag with a separated argument.
18177hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18178
18179# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18180# resulting binary.
18181hardcode_direct=$hardcode_direct_F77
18182
18183# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18184# resulting binary.
18185hardcode_minus_L=$hardcode_minus_L_F77
18186
18187# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18188# the resulting binary.
18189hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18190
18191# Set to yes if building a shared library automatically hardcodes DIR into the library
18192# and all subsequent libraries and executables linked against it.
18193hardcode_automatic=$hardcode_automatic_F77
18194
18195# Variables whose values should be saved in libtool wrapper scripts and
18196# restored at relink time.
18197variables_saved_for_relink="$variables_saved_for_relink"
18198
18199# Whether libtool must link a program against all its dependency libraries.
18200link_all_deplibs=$link_all_deplibs_F77
18201
18202# Compile-time system search path for libraries
18203sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18204
18205# Run-time system search path for libraries
18206sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18207
18208# Fix the shell variable \$srcfile for the compiler.
18209fix_srcfile_path=$lt_fix_srcfile_path
18210
18211# Set to yes if exported symbols are required.
18212always_export_symbols=$always_export_symbols_F77
18213
18214# The commands to list exported symbols.
18215export_symbols_cmds=$lt_export_symbols_cmds_F77
18216
18217# The commands to extract the exported symbol list from a shared archive.
18218extract_expsyms_cmds=$lt_extract_expsyms_cmds
18219
18220# Symbols that should not be listed in the preloaded symbols.
18221exclude_expsyms=$lt_exclude_expsyms_F77
18222
18223# Symbols that must always be exported.
18224include_expsyms=$lt_include_expsyms_F77
18225
18226# ### END LIBTOOL TAG CONFIG: $tagname
18227
18228__EOF__
18229
18230
18231else
18232 # If there is no Makefile yet, we rely on a make rule to execute
18233 # `config.status --recheck' to rerun these tests and create the
18234 # libtool script then.
18235 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18236 if test -f "$ltmain_in"; then
18237 test -f Makefile && make "$ltmain"
18238 fi
18239fi
18240
18241
18242ac_ext=c
18243ac_cpp='$CPP $CPPFLAGS'
18244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246ac_compiler_gnu=$ac_cv_c_compiler_gnu
18247
18248CC="$lt_save_CC"
18249
18250 else
18251 tagname=""
18252 fi
18253 ;;
18254
18255 GCJ)
18256 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18257
18258
18259# Source file extension for Java test sources.
18260ac_ext=java
18261
18262# Object file extension for compiled Java test sources.
18263objext=o
18264objext_GCJ=$objext
18265
18266# Code to be used in simple compile tests
18267lt_simple_compile_test_code="class foo {}"
18268
18269# Code to be used in simple link tests
18270lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18271
18272# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18273
18274# If no C compiler was specified, use CC.
18275LTCC=${LTCC-"$CC"}
18276
18277# If no C compiler flags were specified, use CFLAGS.
18278LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18279
18280# Allow CC to be a program name with arguments.
18281compiler=$CC
18282
18283
18284# save warnings/boilerplate of simple test code
18285ac_outfile=conftest.$ac_objext
18286echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18288_lt_compiler_boilerplate=`cat conftest.err`
18289$rm conftest*
18290
18291ac_outfile=conftest.$ac_objext
18292echo "$lt_simple_link_test_code" >conftest.$ac_ext
18293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18294_lt_linker_boilerplate=`cat conftest.err`
56efe974 18295$rm -r conftest*
b57f37fb
WP
18296
18297
18298# Allow CC to be a program name with arguments.
18299lt_save_CC="$CC"
18300CC=${GCJ-"gcj"}
18301compiler=$CC
18302compiler_GCJ=$CC
18303for cc_temp in $compiler""; do
18304 case $cc_temp in
18305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18307 \-*) ;;
18308 *) break;;
18309 esac
18310done
18311cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18312
18313
18314# GCJ did not exist at the time GCC didn't implicitly link libc in.
18315archive_cmds_need_lc_GCJ=no
18316
18317old_archive_cmds_GCJ=$old_archive_cmds
18318
18319
18320lt_prog_compiler_no_builtin_flag_GCJ=
18321
18322if test "$GCC" = yes; then
18323 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18324
18325
f030cae8
VY
18326{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18327$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b57f37fb 18328if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
f030cae8 18329 $as_echo_n "(cached) " >&6
b57f37fb
WP
18330else
18331 lt_cv_prog_compiler_rtti_exceptions=no
18332 ac_outfile=conftest.$ac_objext
18333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18334 lt_compiler_flag="-fno-rtti -fno-exceptions"
18335 # Insert the option either (1) after the last *FLAGS variable, or
18336 # (2) before a word containing "conftest.", or (3) at the end.
18337 # Note that $ac_compile itself does not contain backslashes and begins
18338 # with a dollar sign (not a hyphen), so the echo should work correctly.
18339 # The option is referenced via a variable to avoid confusing sed.
18340 lt_compile=`echo "$ac_compile" | $SED \
18341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18343 -e 's:$: $lt_compiler_flag:'`
f030cae8 18344 (eval echo "\"\$as_me:18344: $lt_compile\"" >&5)
b57f37fb
WP
18345 (eval "$lt_compile" 2>conftest.err)
18346 ac_status=$?
18347 cat conftest.err >&5
f030cae8 18348 echo "$as_me:18348: \$? = $ac_status" >&5
b57f37fb
WP
18349 if (exit $ac_status) && test -s "$ac_outfile"; then
18350 # The compiler can only warn and ignore the option if not recognized
18351 # So say no if there are warnings other than the usual output.
18352 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18355 lt_cv_prog_compiler_rtti_exceptions=yes
18356 fi
18357 fi
18358 $rm conftest*
18359
18360fi
f030cae8
VY
18361{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18362$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
b57f37fb
WP
18363
18364if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18365 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18366else
18367 :
18368fi
18369
18370fi
18371
18372lt_prog_compiler_wl_GCJ=
18373lt_prog_compiler_pic_GCJ=
18374lt_prog_compiler_static_GCJ=
18375
f030cae8
VY
18376{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18377$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
b57f37fb
WP
18378
18379 if test "$GCC" = yes; then
18380 lt_prog_compiler_wl_GCJ='-Wl,'
18381 lt_prog_compiler_static_GCJ='-static'
18382
18383 case $host_os in
18384 aix*)
18385 # All AIX code is PIC.
18386 if test "$host_cpu" = ia64; then
18387 # AIX 5 now supports IA64 processor
18388 lt_prog_compiler_static_GCJ='-Bstatic'
18389 fi
18390 ;;
18391
18392 amigaos*)
18393 # FIXME: we need at least 68020 code to build shared libraries, but
18394 # adding the `-m68020' flag to GCC prevents building anything better,
18395 # like `-m68040'.
18396 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18397 ;;
18398
18399 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18400 # PIC is the default for these OSes.
18401 ;;
18402
18403 mingw* | cygwin* | pw32* | os2*)
18404 # This hack is so that the source file can tell whether it is being
18405 # built for inclusion in a dll (and should export symbols for example).
18406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18407 # (--disable-auto-import) libraries
56efe974 18408
b57f37fb
WP
18409 ;;
18410
18411 darwin* | rhapsody*)
18412 # PIC is the default on this platform
18413 # Common symbols not allowed in MH_DYLIB files
18414 lt_prog_compiler_pic_GCJ='-fno-common'
18415 ;;
18416
18417 interix[3-9]*)
18418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18419 # Instead, we relocate shared libraries at runtime.
18420 ;;
18421
18422 msdosdjgpp*)
18423 # Just because we use GCC doesn't mean we suddenly get shared libraries
18424 # on systems that don't support them.
18425 lt_prog_compiler_can_build_shared_GCJ=no
18426 enable_shared=no
18427 ;;
18428
18429 sysv4*MP*)
18430 if test -d /usr/nec; then
18431 lt_prog_compiler_pic_GCJ=-Kconform_pic
18432 fi
18433 ;;
18434
18435 hpux*)
18436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18437 # not for PA HP-UX.
18438 case $host_cpu in
18439 hppa*64*|ia64*)
18440 # +Z the default
18441 ;;
18442 *)
18443 lt_prog_compiler_pic_GCJ='-fPIC'
18444 ;;
18445 esac
18446 ;;
18447
18448 *)
18449 lt_prog_compiler_pic_GCJ='-fPIC'
18450 ;;
18451 esac
18452 else
18453 # PORTME Check for flag to pass linker flags through the system compiler.
18454 case $host_os in
18455 aix*)
18456 lt_prog_compiler_wl_GCJ='-Wl,'
18457 if test "$host_cpu" = ia64; then
18458 # AIX 5 now supports IA64 processor
18459 lt_prog_compiler_static_GCJ='-Bstatic'
18460 else
18461 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18462 fi
18463 ;;
18464 darwin*)
18465 # PIC is the default on this platform
18466 # Common symbols not allowed in MH_DYLIB files
18467 case $cc_basename in
18468 xlc*)
18469 lt_prog_compiler_pic_GCJ='-qnocommon'
18470 lt_prog_compiler_wl_GCJ='-Wl,'
18471 ;;
18472 esac
18473 ;;
18474
18475 mingw* | cygwin* | pw32* | os2*)
18476 # This hack is so that the source file can tell whether it is being
18477 # built for inclusion in a dll (and should export symbols for example).
56efe974 18478
b57f37fb
WP
18479 ;;
18480
18481 hpux9* | hpux10* | hpux11*)
18482 lt_prog_compiler_wl_GCJ='-Wl,'
18483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18484 # not for PA HP-UX.
18485 case $host_cpu in
18486 hppa*64*|ia64*)
18487 # +Z the default
18488 ;;
18489 *)
18490 lt_prog_compiler_pic_GCJ='+Z'
18491 ;;
18492 esac
18493 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18494 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18495 ;;
18496
18497 irix5* | irix6* | nonstopux*)
18498 lt_prog_compiler_wl_GCJ='-Wl,'
18499 # PIC (with -KPIC) is the default.
18500 lt_prog_compiler_static_GCJ='-non_shared'
18501 ;;
18502
18503 newsos6)
18504 lt_prog_compiler_pic_GCJ='-KPIC'
18505 lt_prog_compiler_static_GCJ='-Bstatic'
18506 ;;
18507
18508 linux* | k*bsd*-gnu)
18509 case $cc_basename in
18510 icc* | ecc*)
18511 lt_prog_compiler_wl_GCJ='-Wl,'
18512 lt_prog_compiler_pic_GCJ='-KPIC'
18513 lt_prog_compiler_static_GCJ='-static'
18514 ;;
18515 pgcc* | pgf77* | pgf90* | pgf95*)
18516 # Portland Group compilers (*not* the Pentium gcc compiler,
18517 # which looks to be a dead project)
18518 lt_prog_compiler_wl_GCJ='-Wl,'
18519 lt_prog_compiler_pic_GCJ='-fpic'
18520 lt_prog_compiler_static_GCJ='-Bstatic'
18521 ;;
18522 ccc*)
18523 lt_prog_compiler_wl_GCJ='-Wl,'
18524 # All Alpha code is PIC.
18525 lt_prog_compiler_static_GCJ='-non_shared'
18526 ;;
18527 *)
18528 case `$CC -V 2>&1 | sed 5q` in
18529 *Sun\ C*)
18530 # Sun C 5.9
18531 lt_prog_compiler_pic_GCJ='-KPIC'
18532 lt_prog_compiler_static_GCJ='-Bstatic'
18533 lt_prog_compiler_wl_GCJ='-Wl,'
18534 ;;
18535 *Sun\ F*)
18536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18537 lt_prog_compiler_pic_GCJ='-KPIC'
18538 lt_prog_compiler_static_GCJ='-Bstatic'
18539 lt_prog_compiler_wl_GCJ=''
18540 ;;
18541 esac
18542 ;;
18543 esac
18544 ;;
18545
18546 osf3* | osf4* | osf5*)
18547 lt_prog_compiler_wl_GCJ='-Wl,'
18548 # All OSF/1 code is PIC.
18549 lt_prog_compiler_static_GCJ='-non_shared'
18550 ;;
18551
18552 rdos*)
18553 lt_prog_compiler_static_GCJ='-non_shared'
18554 ;;
18555
18556 solaris*)
18557 lt_prog_compiler_pic_GCJ='-KPIC'
18558 lt_prog_compiler_static_GCJ='-Bstatic'
18559 case $cc_basename in
18560 f77* | f90* | f95*)
18561 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18562 *)
18563 lt_prog_compiler_wl_GCJ='-Wl,';;
18564 esac
18565 ;;
18566
18567 sunos4*)
18568 lt_prog_compiler_wl_GCJ='-Qoption ld '
18569 lt_prog_compiler_pic_GCJ='-PIC'
18570 lt_prog_compiler_static_GCJ='-Bstatic'
18571 ;;
18572
18573 sysv4 | sysv4.2uw2* | sysv4.3*)
18574 lt_prog_compiler_wl_GCJ='-Wl,'
18575 lt_prog_compiler_pic_GCJ='-KPIC'
18576 lt_prog_compiler_static_GCJ='-Bstatic'
18577 ;;
18578
18579 sysv4*MP*)
18580 if test -d /usr/nec ;then
18581 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18582 lt_prog_compiler_static_GCJ='-Bstatic'
18583 fi
18584 ;;
18585
18586 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18587 lt_prog_compiler_wl_GCJ='-Wl,'
18588 lt_prog_compiler_pic_GCJ='-KPIC'
18589 lt_prog_compiler_static_GCJ='-Bstatic'
18590 ;;
18591
18592 unicos*)
18593 lt_prog_compiler_wl_GCJ='-Wl,'
18594 lt_prog_compiler_can_build_shared_GCJ=no
18595 ;;
18596
18597 uts4*)
18598 lt_prog_compiler_pic_GCJ='-pic'
18599 lt_prog_compiler_static_GCJ='-Bstatic'
18600 ;;
18601
18602 *)
18603 lt_prog_compiler_can_build_shared_GCJ=no
18604 ;;
18605 esac
18606 fi
18607
f030cae8
VY
18608{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18609$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
b57f37fb
WP
18610
18611#
18612# Check to make sure the PIC flag actually works.
18613#
18614if test -n "$lt_prog_compiler_pic_GCJ"; then
18615
f030cae8
VY
18616{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18617$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
56efe974 18618if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
f030cae8 18619 $as_echo_n "(cached) " >&6
b57f37fb 18620else
56efe974 18621 lt_cv_prog_compiler_pic_works_GCJ=no
b57f37fb
WP
18622 ac_outfile=conftest.$ac_objext
18623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18624 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18625 # Insert the option either (1) after the last *FLAGS variable, or
18626 # (2) before a word containing "conftest.", or (3) at the end.
18627 # Note that $ac_compile itself does not contain backslashes and begins
18628 # with a dollar sign (not a hyphen), so the echo should work correctly.
18629 # The option is referenced via a variable to avoid confusing sed.
18630 lt_compile=`echo "$ac_compile" | $SED \
18631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18633 -e 's:$: $lt_compiler_flag:'`
f030cae8 18634 (eval echo "\"\$as_me:18634: $lt_compile\"" >&5)
b57f37fb
WP
18635 (eval "$lt_compile" 2>conftest.err)
18636 ac_status=$?
18637 cat conftest.err >&5
f030cae8 18638 echo "$as_me:18638: \$? = $ac_status" >&5
b57f37fb
WP
18639 if (exit $ac_status) && test -s "$ac_outfile"; then
18640 # The compiler can only warn and ignore the option if not recognized
18641 # So say no if there are warnings other than the usual output.
18642 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
56efe974 18645 lt_cv_prog_compiler_pic_works_GCJ=yes
b57f37fb
WP
18646 fi
18647 fi
18648 $rm conftest*
18649
18650fi
f030cae8
VY
18651{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18652$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
b57f37fb 18653
56efe974 18654if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
b57f37fb
WP
18655 case $lt_prog_compiler_pic_GCJ in
18656 "" | " "*) ;;
18657 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18658 esac
18659else
18660 lt_prog_compiler_pic_GCJ=
18661 lt_prog_compiler_can_build_shared_GCJ=no
18662fi
18663
18664fi
18665case $host_os in
18666 # For platforms which do not support PIC, -DPIC is meaningless:
18667 *djgpp*)
18668 lt_prog_compiler_pic_GCJ=
18669 ;;
18670 *)
18671 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18672 ;;
18673esac
18674
18675#
18676# Check to make sure the static flag actually works.
18677#
18678wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
f030cae8
VY
18679{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18680$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
56efe974 18681if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
f030cae8 18682 $as_echo_n "(cached) " >&6
b57f37fb 18683else
56efe974 18684 lt_cv_prog_compiler_static_works_GCJ=no
b57f37fb
WP
18685 save_LDFLAGS="$LDFLAGS"
18686 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18687 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18688 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18689 # The linker can only warn and ignore the option if not recognized
18690 # So say no if there are warnings
18691 if test -s conftest.err; then
18692 # Append any errors to the config.log.
18693 cat conftest.err 1>&5
18694 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18696 if diff conftest.exp conftest.er2 >/dev/null; then
56efe974 18697 lt_cv_prog_compiler_static_works_GCJ=yes
b57f37fb
WP
18698 fi
18699 else
56efe974 18700 lt_cv_prog_compiler_static_works_GCJ=yes
b57f37fb
WP
18701 fi
18702 fi
56efe974 18703 $rm -r conftest*
b57f37fb
WP
18704 LDFLAGS="$save_LDFLAGS"
18705
18706fi
f030cae8
VY
18707{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18708$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
b57f37fb 18709
56efe974 18710if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
b57f37fb
WP
18711 :
18712else
18713 lt_prog_compiler_static_GCJ=
18714fi
18715
18716
f030cae8
VY
18717{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18718$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b57f37fb 18719if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
f030cae8 18720 $as_echo_n "(cached) " >&6
b57f37fb
WP
18721else
18722 lt_cv_prog_compiler_c_o_GCJ=no
18723 $rm -r conftest 2>/dev/null
18724 mkdir conftest
18725 cd conftest
18726 mkdir out
18727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18728
18729 lt_compiler_flag="-o out/conftest2.$ac_objext"
18730 # Insert the option either (1) after the last *FLAGS variable, or
18731 # (2) before a word containing "conftest.", or (3) at the end.
18732 # Note that $ac_compile itself does not contain backslashes and begins
18733 # with a dollar sign (not a hyphen), so the echo should work correctly.
18734 lt_compile=`echo "$ac_compile" | $SED \
18735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18737 -e 's:$: $lt_compiler_flag:'`
f030cae8 18738 (eval echo "\"\$as_me:18738: $lt_compile\"" >&5)
b57f37fb
WP
18739 (eval "$lt_compile" 2>out/conftest.err)
18740 ac_status=$?
18741 cat out/conftest.err >&5
f030cae8 18742 echo "$as_me:18742: \$? = $ac_status" >&5
b57f37fb
WP
18743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18744 then
18745 # The compiler can only warn and ignore the option if not recognized
18746 # So say no if there are warnings
18747 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18750 lt_cv_prog_compiler_c_o_GCJ=yes
18751 fi
18752 fi
18753 chmod u+w . 2>&5
18754 $rm conftest*
18755 # SGI C++ compiler will create directory out/ii_files/ for
18756 # template instantiation
18757 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18758 $rm out/* && rmdir out
18759 cd ..
18760 rmdir conftest
18761 $rm conftest*
18762
18763fi
f030cae8
VY
18764{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18765$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
b57f37fb
WP
18766
18767
18768hard_links="nottested"
18769if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18770 # do not overwrite the value of need_locks provided by the user
f030cae8
VY
18771 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18772$as_echo_n "checking if we can lock with hard links... " >&6; }
b57f37fb
WP
18773 hard_links=yes
18774 $rm conftest*
18775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18776 touch conftest.a
18777 ln conftest.a conftest.b 2>&5 || hard_links=no
18778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
f030cae8
VY
18779 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18780$as_echo "$hard_links" >&6; }
b57f37fb 18781 if test "$hard_links" = no; then
f030cae8
VY
18782 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18783$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
b57f37fb
WP
18784 need_locks=warn
18785 fi
18786else
18787 need_locks=no
18788fi
18789
f030cae8
VY
18790{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18791$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
b57f37fb
WP
18792
18793 runpath_var=
18794 allow_undefined_flag_GCJ=
18795 enable_shared_with_static_runtimes_GCJ=no
18796 archive_cmds_GCJ=
18797 archive_expsym_cmds_GCJ=
18798 old_archive_From_new_cmds_GCJ=
18799 old_archive_from_expsyms_cmds_GCJ=
18800 export_dynamic_flag_spec_GCJ=
18801 whole_archive_flag_spec_GCJ=
18802 thread_safe_flag_spec_GCJ=
18803 hardcode_libdir_flag_spec_GCJ=
18804 hardcode_libdir_flag_spec_ld_GCJ=
18805 hardcode_libdir_separator_GCJ=
18806 hardcode_direct_GCJ=no
18807 hardcode_minus_L_GCJ=no
18808 hardcode_shlibpath_var_GCJ=unsupported
18809 link_all_deplibs_GCJ=unknown
18810 hardcode_automatic_GCJ=no
18811 module_cmds_GCJ=
18812 module_expsym_cmds_GCJ=
18813 always_export_symbols_GCJ=no
18814 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18815 # include_expsyms should be a list of space-separated symbols to be *always*
18816 # included in the symbol list
18817 include_expsyms_GCJ=
18818 # exclude_expsyms can be an extended regexp of symbols to exclude
18819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18821 # as well as any symbol that contains `d'.
56efe974 18822 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
b57f37fb
WP
18823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18824 # platforms (ab)use it in PIC code, but their linkers get confused if
18825 # the symbol is explicitly referenced. Since portable code cannot
18826 # rely on this symbol name, it's probably fine to never include it in
18827 # preloaded symbol tables.
56efe974 18828 # Exclude shared library initialization/finalization symbols.
b57f37fb
WP
18829 extract_expsyms_cmds=
18830 # Just being paranoid about ensuring that cc_basename is set.
18831 for cc_temp in $compiler""; do
18832 case $cc_temp in
18833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18835 \-*) ;;
18836 *) break;;
18837 esac
18838done
18839cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18840
18841 case $host_os in
18842 cygwin* | mingw* | pw32*)
18843 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18844 # When not using gcc, we currently assume that we are using
18845 # Microsoft Visual C++.
18846 if test "$GCC" != yes; then
18847 with_gnu_ld=no
18848 fi
18849 ;;
18850 interix*)
18851 # we just hope/assume this is gcc and not c89 (= MSVC++)
18852 with_gnu_ld=yes
18853 ;;
18854 openbsd*)
18855 with_gnu_ld=no
18856 ;;
18857 esac
18858
18859 ld_shlibs_GCJ=yes
18860 if test "$with_gnu_ld" = yes; then
18861 # If archive_cmds runs LD, not CC, wlarc should be empty
18862 wlarc='${wl}'
18863
18864 # Set some defaults for GNU ld with shared library support. These
18865 # are reset later if shared libraries are not supported. Putting them
18866 # here allows them to be overridden if necessary.
18867 runpath_var=LD_RUN_PATH
18868 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18869 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18870 # ancient GNU ld didn't support --whole-archive et. al.
18871 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18872 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18873 else
18874 whole_archive_flag_spec_GCJ=
18875 fi
18876 supports_anon_versioning=no
18877 case `$LD -v 2>/dev/null` in
18878 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18879 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18880 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18881 *\ 2.11.*) ;; # other 2.11 versions
18882 *) supports_anon_versioning=yes ;;
18883 esac
18884
18885 # See if GNU ld supports shared libraries.
18886 case $host_os in
56efe974 18887 aix[3-9]*)
b57f37fb
WP
18888 # On AIX/PPC, the GNU linker is very broken
18889 if test "$host_cpu" != ia64; then
18890 ld_shlibs_GCJ=no
18891 cat <<EOF 1>&2
18892
18893*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18894*** to be unable to reliably create shared libraries on AIX.
18895*** Therefore, libtool is disabling shared libraries support. If you
18896*** really care for shared libraries, you may want to modify your PATH
18897*** so that a non-GNU linker is found, and then restart.
18898
18899EOF
18900 fi
18901 ;;
18902
18903 amigaos*)
18904 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18905 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18906 hardcode_minus_L_GCJ=yes
18907
18908 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18909 # that the semantics of dynamic libraries on AmigaOS, at least up
18910 # to version 4, is to share data among multiple programs linked
18911 # with the same dynamic library. Since this doesn't match the
18912 # behavior of shared libraries on other platforms, we can't use
18913 # them.
18914 ld_shlibs_GCJ=no
18915 ;;
18916
18917 beos*)
18918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18919 allow_undefined_flag_GCJ=unsupported
18920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18921 # support --undefined. This deserves some investigation. FIXME
18922 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18923 else
18924 ld_shlibs_GCJ=no
18925 fi
18926 ;;
18927
18928 cygwin* | mingw* | pw32*)
18929 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18930 # as there is no search path for DLLs.
18931 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18932 allow_undefined_flag_GCJ=unsupported
18933 always_export_symbols_GCJ=no
18934 enable_shared_with_static_runtimes_GCJ=yes
18935 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18936
18937 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18938 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18939 # If the export-symbols file already is a .def file (1st line
18940 # is EXPORTS), use it as is; otherwise, prepend...
18941 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18942 cp $export_symbols $output_objdir/$soname.def;
18943 else
18944 echo EXPORTS > $output_objdir/$soname.def;
18945 cat $export_symbols >> $output_objdir/$soname.def;
18946 fi~
18947 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18948 else
18949 ld_shlibs_GCJ=no
18950 fi
18951 ;;
18952
18953 interix[3-9]*)
18954 hardcode_direct_GCJ=no
18955 hardcode_shlibpath_var_GCJ=no
18956 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18957 export_dynamic_flag_spec_GCJ='${wl}-E'
18958 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18959 # Instead, shared libraries are loaded at an image base (0x10000000 by
18960 # default) and relocated if they conflict, which is a slow very memory
18961 # consuming and fragmenting process. To avoid this, we pick a random,
18962 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18963 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18964 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18965 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18966 ;;
18967
18968 gnu* | linux* | k*bsd*-gnu)
18969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18970 tmp_addflag=
18971 case $cc_basename,$host_cpu in
18972 pgcc*) # Portland Group C compiler
18973 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18974 tmp_addflag=' $pic_flag'
18975 ;;
18976 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18977 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18978 tmp_addflag=' $pic_flag -Mnomain' ;;
18979 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18980 tmp_addflag=' -i_dynamic' ;;
18981 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18982 tmp_addflag=' -i_dynamic -nofor_main' ;;
18983 ifc* | ifort*) # Intel Fortran compiler
18984 tmp_addflag=' -nofor_main' ;;
18985 esac
18986 case `$CC -V 2>&1 | sed 5q` in
18987 *Sun\ C*) # Sun C 5.9
18988 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18989 tmp_sharedflag='-G' ;;
18990 *Sun\ F*) # Sun Fortran 8.3
18991 tmp_sharedflag='-G' ;;
18992 *)
18993 tmp_sharedflag='-shared' ;;
18994 esac
18995 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18996
18997 if test $supports_anon_versioning = yes; then
18998 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19000 $echo "local: *; };" >> $output_objdir/$libname.ver~
19001 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19002 fi
19003 link_all_deplibs_GCJ=no
19004 else
19005 ld_shlibs_GCJ=no
19006 fi
19007 ;;
19008
19009 netbsd* | netbsdelf*-gnu)
19010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19011 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19012 wlarc=
19013 else
19014 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19015 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19016 fi
19017 ;;
19018
19019 solaris*)
19020 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19021 ld_shlibs_GCJ=no
19022 cat <<EOF 1>&2
19023
19024*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19025*** create shared libraries on Solaris systems. Therefore, libtool
19026*** is disabling shared libraries support. We urge you to upgrade GNU
19027*** binutils to release 2.9.1 or newer. Another option is to modify
19028*** your PATH or compiler configuration so that the native linker is
19029*** used, and then restart.
19030
19031EOF
19032 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19033 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19034 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19035 else
19036 ld_shlibs_GCJ=no
19037 fi
19038 ;;
19039
19040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19041 case `$LD -v 2>&1` in
19042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19043 ld_shlibs_GCJ=no
19044 cat <<_LT_EOF 1>&2
19045
19046*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19047*** reliably create shared libraries on SCO systems. Therefore, libtool
19048*** is disabling shared libraries support. We urge you to upgrade GNU
19049*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19050*** your PATH or compiler configuration so that the native linker is
19051*** used, and then restart.
19052
19053_LT_EOF
19054 ;;
19055 *)
19056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19057 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19058 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19059 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19060 else
19061 ld_shlibs_GCJ=no
19062 fi
19063 ;;
19064 esac
19065 ;;
19066
19067 sunos4*)
19068 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19069 wlarc=
19070 hardcode_direct_GCJ=yes
19071 hardcode_shlibpath_var_GCJ=no
19072 ;;
19073
19074 *)
19075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19078 else
19079 ld_shlibs_GCJ=no
19080 fi
19081 ;;
19082 esac
19083
19084 if test "$ld_shlibs_GCJ" = no; then
19085 runpath_var=
19086 hardcode_libdir_flag_spec_GCJ=
19087 export_dynamic_flag_spec_GCJ=
19088 whole_archive_flag_spec_GCJ=
19089 fi
19090 else
19091 # PORTME fill in a description of your system's linker (not GNU ld)
19092 case $host_os in
19093 aix3*)
19094 allow_undefined_flag_GCJ=unsupported
19095 always_export_symbols_GCJ=yes
19096 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19097 # Note: this linker hardcodes the directories in LIBPATH if there
19098 # are no directories specified by -L.
19099 hardcode_minus_L_GCJ=yes
19100 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19101 # Neither direct hardcoding nor static linking is supported with a
19102 # broken collect2.
19103 hardcode_direct_GCJ=unsupported
19104 fi
19105 ;;
19106
56efe974 19107 aix[4-9]*)
b57f37fb
WP
19108 if test "$host_cpu" = ia64; then
19109 # On IA64, the linker does run time linking by default, so we don't
19110 # have to do anything special.
19111 aix_use_runtimelinking=no
19112 exp_sym_flag='-Bexport'
19113 no_entry_flag=""
19114 else
19115 # If we're using GNU nm, then we don't want the "-C" option.
19116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19118 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19119 else
19120 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19121 fi
19122 aix_use_runtimelinking=no
19123
19124 # Test if we are trying to use run time linking or normal
19125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19126 # need to do runtime linking.
56efe974 19127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
b57f37fb
WP
19128 for ld_flag in $LDFLAGS; do
19129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19130 aix_use_runtimelinking=yes
19131 break
19132 fi
19133 done
19134 ;;
19135 esac
19136
19137 exp_sym_flag='-bexport'
19138 no_entry_flag='-bnoentry'
19139 fi
19140
19141 # When large executables or shared objects are built, AIX ld can
19142 # have problems creating the table of contents. If linking a library
19143 # or program results in "error TOC overflow" add -mminimal-toc to
19144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19146
19147 archive_cmds_GCJ=''
19148 hardcode_direct_GCJ=yes
19149 hardcode_libdir_separator_GCJ=':'
19150 link_all_deplibs_GCJ=yes
19151
19152 if test "$GCC" = yes; then
19153 case $host_os in aix4.[012]|aix4.[012].*)
19154 # We only want to do this on AIX 4.2 and lower, the check
19155 # below for broken collect2 doesn't work under 4.3+
19156 collect2name=`${CC} -print-prog-name=collect2`
19157 if test -f "$collect2name" && \
19158 strings "$collect2name" | grep resolve_lib_name >/dev/null
19159 then
19160 # We have reworked collect2
19161 :
19162 else
19163 # We have old collect2
19164 hardcode_direct_GCJ=unsupported
19165 # It fails to find uninstalled libraries when the uninstalled
19166 # path is not listed in the libpath. Setting hardcode_minus_L
19167 # to unsupported forces relinking
19168 hardcode_minus_L_GCJ=yes
19169 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19170 hardcode_libdir_separator_GCJ=
19171 fi
19172 ;;
19173 esac
19174 shared_flag='-shared'
19175 if test "$aix_use_runtimelinking" = yes; then
19176 shared_flag="$shared_flag "'${wl}-G'
19177 fi
19178 else
19179 # not using gcc
19180 if test "$host_cpu" = ia64; then
19181 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19182 # chokes on -Wl,-G. The following line is correct:
19183 shared_flag='-G'
19184 else
19185 if test "$aix_use_runtimelinking" = yes; then
19186 shared_flag='${wl}-G'
19187 else
19188 shared_flag='${wl}-bM:SRE'
19189 fi
19190 fi
19191 fi
19192
19193 # It seems that -bexpall does not export symbols beginning with
19194 # underscore (_), so it is better to generate a list of symbols to export.
19195 always_export_symbols_GCJ=yes
19196 if test "$aix_use_runtimelinking" = yes; then
19197 # Warning - without using the other runtime loading flags (-brtl),
19198 # -berok will link without error, but may produce a broken library.
19199 allow_undefined_flag_GCJ='-berok'
19200 # Determine the default libpath from the value encoded in an empty executable.
19201 cat >conftest.$ac_ext <<_ACEOF
19202/* confdefs.h. */
19203_ACEOF
19204cat confdefs.h >>conftest.$ac_ext
19205cat >>conftest.$ac_ext <<_ACEOF
19206/* end confdefs.h. */
19207
19208int
19209main ()
19210{
19211
19212 ;
19213 return 0;
19214}
19215_ACEOF
19216rm -f conftest.$ac_objext conftest$ac_exeext
19217if { (ac_try="$ac_link"
19218case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221esac
f030cae8
VY
19222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19223$as_echo "$ac_try_echo") >&5
b57f37fb
WP
19224 (eval "$ac_link") 2>conftest.er1
19225 ac_status=$?
19226 grep -v '^ *+' conftest.er1 >conftest.err
19227 rm -f conftest.er1
19228 cat conftest.err >&5
f030cae8 19229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
19230 (exit $ac_status); } && {
19231 test -z "$ac_c_werror_flag" ||
19232 test ! -s conftest.err
f030cae8
VY
19233 } && test -s conftest$ac_exeext && {
19234 test "$cross_compiling" = yes ||
19235 $as_test_x conftest$ac_exeext
19236 }; then
b57f37fb
WP
19237
19238lt_aix_libpath_sed='
19239 /Import File Strings/,/^$/ {
19240 /^0/ {
19241 s/^0 *\(.*\)$/\1/
19242 p
19243 }
19244 }'
19245aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19246# Check for a 64-bit object if we didn't find anything.
19247if test -z "$aix_libpath"; then
19248 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19249fi
19250else
f030cae8 19251 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
19252sed 's/^/| /' conftest.$ac_ext >&5
19253
19254
19255fi
19256
f030cae8 19257rm -rf conftest.dSYM
b57f37fb
WP
19258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19259 conftest$ac_exeext conftest.$ac_ext
19260if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19261
19262 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19263 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19264 else
19265 if test "$host_cpu" = ia64; then
19266 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19267 allow_undefined_flag_GCJ="-z nodefs"
19268 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19269 else
19270 # Determine the default libpath from the value encoded in an empty executable.
19271 cat >conftest.$ac_ext <<_ACEOF
19272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
19277
19278int
19279main ()
19280{
19281
19282 ;
19283 return 0;
19284}
19285_ACEOF
19286rm -f conftest.$ac_objext conftest$ac_exeext
19287if { (ac_try="$ac_link"
19288case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19291esac
f030cae8
VY
19292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19293$as_echo "$ac_try_echo") >&5
b57f37fb
WP
19294 (eval "$ac_link") 2>conftest.er1
19295 ac_status=$?
19296 grep -v '^ *+' conftest.er1 >conftest.err
19297 rm -f conftest.er1
19298 cat conftest.err >&5
f030cae8 19299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
f030cae8
VY
19303 } && test -s conftest$ac_exeext && {
19304 test "$cross_compiling" = yes ||
19305 $as_test_x conftest$ac_exeext
19306 }; then
b57f37fb
WP
19307
19308lt_aix_libpath_sed='
19309 /Import File Strings/,/^$/ {
19310 /^0/ {
19311 s/^0 *\(.*\)$/\1/
19312 p
19313 }
19314 }'
19315aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19316# Check for a 64-bit object if we didn't find anything.
19317if test -z "$aix_libpath"; then
19318 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19319fi
19320else
f030cae8 19321 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
19322sed 's/^/| /' conftest.$ac_ext >&5
19323
19324
19325fi
19326
f030cae8 19327rm -rf conftest.dSYM
b57f37fb
WP
19328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19329 conftest$ac_exeext conftest.$ac_ext
19330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19331
19332 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19333 # Warning - without using the other run time loading flags,
19334 # -berok will link without error, but may produce a broken library.
19335 no_undefined_flag_GCJ=' ${wl}-bernotok'
19336 allow_undefined_flag_GCJ=' ${wl}-berok'
19337 # Exported symbols can be pulled into shared objects from archives
19338 whole_archive_flag_spec_GCJ='$convenience'
19339 archive_cmds_need_lc_GCJ=yes
19340 # This is similar to how AIX traditionally builds its shared libraries.
19341 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19342 fi
19343 fi
19344 ;;
19345
19346 amigaos*)
19347 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19349 hardcode_minus_L_GCJ=yes
19350 # see comment about different semantics on the GNU ld section
19351 ld_shlibs_GCJ=no
19352 ;;
19353
19354 bsdi[45]*)
19355 export_dynamic_flag_spec_GCJ=-rdynamic
19356 ;;
19357
19358 cygwin* | mingw* | pw32*)
19359 # When not using gcc, we currently assume that we are using
19360 # Microsoft Visual C++.
19361 # hardcode_libdir_flag_spec is actually meaningless, as there is
19362 # no search path for DLLs.
19363 hardcode_libdir_flag_spec_GCJ=' '
19364 allow_undefined_flag_GCJ=unsupported
19365 # Tell ltmain to make .lib files, not .a files.
19366 libext=lib
19367 # Tell ltmain to make .dll files, not .so files.
19368 shrext_cmds=".dll"
19369 # FIXME: Setting linknames here is a bad hack.
19370 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19371 # The linker will automatically build a .lib file if we build a DLL.
19372 old_archive_From_new_cmds_GCJ='true'
19373 # FIXME: Should let the user specify the lib program.
19374 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19375 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19376 enable_shared_with_static_runtimes_GCJ=yes
19377 ;;
19378
19379 darwin* | rhapsody*)
19380 case $host_os in
19381 rhapsody* | darwin1.[012])
19382 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19383 ;;
19384 *) # Darwin 1.3 on
19385 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19386 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19387 else
19388 case ${MACOSX_DEPLOYMENT_TARGET} in
19389 10.[012])
19390 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19391 ;;
19392 10.*)
19393 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19394 ;;
19395 esac
19396 fi
19397 ;;
19398 esac
19399 archive_cmds_need_lc_GCJ=no
19400 hardcode_direct_GCJ=no
19401 hardcode_automatic_GCJ=yes
19402 hardcode_shlibpath_var_GCJ=unsupported
19403 whole_archive_flag_spec_GCJ=''
19404 link_all_deplibs_GCJ=yes
19405 if test "$GCC" = yes ; then
19406 output_verbose_link_cmd='echo'
56efe974
WP
19407 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19408 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19409 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19410 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
b57f37fb
WP
19411 else
19412 case $cc_basename in
19413 xlc*)
19414 output_verbose_link_cmd='echo'
19415 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19416 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19417 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19418 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19419 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19420 ;;
19421 *)
19422 ld_shlibs_GCJ=no
19423 ;;
19424 esac
19425 fi
19426 ;;
19427
19428 dgux*)
19429 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19430 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19431 hardcode_shlibpath_var_GCJ=no
19432 ;;
19433
19434 freebsd1*)
19435 ld_shlibs_GCJ=no
19436 ;;
19437
19438 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19439 # support. Future versions do this automatically, but an explicit c++rt0.o
19440 # does not break anything, and helps significantly (at the cost of a little
19441 # extra space).
19442 freebsd2.2*)
19443 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19444 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19445 hardcode_direct_GCJ=yes
19446 hardcode_shlibpath_var_GCJ=no
19447 ;;
19448
19449 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19450 freebsd2*)
19451 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19452 hardcode_direct_GCJ=yes
19453 hardcode_minus_L_GCJ=yes
19454 hardcode_shlibpath_var_GCJ=no
19455 ;;
19456
19457 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19458 freebsd* | dragonfly*)
19459 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19460 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19461 hardcode_direct_GCJ=yes
19462 hardcode_shlibpath_var_GCJ=no
19463 ;;
19464
19465 hpux9*)
19466 if test "$GCC" = yes; then
19467 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19468 else
19469 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19470 fi
19471 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19472 hardcode_libdir_separator_GCJ=:
19473 hardcode_direct_GCJ=yes
19474
19475 # hardcode_minus_L: Not really in the search PATH,
19476 # but as the default location of the library.
19477 hardcode_minus_L_GCJ=yes
19478 export_dynamic_flag_spec_GCJ='${wl}-E'
19479 ;;
19480
19481 hpux10*)
19482 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19483 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19484 else
19485 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19486 fi
19487 if test "$with_gnu_ld" = no; then
19488 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19489 hardcode_libdir_separator_GCJ=:
19490
19491 hardcode_direct_GCJ=yes
19492 export_dynamic_flag_spec_GCJ='${wl}-E'
19493
19494 # hardcode_minus_L: Not really in the search PATH,
19495 # but as the default location of the library.
19496 hardcode_minus_L_GCJ=yes
19497 fi
19498 ;;
19499
19500 hpux11*)
19501 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19502 case $host_cpu in
19503 hppa*64*)
19504 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19505 ;;
19506 ia64*)
19507 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19508 ;;
19509 *)
19510 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19511 ;;
19512 esac
19513 else
19514 case $host_cpu in
19515 hppa*64*)
19516 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19517 ;;
19518 ia64*)
19519 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19520 ;;
19521 *)
19522 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19523 ;;
19524 esac
19525 fi
19526 if test "$with_gnu_ld" = no; then
19527 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19528 hardcode_libdir_separator_GCJ=:
19529
19530 case $host_cpu in
19531 hppa*64*|ia64*)
19532 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19533 hardcode_direct_GCJ=no
19534 hardcode_shlibpath_var_GCJ=no
19535 ;;
19536 *)
19537 hardcode_direct_GCJ=yes
19538 export_dynamic_flag_spec_GCJ='${wl}-E'
19539
19540 # hardcode_minus_L: Not really in the search PATH,
19541 # but as the default location of the library.
19542 hardcode_minus_L_GCJ=yes
19543 ;;
19544 esac
19545 fi
19546 ;;
19547
19548 irix5* | irix6* | nonstopux*)
19549 if test "$GCC" = yes; then
19550 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19551 else
19552 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19553 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19554 fi
19555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19556 hardcode_libdir_separator_GCJ=:
19557 link_all_deplibs_GCJ=yes
19558 ;;
19559
19560 netbsd* | netbsdelf*-gnu)
19561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19562 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19563 else
19564 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19565 fi
19566 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19567 hardcode_direct_GCJ=yes
19568 hardcode_shlibpath_var_GCJ=no
19569 ;;
19570
19571 newsos6)
19572 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19573 hardcode_direct_GCJ=yes
19574 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19575 hardcode_libdir_separator_GCJ=:
19576 hardcode_shlibpath_var_GCJ=no
19577 ;;
19578
19579 openbsd*)
19580 if test -f /usr/libexec/ld.so; then
19581 hardcode_direct_GCJ=yes
19582 hardcode_shlibpath_var_GCJ=no
19583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19584 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19585 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19586 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19587 export_dynamic_flag_spec_GCJ='${wl}-E'
19588 else
19589 case $host_os in
19590 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19591 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19593 ;;
19594 *)
19595 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19596 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19597 ;;
19598 esac
19599 fi
19600 else
19601 ld_shlibs_GCJ=no
19602 fi
19603 ;;
19604
19605 os2*)
19606 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19607 hardcode_minus_L_GCJ=yes
19608 allow_undefined_flag_GCJ=unsupported
19609 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19610 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19611 ;;
19612
19613 osf3*)
19614 if test "$GCC" = yes; then
19615 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19616 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19617 else
19618 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19619 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19620 fi
19621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19622 hardcode_libdir_separator_GCJ=:
19623 ;;
19624
19625 osf4* | osf5*) # as osf3* with the addition of -msym flag
19626 if test "$GCC" = yes; then
19627 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19628 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19629 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19630 else
19631 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19632 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19633 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19634 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19635
19636 # Both c and cxx compiler support -rpath directly
19637 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19638 fi
19639 hardcode_libdir_separator_GCJ=:
19640 ;;
19641
19642 solaris*)
19643 no_undefined_flag_GCJ=' -z text'
19644 if test "$GCC" = yes; then
19645 wlarc='${wl}'
19646 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19647 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19648 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19649 else
19650 wlarc=''
19651 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19653 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19654 fi
19655 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19656 hardcode_shlibpath_var_GCJ=no
19657 case $host_os in
19658 solaris2.[0-5] | solaris2.[0-5].*) ;;
19659 *)
19660 # The compiler driver will combine and reorder linker options,
19661 # but understands `-z linker_flag'. GCC discards it without `$wl',
19662 # but is careful enough not to reorder.
19663 # Supported since Solaris 2.6 (maybe 2.5.1?)
19664 if test "$GCC" = yes; then
19665 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19666 else
19667 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19668 fi
19669 ;;
19670 esac
19671 link_all_deplibs_GCJ=yes
19672 ;;
19673
19674 sunos4*)
19675 if test "x$host_vendor" = xsequent; then
19676 # Use $CC to link under sequent, because it throws in some extra .o
19677 # files that make .init and .fini sections work.
19678 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19679 else
19680 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19681 fi
19682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19683 hardcode_direct_GCJ=yes
19684 hardcode_minus_L_GCJ=yes
19685 hardcode_shlibpath_var_GCJ=no
19686 ;;
19687
19688 sysv4)
19689 case $host_vendor in
19690 sni)
19691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19692 hardcode_direct_GCJ=yes # is this really true???
19693 ;;
19694 siemens)
19695 ## LD is ld it makes a PLAMLIB
19696 ## CC just makes a GrossModule.
19697 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19698 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19699 hardcode_direct_GCJ=no
19700 ;;
19701 motorola)
19702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19703 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19704 ;;
19705 esac
19706 runpath_var='LD_RUN_PATH'
19707 hardcode_shlibpath_var_GCJ=no
19708 ;;
19709
19710 sysv4.3*)
19711 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19712 hardcode_shlibpath_var_GCJ=no
19713 export_dynamic_flag_spec_GCJ='-Bexport'
19714 ;;
19715
19716 sysv4*MP*)
19717 if test -d /usr/nec; then
19718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19719 hardcode_shlibpath_var_GCJ=no
19720 runpath_var=LD_RUN_PATH
19721 hardcode_runpath_var=yes
19722 ld_shlibs_GCJ=yes
19723 fi
19724 ;;
19725
19726 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19727 no_undefined_flag_GCJ='${wl}-z,text'
19728 archive_cmds_need_lc_GCJ=no
19729 hardcode_shlibpath_var_GCJ=no
19730 runpath_var='LD_RUN_PATH'
19731
19732 if test "$GCC" = yes; then
19733 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19734 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19735 else
19736 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19737 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19738 fi
19739 ;;
19740
19741 sysv5* | sco3.2v5* | sco5v6*)
19742 # Note: We can NOT use -z defs as we might desire, because we do not
19743 # link with -lc, and that would cause any symbols used from libc to
19744 # always be unresolved, which means just about no library would
19745 # ever link correctly. If we're not using GNU ld we use -z text
19746 # though, which does catch some bad symbols but isn't as heavy-handed
19747 # as -z defs.
19748 no_undefined_flag_GCJ='${wl}-z,text'
19749 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19750 archive_cmds_need_lc_GCJ=no
19751 hardcode_shlibpath_var_GCJ=no
19752 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19753 hardcode_libdir_separator_GCJ=':'
19754 link_all_deplibs_GCJ=yes
19755 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19756 runpath_var='LD_RUN_PATH'
19757
19758 if test "$GCC" = yes; then
19759 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19760 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19761 else
19762 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19763 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19764 fi
19765 ;;
19766
19767 uts4*)
19768 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19770 hardcode_shlibpath_var_GCJ=no
19771 ;;
19772
19773 *)
19774 ld_shlibs_GCJ=no
19775 ;;
19776 esac
19777 fi
19778
f030cae8
VY
19779{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19780$as_echo "$ld_shlibs_GCJ" >&6; }
b57f37fb
WP
19781test "$ld_shlibs_GCJ" = no && can_build_shared=no
19782
19783#
19784# Do we need to explicitly link libc?
19785#
19786case "x$archive_cmds_need_lc_GCJ" in
19787x|xyes)
19788 # Assume -lc should be added
19789 archive_cmds_need_lc_GCJ=yes
19790
19791 if test "$enable_shared" = yes && test "$GCC" = yes; then
19792 case $archive_cmds_GCJ in
19793 *'~'*)
19794 # FIXME: we may have to deal with multi-command sequences.
19795 ;;
19796 '$CC '*)
19797 # Test whether the compiler implicitly links with -lc since on some
19798 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19799 # to ld, don't add -lc before -lgcc.
f030cae8
VY
19800 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19801$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b57f37fb
WP
19802 $rm conftest*
19803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19804
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806 (eval $ac_compile) 2>&5
19807 ac_status=$?
f030cae8 19808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
19809 (exit $ac_status); } 2>conftest.err; then
19810 soname=conftest
19811 lib=conftest
19812 libobjs=conftest.$ac_objext
19813 deplibs=
19814 wl=$lt_prog_compiler_wl_GCJ
19815 pic_flag=$lt_prog_compiler_pic_GCJ
19816 compiler_flags=-v
19817 linker_flags=-v
19818 verstring=
19819 output_objdir=.
19820 libname=conftest
19821 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19822 allow_undefined_flag_GCJ=
19823 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19824 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19825 ac_status=$?
f030cae8 19826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
19827 (exit $ac_status); }
19828 then
19829 archive_cmds_need_lc_GCJ=no
19830 else
19831 archive_cmds_need_lc_GCJ=yes
19832 fi
19833 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19834 else
19835 cat conftest.err 1>&5
19836 fi
19837 $rm conftest*
f030cae8
VY
19838 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19839$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
b57f37fb
WP
19840 ;;
19841 esac
19842 fi
19843 ;;
19844esac
19845
f030cae8
VY
19846{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19847$as_echo_n "checking dynamic linker characteristics... " >&6; }
b57f37fb
WP
19848library_names_spec=
19849libname_spec='lib$name'
19850soname_spec=
19851shrext_cmds=".so"
19852postinstall_cmds=
19853postuninstall_cmds=
19854finish_cmds=
19855finish_eval=
19856shlibpath_var=
19857shlibpath_overrides_runpath=unknown
19858version_type=none
19859dynamic_linker="$host_os ld.so"
19860sys_lib_dlsearch_path_spec="/lib /usr/lib"
19861
19862need_lib_prefix=unknown
19863hardcode_into_libs=no
19864
19865# when you set need_version to no, make sure it does not cause -set_version
19866# flags to be left without arguments
19867need_version=unknown
19868
19869case $host_os in
19870aix3*)
19871 version_type=linux
19872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19873 shlibpath_var=LIBPATH
19874
19875 # AIX 3 has no versioning support, so we append a major version to the name.
19876 soname_spec='${libname}${release}${shared_ext}$major'
19877 ;;
19878
56efe974 19879aix[4-9]*)
b57f37fb
WP
19880 version_type=linux
19881 need_lib_prefix=no
19882 need_version=no
19883 hardcode_into_libs=yes
19884 if test "$host_cpu" = ia64; then
19885 # AIX 5 supports IA64
19886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19887 shlibpath_var=LD_LIBRARY_PATH
19888 else
19889 # With GCC up to 2.95.x, collect2 would create an import file
19890 # for dependence libraries. The import file would start with
19891 # the line `#! .'. This would cause the generated library to
19892 # depend on `.', always an invalid library. This was fixed in
19893 # development snapshots of GCC prior to 3.0.
19894 case $host_os in
19895 aix4 | aix4.[01] | aix4.[01].*)
19896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19897 echo ' yes '
19898 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19899 :
19900 else
19901 can_build_shared=no
19902 fi
19903 ;;
19904 esac
19905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19906 # soname into executable. Probably we can add versioning support to
19907 # collect2, so additional links can be useful in future.
19908 if test "$aix_use_runtimelinking" = yes; then
19909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19910 # instead of lib<name>.a to let people know that these are not
19911 # typical AIX shared libraries.
19912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19913 else
19914 # We preserve .a as extension for shared libraries through AIX4.2
19915 # and later when we are not doing run time linking.
19916 library_names_spec='${libname}${release}.a $libname.a'
19917 soname_spec='${libname}${release}${shared_ext}$major'
19918 fi
19919 shlibpath_var=LIBPATH
19920 fi
19921 ;;
19922
19923amigaos*)
19924 library_names_spec='$libname.ixlibrary $libname.a'
19925 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19926 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19927 ;;
19928
19929beos*)
19930 library_names_spec='${libname}${shared_ext}'
19931 dynamic_linker="$host_os ld.so"
19932 shlibpath_var=LIBRARY_PATH
19933 ;;
19934
19935bsdi[45]*)
19936 version_type=linux
19937 need_version=no
19938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19939 soname_spec='${libname}${release}${shared_ext}$major'
19940 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19941 shlibpath_var=LD_LIBRARY_PATH
19942 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19943 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19944 # the default ld.so.conf also contains /usr/contrib/lib and
19945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19946 # libtool to hard-code these into programs
19947 ;;
19948
19949cygwin* | mingw* | pw32*)
19950 version_type=windows
19951 shrext_cmds=".dll"
19952 need_version=no
19953 need_lib_prefix=no
19954
19955 case $GCC,$host_os in
19956 yes,cygwin* | yes,mingw* | yes,pw32*)
19957 library_names_spec='$libname.dll.a'
19958 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19959 postinstall_cmds='base_file=`basename \${file}`~
19960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19961 dldir=$destdir/`dirname \$dlpath`~
19962 test -d \$dldir || mkdir -p \$dldir~
19963 $install_prog $dir/$dlname \$dldir/$dlname~
19964 chmod a+x \$dldir/$dlname'
19965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19966 dlpath=$dir/\$dldll~
19967 $rm \$dlpath'
19968 shlibpath_overrides_runpath=yes
19969
19970 case $host_os in
19971 cygwin*)
19972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19973 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19974 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19975 ;;
19976 mingw*)
19977 # MinGW DLLs use traditional 'lib' prefix
19978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19980 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19981 # It is most probably a Windows format PATH printed by
19982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19983 # path with ; separators, and with drive letters. We can handle the
19984 # drive letters (cygwin fileutils understands them), so leave them,
19985 # especially as we might pass files found there to a mingw objdump,
19986 # which wouldn't understand a cygwinified path. Ahh.
19987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19988 else
19989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19990 fi
19991 ;;
19992 pw32*)
19993 # pw32 DLLs use 'pw' prefix rather than 'lib'
19994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19995 ;;
19996 esac
19997 ;;
19998
19999 *)
20000 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20001 ;;
20002 esac
20003 dynamic_linker='Win32 ld.exe'
20004 # FIXME: first we should search . and the directory the executable is in
20005 shlibpath_var=PATH
20006 ;;
20007
20008darwin* | rhapsody*)
20009 dynamic_linker="$host_os dyld"
20010 version_type=darwin
20011 need_lib_prefix=no
20012 need_version=no
20013 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20014 soname_spec='${libname}${release}${major}$shared_ext'
20015 shlibpath_overrides_runpath=yes
20016 shlibpath_var=DYLD_LIBRARY_PATH
20017 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20018
20019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20020 ;;
20021
20022dgux*)
20023 version_type=linux
20024 need_lib_prefix=no
20025 need_version=no
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20027 soname_spec='${libname}${release}${shared_ext}$major'
20028 shlibpath_var=LD_LIBRARY_PATH
20029 ;;
20030
20031freebsd1*)
20032 dynamic_linker=no
20033 ;;
20034
20035freebsd* | dragonfly*)
20036 # DragonFly does not have aout. When/if they implement a new
20037 # versioning mechanism, adjust this.
20038 if test -x /usr/bin/objformat; then
20039 objformat=`/usr/bin/objformat`
20040 else
20041 case $host_os in
20042 freebsd[123]*) objformat=aout ;;
20043 *) objformat=elf ;;
20044 esac
20045 fi
20046 version_type=freebsd-$objformat
20047 case $version_type in
20048 freebsd-elf*)
20049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20050 need_version=no
20051 need_lib_prefix=no
20052 ;;
20053 freebsd-*)
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20055 need_version=yes
20056 ;;
20057 esac
20058 shlibpath_var=LD_LIBRARY_PATH
20059 case $host_os in
20060 freebsd2*)
20061 shlibpath_overrides_runpath=yes
20062 ;;
20063 freebsd3.[01]* | freebsdelf3.[01]*)
20064 shlibpath_overrides_runpath=yes
20065 hardcode_into_libs=yes
20066 ;;
20067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20069 shlibpath_overrides_runpath=no
20070 hardcode_into_libs=yes
20071 ;;
20072 *) # from 4.6 on, and DragonFly
20073 shlibpath_overrides_runpath=yes
20074 hardcode_into_libs=yes
20075 ;;
20076 esac
20077 ;;
20078
20079gnu*)
20080 version_type=linux
20081 need_lib_prefix=no
20082 need_version=no
20083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20084 soname_spec='${libname}${release}${shared_ext}$major'
20085 shlibpath_var=LD_LIBRARY_PATH
20086 hardcode_into_libs=yes
20087 ;;
20088
20089hpux9* | hpux10* | hpux11*)
20090 # Give a soname corresponding to the major version so that dld.sl refuses to
20091 # link against other versions.
20092 version_type=sunos
20093 need_lib_prefix=no
20094 need_version=no
20095 case $host_cpu in
20096 ia64*)
20097 shrext_cmds='.so'
20098 hardcode_into_libs=yes
20099 dynamic_linker="$host_os dld.so"
20100 shlibpath_var=LD_LIBRARY_PATH
20101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20103 soname_spec='${libname}${release}${shared_ext}$major'
20104 if test "X$HPUX_IA64_MODE" = X32; then
20105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20106 else
20107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20108 fi
20109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20110 ;;
20111 hppa*64*)
20112 shrext_cmds='.sl'
20113 hardcode_into_libs=yes
20114 dynamic_linker="$host_os dld.sl"
20115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 soname_spec='${libname}${release}${shared_ext}$major'
20119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20121 ;;
20122 *)
20123 shrext_cmds='.sl'
20124 dynamic_linker="$host_os dld.sl"
20125 shlibpath_var=SHLIB_PATH
20126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20128 soname_spec='${libname}${release}${shared_ext}$major'
20129 ;;
20130 esac
20131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20132 postinstall_cmds='chmod 555 $lib'
20133 ;;
20134
20135interix[3-9]*)
20136 version_type=linux
20137 need_lib_prefix=no
20138 need_version=no
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20142 shlibpath_var=LD_LIBRARY_PATH
20143 shlibpath_overrides_runpath=no
20144 hardcode_into_libs=yes
20145 ;;
20146
20147irix5* | irix6* | nonstopux*)
20148 case $host_os in
20149 nonstopux*) version_type=nonstopux ;;
20150 *)
20151 if test "$lt_cv_prog_gnu_ld" = yes; then
20152 version_type=linux
20153 else
20154 version_type=irix
20155 fi ;;
20156 esac
20157 need_lib_prefix=no
20158 need_version=no
20159 soname_spec='${libname}${release}${shared_ext}$major'
20160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20161 case $host_os in
20162 irix5* | nonstopux*)
20163 libsuff= shlibsuff=
20164 ;;
20165 *)
20166 case $LD in # libtool.m4 will add one of these switches to LD
20167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20168 libsuff= shlibsuff= libmagic=32-bit;;
20169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20170 libsuff=32 shlibsuff=N32 libmagic=N32;;
20171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20172 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20173 *) libsuff= shlibsuff= libmagic=never-match;;
20174 esac
20175 ;;
20176 esac
20177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20178 shlibpath_overrides_runpath=no
20179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20181 hardcode_into_libs=yes
20182 ;;
20183
20184# No shared lib support for Linux oldld, aout, or coff.
20185linux*oldld* | linux*aout* | linux*coff*)
20186 dynamic_linker=no
20187 ;;
20188
20189# This must be Linux ELF.
20190linux* | k*bsd*-gnu)
20191 version_type=linux
20192 need_lib_prefix=no
20193 need_version=no
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20197 shlibpath_var=LD_LIBRARY_PATH
20198 shlibpath_overrides_runpath=no
20199 # This implies no fast_install, which is unacceptable.
20200 # Some rework will be needed to allow for fast_install
20201 # before this can be enabled.
20202 hardcode_into_libs=yes
20203
20204 # Append ld.so.conf contents to the search path
20205 if test -f /etc/ld.so.conf; then
20206 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20208 fi
20209
20210 # We used to test for /lib/ld.so.1 and disable shared libraries on
20211 # powerpc, because MkLinux only supported shared libraries with the
20212 # GNU dynamic linker. Since this was broken with cross compilers,
20213 # most powerpc-linux boxes support dynamic linking these days and
20214 # people can always --disable-shared, the test was removed, and we
20215 # assume the GNU/Linux dynamic linker is in use.
20216 dynamic_linker='GNU/Linux ld.so'
20217 ;;
20218
20219netbsdelf*-gnu)
20220 version_type=linux
20221 need_lib_prefix=no
20222 need_version=no
20223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20224 soname_spec='${libname}${release}${shared_ext}$major'
20225 shlibpath_var=LD_LIBRARY_PATH
20226 shlibpath_overrides_runpath=no
20227 hardcode_into_libs=yes
20228 dynamic_linker='NetBSD ld.elf_so'
20229 ;;
20230
20231netbsd*)
20232 version_type=sunos
20233 need_lib_prefix=no
20234 need_version=no
20235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20238 dynamic_linker='NetBSD (a.out) ld.so'
20239 else
20240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20241 soname_spec='${libname}${release}${shared_ext}$major'
20242 dynamic_linker='NetBSD ld.elf_so'
20243 fi
20244 shlibpath_var=LD_LIBRARY_PATH
20245 shlibpath_overrides_runpath=yes
20246 hardcode_into_libs=yes
20247 ;;
20248
20249newsos6)
20250 version_type=linux
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=yes
20254 ;;
20255
20256nto-qnx*)
20257 version_type=linux
20258 need_lib_prefix=no
20259 need_version=no
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 soname_spec='${libname}${release}${shared_ext}$major'
20262 shlibpath_var=LD_LIBRARY_PATH
20263 shlibpath_overrides_runpath=yes
20264 ;;
20265
20266openbsd*)
20267 version_type=sunos
20268 sys_lib_dlsearch_path_spec="/usr/lib"
20269 need_lib_prefix=no
20270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20271 case $host_os in
20272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20273 *) need_version=no ;;
20274 esac
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20277 shlibpath_var=LD_LIBRARY_PATH
20278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20279 case $host_os in
20280 openbsd2.[89] | openbsd2.[89].*)
20281 shlibpath_overrides_runpath=no
20282 ;;
20283 *)
20284 shlibpath_overrides_runpath=yes
20285 ;;
20286 esac
20287 else
20288 shlibpath_overrides_runpath=yes
20289 fi
20290 ;;
20291
20292os2*)
20293 libname_spec='$name'
20294 shrext_cmds=".dll"
20295 need_lib_prefix=no
20296 library_names_spec='$libname${shared_ext} $libname.a'
20297 dynamic_linker='OS/2 ld.exe'
20298 shlibpath_var=LIBPATH
20299 ;;
20300
20301osf3* | osf4* | osf5*)
20302 version_type=osf
20303 need_lib_prefix=no
20304 need_version=no
20305 soname_spec='${libname}${release}${shared_ext}$major'
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20310 ;;
20311
20312rdos*)
20313 dynamic_linker=no
20314 ;;
20315
20316solaris*)
20317 version_type=linux
20318 need_lib_prefix=no
20319 need_version=no
20320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20321 soname_spec='${libname}${release}${shared_ext}$major'
20322 shlibpath_var=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath=yes
20324 hardcode_into_libs=yes
20325 # ldd complains unless libraries are executable
20326 postinstall_cmds='chmod +x $lib'
20327 ;;
20328
20329sunos4*)
20330 version_type=sunos
20331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20333 shlibpath_var=LD_LIBRARY_PATH
20334 shlibpath_overrides_runpath=yes
20335 if test "$with_gnu_ld" = yes; then
20336 need_lib_prefix=no
20337 fi
20338 need_version=yes
20339 ;;
20340
20341sysv4 | sysv4.3*)
20342 version_type=linux
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 case $host_vendor in
20347 sni)
20348 shlibpath_overrides_runpath=no
20349 need_lib_prefix=no
20350 export_dynamic_flag_spec='${wl}-Blargedynsym'
20351 runpath_var=LD_RUN_PATH
20352 ;;
20353 siemens)
20354 need_lib_prefix=no
20355 ;;
20356 motorola)
20357 need_lib_prefix=no
20358 need_version=no
20359 shlibpath_overrides_runpath=no
20360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20361 ;;
20362 esac
20363 ;;
20364
20365sysv4*MP*)
20366 if test -d /usr/nec ;then
20367 version_type=linux
20368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20369 soname_spec='$libname${shared_ext}.$major'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 fi
20372 ;;
20373
20374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20375 version_type=freebsd-elf
20376 need_lib_prefix=no
20377 need_version=no
20378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20379 soname_spec='${libname}${release}${shared_ext}$major'
20380 shlibpath_var=LD_LIBRARY_PATH
20381 hardcode_into_libs=yes
20382 if test "$with_gnu_ld" = yes; then
20383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20384 shlibpath_overrides_runpath=no
20385 else
20386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20387 shlibpath_overrides_runpath=yes
20388 case $host_os in
20389 sco3.2v5*)
20390 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20391 ;;
20392 esac
20393 fi
20394 sys_lib_dlsearch_path_spec='/usr/lib'
20395 ;;
20396
20397uts4*)
20398 version_type=linux
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 ;;
20403
20404*)
20405 dynamic_linker=no
20406 ;;
20407esac
f030cae8
VY
20408{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20409$as_echo "$dynamic_linker" >&6; }
b57f37fb
WP
20410test "$dynamic_linker" = no && can_build_shared=no
20411
56efe974 20412if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
f030cae8 20413 $as_echo_n "(cached) " >&6
56efe974
WP
20414else
20415 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20416fi
20417
20418sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20419if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
f030cae8 20420 $as_echo_n "(cached) " >&6
56efe974
WP
20421else
20422 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20423fi
20424
20425sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20426
b57f37fb
WP
20427variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20428if test "$GCC" = yes; then
20429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20430fi
20431
f030cae8
VY
20432{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20433$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
b57f37fb
WP
20434hardcode_action_GCJ=
20435if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20436 test -n "$runpath_var_GCJ" || \
20437 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20438
20439 # We can hardcode non-existant directories.
20440 if test "$hardcode_direct_GCJ" != no &&
20441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20442 # have to relink, otherwise we might link with an installed library
20443 # when we should be linking with a yet-to-be-installed one
20444 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20445 test "$hardcode_minus_L_GCJ" != no; then
20446 # Linking always hardcodes the temporary library directory.
20447 hardcode_action_GCJ=relink
20448 else
20449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20450 hardcode_action_GCJ=immediate
20451 fi
20452else
20453 # We cannot hardcode anything, or else we can only hardcode existing
20454 # directories.
20455 hardcode_action_GCJ=unsupported
20456fi
f030cae8
VY
20457{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20458$as_echo "$hardcode_action_GCJ" >&6; }
b57f37fb
WP
20459
20460if test "$hardcode_action_GCJ" = relink; then
20461 # Fast installation is not supported
20462 enable_fast_install=no
20463elif test "$shlibpath_overrides_runpath" = yes ||
20464 test "$enable_shared" = no; then
20465 # Fast installation is not necessary
20466 enable_fast_install=needless
20467fi
20468
20469
20470# The else clause should only fire when bootstrapping the
20471# libtool distribution, otherwise you forgot to ship ltmain.sh
20472# with your package, and you will get complaints that there are
20473# no rules to generate ltmain.sh.
20474if test -f "$ltmain"; then
20475 # See if we are running on zsh, and set the options which allow our commands through
20476 # without removal of \ escapes.
20477 if test -n "${ZSH_VERSION+set}" ; then
20478 setopt NO_GLOB_SUBST
20479 fi
20480 # Now quote all the things that may contain metacharacters while being
20481 # careful not to overquote the AC_SUBSTed values. We take copies of the
20482 # variables and quote the copies for generation of the libtool script.
20483 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20484 SED SHELL STRIP \
20485 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20486 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20487 deplibs_check_method reload_flag reload_cmds need_locks \
20488 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20489 lt_cv_sys_global_symbol_to_c_name_address \
20490 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20491 old_postinstall_cmds old_postuninstall_cmds \
20492 compiler_GCJ \
20493 CC_GCJ \
20494 LD_GCJ \
20495 lt_prog_compiler_wl_GCJ \
20496 lt_prog_compiler_pic_GCJ \
20497 lt_prog_compiler_static_GCJ \
20498 lt_prog_compiler_no_builtin_flag_GCJ \
20499 export_dynamic_flag_spec_GCJ \
20500 thread_safe_flag_spec_GCJ \
20501 whole_archive_flag_spec_GCJ \
20502 enable_shared_with_static_runtimes_GCJ \
20503 old_archive_cmds_GCJ \
20504 old_archive_from_new_cmds_GCJ \
20505 predep_objects_GCJ \
20506 postdep_objects_GCJ \
20507 predeps_GCJ \
20508 postdeps_GCJ \
20509 compiler_lib_search_path_GCJ \
56efe974 20510 compiler_lib_search_dirs_GCJ \
b57f37fb
WP
20511 archive_cmds_GCJ \
20512 archive_expsym_cmds_GCJ \
20513 postinstall_cmds_GCJ \
20514 postuninstall_cmds_GCJ \
20515 old_archive_from_expsyms_cmds_GCJ \
20516 allow_undefined_flag_GCJ \
20517 no_undefined_flag_GCJ \
20518 export_symbols_cmds_GCJ \
20519 hardcode_libdir_flag_spec_GCJ \
20520 hardcode_libdir_flag_spec_ld_GCJ \
20521 hardcode_libdir_separator_GCJ \
20522 hardcode_automatic_GCJ \
20523 module_cmds_GCJ \
20524 module_expsym_cmds_GCJ \
20525 lt_cv_prog_compiler_c_o_GCJ \
20526 fix_srcfile_path_GCJ \
20527 exclude_expsyms_GCJ \
20528 include_expsyms_GCJ; do
20529
20530 case $var in
20531 old_archive_cmds_GCJ | \
20532 old_archive_from_new_cmds_GCJ | \
20533 archive_cmds_GCJ | \
20534 archive_expsym_cmds_GCJ | \
20535 module_cmds_GCJ | \
20536 module_expsym_cmds_GCJ | \
20537 old_archive_from_expsyms_cmds_GCJ | \
20538 export_symbols_cmds_GCJ | \
20539 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20540 postinstall_cmds | postuninstall_cmds | \
20541 old_postinstall_cmds | old_postuninstall_cmds | \
20542 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20543 # Double-quote double-evaled strings.
20544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20545 ;;
20546 *)
20547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20548 ;;
20549 esac
20550 done
20551
20552 case $lt_echo in
20553 *'\$0 --fallback-echo"')
20554 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20555 ;;
20556 esac
20557
20558cfgfile="$ofile"
20559
20560 cat <<__EOF__ >> "$cfgfile"
20561# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20562
20563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20564
20565# Shell to use when invoking shell scripts.
20566SHELL=$lt_SHELL
20567
20568# Whether or not to build shared libraries.
20569build_libtool_libs=$enable_shared
20570
20571# Whether or not to build static libraries.
20572build_old_libs=$enable_static
20573
20574# Whether or not to add -lc for building shared libraries.
20575build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20576
20577# Whether or not to disallow shared libs when runtime libs are static
20578allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20579
20580# Whether or not to optimize for fast installation.
20581fast_install=$enable_fast_install
20582
20583# The host system.
20584host_alias=$host_alias
20585host=$host
20586host_os=$host_os
20587
20588# The build system.
20589build_alias=$build_alias
20590build=$build
20591build_os=$build_os
20592
20593# An echo program that does not interpret backslashes.
20594echo=$lt_echo
20595
20596# The archiver.
20597AR=$lt_AR
20598AR_FLAGS=$lt_AR_FLAGS
20599
20600# A C compiler.
20601LTCC=$lt_LTCC
20602
20603# LTCC compiler flags.
20604LTCFLAGS=$lt_LTCFLAGS
20605
20606# A language-specific compiler.
20607CC=$lt_compiler_GCJ
20608
20609# Is the compiler the GNU C compiler?
20610with_gcc=$GCC_GCJ
20611
20612# An ERE matcher.
20613EGREP=$lt_EGREP
20614
20615# The linker used to build libraries.
20616LD=$lt_LD_GCJ
20617
20618# Whether we need hard or soft links.
20619LN_S=$lt_LN_S
20620
20621# A BSD-compatible nm program.
20622NM=$lt_NM
20623
20624# A symbol stripping program
20625STRIP=$lt_STRIP
20626
20627# Used to examine libraries when file_magic_cmd begins "file"
20628MAGIC_CMD=$MAGIC_CMD
20629
20630# Used on cygwin: DLL creation program.
20631DLLTOOL="$DLLTOOL"
20632
20633# Used on cygwin: object dumper.
20634OBJDUMP="$OBJDUMP"
20635
20636# Used on cygwin: assembler.
20637AS="$AS"
20638
20639# The name of the directory that contains temporary libtool files.
20640objdir=$objdir
20641
20642# How to create reloadable object files.
20643reload_flag=$lt_reload_flag
20644reload_cmds=$lt_reload_cmds
20645
20646# How to pass a linker flag through the compiler.
20647wl=$lt_lt_prog_compiler_wl_GCJ
20648
20649# Object file suffix (normally "o").
20650objext="$ac_objext"
20651
20652# Old archive suffix (normally "a").
20653libext="$libext"
20654
20655# Shared library suffix (normally ".so").
20656shrext_cmds='$shrext_cmds'
20657
20658# Executable file suffix (normally "").
20659exeext="$exeext"
20660
20661# Additional compiler flags for building library objects.
20662pic_flag=$lt_lt_prog_compiler_pic_GCJ
20663pic_mode=$pic_mode
20664
20665# What is the maximum length of a command?
20666max_cmd_len=$lt_cv_sys_max_cmd_len
20667
20668# Does compiler simultaneously support -c and -o options?
20669compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20670
20671# Must we lock files when doing compilation?
20672need_locks=$lt_need_locks
20673
20674# Do we need the lib prefix for modules?
20675need_lib_prefix=$need_lib_prefix
20676
20677# Do we need a version for libraries?
20678need_version=$need_version
20679
20680# Whether dlopen is supported.
20681dlopen_support=$enable_dlopen
20682
20683# Whether dlopen of programs is supported.
20684dlopen_self=$enable_dlopen_self
20685
20686# Whether dlopen of statically linked programs is supported.
20687dlopen_self_static=$enable_dlopen_self_static
20688
20689# Compiler flag to prevent dynamic linking.
20690link_static_flag=$lt_lt_prog_compiler_static_GCJ
20691
20692# Compiler flag to turn off builtin functions.
20693no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20694
20695# Compiler flag to allow reflexive dlopens.
20696export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20697
20698# Compiler flag to generate shared objects directly from archives.
20699whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20700
20701# Compiler flag to generate thread-safe objects.
20702thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20703
20704# Library versioning type.
20705version_type=$version_type
20706
20707# Format of library name prefix.
20708libname_spec=$lt_libname_spec
20709
20710# List of archive names. First name is the real one, the rest are links.
20711# The last name is the one that the linker finds with -lNAME.
20712library_names_spec=$lt_library_names_spec
20713
20714# The coded name of the library, if different from the real name.
20715soname_spec=$lt_soname_spec
20716
20717# Commands used to build and install an old-style archive.
20718RANLIB=$lt_RANLIB
20719old_archive_cmds=$lt_old_archive_cmds_GCJ
20720old_postinstall_cmds=$lt_old_postinstall_cmds
20721old_postuninstall_cmds=$lt_old_postuninstall_cmds
20722
20723# Create an old-style archive from a shared archive.
20724old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20725
20726# Create a temporary old-style archive to link instead of a shared archive.
20727old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20728
20729# Commands used to build and install a shared archive.
20730archive_cmds=$lt_archive_cmds_GCJ
20731archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20732postinstall_cmds=$lt_postinstall_cmds
20733postuninstall_cmds=$lt_postuninstall_cmds
20734
20735# Commands used to build a loadable module (assumed same as above if empty)
20736module_cmds=$lt_module_cmds_GCJ
20737module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20738
20739# Commands to strip libraries.
20740old_striplib=$lt_old_striplib
20741striplib=$lt_striplib
20742
20743# Dependencies to place before the objects being linked to create a
20744# shared library.
20745predep_objects=$lt_predep_objects_GCJ
20746
20747# Dependencies to place after the objects being linked to create a
20748# shared library.
20749postdep_objects=$lt_postdep_objects_GCJ
20750
20751# Dependencies to place before the objects being linked to create a
20752# shared library.
20753predeps=$lt_predeps_GCJ
20754
20755# Dependencies to place after the objects being linked to create a
20756# shared library.
20757postdeps=$lt_postdeps_GCJ
20758
56efe974
WP
20759# The directories searched by this compiler when creating a shared
20760# library
20761compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20762
b57f37fb
WP
20763# The library search path used internally by the compiler when linking
20764# a shared library.
20765compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20766
20767# Method to check whether dependent libraries are shared objects.
20768deplibs_check_method=$lt_deplibs_check_method
20769
20770# Command to use when deplibs_check_method == file_magic.
20771file_magic_cmd=$lt_file_magic_cmd
20772
20773# Flag that allows shared libraries with undefined symbols to be built.
20774allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20775
20776# Flag that forces no undefined symbols.
20777no_undefined_flag=$lt_no_undefined_flag_GCJ
20778
20779# Commands used to finish a libtool library installation in a directory.
20780finish_cmds=$lt_finish_cmds
20781
20782# Same as above, but a single script fragment to be evaled but not shown.
20783finish_eval=$lt_finish_eval
20784
20785# Take the output of nm and produce a listing of raw symbols and C names.
20786global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20787
20788# Transform the output of nm in a proper C declaration
20789global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20790
20791# Transform the output of nm in a C name address pair
20792global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20793
20794# This is the shared library runtime path variable.
20795runpath_var=$runpath_var
20796
20797# This is the shared library path variable.
20798shlibpath_var=$shlibpath_var
20799
20800# Is shlibpath searched before the hard-coded library search path?
20801shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20802
20803# How to hardcode a shared library path into an executable.
20804hardcode_action=$hardcode_action_GCJ
20805
20806# Whether we should hardcode library paths into libraries.
20807hardcode_into_libs=$hardcode_into_libs
20808
20809# Flag to hardcode \$libdir into a binary during linking.
20810# This must work even if \$libdir does not exist.
20811hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20812
20813# If ld is used when linking, flag to hardcode \$libdir into
20814# a binary during linking. This must work even if \$libdir does
20815# not exist.
20816hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20817
20818# Whether we need a single -rpath flag with a separated argument.
20819hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20820
20821# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20822# resulting binary.
20823hardcode_direct=$hardcode_direct_GCJ
20824
20825# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20826# resulting binary.
20827hardcode_minus_L=$hardcode_minus_L_GCJ
20828
20829# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20830# the resulting binary.
20831hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20832
20833# Set to yes if building a shared library automatically hardcodes DIR into the library
20834# and all subsequent libraries and executables linked against it.
20835hardcode_automatic=$hardcode_automatic_GCJ
20836
20837# Variables whose values should be saved in libtool wrapper scripts and
20838# restored at relink time.
20839variables_saved_for_relink="$variables_saved_for_relink"
20840
20841# Whether libtool must link a program against all its dependency libraries.
20842link_all_deplibs=$link_all_deplibs_GCJ
20843
20844# Compile-time system search path for libraries
20845sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20846
20847# Run-time system search path for libraries
20848sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20849
20850# Fix the shell variable \$srcfile for the compiler.
20851fix_srcfile_path=$lt_fix_srcfile_path
20852
20853# Set to yes if exported symbols are required.
20854always_export_symbols=$always_export_symbols_GCJ
20855
20856# The commands to list exported symbols.
20857export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20858
20859# The commands to extract the exported symbol list from a shared archive.
20860extract_expsyms_cmds=$lt_extract_expsyms_cmds
20861
20862# Symbols that should not be listed in the preloaded symbols.
20863exclude_expsyms=$lt_exclude_expsyms_GCJ
20864
20865# Symbols that must always be exported.
20866include_expsyms=$lt_include_expsyms_GCJ
20867
20868# ### END LIBTOOL TAG CONFIG: $tagname
20869
20870__EOF__
20871
20872
20873else
20874 # If there is no Makefile yet, we rely on a make rule to execute
20875 # `config.status --recheck' to rerun these tests and create the
20876 # libtool script then.
20877 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20878 if test -f "$ltmain_in"; then
20879 test -f Makefile && make "$ltmain"
20880 fi
20881fi
20882
20883
20884ac_ext=c
20885ac_cpp='$CPP $CPPFLAGS'
20886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20888ac_compiler_gnu=$ac_cv_c_compiler_gnu
20889
20890CC="$lt_save_CC"
20891
20892 else
20893 tagname=""
20894 fi
20895 ;;
20896
20897 RC)
20898
20899
20900# Source file extension for RC test sources.
20901ac_ext=rc
20902
20903# Object file extension for compiled RC test sources.
20904objext=o
20905objext_RC=$objext
20906
20907# Code to be used in simple compile tests
20908lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20909
20910# Code to be used in simple link tests
20911lt_simple_link_test_code="$lt_simple_compile_test_code"
20912
20913# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20914
20915# If no C compiler was specified, use CC.
20916LTCC=${LTCC-"$CC"}
20917
20918# If no C compiler flags were specified, use CFLAGS.
20919LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20920
20921# Allow CC to be a program name with arguments.
20922compiler=$CC
20923
20924
20925# save warnings/boilerplate of simple test code
20926ac_outfile=conftest.$ac_objext
20927echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20928eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20929_lt_compiler_boilerplate=`cat conftest.err`
20930$rm conftest*
20931
20932ac_outfile=conftest.$ac_objext
20933echo "$lt_simple_link_test_code" >conftest.$ac_ext
20934eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20935_lt_linker_boilerplate=`cat conftest.err`
56efe974 20936$rm -r conftest*
b57f37fb
WP
20937
20938
20939# Allow CC to be a program name with arguments.
20940lt_save_CC="$CC"
20941CC=${RC-"windres"}
20942compiler=$CC
20943compiler_RC=$CC
20944for cc_temp in $compiler""; do
20945 case $cc_temp in
20946 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20947 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20948 \-*) ;;
20949 *) break;;
20950 esac
20951done
20952cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20953
20954lt_cv_prog_compiler_c_o_RC=yes
20955
20956# The else clause should only fire when bootstrapping the
20957# libtool distribution, otherwise you forgot to ship ltmain.sh
20958# with your package, and you will get complaints that there are
20959# no rules to generate ltmain.sh.
20960if test -f "$ltmain"; then
20961 # See if we are running on zsh, and set the options which allow our commands through
20962 # without removal of \ escapes.
20963 if test -n "${ZSH_VERSION+set}" ; then
20964 setopt NO_GLOB_SUBST
20965 fi
20966 # Now quote all the things that may contain metacharacters while being
20967 # careful not to overquote the AC_SUBSTed values. We take copies of the
20968 # variables and quote the copies for generation of the libtool script.
20969 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20970 SED SHELL STRIP \
20971 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20972 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20973 deplibs_check_method reload_flag reload_cmds need_locks \
20974 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20975 lt_cv_sys_global_symbol_to_c_name_address \
20976 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20977 old_postinstall_cmds old_postuninstall_cmds \
20978 compiler_RC \
20979 CC_RC \
20980 LD_RC \
20981 lt_prog_compiler_wl_RC \
20982 lt_prog_compiler_pic_RC \
20983 lt_prog_compiler_static_RC \
20984 lt_prog_compiler_no_builtin_flag_RC \
20985 export_dynamic_flag_spec_RC \
20986 thread_safe_flag_spec_RC \
20987 whole_archive_flag_spec_RC \
20988 enable_shared_with_static_runtimes_RC \
20989 old_archive_cmds_RC \
20990 old_archive_from_new_cmds_RC \
20991 predep_objects_RC \
20992 postdep_objects_RC \
20993 predeps_RC \
20994 postdeps_RC \
20995 compiler_lib_search_path_RC \
56efe974 20996 compiler_lib_search_dirs_RC \
b57f37fb
WP
20997 archive_cmds_RC \
20998 archive_expsym_cmds_RC \
20999 postinstall_cmds_RC \
21000 postuninstall_cmds_RC \
21001 old_archive_from_expsyms_cmds_RC \
21002 allow_undefined_flag_RC \
21003 no_undefined_flag_RC \
21004 export_symbols_cmds_RC \
21005 hardcode_libdir_flag_spec_RC \
21006 hardcode_libdir_flag_spec_ld_RC \
21007 hardcode_libdir_separator_RC \
21008 hardcode_automatic_RC \
21009 module_cmds_RC \
21010 module_expsym_cmds_RC \
21011 lt_cv_prog_compiler_c_o_RC \
21012 fix_srcfile_path_RC \
21013 exclude_expsyms_RC \
21014 include_expsyms_RC; do
21015
21016 case $var in
21017 old_archive_cmds_RC | \
21018 old_archive_from_new_cmds_RC | \
21019 archive_cmds_RC | \
21020 archive_expsym_cmds_RC | \
21021 module_cmds_RC | \
21022 module_expsym_cmds_RC | \
21023 old_archive_from_expsyms_cmds_RC | \
21024 export_symbols_cmds_RC | \
21025 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21026 postinstall_cmds | postuninstall_cmds | \
21027 old_postinstall_cmds | old_postuninstall_cmds | \
21028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21029 # Double-quote double-evaled strings.
21030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21031 ;;
21032 *)
21033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21034 ;;
21035 esac
21036 done
21037
21038 case $lt_echo in
21039 *'\$0 --fallback-echo"')
21040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21041 ;;
21042 esac
21043
21044cfgfile="$ofile"
21045
21046 cat <<__EOF__ >> "$cfgfile"
21047# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21048
21049# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21050
21051# Shell to use when invoking shell scripts.
21052SHELL=$lt_SHELL
21053
21054# Whether or not to build shared libraries.
21055build_libtool_libs=$enable_shared
21056
21057# Whether or not to build static libraries.
21058build_old_libs=$enable_static
21059
21060# Whether or not to add -lc for building shared libraries.
21061build_libtool_need_lc=$archive_cmds_need_lc_RC
21062
21063# Whether or not to disallow shared libs when runtime libs are static
21064allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21065
21066# Whether or not to optimize for fast installation.
21067fast_install=$enable_fast_install
21068
21069# The host system.
21070host_alias=$host_alias
21071host=$host
21072host_os=$host_os
21073
21074# The build system.
21075build_alias=$build_alias
21076build=$build
21077build_os=$build_os
21078
21079# An echo program that does not interpret backslashes.
21080echo=$lt_echo
21081
21082# The archiver.
21083AR=$lt_AR
21084AR_FLAGS=$lt_AR_FLAGS
21085
21086# A C compiler.
21087LTCC=$lt_LTCC
21088
21089# LTCC compiler flags.
21090LTCFLAGS=$lt_LTCFLAGS
21091
21092# A language-specific compiler.
21093CC=$lt_compiler_RC
21094
21095# Is the compiler the GNU C compiler?
21096with_gcc=$GCC_RC
21097
21098# An ERE matcher.
21099EGREP=$lt_EGREP
21100
21101# The linker used to build libraries.
21102LD=$lt_LD_RC
21103
21104# Whether we need hard or soft links.
21105LN_S=$lt_LN_S
21106
21107# A BSD-compatible nm program.
21108NM=$lt_NM
21109
21110# A symbol stripping program
21111STRIP=$lt_STRIP
21112
21113# Used to examine libraries when file_magic_cmd begins "file"
21114MAGIC_CMD=$MAGIC_CMD
21115
21116# Used on cygwin: DLL creation program.
21117DLLTOOL="$DLLTOOL"
21118
21119# Used on cygwin: object dumper.
21120OBJDUMP="$OBJDUMP"
21121
21122# Used on cygwin: assembler.
21123AS="$AS"
21124
21125# The name of the directory that contains temporary libtool files.
21126objdir=$objdir
21127
21128# How to create reloadable object files.
21129reload_flag=$lt_reload_flag
21130reload_cmds=$lt_reload_cmds
21131
21132# How to pass a linker flag through the compiler.
21133wl=$lt_lt_prog_compiler_wl_RC
21134
21135# Object file suffix (normally "o").
21136objext="$ac_objext"
21137
21138# Old archive suffix (normally "a").
21139libext="$libext"
21140
21141# Shared library suffix (normally ".so").
21142shrext_cmds='$shrext_cmds'
21143
21144# Executable file suffix (normally "").
21145exeext="$exeext"
21146
21147# Additional compiler flags for building library objects.
21148pic_flag=$lt_lt_prog_compiler_pic_RC
21149pic_mode=$pic_mode
21150
21151# What is the maximum length of a command?
21152max_cmd_len=$lt_cv_sys_max_cmd_len
21153
21154# Does compiler simultaneously support -c and -o options?
21155compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21156
21157# Must we lock files when doing compilation?
21158need_locks=$lt_need_locks
21159
21160# Do we need the lib prefix for modules?
21161need_lib_prefix=$need_lib_prefix
21162
21163# Do we need a version for libraries?
21164need_version=$need_version
21165
21166# Whether dlopen is supported.
21167dlopen_support=$enable_dlopen
21168
21169# Whether dlopen of programs is supported.
21170dlopen_self=$enable_dlopen_self
21171
21172# Whether dlopen of statically linked programs is supported.
21173dlopen_self_static=$enable_dlopen_self_static
21174
21175# Compiler flag to prevent dynamic linking.
21176link_static_flag=$lt_lt_prog_compiler_static_RC
21177
21178# Compiler flag to turn off builtin functions.
21179no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21180
21181# Compiler flag to allow reflexive dlopens.
21182export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21183
21184# Compiler flag to generate shared objects directly from archives.
21185whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21186
21187# Compiler flag to generate thread-safe objects.
21188thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21189
21190# Library versioning type.
21191version_type=$version_type
21192
21193# Format of library name prefix.
21194libname_spec=$lt_libname_spec
21195
21196# List of archive names. First name is the real one, the rest are links.
21197# The last name is the one that the linker finds with -lNAME.
21198library_names_spec=$lt_library_names_spec
21199
21200# The coded name of the library, if different from the real name.
21201soname_spec=$lt_soname_spec
21202
21203# Commands used to build and install an old-style archive.
21204RANLIB=$lt_RANLIB
21205old_archive_cmds=$lt_old_archive_cmds_RC
21206old_postinstall_cmds=$lt_old_postinstall_cmds
21207old_postuninstall_cmds=$lt_old_postuninstall_cmds
21208
21209# Create an old-style archive from a shared archive.
21210old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21211
21212# Create a temporary old-style archive to link instead of a shared archive.
21213old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21214
21215# Commands used to build and install a shared archive.
21216archive_cmds=$lt_archive_cmds_RC
21217archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21218postinstall_cmds=$lt_postinstall_cmds
21219postuninstall_cmds=$lt_postuninstall_cmds
21220
21221# Commands used to build a loadable module (assumed same as above if empty)
21222module_cmds=$lt_module_cmds_RC
21223module_expsym_cmds=$lt_module_expsym_cmds_RC
21224
21225# Commands to strip libraries.
21226old_striplib=$lt_old_striplib
21227striplib=$lt_striplib
21228
21229# Dependencies to place before the objects being linked to create a
21230# shared library.
21231predep_objects=$lt_predep_objects_RC
21232
21233# Dependencies to place after the objects being linked to create a
21234# shared library.
21235postdep_objects=$lt_postdep_objects_RC
21236
21237# Dependencies to place before the objects being linked to create a
21238# shared library.
21239predeps=$lt_predeps_RC
21240
21241# Dependencies to place after the objects being linked to create a
21242# shared library.
21243postdeps=$lt_postdeps_RC
21244
56efe974
WP
21245# The directories searched by this compiler when creating a shared
21246# library
21247compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21248
b57f37fb
WP
21249# The library search path used internally by the compiler when linking
21250# a shared library.
21251compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21252
21253# Method to check whether dependent libraries are shared objects.
21254deplibs_check_method=$lt_deplibs_check_method
21255
21256# Command to use when deplibs_check_method == file_magic.
21257file_magic_cmd=$lt_file_magic_cmd
21258
21259# Flag that allows shared libraries with undefined symbols to be built.
21260allow_undefined_flag=$lt_allow_undefined_flag_RC
21261
21262# Flag that forces no undefined symbols.
21263no_undefined_flag=$lt_no_undefined_flag_RC
21264
21265# Commands used to finish a libtool library installation in a directory.
21266finish_cmds=$lt_finish_cmds
21267
21268# Same as above, but a single script fragment to be evaled but not shown.
21269finish_eval=$lt_finish_eval
21270
21271# Take the output of nm and produce a listing of raw symbols and C names.
21272global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21273
21274# Transform the output of nm in a proper C declaration
21275global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21276
21277# Transform the output of nm in a C name address pair
21278global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21279
21280# This is the shared library runtime path variable.
21281runpath_var=$runpath_var
21282
21283# This is the shared library path variable.
21284shlibpath_var=$shlibpath_var
21285
21286# Is shlibpath searched before the hard-coded library search path?
21287shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21288
21289# How to hardcode a shared library path into an executable.
21290hardcode_action=$hardcode_action_RC
21291
21292# Whether we should hardcode library paths into libraries.
21293hardcode_into_libs=$hardcode_into_libs
21294
21295# Flag to hardcode \$libdir into a binary during linking.
21296# This must work even if \$libdir does not exist.
21297hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21298
21299# If ld is used when linking, flag to hardcode \$libdir into
21300# a binary during linking. This must work even if \$libdir does
21301# not exist.
21302hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21303
21304# Whether we need a single -rpath flag with a separated argument.
21305hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21306
21307# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21308# resulting binary.
21309hardcode_direct=$hardcode_direct_RC
21310
21311# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21312# resulting binary.
21313hardcode_minus_L=$hardcode_minus_L_RC
21314
21315# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21316# the resulting binary.
21317hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21318
21319# Set to yes if building a shared library automatically hardcodes DIR into the library
21320# and all subsequent libraries and executables linked against it.
21321hardcode_automatic=$hardcode_automatic_RC
21322
21323# Variables whose values should be saved in libtool wrapper scripts and
21324# restored at relink time.
21325variables_saved_for_relink="$variables_saved_for_relink"
21326
21327# Whether libtool must link a program against all its dependency libraries.
21328link_all_deplibs=$link_all_deplibs_RC
21329
21330# Compile-time system search path for libraries
21331sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21332
21333# Run-time system search path for libraries
21334sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21335
21336# Fix the shell variable \$srcfile for the compiler.
21337fix_srcfile_path=$lt_fix_srcfile_path
21338
21339# Set to yes if exported symbols are required.
21340always_export_symbols=$always_export_symbols_RC
21341
21342# The commands to list exported symbols.
21343export_symbols_cmds=$lt_export_symbols_cmds_RC
21344
21345# The commands to extract the exported symbol list from a shared archive.
21346extract_expsyms_cmds=$lt_extract_expsyms_cmds
21347
21348# Symbols that should not be listed in the preloaded symbols.
21349exclude_expsyms=$lt_exclude_expsyms_RC
21350
21351# Symbols that must always be exported.
21352include_expsyms=$lt_include_expsyms_RC
21353
21354# ### END LIBTOOL TAG CONFIG: $tagname
21355
21356__EOF__
21357
21358
21359else
21360 # If there is no Makefile yet, we rely on a make rule to execute
21361 # `config.status --recheck' to rerun these tests and create the
21362 # libtool script then.
21363 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21364 if test -f "$ltmain_in"; then
21365 test -f Makefile && make "$ltmain"
21366 fi
21367fi
21368
21369
21370ac_ext=c
21371ac_cpp='$CPP $CPPFLAGS'
21372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374ac_compiler_gnu=$ac_cv_c_compiler_gnu
21375
21376CC="$lt_save_CC"
21377
21378 ;;
21379
21380 *)
f030cae8
VY
21381 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21382$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
b57f37fb
WP
21383 { (exit 1); exit 1; }; }
21384 ;;
21385 esac
21386
21387 # Append the new tag name to the list of available tags.
21388 if test -n "$tagname" ; then
21389 available_tags="$available_tags $tagname"
21390 fi
21391 fi
21392 done
21393 IFS="$lt_save_ifs"
21394
21395 # Now substitute the updated list of available tags.
21396 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21397 mv "${ofile}T" "$ofile"
21398 chmod +x "$ofile"
21399 else
21400 rm -f "${ofile}T"
f030cae8
VY
21401 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21402$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
b57f37fb
WP
21403 { (exit 1); exit 1; }; }
21404 fi
21405fi
21406
21407
21408
21409# This can be used to rebuild libtool when needed
21410LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21411
21412# Always use our own libtool.
21413LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21414
21415# Prevent multiple expansion
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437LIBTOOL="$LIBTOOL --silent"
21438
b57f37fb
WP
21439case "$host_os" in
21440*cygwin*)
21441
21442cat >>confdefs.h <<_ACEOF
21443#define CYGWIN 1
21444_ACEOF
21445
21446
21447cat >>confdefs.h <<_ACEOF
21448#define WINDOWS 1
21449_ACEOF
21450
21451 ;;
21452*mingw*)
21453
21454cat >>confdefs.h <<_ACEOF
21455#define MINGW 1
21456_ACEOF
21457
21458
21459cat >>confdefs.h <<_ACEOF
21460#define WINDOWS 1
21461_ACEOF
21462
21463 if test "${ac_cv_header_windows_h+set}" = set; then
f030cae8
VY
21464 { $as_echo "$as_me:$LINENO: checking for windows.h" >&5
21465$as_echo_n "checking for windows.h... " >&6; }
b57f37fb 21466if test "${ac_cv_header_windows_h+set}" = set; then
f030cae8 21467 $as_echo_n "(cached) " >&6
b57f37fb 21468fi
f030cae8
VY
21469{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21470$as_echo "$ac_cv_header_windows_h" >&6; }
b57f37fb
WP
21471else
21472 # Is the header compilable?
f030cae8
VY
21473{ $as_echo "$as_me:$LINENO: checking windows.h usability" >&5
21474$as_echo_n "checking windows.h usability... " >&6; }
b57f37fb
WP
21475cat >conftest.$ac_ext <<_ACEOF
21476/* confdefs.h. */
21477_ACEOF
21478cat confdefs.h >>conftest.$ac_ext
21479cat >>conftest.$ac_ext <<_ACEOF
21480/* end confdefs.h. */
21481$ac_includes_default
21482#include <windows.h>
21483_ACEOF
21484rm -f conftest.$ac_objext
21485if { (ac_try="$ac_compile"
21486case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21489esac
f030cae8
VY
21490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21491$as_echo "$ac_try_echo") >&5
b57f37fb
WP
21492 (eval "$ac_compile") 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
f030cae8 21497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 ac_header_compiler=yes
21503else
f030cae8 21504 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
21505sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ac_header_compiler=no
21508fi
21509
21510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
21511{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21512$as_echo "$ac_header_compiler" >&6; }
b57f37fb
WP
21513
21514# Is the header present?
f030cae8
VY
21515{ $as_echo "$as_me:$LINENO: checking windows.h presence" >&5
21516$as_echo_n "checking windows.h presence... " >&6; }
b57f37fb
WP
21517cat >conftest.$ac_ext <<_ACEOF
21518/* confdefs.h. */
21519_ACEOF
21520cat confdefs.h >>conftest.$ac_ext
21521cat >>conftest.$ac_ext <<_ACEOF
21522/* end confdefs.h. */
21523#include <windows.h>
21524_ACEOF
21525if { (ac_try="$ac_cpp conftest.$ac_ext"
21526case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21529esac
f030cae8
VY
21530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21531$as_echo "$ac_try_echo") >&5
b57f37fb
WP
21532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21533 ac_status=$?
21534 grep -v '^ *+' conftest.er1 >conftest.err
21535 rm -f conftest.er1
21536 cat conftest.err >&5
f030cae8 21537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
21538 (exit $ac_status); } >/dev/null && {
21539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 }; then
21542 ac_header_preproc=yes
21543else
f030cae8 21544 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
21545sed 's/^/| /' conftest.$ac_ext >&5
21546
21547 ac_header_preproc=no
21548fi
21549
21550rm -f conftest.err conftest.$ac_ext
f030cae8
VY
21551{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21552$as_echo "$ac_header_preproc" >&6; }
b57f37fb
WP
21553
21554# So? What about this header?
21555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21556 yes:no: )
f030cae8
VY
21557 { $as_echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21558$as_echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21559 { $as_echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21560$as_echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
b57f37fb
WP
21561 ac_header_preproc=yes
21562 ;;
21563 no:yes:* )
f030cae8
VY
21564 { $as_echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21565$as_echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21566 { $as_echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21567$as_echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21568 { $as_echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21569$as_echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21570 { $as_echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21571$as_echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21572 { $as_echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21573$as_echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21574 { $as_echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21575$as_echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
b57f37fb
WP
21576
21577 ;;
21578esac
f030cae8
VY
21579{ $as_echo "$as_me:$LINENO: checking for windows.h" >&5
21580$as_echo_n "checking for windows.h... " >&6; }
b57f37fb 21581if test "${ac_cv_header_windows_h+set}" = set; then
f030cae8 21582 $as_echo_n "(cached) " >&6
b57f37fb
WP
21583else
21584 ac_cv_header_windows_h=$ac_header_preproc
21585fi
f030cae8
VY
21586{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21587$as_echo "$ac_cv_header_windows_h" >&6; }
b57f37fb
WP
21588
21589fi
f030cae8 21590if test "x$ac_cv_header_windows_h" = x""yes; then
b57f37fb
WP
21591 :
21592else
f030cae8
VY
21593 { { $as_echo "$as_me:$LINENO: error: ** MinGW and no windows.h. I give up." >&5
21594$as_echo "$as_me: error: ** MinGW and no windows.h. I give up." >&2;}
b57f37fb
WP
21595 { (exit 1); exit 1; }; }
21596fi
21597
21598
21599 if test "${ac_cv_header_winsock2_h+set}" = set; then
f030cae8
VY
21600 { $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
21601$as_echo_n "checking for winsock2.h... " >&6; }
b57f37fb 21602if test "${ac_cv_header_winsock2_h+set}" = set; then
f030cae8 21603 $as_echo_n "(cached) " >&6
b57f37fb 21604fi
f030cae8
VY
21605{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21606$as_echo "$ac_cv_header_winsock2_h" >&6; }
b57f37fb
WP
21607else
21608 # Is the header compilable?
f030cae8
VY
21609{ $as_echo "$as_me:$LINENO: checking winsock2.h usability" >&5
21610$as_echo_n "checking winsock2.h usability... " >&6; }
b57f37fb
WP
21611cat >conftest.$ac_ext <<_ACEOF
21612/* confdefs.h. */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h. */
21617$ac_includes_default
21618#include <winsock2.h>
21619_ACEOF
21620rm -f conftest.$ac_objext
21621if { (ac_try="$ac_compile"
21622case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21625esac
f030cae8
VY
21626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21627$as_echo "$ac_try_echo") >&5
b57f37fb
WP
21628 (eval "$ac_compile") 2>conftest.er1
21629 ac_status=$?
21630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
f030cae8 21633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
21634 (exit $ac_status); } && {
21635 test -z "$ac_c_werror_flag" ||
21636 test ! -s conftest.err
21637 } && test -s conftest.$ac_objext; then
21638 ac_header_compiler=yes
21639else
f030cae8 21640 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
21641sed 's/^/| /' conftest.$ac_ext >&5
21642
21643 ac_header_compiler=no
21644fi
21645
21646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
21647{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21648$as_echo "$ac_header_compiler" >&6; }
b57f37fb
WP
21649
21650# Is the header present?
f030cae8
VY
21651{ $as_echo "$as_me:$LINENO: checking winsock2.h presence" >&5
21652$as_echo_n "checking winsock2.h presence... " >&6; }
b57f37fb
WP
21653cat >conftest.$ac_ext <<_ACEOF
21654/* confdefs.h. */
21655_ACEOF
21656cat confdefs.h >>conftest.$ac_ext
21657cat >>conftest.$ac_ext <<_ACEOF
21658/* end confdefs.h. */
21659#include <winsock2.h>
21660_ACEOF
21661if { (ac_try="$ac_cpp conftest.$ac_ext"
21662case "(($ac_try" in
21663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664 *) ac_try_echo=$ac_try;;
21665esac
f030cae8
VY
21666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21667$as_echo "$ac_try_echo") >&5
b57f37fb
WP
21668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
f030cae8 21673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
21674 (exit $ac_status); } >/dev/null && {
21675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 }; then
21678 ac_header_preproc=yes
21679else
f030cae8 21680 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
21681sed 's/^/| /' conftest.$ac_ext >&5
21682
21683 ac_header_preproc=no
21684fi
21685
21686rm -f conftest.err conftest.$ac_ext
f030cae8
VY
21687{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21688$as_echo "$ac_header_preproc" >&6; }
b57f37fb
WP
21689
21690# So? What about this header?
21691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21692 yes:no: )
f030cae8
VY
21693 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&5
21694$as_echo "$as_me: WARNING: winsock2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21695 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the compiler's result" >&5
21696$as_echo "$as_me: WARNING: winsock2.h: proceeding with the compiler's result" >&2;}
b57f37fb
WP
21697 ac_header_preproc=yes
21698 ;;
21699 no:yes:* )
f030cae8
VY
21700 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: present but cannot be compiled" >&5
21701$as_echo "$as_me: WARNING: winsock2.h: present but cannot be compiled" >&2;}
21702 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: check for missing prerequisite headers?" >&5
21703$as_echo "$as_me: WARNING: winsock2.h: check for missing prerequisite headers?" >&2;}
21704 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: see the Autoconf documentation" >&5
21705$as_echo "$as_me: WARNING: winsock2.h: see the Autoconf documentation" >&2;}
21706 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&5
21707$as_echo "$as_me: WARNING: winsock2.h: section \"Present But Cannot Be Compiled\"" >&2;}
21708 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: proceeding with the preprocessor's result" >&5
21709$as_echo "$as_me: WARNING: winsock2.h: proceeding with the preprocessor's result" >&2;}
21710 { $as_echo "$as_me:$LINENO: WARNING: winsock2.h: in the future, the compiler will take precedence" >&5
21711$as_echo "$as_me: WARNING: winsock2.h: in the future, the compiler will take precedence" >&2;}
b57f37fb
WP
21712
21713 ;;
21714esac
f030cae8
VY
21715{ $as_echo "$as_me:$LINENO: checking for winsock2.h" >&5
21716$as_echo_n "checking for winsock2.h... " >&6; }
b57f37fb 21717if test "${ac_cv_header_winsock2_h+set}" = set; then
f030cae8 21718 $as_echo_n "(cached) " >&6
b57f37fb
WP
21719else
21720 ac_cv_header_winsock2_h=$ac_header_preproc
21721fi
f030cae8
VY
21722{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
21723$as_echo "$ac_cv_header_winsock2_h" >&6; }
b57f37fb
WP
21724
21725fi
f030cae8 21726if test "x$ac_cv_header_winsock2_h" = x""yes; then
b57f37fb
WP
21727 :
21728else
f030cae8
VY
21729 { { $as_echo "$as_me:$LINENO: error: ** MinGW and no winsock2.h. I give up." >&5
21730$as_echo "$as_me: error: ** MinGW and no winsock2.h. I give up." >&2;}
b57f37fb
WP
21731 { (exit 1); exit 1; }; }
21732fi
21733
21734
94b4fbf9
VY
21735
21736cat >>confdefs.h <<_ACEOF
21737#define HAVE_WINSOCK2_H 1
21738_ACEOF
21739
21740
21741cat >>confdefs.h <<_ACEOF
21742#define HAVE_WINSOCK_H 1
21743_ACEOF
21744
b57f37fb
WP
21745 LIBS="$LIBS -lws2_32 -liphlpapi"
21746 is_mingw="yes"
21747 ;;
21748*interix*)
21749 CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
21750 ;;
f030cae8
VY
21751*solaris*)
21752 CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
b57f37fb
WP
21753 ;;
21754*)
21755 ;;
21756esac
21757
21758 if test "$is_mingw" = "yes"; then
21759 MINGW_TRUE=
21760 MINGW_FALSE='#'
21761else
21762 MINGW_TRUE='#'
21763 MINGW_FALSE=
21764fi
21765
21766
21767
21768# backwards support for IRC_CFLAGS
94b4fbf9 21769CFLAGS="$IRC_CFLAGS $CFLAGS -Wall"
b57f37fb
WP
21770
21771if test "$libexecdir" = '${exec_prefix}/libexec' &&
21772 test "$localstatedir" = '${prefix}/var'; then
21773 libexecdir='${bindir}'
21774 localstatedir='${prefix}'
21775fi
21776
f030cae8
VY
21777{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
21778$as_echo_n "checking for pid_t... " >&6; }
b57f37fb 21779if test "${ac_cv_type_pid_t+set}" = set; then
f030cae8 21780 $as_echo_n "(cached) " >&6
b57f37fb 21781else
f030cae8
VY
21782 ac_cv_type_pid_t=no
21783cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
21784/* confdefs.h. */
21785_ACEOF
21786cat confdefs.h >>conftest.$ac_ext
21787cat >>conftest.$ac_ext <<_ACEOF
21788/* end confdefs.h. */
21789$ac_includes_default
b57f37fb
WP
21790int
21791main ()
21792{
f030cae8
VY
21793if (sizeof (pid_t))
21794 return 0;
21795 ;
b57f37fb 21796 return 0;
f030cae8
VY
21797}
21798_ACEOF
21799rm -f conftest.$ac_objext
21800if { (ac_try="$ac_compile"
21801case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21804esac
21805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21806$as_echo "$ac_try_echo") >&5
21807 (eval "$ac_compile") 2>conftest.er1
21808 ac_status=$?
21809 grep -v '^ *+' conftest.er1 >conftest.err
21810 rm -f conftest.er1
21811 cat conftest.err >&5
21812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && {
21814 test -z "$ac_c_werror_flag" ||
21815 test ! -s conftest.err
21816 } && test -s conftest.$ac_objext; then
21817 cat >conftest.$ac_ext <<_ACEOF
21818/* confdefs.h. */
21819_ACEOF
21820cat confdefs.h >>conftest.$ac_ext
21821cat >>conftest.$ac_ext <<_ACEOF
21822/* end confdefs.h. */
21823$ac_includes_default
21824int
21825main ()
21826{
21827if (sizeof ((pid_t)))
21828 return 0;
b57f37fb
WP
21829 ;
21830 return 0;
21831}
21832_ACEOF
21833rm -f conftest.$ac_objext
21834if { (ac_try="$ac_compile"
21835case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21838esac
f030cae8
VY
21839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21840$as_echo "$ac_try_echo") >&5
b57f37fb
WP
21841 (eval "$ac_compile") 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
f030cae8 21846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.$ac_objext; then
f030cae8 21851 :
b57f37fb 21852else
f030cae8 21853 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
f030cae8 21856 ac_cv_type_pid_t=yes
b57f37fb
WP
21857fi
21858
21859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
21860else
21861 $as_echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864
b57f37fb 21865fi
f030cae8
VY
21866
21867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868fi
21869{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21870$as_echo "$ac_cv_type_pid_t" >&6; }
21871if test "x$ac_cv_type_pid_t" = x""yes; then
b57f37fb
WP
21872 :
21873else
21874
21875cat >>confdefs.h <<_ACEOF
21876#define pid_t int
21877_ACEOF
21878
21879fi
21880
f030cae8
VY
21881{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
21882$as_echo_n "checking for size_t... " >&6; }
b57f37fb 21883if test "${ac_cv_type_size_t+set}" = set; then
f030cae8 21884 $as_echo_n "(cached) " >&6
b57f37fb 21885else
f030cae8
VY
21886 ac_cv_type_size_t=no
21887cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
21888/* confdefs.h. */
21889_ACEOF
21890cat confdefs.h >>conftest.$ac_ext
21891cat >>conftest.$ac_ext <<_ACEOF
21892/* end confdefs.h. */
21893$ac_includes_default
b57f37fb
WP
21894int
21895main ()
21896{
f030cae8
VY
21897if (sizeof (size_t))
21898 return 0;
21899 ;
b57f37fb 21900 return 0;
f030cae8
VY
21901}
21902_ACEOF
21903rm -f conftest.$ac_objext
21904if { (ac_try="$ac_compile"
21905case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908esac
21909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21910$as_echo "$ac_try_echo") >&5
21911 (eval "$ac_compile") 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest.$ac_objext; then
21921 cat >conftest.$ac_ext <<_ACEOF
21922/* confdefs.h. */
21923_ACEOF
21924cat confdefs.h >>conftest.$ac_ext
21925cat >>conftest.$ac_ext <<_ACEOF
21926/* end confdefs.h. */
21927$ac_includes_default
21928int
21929main ()
21930{
21931if (sizeof ((size_t)))
21932 return 0;
b57f37fb
WP
21933 ;
21934 return 0;
21935}
21936_ACEOF
21937rm -f conftest.$ac_objext
21938if { (ac_try="$ac_compile"
21939case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21942esac
f030cae8
VY
21943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21944$as_echo "$ac_try_echo") >&5
b57f37fb
WP
21945 (eval "$ac_compile") 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
f030cae8 21950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
21951 (exit $ac_status); } && {
21952 test -z "$ac_c_werror_flag" ||
21953 test ! -s conftest.err
21954 } && test -s conftest.$ac_objext; then
f030cae8
VY
21955 :
21956else
21957 $as_echo "$as_me: failed program was:" >&5
21958sed 's/^/| /' conftest.$ac_ext >&5
21959
21960 ac_cv_type_size_t=yes
21961fi
21962
21963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b57f37fb 21964else
f030cae8 21965 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
21966sed 's/^/| /' conftest.$ac_ext >&5
21967
f030cae8 21968
b57f37fb
WP
21969fi
21970
21971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972fi
f030cae8
VY
21973{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21974$as_echo "$ac_cv_type_size_t" >&6; }
21975if test "x$ac_cv_type_size_t" = x""yes; then
b57f37fb
WP
21976 :
21977else
21978
21979cat >>confdefs.h <<_ACEOF
21980#define size_t unsigned int
21981_ACEOF
21982
21983fi
21984
f030cae8
VY
21985{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
21986$as_echo_n "checking for ssize_t... " >&6; }
b57f37fb 21987if test "${ac_cv_type_ssize_t+set}" = set; then
f030cae8 21988 $as_echo_n "(cached) " >&6
b57f37fb 21989else
f030cae8
VY
21990 ac_cv_type_ssize_t=no
21991cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
21992/* confdefs.h. */
21993_ACEOF
21994cat confdefs.h >>conftest.$ac_ext
21995cat >>conftest.$ac_ext <<_ACEOF
21996/* end confdefs.h. */
21997$ac_includes_default
b57f37fb
WP
21998int
21999main ()
22000{
f030cae8
VY
22001if (sizeof (ssize_t))
22002 return 0;
22003 ;
b57f37fb 22004 return 0;
f030cae8
VY
22005}
22006_ACEOF
22007rm -f conftest.$ac_objext
22008if { (ac_try="$ac_compile"
22009case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012esac
22013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014$as_echo "$ac_try_echo") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22025 cat >conftest.$ac_ext <<_ACEOF
22026/* confdefs.h. */
22027_ACEOF
22028cat confdefs.h >>conftest.$ac_ext
22029cat >>conftest.$ac_ext <<_ACEOF
22030/* end confdefs.h. */
22031$ac_includes_default
22032int
22033main ()
22034{
22035if (sizeof ((ssize_t)))
22036 return 0;
b57f37fb
WP
22037 ;
22038 return 0;
22039}
22040_ACEOF
22041rm -f conftest.$ac_objext
22042if { (ac_try="$ac_compile"
22043case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22046esac
f030cae8
VY
22047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22048$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22049 (eval "$ac_compile") 2>conftest.er1
22050 ac_status=$?
22051 grep -v '^ *+' conftest.er1 >conftest.err
22052 rm -f conftest.er1
22053 cat conftest.err >&5
f030cae8 22054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22055 (exit $ac_status); } && {
22056 test -z "$ac_c_werror_flag" ||
22057 test ! -s conftest.err
22058 } && test -s conftest.$ac_objext; then
f030cae8
VY
22059 :
22060else
22061 $as_echo "$as_me: failed program was:" >&5
22062sed 's/^/| /' conftest.$ac_ext >&5
22063
22064 ac_cv_type_ssize_t=yes
22065fi
22066
22067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b57f37fb 22068else
f030cae8 22069 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22070sed 's/^/| /' conftest.$ac_ext >&5
22071
f030cae8 22072
b57f37fb
WP
22073fi
22074
22075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076fi
f030cae8
VY
22077{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22078$as_echo "$ac_cv_type_ssize_t" >&6; }
22079if test "x$ac_cv_type_ssize_t" = x""yes; then
b57f37fb
WP
22080 :
22081else
22082
22083cat >>confdefs.h <<_ACEOF
22084#define ssize_t int
22085_ACEOF
22086
22087fi
22088
f030cae8
VY
22089{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22090$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
b57f37fb 22091if test "${ac_cv_type_uid_t+set}" = set; then
f030cae8 22092 $as_echo_n "(cached) " >&6
b57f37fb
WP
22093else
22094 cat >conftest.$ac_ext <<_ACEOF
22095/* confdefs.h. */
22096_ACEOF
22097cat confdefs.h >>conftest.$ac_ext
22098cat >>conftest.$ac_ext <<_ACEOF
22099/* end confdefs.h. */
22100#include <sys/types.h>
22101
22102_ACEOF
22103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22104 $EGREP "uid_t" >/dev/null 2>&1; then
22105 ac_cv_type_uid_t=yes
22106else
22107 ac_cv_type_uid_t=no
22108fi
22109rm -f conftest*
22110
22111fi
f030cae8
VY
22112{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22113$as_echo "$ac_cv_type_uid_t" >&6; }
b57f37fb
WP
22114if test $ac_cv_type_uid_t = no; then
22115
22116cat >>confdefs.h <<\_ACEOF
22117#define uid_t int
22118_ACEOF
22119
22120
22121cat >>confdefs.h <<\_ACEOF
22122#define gid_t int
22123_ACEOF
22124
22125fi
22126
22127
22128
f030cae8
VY
22129{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22130$as_echo_n "checking for ANSI C header files... " >&6; }
b57f37fb 22131if test "${ac_cv_header_stdc+set}" = set; then
f030cae8 22132 $as_echo_n "(cached) " >&6
b57f37fb
WP
22133else
22134 cat >conftest.$ac_ext <<_ACEOF
22135/* confdefs.h. */
22136_ACEOF
22137cat confdefs.h >>conftest.$ac_ext
22138cat >>conftest.$ac_ext <<_ACEOF
22139/* end confdefs.h. */
22140#include <stdlib.h>
22141#include <stdarg.h>
22142#include <string.h>
22143#include <float.h>
22144
22145int
22146main ()
22147{
22148
22149 ;
22150 return 0;
22151}
22152_ACEOF
22153rm -f conftest.$ac_objext
22154if { (ac_try="$ac_compile"
22155case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158esac
f030cae8
VY
22159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22160$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22161 (eval "$ac_compile") 2>conftest.er1
22162 ac_status=$?
22163 grep -v '^ *+' conftest.er1 >conftest.err
22164 rm -f conftest.er1
22165 cat conftest.err >&5
f030cae8 22166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22167 (exit $ac_status); } && {
22168 test -z "$ac_c_werror_flag" ||
22169 test ! -s conftest.err
22170 } && test -s conftest.$ac_objext; then
22171 ac_cv_header_stdc=yes
22172else
f030cae8 22173 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22174sed 's/^/| /' conftest.$ac_ext >&5
22175
22176 ac_cv_header_stdc=no
22177fi
22178
22179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22180
22181if test $ac_cv_header_stdc = yes; then
22182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22183 cat >conftest.$ac_ext <<_ACEOF
22184/* confdefs.h. */
22185_ACEOF
22186cat confdefs.h >>conftest.$ac_ext
22187cat >>conftest.$ac_ext <<_ACEOF
22188/* end confdefs.h. */
22189#include <string.h>
22190
22191_ACEOF
22192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22193 $EGREP "memchr" >/dev/null 2>&1; then
22194 :
22195else
22196 ac_cv_header_stdc=no
22197fi
22198rm -f conftest*
22199
22200fi
22201
22202if test $ac_cv_header_stdc = yes; then
22203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22204 cat >conftest.$ac_ext <<_ACEOF
22205/* confdefs.h. */
22206_ACEOF
22207cat confdefs.h >>conftest.$ac_ext
22208cat >>conftest.$ac_ext <<_ACEOF
22209/* end confdefs.h. */
22210#include <stdlib.h>
22211
22212_ACEOF
22213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22214 $EGREP "free" >/dev/null 2>&1; then
22215 :
22216else
22217 ac_cv_header_stdc=no
22218fi
22219rm -f conftest*
22220
22221fi
22222
22223if test $ac_cv_header_stdc = yes; then
22224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22225 if test "$cross_compiling" = yes; then
22226 :
22227else
22228 cat >conftest.$ac_ext <<_ACEOF
22229/* confdefs.h. */
22230_ACEOF
22231cat confdefs.h >>conftest.$ac_ext
22232cat >>conftest.$ac_ext <<_ACEOF
22233/* end confdefs.h. */
22234#include <ctype.h>
22235#include <stdlib.h>
22236#if ((' ' & 0x0FF) == 0x020)
22237# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22238# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22239#else
22240# define ISLOWER(c) \
22241 (('a' <= (c) && (c) <= 'i') \
22242 || ('j' <= (c) && (c) <= 'r') \
22243 || ('s' <= (c) && (c) <= 'z'))
22244# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22245#endif
22246
22247#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22248int
22249main ()
22250{
22251 int i;
22252 for (i = 0; i < 256; i++)
22253 if (XOR (islower (i), ISLOWER (i))
22254 || toupper (i) != TOUPPER (i))
22255 return 2;
22256 return 0;
22257}
22258_ACEOF
22259rm -f conftest$ac_exeext
22260if { (ac_try="$ac_link"
22261case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22264esac
f030cae8
VY
22265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22266$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22267 (eval "$ac_link") 2>&5
22268 ac_status=$?
f030cae8 22269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22271 { (case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22274esac
f030cae8
VY
22275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22276$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22277 (eval "$ac_try") 2>&5
22278 ac_status=$?
f030cae8 22279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22280 (exit $ac_status); }; }; then
22281 :
22282else
f030cae8
VY
22283 $as_echo "$as_me: program exited with status $ac_status" >&5
22284$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22285sed 's/^/| /' conftest.$ac_ext >&5
22286
22287( exit $ac_status )
22288ac_cv_header_stdc=no
22289fi
f030cae8 22290rm -rf conftest.dSYM
b57f37fb
WP
22291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22292fi
22293
22294
22295fi
22296fi
f030cae8
VY
22297{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22298$as_echo "$ac_cv_header_stdc" >&6; }
b57f37fb
WP
22299if test $ac_cv_header_stdc = yes; then
22300
22301cat >>confdefs.h <<\_ACEOF
22302#define STDC_HEADERS 1
22303_ACEOF
22304
22305fi
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
94b4fbf9
VY
22327
22328for ac_header in crypt.h unistd.h sys/socket.h sys/stat.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h sys/uio.h spawn.h sys/poll.h sys/epoll.h sys/select.h sys/devpoll.h sys/event.h port.h signal.h sys/signalfd.h sys/timerfd.h
b57f37fb 22329do
f030cae8 22330as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
b57f37fb 22331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8
VY
22332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22333$as_echo_n "checking for $ac_header... " >&6; }
b57f37fb 22334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 22335 $as_echo_n "(cached) " >&6
b57f37fb 22336fi
f030cae8
VY
22337ac_res=`eval 'as_val=${'$as_ac_Header'}
22338 $as_echo "$as_val"'`
22339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22340$as_echo "$ac_res" >&6; }
b57f37fb
WP
22341else
22342 # Is the header compilable?
f030cae8
VY
22343{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22344$as_echo_n "checking $ac_header usability... " >&6; }
b57f37fb
WP
22345cat >conftest.$ac_ext <<_ACEOF
22346/* confdefs.h. */
22347_ACEOF
22348cat confdefs.h >>conftest.$ac_ext
22349cat >>conftest.$ac_ext <<_ACEOF
22350/* end confdefs.h. */
22351$ac_includes_default
22352#include <$ac_header>
22353_ACEOF
22354rm -f conftest.$ac_objext
22355if { (ac_try="$ac_compile"
22356case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22359esac
f030cae8
VY
22360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22361$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22362 (eval "$ac_compile") 2>conftest.er1
22363 ac_status=$?
22364 grep -v '^ *+' conftest.er1 >conftest.err
22365 rm -f conftest.er1
22366 cat conftest.err >&5
f030cae8 22367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22368 (exit $ac_status); } && {
22369 test -z "$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 } && test -s conftest.$ac_objext; then
22372 ac_header_compiler=yes
22373else
f030cae8 22374 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22375sed 's/^/| /' conftest.$ac_ext >&5
22376
22377 ac_header_compiler=no
22378fi
22379
22380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
22381{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22382$as_echo "$ac_header_compiler" >&6; }
b57f37fb
WP
22383
22384# Is the header present?
f030cae8
VY
22385{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22386$as_echo_n "checking $ac_header presence... " >&6; }
b57f37fb
WP
22387cat >conftest.$ac_ext <<_ACEOF
22388/* confdefs.h. */
22389_ACEOF
22390cat confdefs.h >>conftest.$ac_ext
22391cat >>conftest.$ac_ext <<_ACEOF
22392/* end confdefs.h. */
22393#include <$ac_header>
22394_ACEOF
22395if { (ac_try="$ac_cpp conftest.$ac_ext"
22396case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22399esac
f030cae8
VY
22400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22401$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22403 ac_status=$?
22404 grep -v '^ *+' conftest.er1 >conftest.err
22405 rm -f conftest.er1
22406 cat conftest.err >&5
f030cae8 22407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22408 (exit $ac_status); } >/dev/null && {
22409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 }; then
22412 ac_header_preproc=yes
22413else
f030cae8 22414 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22415sed 's/^/| /' conftest.$ac_ext >&5
22416
22417 ac_header_preproc=no
22418fi
22419
22420rm -f conftest.err conftest.$ac_ext
f030cae8
VY
22421{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22422$as_echo "$ac_header_preproc" >&6; }
b57f37fb
WP
22423
22424# So? What about this header?
22425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22426 yes:no: )
f030cae8
VY
22427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22428$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22430$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
b57f37fb
WP
22431 ac_header_preproc=yes
22432 ;;
22433 no:yes:* )
f030cae8
VY
22434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22435$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22437$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22439$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22441$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22443$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22445$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b57f37fb
WP
22446
22447 ;;
22448esac
f030cae8
VY
22449{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22450$as_echo_n "checking for $ac_header... " >&6; }
b57f37fb 22451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 22452 $as_echo_n "(cached) " >&6
b57f37fb
WP
22453else
22454 eval "$as_ac_Header=\$ac_header_preproc"
22455fi
f030cae8
VY
22456ac_res=`eval 'as_val=${'$as_ac_Header'}
22457 $as_echo "$as_val"'`
22458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22459$as_echo "$ac_res" >&6; }
b57f37fb
WP
22460
22461fi
f030cae8
VY
22462as_val=`eval 'as_val=${'$as_ac_Header'}
22463 $as_echo "$as_val"'`
22464 if test "x$as_val" = x""yes; then
b57f37fb 22465 cat >>confdefs.h <<_ACEOF
f030cae8 22466#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b57f37fb
WP
22467_ACEOF
22468
22469fi
22470
22471done
22472
f030cae8
VY
22473{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22474$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
b57f37fb 22475if test "${ac_cv_header_time+set}" = set; then
f030cae8 22476 $as_echo_n "(cached) " >&6
b57f37fb
WP
22477else
22478 cat >conftest.$ac_ext <<_ACEOF
22479/* confdefs.h. */
22480_ACEOF
22481cat confdefs.h >>conftest.$ac_ext
22482cat >>conftest.$ac_ext <<_ACEOF
22483/* end confdefs.h. */
22484#include <sys/types.h>
22485#include <sys/time.h>
22486#include <time.h>
22487
22488int
22489main ()
22490{
22491if ((struct tm *) 0)
22492return 0;
22493 ;
22494 return 0;
22495}
22496_ACEOF
22497rm -f conftest.$ac_objext
22498if { (ac_try="$ac_compile"
22499case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22502esac
f030cae8
VY
22503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22504$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22505 (eval "$ac_compile") 2>conftest.er1
22506 ac_status=$?
22507 grep -v '^ *+' conftest.er1 >conftest.err
22508 rm -f conftest.er1
22509 cat conftest.err >&5
f030cae8 22510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22511 (exit $ac_status); } && {
22512 test -z "$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 } && test -s conftest.$ac_objext; then
22515 ac_cv_header_time=yes
22516else
f030cae8 22517 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22518sed 's/^/| /' conftest.$ac_ext >&5
22519
22520 ac_cv_header_time=no
22521fi
22522
22523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524fi
f030cae8
VY
22525{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22526$as_echo "$ac_cv_header_time" >&6; }
b57f37fb
WP
22527if test $ac_cv_header_time = yes; then
22528
22529cat >>confdefs.h <<\_ACEOF
22530#define TIME_WITH_SYS_TIME 1
22531_ACEOF
22532
22533fi
22534
22535
22536
f030cae8
VY
22537{ $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
22538$as_echo_n "checking for library containing socket... " >&6; }
b57f37fb 22539if test "${ac_cv_search_socket+set}" = set; then
f030cae8 22540 $as_echo_n "(cached) " >&6
b57f37fb
WP
22541else
22542 ac_func_search_save_LIBS=$LIBS
22543cat >conftest.$ac_ext <<_ACEOF
22544/* confdefs.h. */
22545_ACEOF
22546cat confdefs.h >>conftest.$ac_ext
22547cat >>conftest.$ac_ext <<_ACEOF
22548/* end confdefs.h. */
22549
22550/* Override any GCC internal prototype to avoid an error.
22551 Use char because int might match the return type of a GCC
22552 builtin and then its argument prototype would still apply. */
22553#ifdef __cplusplus
22554extern "C"
22555#endif
22556char socket ();
22557int
22558main ()
22559{
22560return socket ();
22561 ;
22562 return 0;
22563}
22564_ACEOF
22565for ac_lib in '' socket; do
22566 if test -z "$ac_lib"; then
22567 ac_res="none required"
22568 else
22569 ac_res=-l$ac_lib
22570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22571 fi
22572 rm -f conftest.$ac_objext conftest$ac_exeext
22573if { (ac_try="$ac_link"
22574case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22577esac
f030cae8
VY
22578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22579$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22580 (eval "$ac_link") 2>conftest.er1
22581 ac_status=$?
22582 grep -v '^ *+' conftest.er1 >conftest.err
22583 rm -f conftest.er1
22584 cat conftest.err >&5
f030cae8 22585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22586 (exit $ac_status); } && {
22587 test -z "$ac_c_werror_flag" ||
22588 test ! -s conftest.err
f030cae8
VY
22589 } && test -s conftest$ac_exeext && {
22590 test "$cross_compiling" = yes ||
22591 $as_test_x conftest$ac_exeext
22592 }; then
b57f37fb
WP
22593 ac_cv_search_socket=$ac_res
22594else
f030cae8 22595 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22596sed 's/^/| /' conftest.$ac_ext >&5
22597
22598
22599fi
22600
f030cae8 22601rm -rf conftest.dSYM
b57f37fb
WP
22602rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22603 conftest$ac_exeext
22604 if test "${ac_cv_search_socket+set}" = set; then
22605 break
22606fi
22607done
22608if test "${ac_cv_search_socket+set}" = set; then
22609 :
22610else
22611 ac_cv_search_socket=no
22612fi
22613rm conftest.$ac_ext
22614LIBS=$ac_func_search_save_LIBS
22615fi
f030cae8
VY
22616{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
22617$as_echo "$ac_cv_search_socket" >&6; }
b57f37fb
WP
22618ac_res=$ac_cv_search_socket
22619if test "$ac_res" != no; then
22620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22621
22622fi
22623
22624
22625
f030cae8
VY
22626{ $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22627$as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
b57f37fb 22628if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
f030cae8 22629 $as_echo_n "(cached) " >&6
b57f37fb
WP
22630else
22631 cat >conftest.$ac_ext <<_ACEOF
22632/* confdefs.h. */
22633_ACEOF
22634cat confdefs.h >>conftest.$ac_ext
22635cat >>conftest.$ac_ext <<_ACEOF
22636/* end confdefs.h. */
22637
22638#ifdef HAVE_SYS_TYPES_H
22639#include <sys/types.h>
22640#endif
22641#ifdef HAVE_SYS_SOCKET_H
22642#include <sys/socket.h>
22643#endif
22644#ifdef HAVE_WINSOCK2_H
22645#include <winsock2.h>
22646#endif
22647
22648
22649int
22650main ()
22651{
22652static struct sockaddr ac_aggr;
22653if (ac_aggr.sa_len)
22654return 0;
22655 ;
22656 return 0;
22657}
22658_ACEOF
22659rm -f conftest.$ac_objext
22660if { (ac_try="$ac_compile"
22661case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22664esac
f030cae8
VY
22665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22666$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22667 (eval "$ac_compile") 2>conftest.er1
22668 ac_status=$?
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
f030cae8 22672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22673 (exit $ac_status); } && {
22674 test -z "$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 } && test -s conftest.$ac_objext; then
22677 ac_cv_member_struct_sockaddr_sa_len=yes
22678else
f030cae8 22679 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22680sed 's/^/| /' conftest.$ac_ext >&5
22681
22682 cat >conftest.$ac_ext <<_ACEOF
22683/* confdefs.h. */
22684_ACEOF
22685cat confdefs.h >>conftest.$ac_ext
22686cat >>conftest.$ac_ext <<_ACEOF
22687/* end confdefs.h. */
22688
22689#ifdef HAVE_SYS_TYPES_H
22690#include <sys/types.h>
22691#endif
22692#ifdef HAVE_SYS_SOCKET_H
22693#include <sys/socket.h>
22694#endif
22695#ifdef HAVE_WINSOCK2_H
22696#include <winsock2.h>
22697#endif
22698
22699
22700int
22701main ()
22702{
22703static struct sockaddr ac_aggr;
22704if (sizeof ac_aggr.sa_len)
22705return 0;
22706 ;
22707 return 0;
22708}
22709_ACEOF
22710rm -f conftest.$ac_objext
22711if { (ac_try="$ac_compile"
22712case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22715esac
f030cae8
VY
22716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22718 (eval "$ac_compile") 2>conftest.er1
22719 ac_status=$?
22720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
f030cae8 22723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
22728 ac_cv_member_struct_sockaddr_sa_len=yes
22729else
f030cae8 22730 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22731sed 's/^/| /' conftest.$ac_ext >&5
22732
22733 ac_cv_member_struct_sockaddr_sa_len=no
22734fi
22735
22736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22737fi
22738
22739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740fi
f030cae8
VY
22741{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22742$as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
22743if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
b57f37fb
WP
22744
22745cat >>confdefs.h <<\_ACEOF
22746#define SOCKADDR_IN_HAS_LEN 1
22747_ACEOF
22748
22749fi
22750
22751
f030cae8
VY
22752{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
22753$as_echo_n "checking for socklen_t... " >&6; }
b57f37fb 22754if test "${ac_cv_type_socklen_t+set}" = set; then
f030cae8 22755 $as_echo_n "(cached) " >&6
b57f37fb 22756else
f030cae8
VY
22757 ac_cv_type_socklen_t=no
22758cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
22759/* confdefs.h. */
22760_ACEOF
22761cat confdefs.h >>conftest.$ac_ext
22762cat >>conftest.$ac_ext <<_ACEOF
22763/* end confdefs.h. */
b57f37fb 22764#include <sys/types.h>
b57f37fb 22765#include <sys/socket.h>
b57f37fb 22766
b57f37fb
WP
22767int
22768main ()
22769{
f030cae8
VY
22770if (sizeof (socklen_t))
22771 return 0;
22772 ;
b57f37fb 22773 return 0;
f030cae8
VY
22774}
22775_ACEOF
22776rm -f conftest.$ac_objext
22777if { (ac_try="$ac_compile"
22778case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781esac
22782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22783$as_echo "$ac_try_echo") >&5
22784 (eval "$ac_compile") 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest.$ac_objext; then
22794 cat >conftest.$ac_ext <<_ACEOF
22795/* confdefs.h. */
22796_ACEOF
22797cat confdefs.h >>conftest.$ac_ext
22798cat >>conftest.$ac_ext <<_ACEOF
22799/* end confdefs.h. */
22800#include <sys/types.h>
22801#include <sys/socket.h>
22802
22803int
22804main ()
22805{
22806if (sizeof ((socklen_t)))
22807 return 0;
b57f37fb
WP
22808 ;
22809 return 0;
22810}
22811_ACEOF
22812rm -f conftest.$ac_objext
22813if { (ac_try="$ac_compile"
22814case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22817esac
f030cae8
VY
22818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22819$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22820 (eval "$ac_compile") 2>conftest.er1
22821 ac_status=$?
22822 grep -v '^ *+' conftest.er1 >conftest.err
22823 rm -f conftest.er1
22824 cat conftest.err >&5
f030cae8 22825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22826 (exit $ac_status); } && {
22827 test -z "$ac_c_werror_flag" ||
22828 test ! -s conftest.err
22829 } && test -s conftest.$ac_objext; then
f030cae8 22830 :
b57f37fb 22831else
f030cae8 22832 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
22833sed 's/^/| /' conftest.$ac_ext >&5
22834
f030cae8 22835 ac_cv_type_socklen_t=yes
b57f37fb
WP
22836fi
22837
22838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
22839else
22840 $as_echo "$as_me: failed program was:" >&5
22841sed 's/^/| /' conftest.$ac_ext >&5
22842
22843
b57f37fb 22844fi
f030cae8
VY
22845
22846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22847fi
22848{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22849$as_echo "$ac_cv_type_socklen_t" >&6; }
22850if test "x$ac_cv_type_socklen_t" = x""yes; then
22851 rb_cv_socklen_t=socklen_t
b57f37fb
WP
22852else
22853
f030cae8
VY
22854 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22855$as_echo_n "checking for socklen_t equivalent... " >&6; }
22856 if test "${rb_cv_socklen_t+set}" = set; then
22857 $as_echo_n "(cached) " >&6
4414eb3c
VY
22858else
22859
22860 # Systems have either "struct sockaddr *" or
22861 # "void *" as the second argument to getpeername
f030cae8 22862 rb_cv_socklen_t=
4414eb3c
VY
22863 for arg2 in "struct sockaddr" void; do
22864 for t in int size_t unsigned long "unsigned long"; do
22865 cat >conftest.$ac_ext <<_ACEOF
22866/* confdefs.h. */
22867_ACEOF
22868cat confdefs.h >>conftest.$ac_ext
22869cat >>conftest.$ac_ext <<_ACEOF
22870/* end confdefs.h. */
22871
94b4fbf9 22872#ifdef HAVE_SYS_TYPES_H
4414eb3c 22873#include <sys/types.h>
94b4fbf9
VY
22874#endif
22875#ifdef HAVE_SYS_SOCKET_H
4414eb3c 22876#include <sys/socket.h>
94b4fbf9
VY
22877#endif
22878#ifdef HAVE_WINSOCK2_H
22879#include <winsock2.h>
22880#endif
4414eb3c
VY
22881int getpeername (int, $arg2 *, $t *);
22882
22883int
22884main ()
22885{
22886
22887$t len;
22888getpeername(0,0,&len);
22889
22890 ;
22891 return 0;
22892}
b57f37fb 22893_ACEOF
4414eb3c
VY
22894rm -f conftest.$ac_objext
22895if { (ac_try="$ac_compile"
22896case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22899esac
f030cae8
VY
22900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22901$as_echo "$ac_try_echo") >&5
4414eb3c
VY
22902 (eval "$ac_compile") 2>conftest.er1
22903 ac_status=$?
22904 grep -v '^ *+' conftest.er1 >conftest.err
22905 rm -f conftest.er1
22906 cat conftest.err >&5
f030cae8 22907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414eb3c
VY
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest.$ac_objext; then
22912
f030cae8 22913 rb_cv_socklen_t="$t"
4414eb3c
VY
22914 break
22915
22916else
f030cae8 22917 $as_echo "$as_me: failed program was:" >&5
4414eb3c 22918sed 's/^/| /' conftest.$ac_ext >&5
b57f37fb 22919
4414eb3c
VY
22920
22921fi
22922
22923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924 done
22925 done
22926
f030cae8
VY
22927 if test "x$rb_cv_socklen_t" = x; then
22928 { $as_echo "$as_me:$LINENO: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
22929$as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
22930 rb_cv_socklen_t=int
4414eb3c
VY
22931 fi
22932
22933fi
22934
f030cae8
VY
22935 { $as_echo "$as_me:$LINENO: result: $rb_cv_socklen_t" >&5
22936$as_echo "$rb_cv_socklen_t" >&6; }
b57f37fb
WP
22937fi
22938
22939
f030cae8
VY
22940rb_socklen_t=$rb_cv_socklen_t
22941
4414eb3c
VY
22942
22943
22944
22945
b57f37fb
WP
22946# Check whether --enable-ipv6 was given.
22947if test "${enable_ipv6+set}" = set; then
22948 enableval=$enable_ipv6; ipv6=$enableval
22949else
22950 ipv6=yes
22951fi
22952
22953
22954if test x$ipv6 != xyes; then
22955 have_v6="no"
22956else
22957
22958have_v6=yes
22959
f030cae8
VY
22960 { $as_echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
22961$as_echo_n "checking for INET6 protocol support... " >&6; }
b57f37fb 22962if test "${rb_cv_proto_inet6+set}" = set; then
f030cae8 22963 $as_echo_n "(cached) " >&6
b57f37fb
WP
22964else
22965
22966 cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972
22973#include <sys/types.h>
22974#include <sys/socket.h>
22975
22976#ifndef PF_INET6
22977#error Missing PF_INET6
22978#endif
22979#ifndef AF_INET6
22980#error Mlssing AF_INET6
22981#endif
22982
22983_ACEOF
22984if { (ac_try="$ac_cpp conftest.$ac_ext"
22985case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22988esac
f030cae8
VY
22989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22990$as_echo "$ac_try_echo") >&5
b57f37fb
WP
22991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22992 ac_status=$?
22993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
f030cae8 22996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
22997 (exit $ac_status); } >/dev/null && {
22998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23000 }; then
23001
23002 rb_cv_proto_inet6=yes
23003
23004else
f030cae8 23005 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23006sed 's/^/| /' conftest.$ac_ext >&5
23007
23008
23009 rb_cv_proto_inet6=no
23010
23011fi
23012
23013rm -f conftest.err conftest.$ac_ext
23014
23015fi
f030cae8
VY
23016{ $as_echo "$as_me:$LINENO: result: $rb_cv_proto_inet6" >&5
23017$as_echo "$rb_cv_proto_inet6" >&6; }
b57f37fb
WP
23018
23019 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
23020
23021 else :
23022
f030cae8
VY
23023 { $as_echo "$as_me:$LINENO: Disabling IPv6 support: PF_INET6 not found" >&5
23024$as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
b57f37fb
WP
23025 have_v6=no
23026
23027 fi
23028
23029
23030 if test "X$have_v6" = "Xyes"; then
23031
23032 rb_have_sockaddr_in6=
f030cae8
VY
23033 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23034$as_echo_n "checking for struct sockaddr_in6... " >&6; }
b57f37fb 23035if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
f030cae8 23036 $as_echo_n "(cached) " >&6
b57f37fb 23037else
f030cae8
VY
23038 ac_cv_type_struct_sockaddr_in6=no
23039cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
23040/* confdefs.h. */
23041_ACEOF
23042cat confdefs.h >>conftest.$ac_ext
23043cat >>conftest.$ac_ext <<_ACEOF
23044/* end confdefs.h. */
23045
23046#include <sys/types.h>
23047#include <sys/socket.h>
23048#include <netinet/in.h>
23049
23050
b57f37fb
WP
23051int
23052main ()
23053{
f030cae8
VY
23054if (sizeof (struct sockaddr_in6))
23055 return 0;
23056 ;
b57f37fb 23057 return 0;
f030cae8
VY
23058}
23059_ACEOF
23060rm -f conftest.$ac_objext
23061if { (ac_try="$ac_compile"
23062case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23065esac
23066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23067$as_echo "$ac_try_echo") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23069 ac_status=$?
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
23073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 cat >conftest.$ac_ext <<_ACEOF
23079/* confdefs.h. */
23080_ACEOF
23081cat confdefs.h >>conftest.$ac_ext
23082cat >>conftest.$ac_ext <<_ACEOF
23083/* end confdefs.h. */
23084
23085#include <sys/types.h>
23086#include <sys/socket.h>
23087#include <netinet/in.h>
23088
23089
23090int
23091main ()
23092{
23093if (sizeof ((struct sockaddr_in6)))
23094 return 0;
b57f37fb
WP
23095 ;
23096 return 0;
23097}
23098_ACEOF
23099rm -f conftest.$ac_objext
23100if { (ac_try="$ac_compile"
23101case "(($ac_try" in
23102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103 *) ac_try_echo=$ac_try;;
23104esac
f030cae8
VY
23105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23106$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23107 (eval "$ac_compile") 2>conftest.er1
23108 ac_status=$?
23109 grep -v '^ *+' conftest.er1 >conftest.err
23110 rm -f conftest.er1
23111 cat conftest.err >&5
f030cae8 23112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23113 (exit $ac_status); } && {
23114 test -z "$ac_c_werror_flag" ||
23115 test ! -s conftest.err
23116 } && test -s conftest.$ac_objext; then
f030cae8
VY
23117 :
23118else
23119 $as_echo "$as_me: failed program was:" >&5
23120sed 's/^/| /' conftest.$ac_ext >&5
23121
23122 ac_cv_type_struct_sockaddr_in6=yes
23123fi
23124
23125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b57f37fb 23126else
f030cae8 23127 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23128sed 's/^/| /' conftest.$ac_ext >&5
23129
f030cae8 23130
b57f37fb
WP
23131fi
23132
23133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134fi
f030cae8
VY
23135{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23136$as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
23137if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
b57f37fb
WP
23138
23139cat >>confdefs.h <<_ACEOF
23140#define HAVE_STRUCT_SOCKADDR_IN6 1
23141_ACEOF
23142
23143
23144 rb_have_sockaddr_in6=yes
23145
23146else
23147
23148 rb_have_sockaddr_in6=no
23149
23150fi
23151
23152
23153 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
23154
23155 else :
23156
f030cae8
VY
23157 { $as_echo "$as_me:$LINENO: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
23158$as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
b57f37fb
WP
23159 have_v6=no
23160
23161 fi
23162
23163 fi
23164
23165fi
23166
f030cae8
VY
23167{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23168$as_echo_n "checking for struct sockaddr_storage... " >&6; }
b57f37fb 23169if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
f030cae8 23170 $as_echo_n "(cached) " >&6
b57f37fb 23171else
f030cae8
VY
23172 ac_cv_type_struct_sockaddr_storage=no
23173cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
23174/* confdefs.h. */
23175_ACEOF
23176cat confdefs.h >>conftest.$ac_ext
23177cat >>conftest.$ac_ext <<_ACEOF
23178/* end confdefs.h. */
23179
23180 #include <sys/types.h>
23181 #include <sys/socket.h>
23182
23183
b57f37fb
WP
23184int
23185main ()
23186{
f030cae8
VY
23187if (sizeof (struct sockaddr_storage))
23188 return 0;
23189 ;
b57f37fb 23190 return 0;
f030cae8
VY
23191}
23192_ACEOF
23193rm -f conftest.$ac_objext
23194if { (ac_try="$ac_compile"
23195case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198esac
23199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23200$as_echo "$ac_try_echo") >&5
23201 (eval "$ac_compile") 2>conftest.er1
23202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && {
23208 test -z "$ac_c_werror_flag" ||
23209 test ! -s conftest.err
23210 } && test -s conftest.$ac_objext; then
23211 cat >conftest.$ac_ext <<_ACEOF
23212/* confdefs.h. */
23213_ACEOF
23214cat confdefs.h >>conftest.$ac_ext
23215cat >>conftest.$ac_ext <<_ACEOF
23216/* end confdefs.h. */
23217
23218 #include <sys/types.h>
23219 #include <sys/socket.h>
23220
23221
23222int
23223main ()
23224{
23225if (sizeof ((struct sockaddr_storage)))
23226 return 0;
b57f37fb
WP
23227 ;
23228 return 0;
23229}
23230_ACEOF
23231rm -f conftest.$ac_objext
23232if { (ac_try="$ac_compile"
23233case "(($ac_try" in
23234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23236esac
f030cae8
VY
23237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23238$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23239 (eval "$ac_compile") 2>conftest.er1
23240 ac_status=$?
23241 grep -v '^ *+' conftest.er1 >conftest.err
23242 rm -f conftest.er1
23243 cat conftest.err >&5
f030cae8 23244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23245 (exit $ac_status); } && {
23246 test -z "$ac_c_werror_flag" ||
23247 test ! -s conftest.err
23248 } && test -s conftest.$ac_objext; then
f030cae8 23249 :
b57f37fb 23250else
f030cae8 23251 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23252sed 's/^/| /' conftest.$ac_ext >&5
23253
f030cae8 23254 ac_cv_type_struct_sockaddr_storage=yes
b57f37fb
WP
23255fi
23256
23257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
23258else
23259 $as_echo "$as_me: failed program was:" >&5
23260sed 's/^/| /' conftest.$ac_ext >&5
23261
23262
b57f37fb 23263fi
f030cae8
VY
23264
23265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23266fi
23267{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23268$as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
23269if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
b57f37fb
WP
23270
23271cat >>confdefs.h <<_ACEOF
23272#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23273_ACEOF
23274
23275
23276 rb_have_sockaddr_storage=yes
23277
23278fi
23279
23280
23281
23282save_LIBS=$LIBS
f030cae8
VY
23283{ $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
23284$as_echo_n "checking for library containing crypt... " >&6; }
b57f37fb 23285if test "${ac_cv_search_crypt+set}" = set; then
f030cae8 23286 $as_echo_n "(cached) " >&6
b57f37fb
WP
23287else
23288 ac_func_search_save_LIBS=$LIBS
23289cat >conftest.$ac_ext <<_ACEOF
23290/* confdefs.h. */
23291_ACEOF
23292cat confdefs.h >>conftest.$ac_ext
23293cat >>conftest.$ac_ext <<_ACEOF
23294/* end confdefs.h. */
23295
23296/* Override any GCC internal prototype to avoid an error.
23297 Use char because int might match the return type of a GCC
23298 builtin and then its argument prototype would still apply. */
23299#ifdef __cplusplus
23300extern "C"
23301#endif
23302char crypt ();
23303int
23304main ()
23305{
23306return crypt ();
23307 ;
23308 return 0;
23309}
23310_ACEOF
23311for ac_lib in '' crypt descrypt; do
23312 if test -z "$ac_lib"; then
23313 ac_res="none required"
23314 else
23315 ac_res=-l$ac_lib
23316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23317 fi
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319if { (ac_try="$ac_link"
23320case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23323esac
f030cae8
VY
23324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23325$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23326 (eval "$ac_link") 2>conftest.er1
23327 ac_status=$?
23328 grep -v '^ *+' conftest.er1 >conftest.err
23329 rm -f conftest.er1
23330 cat conftest.err >&5
f030cae8 23331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
f030cae8
VY
23335 } && test -s conftest$ac_exeext && {
23336 test "$cross_compiling" = yes ||
23337 $as_test_x conftest$ac_exeext
23338 }; then
b57f37fb
WP
23339 ac_cv_search_crypt=$ac_res
23340else
f030cae8 23341 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23342sed 's/^/| /' conftest.$ac_ext >&5
23343
23344
23345fi
23346
f030cae8 23347rm -rf conftest.dSYM
b57f37fb
WP
23348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23349 conftest$ac_exeext
23350 if test "${ac_cv_search_crypt+set}" = set; then
23351 break
23352fi
23353done
23354if test "${ac_cv_search_crypt+set}" = set; then
23355 :
23356else
23357 ac_cv_search_crypt=no
23358fi
23359rm conftest.$ac_ext
23360LIBS=$ac_func_search_save_LIBS
23361fi
f030cae8
VY
23362{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
23363$as_echo "$ac_cv_search_crypt" >&6; }
b57f37fb
WP
23364ac_res=$ac_cv_search_crypt
23365if test "$ac_res" != no; then
23366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23367
23368fi
23369
23370LIBS=$save_LIBS
23371
23372CRYPT_LIB=$ac_cv_search_crypt
23373
23374if test "$CRYPT_LIB" = "none required"; then
23375 unset CRYPT_LIB
23376elif test "$CRYPT_LIB" = no; then
23377 need_crypt=yes;
23378
23379cat >>confdefs.h <<\_ACEOF
23380#define NEED_CRYPT 1
23381_ACEOF
23382
23383 unset CRYPT_LIB
23384fi
23385
eb66895a 23386 if test x"$need_crypt" = "xyes"; then
b57f37fb
WP
23387 NEED_CRYPT_TRUE=
23388 NEED_CRYPT_FALSE='#'
23389else
23390 NEED_CRYPT_TRUE='#'
23391 NEED_CRYPT_FALSE=
23392fi
23393
23394
23395
23396
23397
23398if test "${ac_cv_header_stdarg_h+set}" = set; then
f030cae8
VY
23399 { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
23400$as_echo_n "checking for stdarg.h... " >&6; }
b57f37fb 23401if test "${ac_cv_header_stdarg_h+set}" = set; then
f030cae8 23402 $as_echo_n "(cached) " >&6
b57f37fb 23403fi
f030cae8
VY
23404{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23405$as_echo "$ac_cv_header_stdarg_h" >&6; }
b57f37fb
WP
23406else
23407 # Is the header compilable?
f030cae8
VY
23408{ $as_echo "$as_me:$LINENO: checking stdarg.h usability" >&5
23409$as_echo_n "checking stdarg.h usability... " >&6; }
b57f37fb
WP
23410cat >conftest.$ac_ext <<_ACEOF
23411/* confdefs.h. */
23412_ACEOF
23413cat confdefs.h >>conftest.$ac_ext
23414cat >>conftest.$ac_ext <<_ACEOF
23415/* end confdefs.h. */
23416$ac_includes_default
23417#include <stdarg.h>
23418_ACEOF
23419rm -f conftest.$ac_objext
23420if { (ac_try="$ac_compile"
23421case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23424esac
f030cae8
VY
23425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23427 (eval "$ac_compile") 2>conftest.er1
23428 ac_status=$?
23429 grep -v '^ *+' conftest.er1 >conftest.err
23430 rm -f conftest.er1
23431 cat conftest.err >&5
f030cae8 23432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23433 (exit $ac_status); } && {
23434 test -z "$ac_c_werror_flag" ||
23435 test ! -s conftest.err
23436 } && test -s conftest.$ac_objext; then
23437 ac_header_compiler=yes
23438else
f030cae8 23439 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23440sed 's/^/| /' conftest.$ac_ext >&5
23441
23442 ac_header_compiler=no
23443fi
23444
23445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
23446{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23447$as_echo "$ac_header_compiler" >&6; }
b57f37fb
WP
23448
23449# Is the header present?
f030cae8
VY
23450{ $as_echo "$as_me:$LINENO: checking stdarg.h presence" >&5
23451$as_echo_n "checking stdarg.h presence... " >&6; }
b57f37fb
WP
23452cat >conftest.$ac_ext <<_ACEOF
23453/* confdefs.h. */
23454_ACEOF
23455cat confdefs.h >>conftest.$ac_ext
23456cat >>conftest.$ac_ext <<_ACEOF
23457/* end confdefs.h. */
23458#include <stdarg.h>
23459_ACEOF
23460if { (ac_try="$ac_cpp conftest.$ac_ext"
23461case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23464esac
f030cae8
VY
23465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23466$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
f030cae8 23472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23473 (exit $ac_status); } >/dev/null && {
23474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 }; then
23477 ac_header_preproc=yes
23478else
f030cae8 23479 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23480sed 's/^/| /' conftest.$ac_ext >&5
23481
23482 ac_header_preproc=no
23483fi
23484
23485rm -f conftest.err conftest.$ac_ext
f030cae8
VY
23486{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23487$as_echo "$ac_header_preproc" >&6; }
b57f37fb
WP
23488
23489# So? What about this header?
23490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23491 yes:no: )
f030cae8
VY
23492 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
23493$as_echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23494 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
23495$as_echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
b57f37fb
WP
23496 ac_header_preproc=yes
23497 ;;
23498 no:yes:* )
f030cae8
VY
23499 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
23500$as_echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
23501 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
23502$as_echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
23503 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
23504$as_echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
23505 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
23506$as_echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
23507 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
23508$as_echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
23509 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
23510$as_echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
b57f37fb
WP
23511
23512 ;;
23513esac
f030cae8
VY
23514{ $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
23515$as_echo_n "checking for stdarg.h... " >&6; }
b57f37fb 23516if test "${ac_cv_header_stdarg_h+set}" = set; then
f030cae8 23517 $as_echo_n "(cached) " >&6
b57f37fb
WP
23518else
23519 ac_cv_header_stdarg_h=$ac_header_preproc
23520fi
f030cae8
VY
23521{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
23522$as_echo "$ac_cv_header_stdarg_h" >&6; }
b57f37fb
WP
23523
23524fi
f030cae8 23525if test "x$ac_cv_header_stdarg_h" = x""yes; then
b57f37fb
WP
23526 :
23527else
f030cae8
VY
23528 { { $as_echo "$as_me:$LINENO: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&5
23529$as_echo "$as_me: error: ** stdarg.h could not be found - libratbox will not compile without it **" >&2;}
b57f37fb
WP
23530 { (exit 1); exit 1; }; }
23531fi
23532
23533
23534
f030cae8
VY
23535{ $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
23536$as_echo_n "checking for sa_family_t... " >&6; }
b57f37fb 23537if test "${ac_cv_type_sa_family_t+set}" = set; then
f030cae8 23538 $as_echo_n "(cached) " >&6
b57f37fb 23539else
f030cae8
VY
23540 ac_cv_type_sa_family_t=no
23541cat >conftest.$ac_ext <<_ACEOF
b57f37fb
WP
23542/* confdefs.h. */
23543_ACEOF
23544cat confdefs.h >>conftest.$ac_ext
23545cat >>conftest.$ac_ext <<_ACEOF
23546/* end confdefs.h. */
23547#include <sys/types.h>
23548#include <sys/socket.h>
23549
b57f37fb
WP
23550int
23551main ()
23552{
f030cae8
VY
23553if (sizeof (sa_family_t))
23554 return 0;
23555 ;
b57f37fb 23556 return 0;
f030cae8
VY
23557}
23558_ACEOF
23559rm -f conftest.$ac_objext
23560if { (ac_try="$ac_compile"
23561case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23564esac
23565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23566$as_echo "$ac_try_echo") >&5
23567 (eval "$ac_compile") 2>conftest.er1
23568 ac_status=$?
23569 grep -v '^ *+' conftest.er1 >conftest.err
23570 rm -f conftest.er1
23571 cat conftest.err >&5
23572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } && {
23574 test -z "$ac_c_werror_flag" ||
23575 test ! -s conftest.err
23576 } && test -s conftest.$ac_objext; then
23577 cat >conftest.$ac_ext <<_ACEOF
23578/* confdefs.h. */
23579_ACEOF
23580cat confdefs.h >>conftest.$ac_ext
23581cat >>conftest.$ac_ext <<_ACEOF
23582/* end confdefs.h. */
23583#include <sys/types.h>
23584#include <sys/socket.h>
23585
23586int
23587main ()
23588{
23589if (sizeof ((sa_family_t)))
23590 return 0;
b57f37fb
WP
23591 ;
23592 return 0;
23593}
23594_ACEOF
23595rm -f conftest.$ac_objext
23596if { (ac_try="$ac_compile"
23597case "(($ac_try" in
23598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599 *) ac_try_echo=$ac_try;;
23600esac
f030cae8
VY
23601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23602$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23603 (eval "$ac_compile") 2>conftest.er1
23604 ac_status=$?
23605 grep -v '^ *+' conftest.er1 >conftest.err
23606 rm -f conftest.er1
23607 cat conftest.err >&5
f030cae8 23608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23609 (exit $ac_status); } && {
23610 test -z "$ac_c_werror_flag" ||
23611 test ! -s conftest.err
23612 } && test -s conftest.$ac_objext; then
f030cae8
VY
23613 :
23614else
23615 $as_echo "$as_me: failed program was:" >&5
23616sed 's/^/| /' conftest.$ac_ext >&5
23617
23618 ac_cv_type_sa_family_t=yes
23619fi
23620
23621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b57f37fb 23622else
f030cae8 23623 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23624sed 's/^/| /' conftest.$ac_ext >&5
23625
f030cae8 23626
b57f37fb
WP
23627fi
23628
23629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23630fi
f030cae8
VY
23631{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
23632$as_echo "$ac_cv_type_sa_family_t" >&6; }
23633if test "x$ac_cv_type_sa_family_t" = x""yes; then
b57f37fb
WP
23634 :
23635else
23636
23637cat >>confdefs.h <<\_ACEOF
23638#define sa_family_t u_int16_t
23639_ACEOF
23640
23641fi
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
4414eb3c
VY
23663
23664
94b4fbf9
VY
23665
23666for ac_func in socketpair gettimeofday writev sendmsg gmtime_r strtok_r usleep posix_spawn strlcpy strlcat strnlen fstat signalfd select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
b57f37fb 23667do
f030cae8
VY
23668as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23669{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23670$as_echo_n "checking for $ac_func... " >&6; }
b57f37fb 23671if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 23672 $as_echo_n "(cached) " >&6
b57f37fb
WP
23673else
23674 cat >conftest.$ac_ext <<_ACEOF
23675/* confdefs.h. */
23676_ACEOF
23677cat confdefs.h >>conftest.$ac_ext
23678cat >>conftest.$ac_ext <<_ACEOF
23679/* end confdefs.h. */
23680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23682#define $ac_func innocuous_$ac_func
23683
23684/* System header to define __stub macros and hopefully few prototypes,
23685 which can conflict with char $ac_func (); below.
23686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23687 <limits.h> exists even on freestanding compilers. */
23688
23689#ifdef __STDC__
23690# include <limits.h>
23691#else
23692# include <assert.h>
23693#endif
23694
23695#undef $ac_func
23696
23697/* Override any GCC internal prototype to avoid an error.
23698 Use char because int might match the return type of a GCC
23699 builtin and then its argument prototype would still apply. */
23700#ifdef __cplusplus
23701extern "C"
23702#endif
23703char $ac_func ();
23704/* The GNU C library defines this for functions which it implements
23705 to always fail with ENOSYS. Some functions are actually named
23706 something starting with __ and the normal name is an alias. */
23707#if defined __stub_$ac_func || defined __stub___$ac_func
23708choke me
23709#endif
23710
23711int
23712main ()
23713{
23714return $ac_func ();
23715 ;
23716 return 0;
23717}
23718_ACEOF
23719rm -f conftest.$ac_objext conftest$ac_exeext
23720if { (ac_try="$ac_link"
23721case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23724esac
f030cae8
VY
23725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23726$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23727 (eval "$ac_link") 2>conftest.er1
23728 ac_status=$?
23729 grep -v '^ *+' conftest.er1 >conftest.err
23730 rm -f conftest.er1
23731 cat conftest.err >&5
f030cae8 23732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23733 (exit $ac_status); } && {
23734 test -z "$ac_c_werror_flag" ||
23735 test ! -s conftest.err
f030cae8
VY
23736 } && test -s conftest$ac_exeext && {
23737 test "$cross_compiling" = yes ||
23738 $as_test_x conftest$ac_exeext
23739 }; then
b57f37fb
WP
23740 eval "$as_ac_var=yes"
23741else
f030cae8 23742 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23743sed 's/^/| /' conftest.$ac_ext >&5
23744
23745 eval "$as_ac_var=no"
23746fi
23747
f030cae8 23748rm -rf conftest.dSYM
b57f37fb
WP
23749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23750 conftest$ac_exeext conftest.$ac_ext
23751fi
f030cae8
VY
23752ac_res=`eval 'as_val=${'$as_ac_var'}
23753 $as_echo "$as_val"'`
23754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23755$as_echo "$ac_res" >&6; }
23756as_val=`eval 'as_val=${'$as_ac_var'}
23757 $as_echo "$as_val"'`
23758 if test "x$as_val" = x""yes; then
b57f37fb 23759 cat >>confdefs.h <<_ACEOF
f030cae8 23760#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b57f37fb
WP
23761_ACEOF
23762
23763fi
23764done
23765
23766
f030cae8
VY
23767{ $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
23768$as_echo_n "checking for library containing nanosleep... " >&6; }
b57f37fb 23769if test "${ac_cv_search_nanosleep+set}" = set; then
f030cae8 23770 $as_echo_n "(cached) " >&6
b57f37fb
WP
23771else
23772 ac_func_search_save_LIBS=$LIBS
23773cat >conftest.$ac_ext <<_ACEOF
23774/* confdefs.h. */
23775_ACEOF
23776cat confdefs.h >>conftest.$ac_ext
23777cat >>conftest.$ac_ext <<_ACEOF
23778/* end confdefs.h. */
23779
23780/* Override any GCC internal prototype to avoid an error.
23781 Use char because int might match the return type of a GCC
23782 builtin and then its argument prototype would still apply. */
23783#ifdef __cplusplus
23784extern "C"
23785#endif
23786char nanosleep ();
23787int
23788main ()
23789{
23790return nanosleep ();
23791 ;
23792 return 0;
23793}
23794_ACEOF
23795for ac_lib in '' rt posix4; do
23796 if test -z "$ac_lib"; then
23797 ac_res="none required"
23798 else
23799 ac_res=-l$ac_lib
23800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23801 fi
23802 rm -f conftest.$ac_objext conftest$ac_exeext
23803if { (ac_try="$ac_link"
23804case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23807esac
f030cae8
VY
23808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23809$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23810 (eval "$ac_link") 2>conftest.er1
23811 ac_status=$?
23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
f030cae8 23815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23816 (exit $ac_status); } && {
23817 test -z "$ac_c_werror_flag" ||
23818 test ! -s conftest.err
f030cae8
VY
23819 } && test -s conftest$ac_exeext && {
23820 test "$cross_compiling" = yes ||
23821 $as_test_x conftest$ac_exeext
23822 }; then
b57f37fb
WP
23823 ac_cv_search_nanosleep=$ac_res
23824else
f030cae8 23825 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23826sed 's/^/| /' conftest.$ac_ext >&5
23827
23828
23829fi
23830
f030cae8 23831rm -rf conftest.dSYM
b57f37fb
WP
23832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23833 conftest$ac_exeext
23834 if test "${ac_cv_search_nanosleep+set}" = set; then
23835 break
23836fi
23837done
23838if test "${ac_cv_search_nanosleep+set}" = set; then
23839 :
23840else
23841 ac_cv_search_nanosleep=no
23842fi
23843rm conftest.$ac_ext
23844LIBS=$ac_func_search_save_LIBS
23845fi
f030cae8
VY
23846{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
23847$as_echo "$ac_cv_search_nanosleep" >&6; }
b57f37fb
WP
23848ac_res=$ac_cv_search_nanosleep
23849if test "$ac_res" != no; then
23850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23851
23852cat >>confdefs.h <<\_ACEOF
23853#define HAVE_NANOSLEEP 1
23854_ACEOF
23855
23856fi
23857
f030cae8
VY
23858{ $as_echo "$as_me:$LINENO: checking for library containing timer_create" >&5
23859$as_echo_n "checking for library containing timer_create... " >&6; }
b57f37fb 23860if test "${ac_cv_search_timer_create+set}" = set; then
f030cae8 23861 $as_echo_n "(cached) " >&6
b57f37fb
WP
23862else
23863 ac_func_search_save_LIBS=$LIBS
23864cat >conftest.$ac_ext <<_ACEOF
23865/* confdefs.h. */
23866_ACEOF
23867cat confdefs.h >>conftest.$ac_ext
23868cat >>conftest.$ac_ext <<_ACEOF
23869/* end confdefs.h. */
23870
23871/* Override any GCC internal prototype to avoid an error.
23872 Use char because int might match the return type of a GCC
23873 builtin and then its argument prototype would still apply. */
23874#ifdef __cplusplus
23875extern "C"
23876#endif
23877char timer_create ();
23878int
23879main ()
23880{
23881return timer_create ();
23882 ;
23883 return 0;
23884}
23885_ACEOF
23886for ac_lib in '' rt; do
23887 if test -z "$ac_lib"; then
23888 ac_res="none required"
23889 else
23890 ac_res=-l$ac_lib
23891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23892 fi
23893 rm -f conftest.$ac_objext conftest$ac_exeext
23894if { (ac_try="$ac_link"
23895case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23898esac
f030cae8
VY
23899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23900$as_echo "$ac_try_echo") >&5
b57f37fb
WP
23901 (eval "$ac_link") 2>conftest.er1
23902 ac_status=$?
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
f030cae8 23906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
23907 (exit $ac_status); } && {
23908 test -z "$ac_c_werror_flag" ||
23909 test ! -s conftest.err
f030cae8
VY
23910 } && test -s conftest$ac_exeext && {
23911 test "$cross_compiling" = yes ||
23912 $as_test_x conftest$ac_exeext
23913 }; then
b57f37fb
WP
23914 ac_cv_search_timer_create=$ac_res
23915else
f030cae8 23916 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
23917sed 's/^/| /' conftest.$ac_ext >&5
23918
23919
23920fi
23921
f030cae8 23922rm -rf conftest.dSYM
b57f37fb
WP
23923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23924 conftest$ac_exeext
23925 if test "${ac_cv_search_timer_create+set}" = set; then
23926 break
23927fi
23928done
23929if test "${ac_cv_search_timer_create+set}" = set; then
23930 :
23931else
23932 ac_cv_search_timer_create=no
23933fi
23934rm conftest.$ac_ext
23935LIBS=$ac_func_search_save_LIBS
23936fi
f030cae8
VY
23937{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_timer_create" >&5
23938$as_echo "$ac_cv_search_timer_create" >&6; }
b57f37fb
WP
23939ac_res=$ac_cv_search_timer_create
23940if test "$ac_res" != no; then
23941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23942
23943cat >>confdefs.h <<\_ACEOF
23944#define HAVE_TIMER_CREATE 1
23945_ACEOF
23946
23947fi
23948
f030cae8
VY
23949{ $as_echo "$as_me:$LINENO: checking for a working timer_create(CLOCK_REALTIME)" >&5
23950$as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
b57f37fb 23951if test "${rb__cv_timer_create_works+set}" = set; then
f030cae8 23952 $as_echo_n "(cached) " >&6
b57f37fb
WP
23953else
23954 if test "$cross_compiling" = yes; then
f030cae8
VY
23955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23957{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b57f37fb 23958See \`config.log' for more details." >&5
f030cae8 23959$as_echo "$as_me: error: cannot run test program while cross compiling
b57f37fb 23960See \`config.log' for more details." >&2;}
f030cae8 23961 { (exit 1); exit 1; }; }; }
b57f37fb
WP
23962else
23963 cat >conftest.$ac_ext <<_ACEOF
23964/* confdefs.h. */
23965_ACEOF
23966cat confdefs.h >>conftest.$ac_ext
23967cat >>conftest.$ac_ext <<_ACEOF
23968/* end confdefs.h. */
23969
23970#ifdef HAVE_TIME_H
23971#include <time.h>
23972#endif
23973#ifdef HAVE_SIGNAL_H
23974#include <signal.h>
23975#endif
23976#ifdef HAVE_UNISTD_H
23977#include <unistd.h>
23978#endif
23979int main(int argc, char *argv[])
23980{
23981#if HAVE_TIMER_CREATE
23982 struct sigevent ev;
23983 timer_t timer;
23984 ev.sigev_notify = SIGEV_SIGNAL;
23985 ev.sigev_signo = SIGVTALRM;
23986 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
23987 return 1;
23988 }
23989#else
23990 return 1;
23991#endif
23992 return 0;
23993}
23994
23995_ACEOF
23996rm -f conftest$ac_exeext
23997if { (ac_try="$ac_link"
23998case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24001esac
f030cae8
VY
24002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24003$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24004 (eval "$ac_link") 2>&5
24005 ac_status=$?
f030cae8 24006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24008 { (case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24011esac
f030cae8
VY
24012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24013$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24014 (eval "$ac_try") 2>&5
24015 ac_status=$?
f030cae8 24016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24017 (exit $ac_status); }; }; then
24018 rb__cv_timer_create_works=yes
24019else
f030cae8
VY
24020 $as_echo "$as_me: program exited with status $ac_status" >&5
24021$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24022sed 's/^/| /' conftest.$ac_ext >&5
24023
24024( exit $ac_status )
24025rb__cv_timer_create_works=no
24026fi
f030cae8 24027rm -rf conftest.dSYM
b57f37fb
WP
24028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24029fi
24030
24031
24032
24033fi
f030cae8
VY
24034{ $as_echo "$as_me:$LINENO: result: $rb__cv_timer_create_works" >&5
24035$as_echo "$rb__cv_timer_create_works" >&6; }
b57f37fb
WP
24036case $rb__cv_timer_create_works in
24037 yes)
24038cat >>confdefs.h <<\_ACEOF
24039#define USE_TIMER_CREATE 1
24040_ACEOF
24041;;
24042esac
24043
f030cae8
VY
24044{ $as_echo "$as_me:$LINENO: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
24045$as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
94b4fbf9 24046if test "${rb__cv_timerfd_create_works+set}" = set; then
f030cae8 24047 $as_echo_n "(cached) " >&6
94b4fbf9
VY
24048else
24049 if test "$cross_compiling" = yes; then
f030cae8
VY
24050 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24052{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
94b4fbf9 24053See \`config.log' for more details." >&5
f030cae8 24054$as_echo "$as_me: error: cannot run test program while cross compiling
94b4fbf9 24055See \`config.log' for more details." >&2;}
f030cae8 24056 { (exit 1); exit 1; }; }; }
94b4fbf9
VY
24057else
24058 cat >conftest.$ac_ext <<_ACEOF
24059/* confdefs.h. */
24060_ACEOF
24061cat confdefs.h >>conftest.$ac_ext
24062cat >>conftest.$ac_ext <<_ACEOF
24063/* end confdefs.h. */
24064
24065#ifdef HAVE_TIME_H
24066#include <time.h>
24067#endif
24068#ifdef HAVE_SIGNAL_H
24069#include <signal.h>
24070#endif
24071#ifdef HAVE_UNISTD_H
24072#include <unistd.h>
24073#endif
24074#ifdef HAVE_SYS_TIMERFD_H
24075#include <sys/timerfd.h>
24076#endif
24077int main(int argc, char *argv[])
24078{
24079#if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
24080 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
24081 return 1;
24082 }
24083#else
24084 return 1;
24085#endif
24086 return 0;
24087}
24088
24089_ACEOF
24090rm -f conftest$ac_exeext
24091if { (ac_try="$ac_link"
24092case "(($ac_try" in
24093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094 *) ac_try_echo=$ac_try;;
24095esac
f030cae8
VY
24096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24097$as_echo "$ac_try_echo") >&5
94b4fbf9
VY
24098 (eval "$ac_link") 2>&5
24099 ac_status=$?
f030cae8 24100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94b4fbf9
VY
24101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24102 { (case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24105esac
f030cae8
VY
24106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24107$as_echo "$ac_try_echo") >&5
94b4fbf9
VY
24108 (eval "$ac_try") 2>&5
24109 ac_status=$?
f030cae8 24110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
94b4fbf9
VY
24111 (exit $ac_status); }; }; then
24112 rb__cv_timerfd_create_works=yes
24113else
f030cae8
VY
24114 $as_echo "$as_me: program exited with status $ac_status" >&5
24115$as_echo "$as_me: failed program was:" >&5
94b4fbf9
VY
24116sed 's/^/| /' conftest.$ac_ext >&5
24117
24118( exit $ac_status )
24119rb__cv_timerfd_create_works=no
24120fi
f030cae8 24121rm -rf conftest.dSYM
94b4fbf9
VY
24122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24123fi
24124
24125
24126
24127fi
f030cae8
VY
24128{ $as_echo "$as_me:$LINENO: result: $rb__cv_timerfd_create_works" >&5
24129$as_echo "$rb__cv_timerfd_create_works" >&6; }
94b4fbf9
VY
24130case $rb__cv_timerfd_create_works in
24131 yes)
24132cat >>confdefs.h <<\_ACEOF
24133#define USE_TIMERFD_CREATE 1
24134_ACEOF
24135;;
24136esac
24137
b57f37fb
WP
24138
24139# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24140# for constant arguments. Useless!
f030cae8
VY
24141{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
24142$as_echo_n "checking for working alloca.h... " >&6; }
b57f37fb 24143if test "${ac_cv_working_alloca_h+set}" = set; then
f030cae8 24144 $as_echo_n "(cached) " >&6
b57f37fb
WP
24145else
24146 cat >conftest.$ac_ext <<_ACEOF
24147/* confdefs.h. */
24148_ACEOF
24149cat confdefs.h >>conftest.$ac_ext
24150cat >>conftest.$ac_ext <<_ACEOF
24151/* end confdefs.h. */
24152#include <alloca.h>
24153int
24154main ()
24155{
24156char *p = (char *) alloca (2 * sizeof (int));
24157 if (p) return 0;
24158 ;
24159 return 0;
24160}
24161_ACEOF
24162rm -f conftest.$ac_objext conftest$ac_exeext
24163if { (ac_try="$ac_link"
24164case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24167esac
f030cae8
VY
24168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24169$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24170 (eval "$ac_link") 2>conftest.er1
24171 ac_status=$?
24172 grep -v '^ *+' conftest.er1 >conftest.err
24173 rm -f conftest.er1
24174 cat conftest.err >&5
f030cae8 24175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24176 (exit $ac_status); } && {
24177 test -z "$ac_c_werror_flag" ||
24178 test ! -s conftest.err
f030cae8
VY
24179 } && test -s conftest$ac_exeext && {
24180 test "$cross_compiling" = yes ||
24181 $as_test_x conftest$ac_exeext
24182 }; then
b57f37fb
WP
24183 ac_cv_working_alloca_h=yes
24184else
f030cae8 24185 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24186sed 's/^/| /' conftest.$ac_ext >&5
24187
24188 ac_cv_working_alloca_h=no
24189fi
24190
f030cae8 24191rm -rf conftest.dSYM
b57f37fb
WP
24192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24193 conftest$ac_exeext conftest.$ac_ext
24194fi
f030cae8
VY
24195{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24196$as_echo "$ac_cv_working_alloca_h" >&6; }
b57f37fb
WP
24197if test $ac_cv_working_alloca_h = yes; then
24198
24199cat >>confdefs.h <<\_ACEOF
24200#define HAVE_ALLOCA_H 1
24201_ACEOF
24202
24203fi
24204
f030cae8
VY
24205{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
24206$as_echo_n "checking for alloca... " >&6; }
b57f37fb 24207if test "${ac_cv_func_alloca_works+set}" = set; then
f030cae8 24208 $as_echo_n "(cached) " >&6
b57f37fb
WP
24209else
24210 cat >conftest.$ac_ext <<_ACEOF
24211/* confdefs.h. */
24212_ACEOF
24213cat confdefs.h >>conftest.$ac_ext
24214cat >>conftest.$ac_ext <<_ACEOF
24215/* end confdefs.h. */
24216#ifdef __GNUC__
24217# define alloca __builtin_alloca
24218#else
24219# ifdef _MSC_VER
24220# include <malloc.h>
24221# define alloca _alloca
24222# else
24223# ifdef HAVE_ALLOCA_H
24224# include <alloca.h>
24225# else
24226# ifdef _AIX
24227 #pragma alloca
24228# else
24229# ifndef alloca /* predefined by HP cc +Olibcalls */
24230char *alloca ();
24231# endif
24232# endif
24233# endif
24234# endif
24235#endif
24236
24237int
24238main ()
24239{
24240char *p = (char *) alloca (1);
24241 if (p) return 0;
24242 ;
24243 return 0;
24244}
24245_ACEOF
24246rm -f conftest.$ac_objext conftest$ac_exeext
24247if { (ac_try="$ac_link"
24248case "(($ac_try" in
24249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250 *) ac_try_echo=$ac_try;;
24251esac
f030cae8
VY
24252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24253$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24254 (eval "$ac_link") 2>conftest.er1
24255 ac_status=$?
24256 grep -v '^ *+' conftest.er1 >conftest.err
24257 rm -f conftest.er1
24258 cat conftest.err >&5
f030cae8 24259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24260 (exit $ac_status); } && {
24261 test -z "$ac_c_werror_flag" ||
24262 test ! -s conftest.err
f030cae8
VY
24263 } && test -s conftest$ac_exeext && {
24264 test "$cross_compiling" = yes ||
24265 $as_test_x conftest$ac_exeext
24266 }; then
b57f37fb
WP
24267 ac_cv_func_alloca_works=yes
24268else
f030cae8 24269 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24270sed 's/^/| /' conftest.$ac_ext >&5
24271
24272 ac_cv_func_alloca_works=no
24273fi
24274
f030cae8 24275rm -rf conftest.dSYM
b57f37fb
WP
24276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24277 conftest$ac_exeext conftest.$ac_ext
24278fi
f030cae8
VY
24279{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24280$as_echo "$ac_cv_func_alloca_works" >&6; }
b57f37fb
WP
24281
24282if test $ac_cv_func_alloca_works = yes; then
24283
24284cat >>confdefs.h <<\_ACEOF
24285#define HAVE_ALLOCA 1
24286_ACEOF
24287
24288else
24289 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24290# that cause trouble. Some versions do not even contain alloca or
24291# contain a buggy version. If you still want to use their alloca,
24292# use ar to extract alloca.o from them instead of compiling alloca.c.
24293
24294ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24295
24296cat >>confdefs.h <<\_ACEOF
24297#define C_ALLOCA 1
24298_ACEOF
24299
24300
f030cae8
VY
24301{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24302$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b57f37fb 24303if test "${ac_cv_os_cray+set}" = set; then
f030cae8 24304 $as_echo_n "(cached) " >&6
b57f37fb
WP
24305else
24306 cat >conftest.$ac_ext <<_ACEOF
24307/* confdefs.h. */
24308_ACEOF
24309cat confdefs.h >>conftest.$ac_ext
24310cat >>conftest.$ac_ext <<_ACEOF
24311/* end confdefs.h. */
24312#if defined CRAY && ! defined CRAY2
24313webecray
24314#else
24315wenotbecray
24316#endif
24317
24318_ACEOF
24319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24320 $EGREP "webecray" >/dev/null 2>&1; then
24321 ac_cv_os_cray=yes
24322else
24323 ac_cv_os_cray=no
24324fi
24325rm -f conftest*
24326
24327fi
f030cae8
VY
24328{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24329$as_echo "$ac_cv_os_cray" >&6; }
b57f37fb
WP
24330if test $ac_cv_os_cray = yes; then
24331 for ac_func in _getb67 GETB67 getb67; do
f030cae8
VY
24332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24333{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24334$as_echo_n "checking for $ac_func... " >&6; }
b57f37fb 24335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 24336 $as_echo_n "(cached) " >&6
b57f37fb
WP
24337else
24338 cat >conftest.$ac_ext <<_ACEOF
24339/* confdefs.h. */
24340_ACEOF
24341cat confdefs.h >>conftest.$ac_ext
24342cat >>conftest.$ac_ext <<_ACEOF
24343/* end confdefs.h. */
24344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24346#define $ac_func innocuous_$ac_func
24347
24348/* System header to define __stub macros and hopefully few prototypes,
24349 which can conflict with char $ac_func (); below.
24350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24351 <limits.h> exists even on freestanding compilers. */
24352
24353#ifdef __STDC__
24354# include <limits.h>
24355#else
24356# include <assert.h>
24357#endif
24358
24359#undef $ac_func
24360
24361/* Override any GCC internal prototype to avoid an error.
24362 Use char because int might match the return type of a GCC
24363 builtin and then its argument prototype would still apply. */
24364#ifdef __cplusplus
24365extern "C"
24366#endif
24367char $ac_func ();
24368/* The GNU C library defines this for functions which it implements
24369 to always fail with ENOSYS. Some functions are actually named
24370 something starting with __ and the normal name is an alias. */
24371#if defined __stub_$ac_func || defined __stub___$ac_func
24372choke me
24373#endif
24374
24375int
24376main ()
24377{
24378return $ac_func ();
24379 ;
24380 return 0;
24381}
24382_ACEOF
24383rm -f conftest.$ac_objext conftest$ac_exeext
24384if { (ac_try="$ac_link"
24385case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24388esac
f030cae8
VY
24389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24390$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24391 (eval "$ac_link") 2>conftest.er1
24392 ac_status=$?
24393 grep -v '^ *+' conftest.er1 >conftest.err
24394 rm -f conftest.er1
24395 cat conftest.err >&5
f030cae8 24396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24397 (exit $ac_status); } && {
24398 test -z "$ac_c_werror_flag" ||
24399 test ! -s conftest.err
f030cae8
VY
24400 } && test -s conftest$ac_exeext && {
24401 test "$cross_compiling" = yes ||
24402 $as_test_x conftest$ac_exeext
24403 }; then
b57f37fb
WP
24404 eval "$as_ac_var=yes"
24405else
f030cae8 24406 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24407sed 's/^/| /' conftest.$ac_ext >&5
24408
24409 eval "$as_ac_var=no"
24410fi
24411
f030cae8 24412rm -rf conftest.dSYM
b57f37fb
WP
24413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24414 conftest$ac_exeext conftest.$ac_ext
24415fi
f030cae8
VY
24416ac_res=`eval 'as_val=${'$as_ac_var'}
24417 $as_echo "$as_val"'`
24418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24419$as_echo "$ac_res" >&6; }
24420as_val=`eval 'as_val=${'$as_ac_var'}
24421 $as_echo "$as_val"'`
24422 if test "x$as_val" = x""yes; then
b57f37fb
WP
24423
24424cat >>confdefs.h <<_ACEOF
24425#define CRAY_STACKSEG_END $ac_func
24426_ACEOF
24427
24428 break
24429fi
24430
24431 done
24432fi
24433
f030cae8
VY
24434{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24435$as_echo_n "checking stack direction for C alloca... " >&6; }
b57f37fb 24436if test "${ac_cv_c_stack_direction+set}" = set; then
f030cae8 24437 $as_echo_n "(cached) " >&6
b57f37fb
WP
24438else
24439 if test "$cross_compiling" = yes; then
24440 ac_cv_c_stack_direction=0
24441else
24442 cat >conftest.$ac_ext <<_ACEOF
24443/* confdefs.h. */
24444_ACEOF
24445cat confdefs.h >>conftest.$ac_ext
24446cat >>conftest.$ac_ext <<_ACEOF
24447/* end confdefs.h. */
24448$ac_includes_default
24449int
24450find_stack_direction ()
24451{
24452 static char *addr = 0;
24453 auto char dummy;
24454 if (addr == 0)
24455 {
24456 addr = &dummy;
24457 return find_stack_direction ();
24458 }
24459 else
24460 return (&dummy > addr) ? 1 : -1;
24461}
24462
24463int
24464main ()
24465{
24466 return find_stack_direction () < 0;
24467}
24468_ACEOF
24469rm -f conftest$ac_exeext
24470if { (ac_try="$ac_link"
24471case "(($ac_try" in
24472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473 *) ac_try_echo=$ac_try;;
24474esac
f030cae8
VY
24475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24476$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24477 (eval "$ac_link") 2>&5
24478 ac_status=$?
f030cae8 24479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24481 { (case "(($ac_try" in
24482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483 *) ac_try_echo=$ac_try;;
24484esac
f030cae8
VY
24485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24486$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24487 (eval "$ac_try") 2>&5
24488 ac_status=$?
f030cae8 24489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24490 (exit $ac_status); }; }; then
24491 ac_cv_c_stack_direction=1
24492else
f030cae8
VY
24493 $as_echo "$as_me: program exited with status $ac_status" >&5
24494$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24495sed 's/^/| /' conftest.$ac_ext >&5
24496
24497( exit $ac_status )
24498ac_cv_c_stack_direction=-1
24499fi
f030cae8 24500rm -rf conftest.dSYM
b57f37fb
WP
24501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24502fi
24503
24504
24505fi
f030cae8
VY
24506{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24507$as_echo "$ac_cv_c_stack_direction" >&6; }
b57f37fb
WP
24508
24509cat >>confdefs.h <<_ACEOF
24510#define STACK_DIRECTION $ac_cv_c_stack_direction
24511_ACEOF
24512
24513
24514fi
24515
24516
24517for ac_header in vfork.h
24518do
f030cae8 24519as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
b57f37fb 24520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8
VY
24521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24522$as_echo_n "checking for $ac_header... " >&6; }
b57f37fb 24523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 24524 $as_echo_n "(cached) " >&6
b57f37fb 24525fi
f030cae8
VY
24526ac_res=`eval 'as_val=${'$as_ac_Header'}
24527 $as_echo "$as_val"'`
24528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24529$as_echo "$ac_res" >&6; }
b57f37fb
WP
24530else
24531 # Is the header compilable?
f030cae8
VY
24532{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24533$as_echo_n "checking $ac_header usability... " >&6; }
b57f37fb
WP
24534cat >conftest.$ac_ext <<_ACEOF
24535/* confdefs.h. */
24536_ACEOF
24537cat confdefs.h >>conftest.$ac_ext
24538cat >>conftest.$ac_ext <<_ACEOF
24539/* end confdefs.h. */
24540$ac_includes_default
24541#include <$ac_header>
24542_ACEOF
24543rm -f conftest.$ac_objext
24544if { (ac_try="$ac_compile"
24545case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24548esac
f030cae8
VY
24549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24550$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24551 (eval "$ac_compile") 2>conftest.er1
24552 ac_status=$?
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
f030cae8 24556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24557 (exit $ac_status); } && {
24558 test -z "$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 } && test -s conftest.$ac_objext; then
24561 ac_header_compiler=yes
24562else
f030cae8 24563 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24564sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 ac_header_compiler=no
24567fi
24568
24569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
24570{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24571$as_echo "$ac_header_compiler" >&6; }
b57f37fb
WP
24572
24573# Is the header present?
f030cae8
VY
24574{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24575$as_echo_n "checking $ac_header presence... " >&6; }
b57f37fb
WP
24576cat >conftest.$ac_ext <<_ACEOF
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582#include <$ac_header>
24583_ACEOF
24584if { (ac_try="$ac_cpp conftest.$ac_ext"
24585case "(($ac_try" in
24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587 *) ac_try_echo=$ac_try;;
24588esac
f030cae8
VY
24589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24590$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24592 ac_status=$?
24593 grep -v '^ *+' conftest.er1 >conftest.err
24594 rm -f conftest.er1
24595 cat conftest.err >&5
f030cae8 24596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24597 (exit $ac_status); } >/dev/null && {
24598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24599 test ! -s conftest.err
24600 }; then
24601 ac_header_preproc=yes
24602else
f030cae8 24603 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24604sed 's/^/| /' conftest.$ac_ext >&5
24605
24606 ac_header_preproc=no
24607fi
24608
24609rm -f conftest.err conftest.$ac_ext
f030cae8
VY
24610{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24611$as_echo "$ac_header_preproc" >&6; }
b57f37fb
WP
24612
24613# So? What about this header?
24614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24615 yes:no: )
f030cae8
VY
24616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24617$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24619$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
b57f37fb
WP
24620 ac_header_preproc=yes
24621 ;;
24622 no:yes:* )
f030cae8
VY
24623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24624$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24626$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24628$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24630$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24632$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24634$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b57f37fb
WP
24635
24636 ;;
24637esac
f030cae8
VY
24638{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24639$as_echo_n "checking for $ac_header... " >&6; }
b57f37fb 24640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 24641 $as_echo_n "(cached) " >&6
b57f37fb
WP
24642else
24643 eval "$as_ac_Header=\$ac_header_preproc"
24644fi
f030cae8
VY
24645ac_res=`eval 'as_val=${'$as_ac_Header'}
24646 $as_echo "$as_val"'`
24647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24648$as_echo "$ac_res" >&6; }
b57f37fb
WP
24649
24650fi
f030cae8
VY
24651as_val=`eval 'as_val=${'$as_ac_Header'}
24652 $as_echo "$as_val"'`
24653 if test "x$as_val" = x""yes; then
b57f37fb 24654 cat >>confdefs.h <<_ACEOF
f030cae8 24655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b57f37fb
WP
24656_ACEOF
24657
24658fi
24659
24660done
24661
24662
24663
24664for ac_func in fork vfork
24665do
f030cae8
VY
24666as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24667{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24668$as_echo_n "checking for $ac_func... " >&6; }
b57f37fb 24669if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 24670 $as_echo_n "(cached) " >&6
b57f37fb
WP
24671else
24672 cat >conftest.$ac_ext <<_ACEOF
24673/* confdefs.h. */
24674_ACEOF
24675cat confdefs.h >>conftest.$ac_ext
24676cat >>conftest.$ac_ext <<_ACEOF
24677/* end confdefs.h. */
24678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24680#define $ac_func innocuous_$ac_func
24681
24682/* System header to define __stub macros and hopefully few prototypes,
24683 which can conflict with char $ac_func (); below.
24684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24685 <limits.h> exists even on freestanding compilers. */
24686
24687#ifdef __STDC__
24688# include <limits.h>
24689#else
24690# include <assert.h>
24691#endif
24692
24693#undef $ac_func
24694
24695/* Override any GCC internal prototype to avoid an error.
24696 Use char because int might match the return type of a GCC
24697 builtin and then its argument prototype would still apply. */
24698#ifdef __cplusplus
24699extern "C"
24700#endif
24701char $ac_func ();
24702/* The GNU C library defines this for functions which it implements
24703 to always fail with ENOSYS. Some functions are actually named
24704 something starting with __ and the normal name is an alias. */
24705#if defined __stub_$ac_func || defined __stub___$ac_func
24706choke me
24707#endif
24708
24709int
24710main ()
24711{
24712return $ac_func ();
24713 ;
24714 return 0;
24715}
24716_ACEOF
24717rm -f conftest.$ac_objext conftest$ac_exeext
24718if { (ac_try="$ac_link"
24719case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24722esac
f030cae8
VY
24723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24724$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24725 (eval "$ac_link") 2>conftest.er1
24726 ac_status=$?
24727 grep -v '^ *+' conftest.er1 >conftest.err
24728 rm -f conftest.er1
24729 cat conftest.err >&5
f030cae8 24730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24731 (exit $ac_status); } && {
24732 test -z "$ac_c_werror_flag" ||
24733 test ! -s conftest.err
f030cae8
VY
24734 } && test -s conftest$ac_exeext && {
24735 test "$cross_compiling" = yes ||
24736 $as_test_x conftest$ac_exeext
24737 }; then
b57f37fb
WP
24738 eval "$as_ac_var=yes"
24739else
f030cae8 24740 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24741sed 's/^/| /' conftest.$ac_ext >&5
24742
24743 eval "$as_ac_var=no"
24744fi
24745
f030cae8 24746rm -rf conftest.dSYM
b57f37fb
WP
24747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24748 conftest$ac_exeext conftest.$ac_ext
24749fi
f030cae8
VY
24750ac_res=`eval 'as_val=${'$as_ac_var'}
24751 $as_echo "$as_val"'`
24752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24753$as_echo "$ac_res" >&6; }
24754as_val=`eval 'as_val=${'$as_ac_var'}
24755 $as_echo "$as_val"'`
24756 if test "x$as_val" = x""yes; then
b57f37fb 24757 cat >>confdefs.h <<_ACEOF
f030cae8 24758#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b57f37fb
WP
24759_ACEOF
24760
24761fi
24762done
24763
24764if test "x$ac_cv_func_fork" = xyes; then
f030cae8
VY
24765 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24766$as_echo_n "checking for working fork... " >&6; }
b57f37fb 24767if test "${ac_cv_func_fork_works+set}" = set; then
f030cae8 24768 $as_echo_n "(cached) " >&6
b57f37fb
WP
24769else
24770 if test "$cross_compiling" = yes; then
24771 ac_cv_func_fork_works=cross
24772else
24773 cat >conftest.$ac_ext <<_ACEOF
24774/* confdefs.h. */
24775_ACEOF
24776cat confdefs.h >>conftest.$ac_ext
24777cat >>conftest.$ac_ext <<_ACEOF
24778/* end confdefs.h. */
24779$ac_includes_default
24780int
24781main ()
24782{
24783
24784 /* By Ruediger Kuhlmann. */
24785 return fork () < 0;
24786
24787 ;
24788 return 0;
24789}
24790_ACEOF
24791rm -f conftest$ac_exeext
24792if { (ac_try="$ac_link"
24793case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24796esac
f030cae8
VY
24797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24798$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24799 (eval "$ac_link") 2>&5
24800 ac_status=$?
f030cae8 24801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24803 { (case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24806esac
f030cae8
VY
24807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24808$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24809 (eval "$ac_try") 2>&5
24810 ac_status=$?
f030cae8 24811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24812 (exit $ac_status); }; }; then
24813 ac_cv_func_fork_works=yes
24814else
f030cae8
VY
24815 $as_echo "$as_me: program exited with status $ac_status" >&5
24816$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24817sed 's/^/| /' conftest.$ac_ext >&5
24818
24819( exit $ac_status )
24820ac_cv_func_fork_works=no
24821fi
f030cae8 24822rm -rf conftest.dSYM
b57f37fb
WP
24823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24824fi
24825
24826
24827fi
f030cae8
VY
24828{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24829$as_echo "$ac_cv_func_fork_works" >&6; }
b57f37fb
WP
24830
24831else
24832 ac_cv_func_fork_works=$ac_cv_func_fork
24833fi
24834if test "x$ac_cv_func_fork_works" = xcross; then
24835 case $host in
24836 *-*-amigaos* | *-*-msdosdjgpp*)
24837 # Override, as these systems have only a dummy fork() stub
24838 ac_cv_func_fork_works=no
24839 ;;
24840 *)
24841 ac_cv_func_fork_works=yes
24842 ;;
24843 esac
f030cae8
VY
24844 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24845$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
b57f37fb
WP
24846fi
24847ac_cv_func_vfork_works=$ac_cv_func_vfork
24848if test "x$ac_cv_func_vfork" = xyes; then
f030cae8
VY
24849 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24850$as_echo_n "checking for working vfork... " >&6; }
b57f37fb 24851if test "${ac_cv_func_vfork_works+set}" = set; then
f030cae8 24852 $as_echo_n "(cached) " >&6
b57f37fb
WP
24853else
24854 if test "$cross_compiling" = yes; then
24855 ac_cv_func_vfork_works=cross
24856else
24857 cat >conftest.$ac_ext <<_ACEOF
24858/* confdefs.h. */
24859_ACEOF
24860cat confdefs.h >>conftest.$ac_ext
24861cat >>conftest.$ac_ext <<_ACEOF
24862/* end confdefs.h. */
24863/* Thanks to Paul Eggert for this test. */
24864$ac_includes_default
24865#include <sys/wait.h>
24866#ifdef HAVE_VFORK_H
24867# include <vfork.h>
24868#endif
24869/* On some sparc systems, changes by the child to local and incoming
24870 argument registers are propagated back to the parent. The compiler
24871 is told about this with #include <vfork.h>, but some compilers
24872 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24873 static variable whose address is put into a register that is
24874 clobbered by the vfork. */
24875static void
24876#ifdef __cplusplus
24877sparc_address_test (int arg)
24878# else
24879sparc_address_test (arg) int arg;
24880#endif
24881{
24882 static pid_t child;
24883 if (!child) {
24884 child = vfork ();
24885 if (child < 0) {
24886 perror ("vfork");
24887 _exit(2);
24888 }
24889 if (!child) {
24890 arg = getpid();
24891 write(-1, "", 0);
24892 _exit (arg);
24893 }
24894 }
24895}
24896
24897int
24898main ()
24899{
24900 pid_t parent = getpid ();
24901 pid_t child;
24902
24903 sparc_address_test (0);
24904
24905 child = vfork ();
24906
24907 if (child == 0) {
24908 /* Here is another test for sparc vfork register problems. This
24909 test uses lots of local variables, at least as many local
24910 variables as main has allocated so far including compiler
24911 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24912 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24913 reuse the register of parent for one of the local variables,
24914 since it will think that parent can't possibly be used any more
24915 in this routine. Assigning to the local variable will thus
24916 munge parent in the parent process. */
24917 pid_t
24918 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24919 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24920 /* Convince the compiler that p..p7 are live; otherwise, it might
24921 use the same hardware register for all 8 local variables. */
24922 if (p != p1 || p != p2 || p != p3 || p != p4
24923 || p != p5 || p != p6 || p != p7)
24924 _exit(1);
24925
24926 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24927 from child file descriptors. If the child closes a descriptor
24928 before it execs or exits, this munges the parent's descriptor
24929 as well. Test for this by closing stdout in the child. */
24930 _exit(close(fileno(stdout)) != 0);
24931 } else {
24932 int status;
24933 struct stat st;
24934
24935 while (wait(&status) != child)
24936 ;
24937 return (
24938 /* Was there some problem with vforking? */
24939 child < 0
24940
24941 /* Did the child fail? (This shouldn't happen.) */
24942 || status
24943
24944 /* Did the vfork/compiler bug occur? */
24945 || parent != getpid()
24946
24947 /* Did the file descriptor bug occur? */
24948 || fstat(fileno(stdout), &st) != 0
24949 );
24950 }
24951}
24952_ACEOF
24953rm -f conftest$ac_exeext
24954if { (ac_try="$ac_link"
24955case "(($ac_try" in
24956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957 *) ac_try_echo=$ac_try;;
24958esac
f030cae8
VY
24959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24960$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24961 (eval "$ac_link") 2>&5
24962 ac_status=$?
f030cae8 24963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24965 { (case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24968esac
f030cae8
VY
24969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24970$as_echo "$ac_try_echo") >&5
b57f37fb
WP
24971 (eval "$ac_try") 2>&5
24972 ac_status=$?
f030cae8 24973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
24974 (exit $ac_status); }; }; then
24975 ac_cv_func_vfork_works=yes
24976else
f030cae8
VY
24977 $as_echo "$as_me: program exited with status $ac_status" >&5
24978$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
24979sed 's/^/| /' conftest.$ac_ext >&5
24980
24981( exit $ac_status )
24982ac_cv_func_vfork_works=no
24983fi
f030cae8 24984rm -rf conftest.dSYM
b57f37fb
WP
24985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24986fi
24987
24988
24989fi
f030cae8
VY
24990{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24991$as_echo "$ac_cv_func_vfork_works" >&6; }
b57f37fb
WP
24992
24993fi;
24994if test "x$ac_cv_func_fork_works" = xcross; then
24995 ac_cv_func_vfork_works=$ac_cv_func_vfork
f030cae8
VY
24996 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24997$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
b57f37fb
WP
24998fi
24999
25000if test "x$ac_cv_func_vfork_works" = xyes; then
25001
25002cat >>confdefs.h <<\_ACEOF
25003#define HAVE_WORKING_VFORK 1
25004_ACEOF
25005
25006else
25007
25008cat >>confdefs.h <<\_ACEOF
25009#define vfork fork
25010_ACEOF
25011
25012fi
25013if test "x$ac_cv_func_fork_works" = xyes; then
25014
25015cat >>confdefs.h <<\_ACEOF
25016#define HAVE_WORKING_FORK 1
25017_ACEOF
25018
25019fi
25020
25021
25022
25023for ac_header in stdlib.h unistd.h
25024do
f030cae8 25025as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
b57f37fb 25026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8
VY
25027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25028$as_echo_n "checking for $ac_header... " >&6; }
b57f37fb 25029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 25030 $as_echo_n "(cached) " >&6
b57f37fb 25031fi
f030cae8
VY
25032ac_res=`eval 'as_val=${'$as_ac_Header'}
25033 $as_echo "$as_val"'`
25034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25035$as_echo "$ac_res" >&6; }
b57f37fb
WP
25036else
25037 # Is the header compilable?
f030cae8
VY
25038{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25039$as_echo_n "checking $ac_header usability... " >&6; }
b57f37fb
WP
25040cat >conftest.$ac_ext <<_ACEOF
25041/* confdefs.h. */
25042_ACEOF
25043cat confdefs.h >>conftest.$ac_ext
25044cat >>conftest.$ac_ext <<_ACEOF
25045/* end confdefs.h. */
25046$ac_includes_default
25047#include <$ac_header>
25048_ACEOF
25049rm -f conftest.$ac_objext
25050if { (ac_try="$ac_compile"
25051case "(($ac_try" in
25052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053 *) ac_try_echo=$ac_try;;
25054esac
f030cae8
VY
25055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25056$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25057 (eval "$ac_compile") 2>conftest.er1
25058 ac_status=$?
25059 grep -v '^ *+' conftest.er1 >conftest.err
25060 rm -f conftest.er1
25061 cat conftest.err >&5
f030cae8 25062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25063 (exit $ac_status); } && {
25064 test -z "$ac_c_werror_flag" ||
25065 test ! -s conftest.err
25066 } && test -s conftest.$ac_objext; then
25067 ac_header_compiler=yes
25068else
f030cae8 25069 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
25070sed 's/^/| /' conftest.$ac_ext >&5
25071
25072 ac_header_compiler=no
25073fi
25074
25075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f030cae8
VY
25076{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25077$as_echo "$ac_header_compiler" >&6; }
b57f37fb
WP
25078
25079# Is the header present?
f030cae8
VY
25080{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25081$as_echo_n "checking $ac_header presence... " >&6; }
b57f37fb
WP
25082cat >conftest.$ac_ext <<_ACEOF
25083/* confdefs.h. */
25084_ACEOF
25085cat confdefs.h >>conftest.$ac_ext
25086cat >>conftest.$ac_ext <<_ACEOF
25087/* end confdefs.h. */
25088#include <$ac_header>
25089_ACEOF
25090if { (ac_try="$ac_cpp conftest.$ac_ext"
25091case "(($ac_try" in
25092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093 *) ac_try_echo=$ac_try;;
25094esac
f030cae8
VY
25095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25096$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25098 ac_status=$?
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
f030cae8 25102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25103 (exit $ac_status); } >/dev/null && {
25104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25105 test ! -s conftest.err
25106 }; then
25107 ac_header_preproc=yes
25108else
f030cae8 25109 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
25110sed 's/^/| /' conftest.$ac_ext >&5
25111
25112 ac_header_preproc=no
25113fi
25114
25115rm -f conftest.err conftest.$ac_ext
f030cae8
VY
25116{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25117$as_echo "$ac_header_preproc" >&6; }
b57f37fb
WP
25118
25119# So? What about this header?
25120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25121 yes:no: )
f030cae8
VY
25122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25123$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25125$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
b57f37fb
WP
25126 ac_header_preproc=yes
25127 ;;
25128 no:yes:* )
f030cae8
VY
25129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25130$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25132$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25134$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25136$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25138$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25140$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b57f37fb
WP
25141
25142 ;;
25143esac
f030cae8
VY
25144{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25145$as_echo_n "checking for $ac_header... " >&6; }
b57f37fb 25146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 25147 $as_echo_n "(cached) " >&6
b57f37fb
WP
25148else
25149 eval "$as_ac_Header=\$ac_header_preproc"
25150fi
f030cae8
VY
25151ac_res=`eval 'as_val=${'$as_ac_Header'}
25152 $as_echo "$as_val"'`
25153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25154$as_echo "$ac_res" >&6; }
b57f37fb
WP
25155
25156fi
f030cae8
VY
25157as_val=`eval 'as_val=${'$as_ac_Header'}
25158 $as_echo "$as_val"'`
25159 if test "x$as_val" = x""yes; then
b57f37fb 25160 cat >>confdefs.h <<_ACEOF
f030cae8 25161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b57f37fb
WP
25162_ACEOF
25163
25164fi
25165
25166done
25167
25168
25169for ac_func in getpagesize
25170do
f030cae8
VY
25171as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25172{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25173$as_echo_n "checking for $ac_func... " >&6; }
b57f37fb 25174if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
f030cae8 25175 $as_echo_n "(cached) " >&6
b57f37fb
WP
25176else
25177 cat >conftest.$ac_ext <<_ACEOF
25178/* confdefs.h. */
25179_ACEOF
25180cat confdefs.h >>conftest.$ac_ext
25181cat >>conftest.$ac_ext <<_ACEOF
25182/* end confdefs.h. */
25183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25185#define $ac_func innocuous_$ac_func
25186
25187/* System header to define __stub macros and hopefully few prototypes,
25188 which can conflict with char $ac_func (); below.
25189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25190 <limits.h> exists even on freestanding compilers. */
25191
25192#ifdef __STDC__
25193# include <limits.h>
25194#else
25195# include <assert.h>
25196#endif
25197
25198#undef $ac_func
25199
25200/* Override any GCC internal prototype to avoid an error.
25201 Use char because int might match the return type of a GCC
25202 builtin and then its argument prototype would still apply. */
25203#ifdef __cplusplus
25204extern "C"
25205#endif
25206char $ac_func ();
25207/* The GNU C library defines this for functions which it implements
25208 to always fail with ENOSYS. Some functions are actually named
25209 something starting with __ and the normal name is an alias. */
25210#if defined __stub_$ac_func || defined __stub___$ac_func
25211choke me
25212#endif
25213
25214int
25215main ()
25216{
25217return $ac_func ();
25218 ;
25219 return 0;
25220}
25221_ACEOF
25222rm -f conftest.$ac_objext conftest$ac_exeext
25223if { (ac_try="$ac_link"
25224case "(($ac_try" in
25225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25227esac
f030cae8
VY
25228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25229$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25230 (eval "$ac_link") 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
f030cae8 25235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25236 (exit $ac_status); } && {
25237 test -z "$ac_c_werror_flag" ||
25238 test ! -s conftest.err
f030cae8
VY
25239 } && test -s conftest$ac_exeext && {
25240 test "$cross_compiling" = yes ||
25241 $as_test_x conftest$ac_exeext
25242 }; then
b57f37fb
WP
25243 eval "$as_ac_var=yes"
25244else
f030cae8 25245 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
25246sed 's/^/| /' conftest.$ac_ext >&5
25247
25248 eval "$as_ac_var=no"
25249fi
25250
f030cae8 25251rm -rf conftest.dSYM
b57f37fb
WP
25252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25253 conftest$ac_exeext conftest.$ac_ext
25254fi
f030cae8
VY
25255ac_res=`eval 'as_val=${'$as_ac_var'}
25256 $as_echo "$as_val"'`
25257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25258$as_echo "$ac_res" >&6; }
25259as_val=`eval 'as_val=${'$as_ac_var'}
25260 $as_echo "$as_val"'`
25261 if test "x$as_val" = x""yes; then
b57f37fb 25262 cat >>confdefs.h <<_ACEOF
f030cae8 25263#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b57f37fb
WP
25264_ACEOF
25265
25266fi
25267done
25268
f030cae8
VY
25269{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
25270$as_echo_n "checking for working mmap... " >&6; }
b57f37fb 25271if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
f030cae8 25272 $as_echo_n "(cached) " >&6
b57f37fb
WP
25273else
25274 if test "$cross_compiling" = yes; then
25275 ac_cv_func_mmap_fixed_mapped=no
25276else
25277 cat >conftest.$ac_ext <<_ACEOF
25278/* confdefs.h. */
25279_ACEOF
25280cat confdefs.h >>conftest.$ac_ext
25281cat >>conftest.$ac_ext <<_ACEOF
25282/* end confdefs.h. */
25283$ac_includes_default
25284/* malloc might have been renamed as rpl_malloc. */
25285#undef malloc
25286
25287/* Thanks to Mike Haertel and Jim Avera for this test.
25288 Here is a matrix of mmap possibilities:
25289 mmap private not fixed
25290 mmap private fixed at somewhere currently unmapped
25291 mmap private fixed at somewhere already mapped
25292 mmap shared not fixed
25293 mmap shared fixed at somewhere currently unmapped
25294 mmap shared fixed at somewhere already mapped
25295 For private mappings, we should verify that changes cannot be read()
25296 back from the file, nor mmap's back from the file at a different
25297 address. (There have been systems where private was not correctly
25298 implemented like the infamous i386 svr4.0, and systems where the
25299 VM page cache was not coherent with the file system buffer cache
25300 like early versions of FreeBSD and possibly contemporary NetBSD.)
25301 For shared mappings, we should conversely verify that changes get
25302 propagated back to all the places they're supposed to be.
25303
25304 Grep wants private fixed already mapped.
25305 The main things grep needs to know about mmap are:
25306 * does it exist and is it safe to write into the mmap'd area
25307 * how to use it (BSD variants) */
25308
25309#include <fcntl.h>
25310#include <sys/mman.h>
25311
25312#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25313char *malloc ();
25314#endif
25315
25316/* This mess was copied from the GNU getpagesize.h. */
25317#ifndef HAVE_GETPAGESIZE
25318/* Assume that all systems that can run configure have sys/param.h. */
25319# ifndef HAVE_SYS_PARAM_H
25320# define HAVE_SYS_PARAM_H 1
25321# endif
25322
25323# ifdef _SC_PAGESIZE
25324# define getpagesize() sysconf(_SC_PAGESIZE)
25325# else /* no _SC_PAGESIZE */
25326# ifdef HAVE_SYS_PARAM_H
25327# include <sys/param.h>
25328# ifdef EXEC_PAGESIZE
25329# define getpagesize() EXEC_PAGESIZE
25330# else /* no EXEC_PAGESIZE */
25331# ifdef NBPG
25332# define getpagesize() NBPG * CLSIZE
25333# ifndef CLSIZE
25334# define CLSIZE 1
25335# endif /* no CLSIZE */
25336# else /* no NBPG */
25337# ifdef NBPC
25338# define getpagesize() NBPC
25339# else /* no NBPC */
25340# ifdef PAGESIZE
25341# define getpagesize() PAGESIZE
25342# endif /* PAGESIZE */
25343# endif /* no NBPC */
25344# endif /* no NBPG */
25345# endif /* no EXEC_PAGESIZE */
25346# else /* no HAVE_SYS_PARAM_H */
25347# define getpagesize() 8192 /* punt totally */
25348# endif /* no HAVE_SYS_PARAM_H */
25349# endif /* no _SC_PAGESIZE */
25350
25351#endif /* no HAVE_GETPAGESIZE */
25352
25353int
25354main ()
25355{
25356 char *data, *data2, *data3;
25357 int i, pagesize;
25358 int fd;
25359
25360 pagesize = getpagesize ();
25361
25362 /* First, make a file with some known garbage in it. */
25363 data = (char *) malloc (pagesize);
25364 if (!data)
25365 return 1;
25366 for (i = 0; i < pagesize; ++i)
25367 *(data + i) = rand ();
25368 umask (0);
25369 fd = creat ("conftest.mmap", 0600);
25370 if (fd < 0)
25371 return 1;
25372 if (write (fd, data, pagesize) != pagesize)
25373 return 1;
25374 close (fd);
25375
25376 /* Next, try to mmap the file at a fixed address which already has
25377 something else allocated at it. If we can, also make sure that
25378 we see the same garbage. */
25379 fd = open ("conftest.mmap", O_RDWR);
25380 if (fd < 0)
25381 return 1;
25382 data2 = (char *) malloc (2 * pagesize);
25383 if (!data2)
25384 return 1;
25385 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
25386 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25387 MAP_PRIVATE | MAP_FIXED, fd, 0L))
25388 return 1;
25389 for (i = 0; i < pagesize; ++i)
25390 if (*(data + i) != *(data2 + i))
25391 return 1;
25392
25393 /* Finally, make sure that changes to the mapped area do not
25394 percolate back to the file as seen by read(). (This is a bug on
25395 some variants of i386 svr4.0.) */
25396 for (i = 0; i < pagesize; ++i)
25397 *(data2 + i) = *(data2 + i) + 1;
25398 data3 = (char *) malloc (pagesize);
25399 if (!data3)
25400 return 1;
25401 if (read (fd, data3, pagesize) != pagesize)
25402 return 1;
25403 for (i = 0; i < pagesize; ++i)
25404 if (*(data + i) != *(data3 + i))
25405 return 1;
25406 close (fd);
25407 return 0;
25408}
25409_ACEOF
25410rm -f conftest$ac_exeext
25411if { (ac_try="$ac_link"
25412case "(($ac_try" in
25413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414 *) ac_try_echo=$ac_try;;
25415esac
f030cae8
VY
25416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25417$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25418 (eval "$ac_link") 2>&5
25419 ac_status=$?
f030cae8 25420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25422 { (case "(($ac_try" in
25423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424 *) ac_try_echo=$ac_try;;
25425esac
f030cae8
VY
25426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25427$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25428 (eval "$ac_try") 2>&5
25429 ac_status=$?
f030cae8 25430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25431 (exit $ac_status); }; }; then
25432 ac_cv_func_mmap_fixed_mapped=yes
25433else
f030cae8
VY
25434 $as_echo "$as_me: program exited with status $ac_status" >&5
25435$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
25436sed 's/^/| /' conftest.$ac_ext >&5
25437
25438( exit $ac_status )
25439ac_cv_func_mmap_fixed_mapped=no
25440fi
f030cae8 25441rm -rf conftest.dSYM
b57f37fb
WP
25442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25443fi
25444
25445
25446fi
f030cae8
VY
25447{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25448$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
b57f37fb
WP
25449if test $ac_cv_func_mmap_fixed_mapped = yes; then
25450
25451cat >>confdefs.h <<\_ACEOF
25452#define HAVE_MMAP 1
25453_ACEOF
25454
25455fi
25456rm -f conftest.mmap
25457
25458
f030cae8
VY
25459{ $as_echo "$as_me:$LINENO: checking for /dev/poll" >&5
25460$as_echo_n "checking for /dev/poll... " >&6; }
b57f37fb 25461if test -c "/dev/poll"; then
f030cae8
VY
25462 { $as_echo "$as_me:$LINENO: result: yes" >&5
25463$as_echo "yes" >&6; }
b57f37fb
WP
25464
25465cat >>confdefs.h <<\_ACEOF
25466#define HAVE_DEVPOLL 1
25467_ACEOF
25468
25469else
f030cae8
VY
25470 { $as_echo "$as_me:$LINENO: result: no" >&5
25471$as_echo "no" >&6; }
b57f37fb
WP
25472fi
25473
25474
25475if test "$is_mingw" = "yes"; then
25476
25477cat >>confdefs.h <<\_ACEOF
25478#define HAVE_WIN32 1
25479_ACEOF
25480
25481fi
25482
25483
f030cae8
VY
25484{ $as_echo "$as_me:$LINENO: checking for OpenSSL" >&5
25485$as_echo_n "checking for OpenSSL... " >&6; }
b57f37fb
WP
25486# Check whether --enable-openssl was given.
25487if test "${enable_openssl+set}" = set; then
25488 enableval=$enable_openssl; cf_enable_openssl=$enableval
25489else
25490 cf_enable_openssl="auto"
25491fi
25492
25493
25494if test "$cf_enable_openssl" != "no" ; then
25495 cf_openssl_basedir=""
25496 if test "$cf_enable_openssl" != "auto" &&
25497 test "$cf_enable_openssl" != "yes" ; then
25498 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
25499 else
25500 for dirs in /usr/local/ssl /usr/pkg /usr/local \
25501 /usr/local/openssl ; do
25502 if test -f "${dirs}/include/openssl/opensslv.h" ; then
25503 cf_openssl_basedir="${dirs}"
25504 break
25505 fi
25506 done
25507 unset dirs
25508 fi
25509 if test ! -z "$cf_openssl_basedir"; then
25510 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
033be687 25511 SSL_CFLAGS="-I${cf_openssl_basedir}/include"
b57f37fb
WP
25512 SSL_LIBS="-L${cf_openssl_basedir}/lib"
25513 else
25514 cf_openssl_basedir=""
25515 fi
25516 else
25517 if test -f "/usr/include/openssl/opensslv.h" ; then
25518 cf_openssl_basedir="/usr"
25519 fi
25520 fi
25521
25522 if test ! -z "$cf_openssl_basedir"; then
f030cae8
VY
25523 { $as_echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
25524$as_echo "$cf_openssl_basedir" >&6; }
b57f37fb
WP
25525 cf_enable_openssl="yes"
25526 else
f030cae8
VY
25527 { $as_echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
25528$as_echo "not found. Specify a correct path?" >&6; }
b57f37fb
WP
25529 cf_enable_openssl="no"
25530 fi
25531 unset cf_openssl_basedir
25532else
f030cae8
VY
25533 { $as_echo "$as_me:$LINENO: result: disabled" >&5
25534$as_echo "disabled" >&6; }
b57f37fb
WP
25535fi
25536
25537save_CPPFLAGS="$CPPFLAGS"
033be687 25538CPPFLAGS="$CPPFLAGS $SSL_CFLAGS"
b57f37fb
WP
25539save_LIBS="$LIBS"
25540LIBS="$LIBS $SSL_LIBS"
25541if test "$cf_enable_openssl" != no; then
f030cae8
VY
25542 { $as_echo "$as_me:$LINENO: checking for OpenSSL 0.9.7 or above" >&5
25543$as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
b57f37fb
WP
25544 if test "$cross_compiling" = yes; then
25545 cf_enable_openssl=no
25546else
25547 cat >conftest.$ac_ext <<_ACEOF
25548/* confdefs.h. */
25549_ACEOF
25550cat confdefs.h >>conftest.$ac_ext
25551cat >>conftest.$ac_ext <<_ACEOF
25552/* end confdefs.h. */
25553#include <openssl/opensslv.h>
25554 #include <stdlib.h>
25555int
25556main ()
25557{
25558if (OPENSSL_VERSION_NUMBER >= 0x00907000)
25559 exit(0); else exit(1);
25560 ;
25561 return 0;
25562}
25563_ACEOF
25564rm -f conftest$ac_exeext
25565if { (ac_try="$ac_link"
25566case "(($ac_try" in
25567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25568 *) ac_try_echo=$ac_try;;
25569esac
f030cae8
VY
25570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25571$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25572 (eval "$ac_link") 2>&5
25573 ac_status=$?
f030cae8 25574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25576 { (case "(($ac_try" in
25577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578 *) ac_try_echo=$ac_try;;
25579esac
f030cae8
VY
25580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25581$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25582 (eval "$ac_try") 2>&5
25583 ac_status=$?
f030cae8 25584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25585 (exit $ac_status); }; }; then
25586 cf_enable_openssl=yes
25587else
f030cae8
VY
25588 $as_echo "$as_me: program exited with status $ac_status" >&5
25589$as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
25590sed 's/^/| /' conftest.$ac_ext >&5
25591
25592( exit $ac_status )
25593cf_enable_openssl=no
25594fi
f030cae8 25595rm -rf conftest.dSYM
b57f37fb
WP
25596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25597fi
25598
25599
25600
25601 if test "$cf_enable_openssl" != no; then
f030cae8
VY
25602 { $as_echo "$as_me:$LINENO: result: found" >&5
25603$as_echo "found" >&6; }
b57f37fb 25604 else
f030cae8
VY
25605 { $as_echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
25606$as_echo "no - OpenSSL support disabled" >&6; }
b57f37fb
WP
25607 fi
25608
25609fi
25610
25611
25612if test "$cf_enable_openssl" != no; then
25613 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
f030cae8
VY
25614 { $as_echo "$as_me:$LINENO: checking for RAND_status in -lcrypto" >&5
25615$as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
b57f37fb 25616if test "${ac_cv_lib_crypto_RAND_status+set}" = set; then
f030cae8 25617 $as_echo_n "(cached) " >&6
b57f37fb
WP
25618else
25619 ac_check_lib_save_LIBS=$LIBS
25620LIBS="-lcrypto $LIBS"
25621cat >conftest.$ac_ext <<_ACEOF
25622/* confdefs.h. */
25623_ACEOF
25624cat confdefs.h >>conftest.$ac_ext
25625cat >>conftest.$ac_ext <<_ACEOF
25626/* end confdefs.h. */
25627
25628/* Override any GCC internal prototype to avoid an error.
25629 Use char because int might match the return type of a GCC
25630 builtin and then its argument prototype would still apply. */
25631#ifdef __cplusplus
25632extern "C"
25633#endif
25634char RAND_status ();
25635int
25636main ()
25637{
25638return RAND_status ();
25639 ;
25640 return 0;
25641}
25642_ACEOF
25643rm -f conftest.$ac_objext conftest$ac_exeext
25644if { (ac_try="$ac_link"
25645case "(($ac_try" in
25646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25647 *) ac_try_echo=$ac_try;;
25648esac
f030cae8
VY
25649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25650$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25651 (eval "$ac_link") 2>conftest.er1
25652 ac_status=$?
25653 grep -v '^ *+' conftest.er1 >conftest.err
25654 rm -f conftest.er1
25655 cat conftest.err >&5
f030cae8 25656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25657 (exit $ac_status); } && {
25658 test -z "$ac_c_werror_flag" ||
25659 test ! -s conftest.err
f030cae8
VY
25660 } && test -s conftest$ac_exeext && {
25661 test "$cross_compiling" = yes ||
25662 $as_test_x conftest$ac_exeext
25663 }; then
b57f37fb
WP
25664 ac_cv_lib_crypto_RAND_status=yes
25665else
f030cae8 25666 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
25667sed 's/^/| /' conftest.$ac_ext >&5
25668
25669 ac_cv_lib_crypto_RAND_status=no
25670fi
25671
f030cae8 25672rm -rf conftest.dSYM
b57f37fb
WP
25673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25674 conftest$ac_exeext conftest.$ac_ext
25675LIBS=$ac_check_lib_save_LIBS
25676fi
f030cae8
VY
25677{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RAND_status" >&5
25678$as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
25679if test "x$ac_cv_lib_crypto_RAND_status" = x""yes; then
b57f37fb
WP
25680 cf_enable_openssl=yes
25681else
25682 cf_enable_openssl=no
25683fi
25684
25685fi
25686
b57f37fb
WP
25687if test "$cf_enable_openssl" != no; then
25688 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
f030cae8
VY
25689 { $as_echo "$as_me:$LINENO: checking for SSL_read in -lssl" >&5
25690$as_echo_n "checking for SSL_read in -lssl... " >&6; }
b57f37fb 25691if test "${ac_cv_lib_ssl_SSL_read+set}" = set; then
f030cae8 25692 $as_echo_n "(cached) " >&6
b57f37fb
WP
25693else
25694 ac_check_lib_save_LIBS=$LIBS
25695LIBS="-lssl -lcrypto $LIBS"
25696cat >conftest.$ac_ext <<_ACEOF
25697/* confdefs.h. */
25698_ACEOF
25699cat confdefs.h >>conftest.$ac_ext
25700cat >>conftest.$ac_ext <<_ACEOF
25701/* end confdefs.h. */
25702
25703/* Override any GCC internal prototype to avoid an error.
25704 Use char because int might match the return type of a GCC
25705 builtin and then its argument prototype would still apply. */
25706#ifdef __cplusplus
25707extern "C"
25708#endif
25709char SSL_read ();
25710int
25711main ()
25712{
25713return SSL_read ();
25714 ;
25715 return 0;
25716}
25717_ACEOF
25718rm -f conftest.$ac_objext conftest$ac_exeext
25719if { (ac_try="$ac_link"
25720case "(($ac_try" in
25721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722 *) ac_try_echo=$ac_try;;
25723esac
f030cae8
VY
25724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25725$as_echo "$ac_try_echo") >&5
b57f37fb
WP
25726 (eval "$ac_link") 2>conftest.er1
25727 ac_status=$?
25728 grep -v '^ *+' conftest.er1 >conftest.err
25729 rm -f conftest.er1
25730 cat conftest.err >&5
f030cae8 25731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
b57f37fb
WP
25732 (exit $ac_status); } && {
25733 test -z "$ac_c_werror_flag" ||
25734 test ! -s conftest.err
f030cae8
VY
25735 } && test -s conftest$ac_exeext && {
25736 test "$cross_compiling" = yes ||
25737 $as_test_x conftest$ac_exeext
25738 }; then
b57f37fb
WP
25739 ac_cv_lib_ssl_SSL_read=yes
25740else
f030cae8 25741 $as_echo "$as_me: failed program was:" >&5
b57f37fb
WP
25742sed 's/^/| /' conftest.$ac_ext >&5
25743
25744 ac_cv_lib_ssl_SSL_read=no
25745fi
25746
f030cae8 25747rm -rf conftest.dSYM
b57f37fb
WP
25748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25749 conftest$ac_exeext conftest.$ac_ext
25750LIBS=$ac_check_lib_save_LIBS
25751fi
f030cae8
VY
25752{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_read" >&5
25753$as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
25754if test "x$ac_cv_lib_ssl_SSL_read" = x""yes; then
94b4fbf9 25755 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
b57f37fb
WP
25756else
25757 cf_enable_openssl=no
25758fi
25759
25760fi
25761
033be687
VY
25762
25763
f030cae8
VY
25764{ $as_echo "$as_me:$LINENO: checking for GnuTLS" >&5
25765$as_echo_n "checking for GnuTLS... " >&6; }
033be687
VY
25766# Check whether --enable-gnutls was given.
25767if test "${enable_gnutls+set}" = set; then
25768 enableval=$enable_gnutls; cf_enable_gnutls=$enableval
25769else
25770 cf_enable_gnutls="auto"
25771fi
25772
25773
25774if test "$cf_enable_gnutls" != no; then
25775
25776
25777if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
25778 if test -n "$ac_tool_prefix"; then
25779 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25780set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
f030cae8
VY
25781{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25782$as_echo_n "checking for $ac_word... " >&6; }
033be687 25783if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
f030cae8 25784 $as_echo_n "(cached) " >&6
033be687
VY
25785else
25786 case $PKG_CONFIG in
25787 [\\/]* | ?:[\\/]*)
25788 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25789 ;;
25790 *)
25791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25792for as_dir in $PATH
25793do
25794 IFS=$as_save_IFS
25795 test -z "$as_dir" && as_dir=.
25796 for ac_exec_ext in '' $ac_executable_extensions; do
25797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25798 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
f030cae8 25799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
033be687
VY
25800 break 2
25801 fi
25802done
25803done
25804IFS=$as_save_IFS
25805
25806 ;;
25807esac
25808fi
25809PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25810if test -n "$PKG_CONFIG"; then
f030cae8
VY
25811 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25812$as_echo "$PKG_CONFIG" >&6; }
033be687 25813else
f030cae8
VY
25814 { $as_echo "$as_me:$LINENO: result: no" >&5
25815$as_echo "no" >&6; }
033be687
VY
25816fi
25817
25818
25819fi
25820if test -z "$ac_cv_path_PKG_CONFIG"; then
25821 ac_pt_PKG_CONFIG=$PKG_CONFIG
25822 # Extract the first word of "pkg-config", so it can be a program name with args.
25823set dummy pkg-config; ac_word=$2
f030cae8
VY
25824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25825$as_echo_n "checking for $ac_word... " >&6; }
033be687 25826if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
f030cae8 25827 $as_echo_n "(cached) " >&6
033be687
VY
25828else
25829 case $ac_pt_PKG_CONFIG in
25830 [\\/]* | ?:[\\/]*)
25831 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
25832 ;;
25833 *)
25834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25835for as_dir in $PATH
25836do
25837 IFS=$as_save_IFS
25838 test -z "$as_dir" && as_dir=.
25839 for ac_exec_ext in '' $ac_executable_extensions; do
25840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25841 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
f030cae8 25842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
033be687
VY
25843 break 2
25844 fi
25845done
25846done
25847IFS=$as_save_IFS
25848
25849 ;;
25850esac
25851fi
25852ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
25853if test -n "$ac_pt_PKG_CONFIG"; then
f030cae8
VY
25854 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
25855$as_echo "$ac_pt_PKG_CONFIG" >&6; }
033be687 25856else
f030cae8
VY
25857 { $as_echo "$as_me:$LINENO: result: no" >&5
25858$as_echo "no" >&6; }
033be687
VY
25859fi
25860
25861 if test "x$ac_pt_PKG_CONFIG" = x; then
25862 PKG_CONFIG=""
25863 else
25864 case $cross_compiling:$ac_tool_warned in
25865yes:)
f030cae8
VY
25866{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
25867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
033be687
VY
25868ac_tool_warned=yes ;;
25869esac
25870 PKG_CONFIG=$ac_pt_PKG_CONFIG
25871 fi
25872else
25873 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
25874fi
25875
25876fi
25877if test -n "$PKG_CONFIG"; then
25878 _pkg_min_version=0.9.0
f030cae8
VY
25879 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
25880$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
033be687 25881 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
f030cae8
VY
25882 { $as_echo "$as_me:$LINENO: result: yes" >&5
25883$as_echo "yes" >&6; }
033be687 25884 else
f030cae8
VY
25885 { $as_echo "$as_me:$LINENO: result: no" >&5
25886$as_echo "no" >&6; }
033be687
VY
25887 PKG_CONFIG=""
25888 fi
25889
25890fi
25891
25892pkg_failed=no
f030cae8
VY
25893{ $as_echo "$as_me:$LINENO: checking for GNUTLS" >&5
25894$as_echo_n "checking for GNUTLS... " >&6; }
033be687
VY
25895
25896if test -n "$PKG_CONFIG"; then
25897 if test -n "$GNUTLS_CFLAGS"; then
25898 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
25899 else
25900 if test -n "$PKG_CONFIG" && \
f030cae8 25901 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
033be687
VY
25902 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25903 ac_status=$?
f030cae8 25904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
033be687
VY
25905 (exit $ac_status); }; then
25906 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
25907else
25908 pkg_failed=yes
25909fi
25910 fi
25911else
25912 pkg_failed=untried
25913fi
25914if test -n "$PKG_CONFIG"; then
25915 if test -n "$GNUTLS_LIBS"; then
25916 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
25917 else
25918 if test -n "$PKG_CONFIG" && \
f030cae8 25919 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls\"") >&5
033be687
VY
25920 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
25921 ac_status=$?
f030cae8 25922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
033be687
VY
25923 (exit $ac_status); }; then
25924 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
25925else
25926 pkg_failed=yes
25927fi
25928 fi
25929else
25930 pkg_failed=untried
25931fi
25932
25933
25934
25935if test $pkg_failed = yes; then
25936
25937if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25938 _pkg_short_errors_supported=yes
25939else
25940 _pkg_short_errors_supported=no
25941fi
25942 if test $_pkg_short_errors_supported = yes; then
25943 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls"`
25944 else
25945 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls"`
25946 fi
25947 # Put the nasty error message in config.log where it belongs
25948 echo "$GNUTLS_PKG_ERRORS" >&5
25949
f030cae8
VY
25950 { $as_echo "$as_me:$LINENO: result: no" >&5
25951$as_echo "no" >&6; }
033be687
VY
25952 cf_enable_gnutls="no"
25953elif test $pkg_failed = untried; then
25954 cf_enable_gnutls="no"
25955else
25956 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
25957 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
f030cae8
VY
25958 { $as_echo "$as_me:$LINENO: result: yes" >&5
25959$as_echo "yes" >&6; }
033be687
VY
25960
25961 cf_enable_gnutls="yes"
25962
25963fi
25964fi
25965
25966if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
25967 cf_enable_gnutls="no"
25968fi
25969
25970if test x"$cf_enable_openssl" != xno; then
b57f37fb
WP
25971
25972cat >>confdefs.h <<\_ACEOF
25973#define HAVE_OPENSSL 1
25974_ACEOF
25975
033be687
VY
25976 GNUTLS_CFLAGS=""
25977 GNUTLS_LIBS=""
25978 SSL_TYPE="openssl"
25979elif test x"$cf_enable_gnutls" != xno; then
25980
25981cat >>confdefs.h <<\_ACEOF
25982#define HAVE_GNUTLS 1
25983_ACEOF
25984
25985 SSL_LIBS=""
25986 SSL_CFLAGS=""
25987 SSL_TYPE="gnutls"
b57f37fb
WP
25988fi
25989
25990
033be687
VY
25991
25992
b57f37fb
WP
25993CPPFLAGS="$save_CPPFLAGS"
25994LIBS="$save_LIBS"
25995
25996
25997
25998
25999
26000
26001# Check whether --enable-assert was given.
26002if test "${enable_assert+set}" = set; then
26003 enableval=$enable_assert; assert=$enableval
26004else
26005 assert=no
26006fi
26007
26008
26009if test "$assert" = no; then
26010
26011cat >>confdefs.h <<\_ACEOF
26012#define NDEBUG 1
26013_ACEOF
26014
26015elif test "$assert" = soft; then
26016
26017cat >>confdefs.h <<\_ACEOF
26018#define SOFT_ASSERT 1
26019_ACEOF
26020
26021
26022cat >>confdefs.h <<\_ACEOF
26023#define NDEBUG 1
26024_ACEOF
26025
26026elif test "$assert" = yes; then
26027 assert = "hard";
26028fi
26029
f030cae8
VY
26030{ $as_echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
26031$as_echo_n "checking if you want to do a profile build... " >&6; }
b57f37fb
WP
26032# Check whether --enable-profile was given.
26033if test "${enable_profile+set}" = set; then
26034 enableval=$enable_profile; profile=$enableval
26035else
26036 profile=no
26037fi
26038
26039
26040if test "$profile" = yes; then
26041 if test "$ac_cv_c_compiler_gnu" = yes; then
26042 CFLAGS="$CFLAGS -pg -static"
f030cae8
VY
26043 { $as_echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
26044$as_echo "yes, adding -pg -static" >&6; }
b57f37fb
WP
26045
26046cat >>confdefs.h <<\_ACEOF
26047#define RATBOX_PROFILE 1
26048_ACEOF
26049
26050 else
f030cae8
VY
26051 { $as_echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
26052$as_echo "no, profile builds only work with gcc" >&6; }
b57f37fb
WP
26053 fi
26054else
f030cae8
VY
26055 { $as_echo "$as_me:$LINENO: result: no" >&5
26056$as_echo "no" >&6; }
b57f37fb
WP
26057fi
26058
26059# Check whether --enable-balloc was given.
26060if test "${enable_balloc+set}" = set; then
26061 enableval=$enable_balloc; balloc=$enableval
26062else
26063 balloc=yes
26064fi
26065
26066
26067if test "$balloc" = no; then
26068
26069cat >>confdefs.h <<\_ACEOF
26070#define NOBALLOC 1
26071_ACEOF
26072
26073fi
26074
26075# Check whether --enable-warnings was given.
26076if test "${enable_warnings+set}" = set; then
26077 enableval=$enable_warnings; CFLAGS="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
26078fi
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
033be687 26089
b57f37fb
WP
26090if test "$prefix" = "NONE"; then
26091
26092cat >>confdefs.h <<_ACEOF
26093#define RB_PREFIX "$ac_default_prefix"
26094_ACEOF
26095
26096
26097else
26098
26099
26100 prefix=`echo $prefix | sed 's/\/$//'`
26101
26102cat >>confdefs.h <<_ACEOF
26103#define RB_PREFIX "$prefix"
26104_ACEOF
26105
26106
26107fi
26108
26109
26110
b57f37fb
WP
26111ac_config_commands="$ac_config_commands include/librb-config.h"
26112
26113
033be687 26114
eb66895a 26115ac_config_files="$ac_config_files src/Makefile Makefile libratbox.pc"
b57f37fb
WP
26116
26117
26118cat >confcache <<\_ACEOF
26119# This file is a shell script that caches the results of configure
26120# tests run on this system so they can be shared between configure
26121# scripts and configure runs, see configure's option --config-cache.
26122# It is not useful on other systems. If it contains results you don't
26123# want to keep, you may remove or edit it.
26124#
26125# config.status only pays attention to the cache file if you give it
26126# the --recheck option to rerun configure.
26127#
26128# `ac_cv_env_foo' variables (set or unset) will be overridden when
26129# loading this file, other *unset* `ac_cv_foo' will be assigned the
26130# following values.
26131
26132_ACEOF
26133
26134# The following way of writing the cache mishandles newlines in values,
26135# but we know of no workaround that is simple, portable, and efficient.
26136# So, we kill variables containing newlines.
26137# Ultrix sh set writes to stderr and can't be redirected directly,
26138# and sets the high bit in the cache file unless we assign to the vars.
26139(
26140 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26141 eval ac_val=\$$ac_var
26142 case $ac_val in #(
26143 *${as_nl}*)
26144 case $ac_var in #(
f030cae8
VY
26145 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26146$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
b57f37fb
WP
26147 esac
26148 case $ac_var in #(
26149 _ | IFS | as_nl) ;; #(
f030cae8 26150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b57f37fb
WP
26151 *) $as_unset $ac_var ;;
26152 esac ;;
26153 esac
26154 done
26155
26156 (set) 2>&1 |
26157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26158 *${as_nl}ac_space=\ *)
26159 # `set' does not quote correctly, so add quotes (double-quote
26160 # substitution turns \\\\ into \\, and sed turns \\ into \).
26161 sed -n \
26162 "s/'/'\\\\''/g;
26163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26164 ;; #(
26165 *)
26166 # `set' quotes correctly as required by POSIX, so do not add quotes.
26167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26168 ;;
26169 esac |
26170 sort
26171) |
26172 sed '
26173 /^ac_cv_env_/b end
26174 t clear
26175 :clear
26176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26177 t end
26178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26179 :end' >>confcache
26180if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26181 if test -w "$cache_file"; then
26182 test "x$cache_file" != "x/dev/null" &&
f030cae8
VY
26183 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26184$as_echo "$as_me: updating cache $cache_file" >&6;}
b57f37fb
WP
26185 cat confcache >$cache_file
26186 else
f030cae8
VY
26187 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26188$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b57f37fb
WP
26189 fi
26190fi
26191rm -f confcache
26192
26193test "x$prefix" = xNONE && prefix=$ac_default_prefix
26194# Let make expand exec_prefix.
26195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26196
26197DEFS=-DHAVE_CONFIG_H
26198
26199ac_libobjs=
26200ac_ltlibobjs=
26201for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26202 # 1. Remove the extension, and $U if already installed.
26203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
f030cae8 26204 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
b57f37fb
WP
26205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26206 # will be set to the directory where LIBOBJS objects are built.
26207 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26208 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26209done
26210LIBOBJS=$ac_libobjs
26211
26212LTLIBOBJS=$ac_ltlibobjs
26213
26214
26215if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
f030cae8 26216 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
b57f37fb 26217Usually this means the macro was only invoked conditionally." >&5
f030cae8 26218$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
b57f37fb
WP
26219Usually this means the macro was only invoked conditionally." >&2;}
26220 { (exit 1); exit 1; }; }
26221fi
26222if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
f030cae8 26223 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
b57f37fb 26224Usually this means the macro was only invoked conditionally." >&5
f030cae8 26225$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
b57f37fb
WP
26226Usually this means the macro was only invoked conditionally." >&2;}
26227 { (exit 1); exit 1; }; }
26228fi
26229if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
f030cae8 26230 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
b57f37fb 26231Usually this means the macro was only invoked conditionally." >&5
f030cae8 26232$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
b57f37fb
WP
26233Usually this means the macro was only invoked conditionally." >&2;}
26234 { (exit 1); exit 1; }; }
26235fi
26236if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
f030cae8 26237 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
b57f37fb 26238Usually this means the macro was only invoked conditionally." >&5
f030cae8 26239$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
b57f37fb
WP
26240Usually this means the macro was only invoked conditionally." >&2;}
26241 { (exit 1); exit 1; }; }
26242fi
26243if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
f030cae8 26244 { { $as_echo "$as_me:$LINENO: error: conditional \"MINGW\" was never defined.
b57f37fb 26245Usually this means the macro was only invoked conditionally." >&5
f030cae8 26246$as_echo "$as_me: error: conditional \"MINGW\" was never defined.
b57f37fb
WP
26247Usually this means the macro was only invoked conditionally." >&2;}
26248 { (exit 1); exit 1; }; }
26249fi
26250if test -z "${NEED_CRYPT_TRUE}" && test -z "${NEED_CRYPT_FALSE}"; then
f030cae8 26251 { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_CRYPT\" was never defined.
b57f37fb 26252Usually this means the macro was only invoked conditionally." >&5
f030cae8 26253$as_echo "$as_me: error: conditional \"NEED_CRYPT\" was never defined.
b57f37fb
WP
26254Usually this means the macro was only invoked conditionally." >&2;}
26255 { (exit 1); exit 1; }; }
26256fi
26257
26258: ${CONFIG_STATUS=./config.status}
f030cae8 26259ac_write_fail=0
b57f37fb
WP
26260ac_clean_files_save=$ac_clean_files
26261ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f030cae8
VY
26262{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26263$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26264cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b57f37fb
WP
26265#! $SHELL
26266# Generated by $as_me.
26267# Run this file to recreate the current configuration.
26268# Compiler output produced by configure, useful for debugging
26269# configure, is in config.log if it exists.
26270
26271debug=false
26272ac_cs_recheck=false
26273ac_cs_silent=false
26274SHELL=\${CONFIG_SHELL-$SHELL}
26275_ACEOF
26276
f030cae8 26277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb
WP
26278## --------------------- ##
26279## M4sh Initialization. ##
26280## --------------------- ##
26281
26282# Be more Bourne compatible
26283DUALCASE=1; export DUALCASE # for MKS sh
26284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26285 emulate sh
26286 NULLCMD=:
f030cae8 26287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b57f37fb
WP
26288 # is contrary to our usage. Disable this feature.
26289 alias -g '${1+"$@"}'='"$@"'
26290 setopt NO_GLOB_SUBST
26291else
26292 case `(set -o) 2>/dev/null` in
26293 *posix*) set -o posix ;;
26294esac
26295
26296fi
26297
26298
26299
26300
26301# PATH needs CR
26302# Avoid depending upon Character Ranges.
26303as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26304as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26305as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26306as_cr_digits='0123456789'
26307as_cr_alnum=$as_cr_Letters$as_cr_digits
26308
f030cae8
VY
26309as_nl='
26310'
26311export as_nl
26312# Printing a long string crashes Solaris 7 /usr/bin/printf.
26313as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26314as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26316if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26317 as_echo='printf %s\n'
26318 as_echo_n='printf %s'
26319else
26320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26322 as_echo_n='/usr/ucb/echo -n'
b57f37fb 26323 else
f030cae8
VY
26324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26325 as_echo_n_body='eval
26326 arg=$1;
26327 case $arg in
26328 *"$as_nl"*)
26329 expr "X$arg" : "X\\(.*\\)$as_nl";
26330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26331 esac;
26332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26333 '
26334 export as_echo_n_body
26335 as_echo_n='sh -c $as_echo_n_body as_echo'
b57f37fb 26336 fi
f030cae8
VY
26337 export as_echo_body
26338 as_echo='sh -c $as_echo_body as_echo'
26339fi
26340
26341# The user is always right.
26342if test "${PATH_SEPARATOR+set}" != set; then
26343 PATH_SEPARATOR=:
26344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26346 PATH_SEPARATOR=';'
26347 }
b57f37fb
WP
26348fi
26349
26350# Support unset when possible.
26351if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26352 as_unset=unset
26353else
26354 as_unset=false
26355fi
26356
26357
26358# IFS
26359# We need space, tab and new line, in precisely that order. Quoting is
26360# there to prevent editors from complaining about space-tab.
26361# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26362# splitting by setting IFS to empty value.)
b57f37fb
WP
26363IFS=" "" $as_nl"
26364
26365# Find who we are. Look in the path if we contain no directory separator.
26366case $0 in
26367 *[\\/]* ) as_myself=$0 ;;
26368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26369for as_dir in $PATH
26370do
26371 IFS=$as_save_IFS
26372 test -z "$as_dir" && as_dir=.
26373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26374done
26375IFS=$as_save_IFS
26376
26377 ;;
26378esac
26379# We did not find ourselves, most probably we were run as `sh COMMAND'
26380# in which case we are not to be found in the path.
26381if test "x$as_myself" = x; then
26382 as_myself=$0
26383fi
26384if test ! -f "$as_myself"; then
f030cae8 26385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b57f37fb
WP
26386 { (exit 1); exit 1; }
26387fi
26388
26389# Work around bugs in pre-3.0 UWIN ksh.
26390for as_var in ENV MAIL MAILPATH
26391do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26392done
26393PS1='$ '
26394PS2='> '
26395PS4='+ '
26396
26397# NLS nuisances.
f030cae8
VY
26398LC_ALL=C
26399export LC_ALL
26400LANGUAGE=C
26401export LANGUAGE
b57f37fb
WP
26402
26403# Required to use basename.
26404if expr a : '\(a\)' >/dev/null 2>&1 &&
26405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26406 as_expr=expr
26407else
26408 as_expr=false
26409fi
26410
26411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26412 as_basename=basename
26413else
26414 as_basename=false
26415fi
26416
26417
26418# Name of the executable.
26419as_me=`$as_basename -- "$0" ||
26420$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26421 X"$0" : 'X\(//\)$' \| \
26422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 26423$as_echo X/"$0" |
b57f37fb
WP
26424 sed '/^.*\/\([^/][^/]*\)\/*$/{
26425 s//\1/
26426 q
26427 }
26428 /^X\/\(\/\/\)$/{
26429 s//\1/
26430 q
26431 }
26432 /^X\/\(\/\).*/{
26433 s//\1/
26434 q
26435 }
26436 s/.*/./; q'`
26437
26438# CDPATH.
26439$as_unset CDPATH
26440
26441
26442
26443 as_lineno_1=$LINENO
26444 as_lineno_2=$LINENO
26445 test "x$as_lineno_1" != "x$as_lineno_2" &&
26446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26447
26448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26449 # uniformly replaced by the line number. The first 'sed' inserts a
26450 # line-number line after each line using $LINENO; the second 'sed'
26451 # does the real work. The second script uses 'N' to pair each
26452 # line-number line with the line containing $LINENO, and appends
26453 # trailing '-' during substitution so that $LINENO is not a special
26454 # case at line end.
26455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26456 # scripts with optimization help from Paolo Bonzini. Blame Lee
26457 # E. McMahon (1931-1989) for sed's syntax. :-)
26458 sed -n '
26459 p
26460 /[$]LINENO/=
26461 ' <$as_myself |
26462 sed '
26463 s/[$]LINENO.*/&-/
26464 t lineno
26465 b
26466 :lineno
26467 N
26468 :loop
26469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26470 t loop
26471 s/-\n.*//
26472 ' >$as_me.lineno &&
26473 chmod +x "$as_me.lineno" ||
f030cae8 26474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
b57f37fb
WP
26475 { (exit 1); exit 1; }; }
26476
26477 # Don't try to exec as it changes $[0], causing all sort of problems
26478 # (the dirname of $[0] is not the place where we might find the
26479 # original and so on. Autoconf is especially sensitive to this).
26480 . "./$as_me.lineno"
26481 # Exit status is that of the last command.
26482 exit
26483}
26484
26485
26486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26487 as_dirname=dirname
26488else
26489 as_dirname=false
26490fi
26491
26492ECHO_C= ECHO_N= ECHO_T=
26493case `echo -n x` in
26494-n*)
26495 case `echo 'x\c'` in
26496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26497 *) ECHO_C='\c';;
26498 esac;;
26499*)
26500 ECHO_N='-n';;
26501esac
b57f37fb
WP
26502if expr a : '\(a\)' >/dev/null 2>&1 &&
26503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26504 as_expr=expr
26505else
26506 as_expr=false
26507fi
26508
26509rm -f conf$$ conf$$.exe conf$$.file
26510if test -d conf$$.dir; then
26511 rm -f conf$$.dir/conf$$.file
26512else
26513 rm -f conf$$.dir
f030cae8
VY
26514 mkdir conf$$.dir 2>/dev/null
26515fi
26516if (echo >conf$$.file) 2>/dev/null; then
26517 if ln -s conf$$.file conf$$ 2>/dev/null; then
26518 as_ln_s='ln -s'
26519 # ... but there are two gotchas:
26520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26522 # In both cases, we have to default to `cp -p'.
26523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26524 as_ln_s='cp -p'
26525 elif ln conf$$.file conf$$ 2>/dev/null; then
26526 as_ln_s=ln
26527 else
b57f37fb 26528 as_ln_s='cp -p'
f030cae8 26529 fi
b57f37fb
WP
26530else
26531 as_ln_s='cp -p'
26532fi
26533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26534rmdir conf$$.dir 2>/dev/null
26535
26536if mkdir -p . 2>/dev/null; then
26537 as_mkdir_p=:
26538else
26539 test -d ./-p && rmdir ./-p
26540 as_mkdir_p=false
26541fi
26542
26543if test -x / >/dev/null 2>&1; then
26544 as_test_x='test -x'
26545else
26546 if ls -dL / >/dev/null 2>&1; then
26547 as_ls_L_option=L
26548 else
26549 as_ls_L_option=
26550 fi
26551 as_test_x='
26552 eval sh -c '\''
26553 if test -d "$1"; then
f030cae8 26554 test -d "$1/.";
b57f37fb
WP
26555 else
26556 case $1 in
f030cae8 26557 -*)set "./$1";;
b57f37fb
WP
26558 esac;
26559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26560 ???[sx]*):;;*)false;;esac;fi
26561 '\'' sh
26562 '
26563fi
26564as_executable_p=$as_test_x
26565
26566# Sed expression to map a string onto a valid CPP name.
26567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26568
26569# Sed expression to map a string onto a valid variable name.
26570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26571
26572
26573exec 6>&1
26574
26575# Save the log message, to keep $[0] and so on meaningful, and to
26576# report actual input values of CONFIG_FILES etc. instead of their
26577# values after options handling.
26578ac_log="
26579This file was extended by libratbox $as_me devel, which was
f030cae8 26580generated by GNU Autoconf 2.63. Invocation command line was
b57f37fb
WP
26581
26582 CONFIG_FILES = $CONFIG_FILES
26583 CONFIG_HEADERS = $CONFIG_HEADERS
26584 CONFIG_LINKS = $CONFIG_LINKS
26585 CONFIG_COMMANDS = $CONFIG_COMMANDS
26586 $ $0 $@
26587
26588on `(hostname || uname -n) 2>/dev/null | sed 1q`
26589"
26590
26591_ACEOF
26592
f030cae8
VY
26593case $ac_config_files in *"
26594"*) set x $ac_config_files; shift; ac_config_files=$*;;
26595esac
26596
26597case $ac_config_headers in *"
26598"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26599esac
26600
26601
26602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b57f37fb
WP
26603# Files that config.status was made for.
26604config_files="$ac_config_files"
26605config_headers="$ac_config_headers"
26606config_commands="$ac_config_commands"
26607
26608_ACEOF
26609
f030cae8 26610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb
WP
26611ac_cs_usage="\
26612\`$as_me' instantiates files from templates according to the
26613current configuration.
26614
f030cae8 26615Usage: $0 [OPTION]... [FILE]...
b57f37fb
WP
26616
26617 -h, --help print this help, then exit
26618 -V, --version print version number and configuration settings, then exit
f030cae8
VY
26619 -q, --quiet, --silent
26620 do not print progress messages
b57f37fb
WP
26621 -d, --debug don't remove temporary files
26622 --recheck update $as_me by reconfiguring in the same conditions
f030cae8
VY
26623 --file=FILE[:TEMPLATE]
26624 instantiate the configuration file FILE
26625 --header=FILE[:TEMPLATE]
26626 instantiate the configuration header FILE
b57f37fb
WP
26627
26628Configuration files:
26629$config_files
26630
26631Configuration headers:
26632$config_headers
26633
26634Configuration commands:
26635$config_commands
26636
26637Report bugs to <bug-autoconf@gnu.org>."
26638
26639_ACEOF
f030cae8 26640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b57f37fb
WP
26641ac_cs_version="\\
26642libratbox config.status devel
f030cae8
VY
26643configured by $0, generated by GNU Autoconf 2.63,
26644 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b57f37fb 26645
f030cae8 26646Copyright (C) 2008 Free Software Foundation, Inc.
b57f37fb
WP
26647This config.status script is free software; the Free Software Foundation
26648gives unlimited permission to copy, distribute and modify it."
26649
26650ac_pwd='$ac_pwd'
26651srcdir='$srcdir'
26652INSTALL='$INSTALL'
26653MKDIR_P='$MKDIR_P'
f030cae8
VY
26654AWK='$AWK'
26655test -n "\$AWK" || AWK=awk
b57f37fb
WP
26656_ACEOF
26657
f030cae8
VY
26658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26659# The default lists apply if the user does not specify any file.
b57f37fb
WP
26660ac_need_defaults=:
26661while test $# != 0
26662do
26663 case $1 in
26664 --*=*)
26665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26666 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26667 ac_shift=:
26668 ;;
26669 *)
26670 ac_option=$1
26671 ac_optarg=$2
26672 ac_shift=shift
26673 ;;
26674 esac
26675
26676 case $ac_option in
26677 # Handling of the options.
26678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26679 ac_cs_recheck=: ;;
26680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
f030cae8 26681 $as_echo "$ac_cs_version"; exit ;;
b57f37fb
WP
26682 --debug | --debu | --deb | --de | --d | -d )
26683 debug=: ;;
26684 --file | --fil | --fi | --f )
26685 $ac_shift
f030cae8
VY
26686 case $ac_optarg in
26687 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26688 esac
26689 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
b57f37fb
WP
26690 ac_need_defaults=false;;
26691 --header | --heade | --head | --hea )
26692 $ac_shift
f030cae8
VY
26693 case $ac_optarg in
26694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26695 esac
26696 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
b57f37fb
WP
26697 ac_need_defaults=false;;
26698 --he | --h)
26699 # Conflict between --help and --header
f030cae8 26700 { $as_echo "$as_me: error: ambiguous option: $1
b57f37fb
WP
26701Try \`$0 --help' for more information." >&2
26702 { (exit 1); exit 1; }; };;
26703 --help | --hel | -h )
f030cae8 26704 $as_echo "$ac_cs_usage"; exit ;;
b57f37fb
WP
26705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26706 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26707 ac_cs_silent=: ;;
26708
26709 # This is an error.
f030cae8 26710 -*) { $as_echo "$as_me: error: unrecognized option: $1
b57f37fb
WP
26711Try \`$0 --help' for more information." >&2
26712 { (exit 1); exit 1; }; } ;;
26713
26714 *) ac_config_targets="$ac_config_targets $1"
26715 ac_need_defaults=false ;;
26716
26717 esac
26718 shift
26719done
26720
26721ac_configure_extra_args=
26722
26723if $ac_cs_silent; then
26724 exec 6>/dev/null
26725 ac_configure_extra_args="$ac_configure_extra_args --silent"
26726fi
26727
26728_ACEOF
f030cae8 26729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b57f37fb 26730if \$ac_cs_recheck; then
f030cae8
VY
26731 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26732 shift
26733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26734 CONFIG_SHELL='$SHELL'
b57f37fb 26735 export CONFIG_SHELL
f030cae8 26736 exec "\$@"
b57f37fb
WP
26737fi
26738
26739_ACEOF
f030cae8 26740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb
WP
26741exec 5>>config.log
26742{
26743 echo
26744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26745## Running $as_me. ##
26746_ASBOX
f030cae8 26747 $as_echo "$ac_log"
b57f37fb
WP
26748} >&5
26749
26750_ACEOF
f030cae8 26751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b57f37fb
WP
26752#
26753# INIT-COMMANDS
26754#
26755AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26756
b57f37fb
WP
26757 if test x$ac_cv_header_stdc = xyes; then
26758 rb_header_stdc=yes
26759 fi
26760 if test x$ac_cv_header_stdlib_h = xyes; then
26761 rb_header_stdlib_h=yes
26762 fi
26763 if test x$ac_cv_header_string_h = xyes; then
26764 rb_header_string_h=yes
26765 fi
26766 if test x$ac_cv_header_memory_h = xyes; then
26767 rb_header_memory_h=yes
26768 fi
26769 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
26770 rb_alloca_h="$ac_cv_working_alloca_h"
26771 else
26772 rb_alloc_h="$ac_cv_header_alloca_h"
26773 fi
26774 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
26775 rb_sockaddr_sa_len=yes
26776 fi
26777 if test x$ac_cv_header_sys_socket_h = xyes; then
26778 rb_sys_socket_h=yes
26779 fi
26780 if test x$ac_cv_header_sys_types_h = xyes; then
26781 rb_sys_types_h=yes
26782 fi
26783 if test x$ac_cv_header_sys_stat_h = xyes; then
26784 rb_sys_stat_h=yes
26785 fi
26786 if test x$ac_cv_header_sys_time_h = xyes; then
26787 rb_sys_time_h=yes
26788 fi
26789 if test x$ac_cv_header_time = xyes; then
26790 rb_time_h=yes
26791 fi
26792
26793 if test x$ac_cv_header_stdint_h = xyes; then
26794 rb_stdint_h=yes
26795 fi
26796 if test x$ac_cv_header_inttypes_h = xyes; then
26797 rb_inttypes_h=yes
26798 fi
26799 if test x$ac_cv_header_netinet_in_h = xyes; then
26800 rb_netinet_in_h=yes
26801 fi
26802
26803 if test x$ac_cv_header_crypt_h = xyes; then
26804 rb_crypt_h=yes
26805 fi
26806 if test x$ac_cv_header_errno_h = xyes; then
26807 rb_errno_h=yes
26808 fi
26809 if test x$ac_cv_header_unistd_h = xyes; then
26810 rb_unistd_h=yes
26811 fi
26812 if test x$ac_cv_header_windows_h = xyes; then
26813 rb_windows_h=yes
26814 fi
26815 if test x$ac_cv_header_winsock2_h = xyes; then
26816 rb_winsock2_h=yes
26817 fi
4414eb3c
VY
26818
26819 rb_socklen_t=$rb_socklen_t
26820
b57f37fb
WP
26821 if test "x$rb_have_sockaddr_storage" = "xyes"; then
26822 rb_sockaddr_storage="yes"
26823 else
26824 rb_sockaddr_storage="no"
26825 fi
26826
26827 rb_have_ipv6="$have_v6"
26828
26829 rb_mv="$MV"
26830 rb_rm="$RM"
26831
26832
26833
26834
26835
26836
26837_ACEOF
26838
f030cae8 26839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb
WP
26840
26841# Handling of arguments.
26842for ac_config_target in $ac_config_targets
26843do
26844 case $ac_config_target in
26845 "include/libratbox_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/libratbox_config.h" ;;
26846 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26847 "include/librb-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/librb-config.h" ;;
26848 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26849 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
eb66895a 26850 "libratbox.pc") CONFIG_FILES="$CONFIG_FILES libratbox.pc" ;;
b57f37fb 26851
f030cae8
VY
26852 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26853$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
b57f37fb
WP
26854 { (exit 1); exit 1; }; };;
26855 esac
26856done
26857
26858
26859# If the user did not use the arguments to specify the items to instantiate,
26860# then the envvar interface is used. Set only those that are not.
26861# We use the long form for the default assignment because of an extremely
26862# bizarre bug on SunOS 4.1.3.
26863if $ac_need_defaults; then
26864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26866 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26867fi
26868
26869# Have a temporary directory for convenience. Make it in the build tree
26870# simply because there is no reason against having it here, and in addition,
26871# creating and moving files from /tmp can sometimes cause problems.
26872# Hook for its removal unless debugging.
26873# Note that there is a small window in which the directory will not be cleaned:
26874# after its creation but before its name has been assigned to `$tmp'.
26875$debug ||
26876{
26877 tmp=
26878 trap 'exit_status=$?
26879 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26880' 0
26881 trap '{ (exit 1); exit 1; }' 1 2 13 15
26882}
26883# Create a (secure) tmp directory for tmp files.
26884
26885{
26886 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26887 test -n "$tmp" && test -d "$tmp"
26888} ||
26889{
26890 tmp=./conf$$-$RANDOM
26891 (umask 077 && mkdir "$tmp")
26892} ||
26893{
f030cae8 26894 $as_echo "$as_me: cannot create a temporary directory in ." >&2
b57f37fb
WP
26895 { (exit 1); exit 1; }
26896}
26897
f030cae8
VY
26898# Set up the scripts for CONFIG_FILES section.
26899# No need to generate them if there are no CONFIG_FILES.
26900# This happens for instance with `./config.status config.h'.
b57f37fb
WP
26901if test -n "$CONFIG_FILES"; then
26902
b57f37fb 26903
f030cae8
VY
26904ac_cr='\r'
26905ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26906if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26907 ac_cs_awk_cr='\\r'
26908else
26909 ac_cs_awk_cr=$ac_cr
b57f37fb
WP
26910fi
26911
f030cae8 26912echo 'BEGIN {' >"$tmp/subs1.awk" &&
b57f37fb
WP
26913_ACEOF
26914
26915
f030cae8
VY
26916{
26917 echo "cat >conf$$subs.awk <<_ACEOF" &&
26918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26919 echo "_ACEOF"
26920} >conf$$subs.sh ||
26921 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26922$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26923 { (exit 1); exit 1; }; }
26924ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
b57f37fb
WP
26925ac_delim='%!_!# '
26926for ac_last_try in false false false false false :; do
f030cae8
VY
26927 . ./conf$$subs.sh ||
26928 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26929$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26930 { (exit 1); exit 1; }; }
26931
26932 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26933 if test $ac_delim_n = $ac_delim_num; then
b57f37fb
WP
26934 break
26935 elif $ac_last_try; then
f030cae8
VY
26936 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26937$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
b57f37fb
WP
26938 { (exit 1); exit 1; }; }
26939 else
26940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26941 fi
26942done
f030cae8
VY
26943rm -f conf$$subs.sh
26944
26945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26946cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26947_ACEOF
26948sed -n '
26949h
26950s/^/S["/; s/!.*/"]=/
26951p
26952g
26953s/^[^!]*!//
26954:repl
26955t repl
26956s/'"$ac_delim"'$//
26957t delim
26958:nl
26959h
26960s/\(.\{148\}\).*/\1/
26961t more1
26962s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26963p
26964n
26965b repl
26966:more1
26967s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26968p
26969g
26970s/.\{148\}//
26971t nl
26972:delim
26973h
26974s/\(.\{148\}\).*/\1/
26975t more2
26976s/["\\]/\\&/g; s/^/"/; s/$/"/
26977p
26978b
26979:more2
26980s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26981p
26982g
26983s/.\{148\}//
26984t delim
26985' <conf$$subs.awk | sed '
26986/^[^""]/{
26987 N
26988 s/\n//
26989}
26990' >>$CONFIG_STATUS || ac_write_fail=1
26991rm -f conf$$subs.awk
26992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26993_ACAWK
26994cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26995 for (key in S) S_is_set[key] = 1
26996 FS = "\a"
b57f37fb 26997
f030cae8
VY
26998}
26999{
27000 line = $ 0
27001 nfields = split(line, field, "@")
27002 substed = 0
27003 len = length(field[1])
27004 for (i = 2; i < nfields; i++) {
27005 key = field[i]
27006 keylen = length(key)
27007 if (S_is_set[key]) {
27008 value = S[key]
27009 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27010 len += length(value) + length(field[++i])
27011 substed = 1
27012 } else
27013 len += 1 + keylen
27014 }
27015
27016 print line
27017}
b57f37fb 27018
f030cae8 27019_ACAWK
b57f37fb 27020_ACEOF
f030cae8
VY
27021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27022if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27023 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27024else
27025 cat
27026fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27027 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27028$as_echo "$as_me: error: could not setup config files machinery" >&2;}
27029 { (exit 1); exit 1; }; }
b57f37fb
WP
27030_ACEOF
27031
b57f37fb
WP
27032# VPATH may cause trouble with some makes, so we remove $(srcdir),
27033# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27034# trailing colons and then remove the whole line if VPATH becomes empty
27035# (actually we leave an empty line to preserve line numbers).
27036if test "x$srcdir" = x.; then
27037 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27038s/:*\$(srcdir):*/:/
27039s/:*\${srcdir}:*/:/
27040s/:*@srcdir@:*/:/
27041s/^\([^=]*=[ ]*\):*/\1/
27042s/:*$//
27043s/^[^=]*=[ ]*$//
27044}'
27045fi
27046
f030cae8 27047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb
WP
27048fi # test -n "$CONFIG_FILES"
27049
f030cae8
VY
27050# Set up the scripts for CONFIG_HEADERS section.
27051# No need to generate them if there are no CONFIG_HEADERS.
27052# This happens for instance with `./config.status Makefile'.
27053if test -n "$CONFIG_HEADERS"; then
27054cat >"$tmp/defines.awk" <<\_ACAWK ||
27055BEGIN {
27056_ACEOF
27057
27058# Transform confdefs.h into an awk script `defines.awk', embedded as
27059# here-document in config.status, that substitutes the proper values into
27060# config.h.in to produce config.h.
27061
27062# Create a delimiter string that does not exist in confdefs.h, to ease
27063# handling of long lines.
27064ac_delim='%!_!# '
27065for ac_last_try in false false :; do
27066 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27067 if test -z "$ac_t"; then
27068 break
27069 elif $ac_last_try; then
27070 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27071$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27072 { (exit 1); exit 1; }; }
27073 else
27074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27075 fi
27076done
27077
27078# For the awk script, D is an array of macro values keyed by name,
27079# likewise P contains macro parameters if any. Preserve backslash
27080# newline sequences.
27081
27082ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27083sed -n '
27084s/.\{148\}/&'"$ac_delim"'/g
27085t rset
27086:rset
27087s/^[ ]*#[ ]*define[ ][ ]*/ /
27088t def
27089d
27090:def
27091s/\\$//
27092t bsnl
27093s/["\\]/\\&/g
27094s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27095D["\1"]=" \3"/p
27096s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27097d
27098:bsnl
27099s/["\\]/\\&/g
27100s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27101D["\1"]=" \3\\\\\\n"\\/p
27102t cont
27103s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27104t cont
27105d
27106:cont
27107n
27108s/.\{148\}/&'"$ac_delim"'/g
27109t clear
27110:clear
27111s/\\$//
27112t bsnlc
27113s/["\\]/\\&/g; s/^/"/; s/$/"/p
27114d
27115:bsnlc
27116s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27117b cont
27118' <confdefs.h | sed '
27119s/'"$ac_delim"'/"\\\
27120"/g' >>$CONFIG_STATUS || ac_write_fail=1
27121
27122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27123 for (key in D) D_is_set[key] = 1
27124 FS = "\a"
27125}
27126/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27127 line = \$ 0
27128 split(line, arg, " ")
27129 if (arg[1] == "#") {
27130 defundef = arg[2]
27131 mac1 = arg[3]
27132 } else {
27133 defundef = substr(arg[1], 2)
27134 mac1 = arg[2]
27135 }
27136 split(mac1, mac2, "(") #)
27137 macro = mac2[1]
27138 prefix = substr(line, 1, index(line, defundef) - 1)
27139 if (D_is_set[macro]) {
27140 # Preserve the white space surrounding the "#".
27141 print prefix "define", macro P[macro] D[macro]
27142 next
27143 } else {
27144 # Replace #undef with comments. This is necessary, for example,
27145 # in the case of _POSIX_SOURCE, which is predefined and required
27146 # on some systems where configure will not decide to define it.
27147 if (defundef == "undef") {
27148 print "/*", prefix defundef, macro, "*/"
27149 next
27150 }
27151 }
27152}
27153{ print }
27154_ACAWK
27155_ACEOF
27156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27157 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27158$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27159 { (exit 1); exit 1; }; }
27160fi # test -n "$CONFIG_HEADERS"
27161
b57f37fb 27162
f030cae8
VY
27163eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27164shift
27165for ac_tag
b57f37fb
WP
27166do
27167 case $ac_tag in
27168 :[FHLC]) ac_mode=$ac_tag; continue;;
27169 esac
27170 case $ac_mode$ac_tag in
27171 :[FHL]*:*);;
f030cae8
VY
27172 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27173$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
b57f37fb
WP
27174 { (exit 1); exit 1; }; };;
27175 :[FH]-) ac_tag=-:-;;
27176 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27177 esac
27178 ac_save_IFS=$IFS
27179 IFS=:
27180 set x $ac_tag
27181 IFS=$ac_save_IFS
27182 shift
27183 ac_file=$1
27184 shift
27185
27186 case $ac_mode in
27187 :L) ac_source=$1;;
27188 :[FH])
27189 ac_file_inputs=
27190 for ac_f
27191 do
27192 case $ac_f in
27193 -) ac_f="$tmp/stdin";;
27194 *) # Look for the file first in the build tree, then in the source tree
27195 # (if the path is not absolute). The absolute path cannot be DOS-style,
27196 # because $ac_f cannot contain `:'.
27197 test -f "$ac_f" ||
27198 case $ac_f in
27199 [\\/$]*) false;;
27200 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27201 esac ||
f030cae8
VY
27202 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27203$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
b57f37fb
WP
27204 { (exit 1); exit 1; }; };;
27205 esac
f030cae8
VY
27206 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27207 ac_file_inputs="$ac_file_inputs '$ac_f'"
b57f37fb
WP
27208 done
27209
27210 # Let's still pretend it is `configure' which instantiates (i.e., don't
27211 # use $as_me), people would be surprised to read:
27212 # /* config.h. Generated by config.status. */
f030cae8
VY
27213 configure_input='Generated from '`
27214 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27215 `' by configure.'
b57f37fb
WP
27216 if test x"$ac_file" != x-; then
27217 configure_input="$ac_file. $configure_input"
f030cae8
VY
27218 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27219$as_echo "$as_me: creating $ac_file" >&6;}
b57f37fb 27220 fi
f030cae8
VY
27221 # Neutralize special characters interpreted by sed in replacement strings.
27222 case $configure_input in #(
27223 *\&* | *\|* | *\\* )
27224 ac_sed_conf_input=`$as_echo "$configure_input" |
27225 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27226 *) ac_sed_conf_input=$configure_input;;
27227 esac
b57f37fb
WP
27228
27229 case $ac_tag in
f030cae8
VY
27230 *:-:* | *:-) cat >"$tmp/stdin" \
27231 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27232$as_echo "$as_me: error: could not create $ac_file" >&2;}
27233 { (exit 1); exit 1; }; } ;;
b57f37fb
WP
27234 esac
27235 ;;
27236 esac
27237
27238 ac_dir=`$as_dirname -- "$ac_file" ||
27239$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27240 X"$ac_file" : 'X\(//\)[^/]' \| \
27241 X"$ac_file" : 'X\(//\)$' \| \
27242 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 27243$as_echo X"$ac_file" |
b57f37fb
WP
27244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27245 s//\1/
27246 q
27247 }
27248 /^X\(\/\/\)[^/].*/{
27249 s//\1/
27250 q
27251 }
27252 /^X\(\/\/\)$/{
27253 s//\1/
27254 q
27255 }
27256 /^X\(\/\).*/{
27257 s//\1/
27258 q
27259 }
27260 s/.*/./; q'`
27261 { as_dir="$ac_dir"
27262 case $as_dir in #(
27263 -*) as_dir=./$as_dir;;
27264 esac
27265 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27266 as_dirs=
27267 while :; do
27268 case $as_dir in #(
f030cae8 27269 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
b57f37fb
WP
27270 *) as_qdir=$as_dir;;
27271 esac
27272 as_dirs="'$as_qdir' $as_dirs"
27273 as_dir=`$as_dirname -- "$as_dir" ||
27274$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27275 X"$as_dir" : 'X\(//\)[^/]' \| \
27276 X"$as_dir" : 'X\(//\)$' \| \
27277 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 27278$as_echo X"$as_dir" |
b57f37fb
WP
27279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27280 s//\1/
27281 q
27282 }
27283 /^X\(\/\/\)[^/].*/{
27284 s//\1/
27285 q
27286 }
27287 /^X\(\/\/\)$/{
27288 s//\1/
27289 q
27290 }
27291 /^X\(\/\).*/{
27292 s//\1/
27293 q
27294 }
27295 s/.*/./; q'`
27296 test -d "$as_dir" && break
27297 done
27298 test -z "$as_dirs" || eval "mkdir $as_dirs"
f030cae8
VY
27299 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27300$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
b57f37fb
WP
27301 { (exit 1); exit 1; }; }; }
27302 ac_builddir=.
27303
27304case "$ac_dir" in
27305.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27306*)
f030cae8 27307 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b57f37fb 27308 # A ".." for each directory in $ac_dir_suffix.
f030cae8 27309 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b57f37fb
WP
27310 case $ac_top_builddir_sub in
27311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27313 esac ;;
27314esac
27315ac_abs_top_builddir=$ac_pwd
27316ac_abs_builddir=$ac_pwd$ac_dir_suffix
27317# for backward compatibility:
27318ac_top_builddir=$ac_top_build_prefix
27319
27320case $srcdir in
27321 .) # We are building in place.
27322 ac_srcdir=.
27323 ac_top_srcdir=$ac_top_builddir_sub
27324 ac_abs_top_srcdir=$ac_pwd ;;
27325 [\\/]* | ?:[\\/]* ) # Absolute name.
27326 ac_srcdir=$srcdir$ac_dir_suffix;
27327 ac_top_srcdir=$srcdir
27328 ac_abs_top_srcdir=$srcdir ;;
27329 *) # Relative name.
27330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27331 ac_top_srcdir=$ac_top_build_prefix$srcdir
27332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27333esac
27334ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27335
27336
27337 case $ac_mode in
27338 :F)
27339 #
27340 # CONFIG_FILE
27341 #
27342
27343 case $INSTALL in
27344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27345 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27346 esac
27347 ac_MKDIR_P=$MKDIR_P
27348 case $MKDIR_P in
27349 [\\/$]* | ?:[\\/]* ) ;;
27350 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27351 esac
27352_ACEOF
27353
f030cae8 27354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb
WP
27355# If the template does not know about datarootdir, expand it.
27356# FIXME: This hack should be removed a few years after 2.60.
27357ac_datarootdir_hack=; ac_datarootdir_seen=
27358
f030cae8
VY
27359ac_sed_dataroot='
27360/datarootdir/ {
b57f37fb
WP
27361 p
27362 q
27363}
27364/@datadir@/p
27365/@docdir@/p
27366/@infodir@/p
27367/@localedir@/p
27368/@mandir@/p
f030cae8
VY
27369'
27370case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
b57f37fb
WP
27371*datarootdir*) ac_datarootdir_seen=yes;;
27372*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f030cae8
VY
27373 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27374$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b57f37fb 27375_ACEOF
f030cae8 27376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b57f37fb
WP
27377 ac_datarootdir_hack='
27378 s&@datadir@&$datadir&g
27379 s&@docdir@&$docdir&g
27380 s&@infodir@&$infodir&g
27381 s&@localedir@&$localedir&g
27382 s&@mandir@&$mandir&g
27383 s&\\\${datarootdir}&$datarootdir&g' ;;
27384esac
27385_ACEOF
27386
27387# Neutralize VPATH when `$srcdir' = `.'.
27388# Shell code in configure.ac might set extrasub.
27389# FIXME: do we really want to maintain this feature?
f030cae8
VY
27390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27391ac_sed_extra="$ac_vpsub
b57f37fb
WP
27392$extrasub
27393_ACEOF
f030cae8 27394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b57f37fb
WP
27395:t
27396/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
f030cae8 27397s|@configure_input@|$ac_sed_conf_input|;t t
b57f37fb 27398s&@top_builddir@&$ac_top_builddir_sub&;t t
f030cae8 27399s&@top_build_prefix@&$ac_top_build_prefix&;t t
b57f37fb
WP
27400s&@srcdir@&$ac_srcdir&;t t
27401s&@abs_srcdir@&$ac_abs_srcdir&;t t
27402s&@top_srcdir@&$ac_top_srcdir&;t t
27403s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27404s&@builddir@&$ac_builddir&;t t
27405s&@abs_builddir@&$ac_abs_builddir&;t t
27406s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27407s&@INSTALL@&$ac_INSTALL&;t t
27408s&@MKDIR_P@&$ac_MKDIR_P&;t t
27409$ac_datarootdir_hack
f030cae8
VY
27410"
27411eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27412 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27413$as_echo "$as_me: error: could not create $ac_file" >&2;}
27414 { (exit 1); exit 1; }; }
b57f37fb
WP
27415
27416test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27417 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f030cae8 27419 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b57f37fb 27420which seems to be undefined. Please make sure it is defined." >&5
f030cae8 27421$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b57f37fb
WP
27422which seems to be undefined. Please make sure it is defined." >&2;}
27423
27424 rm -f "$tmp/stdin"
27425 case $ac_file in
f030cae8
VY
27426 -) cat "$tmp/out" && rm -f "$tmp/out";;
27427 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27428 esac \
27429 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27430$as_echo "$as_me: error: could not create $ac_file" >&2;}
27431 { (exit 1); exit 1; }; }
b57f37fb
WP
27432 ;;
27433 :H)
27434 #
27435 # CONFIG_HEADER
27436 #
b57f37fb 27437 if test x"$ac_file" != x-; then
f030cae8
VY
27438 {
27439 $as_echo "/* $configure_input */" \
27440 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27441 } >"$tmp/config.h" \
27442 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27443$as_echo "$as_me: error: could not create $ac_file" >&2;}
27444 { (exit 1); exit 1; }; }
27445 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27446 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27447$as_echo "$as_me: $ac_file is unchanged" >&6;}
b57f37fb 27448 else
f030cae8
VY
27449 rm -f "$ac_file"
27450 mv "$tmp/config.h" "$ac_file" \
27451 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27452$as_echo "$as_me: error: could not create $ac_file" >&2;}
27453 { (exit 1); exit 1; }; }
b57f37fb
WP
27454 fi
27455 else
f030cae8
VY
27456 $as_echo "/* $configure_input */" \
27457 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27458 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27459$as_echo "$as_me: error: could not create -" >&2;}
27460 { (exit 1); exit 1; }; }
b57f37fb 27461 fi
f030cae8
VY
27462# Compute "$ac_file"'s index in $config_headers.
27463_am_arg="$ac_file"
b57f37fb
WP
27464_am_stamp_count=1
27465for _am_header in $config_headers :; do
27466 case $_am_header in
56efe974 27467 $_am_arg | $_am_arg:* )
b57f37fb
WP
27468 break ;;
27469 * )
27470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27471 esac
27472done
56efe974
WP
27473echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27474$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27475 X"$_am_arg" : 'X\(//\)[^/]' \| \
27476 X"$_am_arg" : 'X\(//\)$' \| \
27477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 27478$as_echo X"$_am_arg" |
b57f37fb
WP
27479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27480 s//\1/
27481 q
27482 }
27483 /^X\(\/\/\)[^/].*/{
27484 s//\1/
27485 q
27486 }
27487 /^X\(\/\/\)$/{
27488 s//\1/
27489 q
27490 }
27491 /^X\(\/\).*/{
27492 s//\1/
27493 q
27494 }
27495 s/.*/./; q'`/stamp-h$_am_stamp_count
27496 ;;
27497
f030cae8
VY
27498 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27499$as_echo "$as_me: executing $ac_file commands" >&6;}
b57f37fb
WP
27500 ;;
27501 esac
27502
27503
27504 case $ac_file$ac_mode in
f030cae8
VY
27505 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
27506# are listed without --file. Let's play safe and only enable the eval
27507# if we detect the quoting.
27508case $CONFIG_FILES in
27509*\'*) eval set x "$CONFIG_FILES" ;;
27510*) set x $CONFIG_FILES ;;
27511esac
27512shift
27513for mf
27514do
b57f37fb
WP
27515 # Strip MF so we end up with the name of the file.
27516 mf=`echo "$mf" | sed -e 's/:.*$//'`
27517 # Check whether this is an Automake generated Makefile or not.
27518 # We used to match only the files named `Makefile.in', but
27519 # some people rename them; so instead we look at the file content.
27520 # Grep'ing the first line is not enough: some people post-process
27521 # each Makefile.in and add a new line on top of each file to say so.
27522 # Grep'ing the whole file is not good either: AIX grep has a line
27523 # limit of 2048, but all sed's we know have understand at least 4000.
56efe974 27524 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
b57f37fb
WP
27525 dirpart=`$as_dirname -- "$mf" ||
27526$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27527 X"$mf" : 'X\(//\)[^/]' \| \
27528 X"$mf" : 'X\(//\)$' \| \
27529 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 27530$as_echo X"$mf" |
b57f37fb
WP
27531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27532 s//\1/
27533 q
27534 }
27535 /^X\(\/\/\)[^/].*/{
27536 s//\1/
27537 q
27538 }
27539 /^X\(\/\/\)$/{
27540 s//\1/
27541 q
27542 }
27543 /^X\(\/\).*/{
27544 s//\1/
27545 q
27546 }
27547 s/.*/./; q'`
27548 else
27549 continue
27550 fi
27551 # Extract the definition of DEPDIR, am__include, and am__quote
27552 # from the Makefile without running `make'.
27553 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27554 test -z "$DEPDIR" && continue
27555 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27556 test -z "am__include" && continue
27557 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27558 # When using ansi2knr, U may be empty or an underscore; expand it
27559 U=`sed -n 's/^U = //p' < "$mf"`
27560 # Find all dependency output files, they are included files with
27561 # $(DEPDIR) in their names. We invoke sed twice because it is the
27562 # simplest approach to changing $(DEPDIR) to its actual value in the
27563 # expansion.
27564 for file in `sed -n "
27565 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27566 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27567 # Make sure the directory exists.
27568 test -f "$dirpart/$file" && continue
27569 fdir=`$as_dirname -- "$file" ||
27570$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27571 X"$file" : 'X\(//\)[^/]' \| \
27572 X"$file" : 'X\(//\)$' \| \
27573 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 27574$as_echo X"$file" |
b57f37fb
WP
27575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27576 s//\1/
27577 q
27578 }
27579 /^X\(\/\/\)[^/].*/{
27580 s//\1/
27581 q
27582 }
27583 /^X\(\/\/\)$/{
27584 s//\1/
27585 q
27586 }
27587 /^X\(\/\).*/{
27588 s//\1/
27589 q
27590 }
27591 s/.*/./; q'`
27592 { as_dir=$dirpart/$fdir
27593 case $as_dir in #(
27594 -*) as_dir=./$as_dir;;
27595 esac
27596 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27597 as_dirs=
27598 while :; do
27599 case $as_dir in #(
f030cae8 27600 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
b57f37fb
WP
27601 *) as_qdir=$as_dir;;
27602 esac
27603 as_dirs="'$as_qdir' $as_dirs"
27604 as_dir=`$as_dirname -- "$as_dir" ||
27605$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27606 X"$as_dir" : 'X\(//\)[^/]' \| \
27607 X"$as_dir" : 'X\(//\)$' \| \
27608 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
f030cae8 27609$as_echo X"$as_dir" |
b57f37fb
WP
27610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27611 s//\1/
27612 q
27613 }
27614 /^X\(\/\/\)[^/].*/{
27615 s//\1/
27616 q
27617 }
27618 /^X\(\/\/\)$/{
27619 s//\1/
27620 q
27621 }
27622 /^X\(\/\).*/{
27623 s//\1/
27624 q
27625 }
27626 s/.*/./; q'`
27627 test -d "$as_dir" && break
27628 done
27629 test -z "$as_dirs" || eval "mkdir $as_dirs"
f030cae8
VY
27630 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27631$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
b57f37fb
WP
27632 { (exit 1); exit 1; }; }; }
27633 # echo "creating $dirpart/$file"
27634 echo '# dummy' > "$dirpart/$file"
27635 done
27636done
27637 ;;
27638 "include/librb-config.h":C)
27639 outfile=include/librb-config.h.tmp
27640 cat > $outfile <<\_______EOF
27641/*
27642 * librb-config.h: libratbox config file. Please modify configure.ac
27643 */
27644
27645#ifndef __LIBRB_CONFIG_H
27646#define __LIBRB_CONFIG_H
27647
27648_______EOF
27649
27650if test "x$rb_have_ipv6" = "xyes"; then
27651 echo "#define RB_IPV6 1" >> $outfile
27652fi
27653
27654if test "x$rb_windows_h" = "xyes"; then
27655 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
27656 echo '#include <windows.h>' >> $outfile
27657 echo '#include <winsock2.h>' >> $outfile
27658 echo '#include <iphlpapi.h>' >> $outfile
27659fi
27660
27661if test "x$rb_alloca_h" = "xyes"; then
27662 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
27663fi
27664
27665if test "x$rb_header_stdc" = "xyes"; then
27666 echo '#include <stdlib.h>' >> $outfile
27667 echo '#include <stddef.h>' >> $outfile
27668elif test "x$rb_header_stdlib" = "xyes"; then
27669 echo '#include <stdlib.h>' >> $outfile
27670fi
27671
27672if test "x$rb_header_string_h" = "xyes"; then
27673 echo '#include <string.h>' >> $outfile
27674fi
27675
27676if test "x$rb_stdint_h" = "xyes"; then
27677 echo '#include <stdint.h>' >> $outfile
27678fi
27679
27680if test "x$rb_inttypes_h" = "xyes"; then
27681 echo '#include <inttypes.h>' >> $outfile
27682fi
27683
27684if test "x$rb_sys_types_h" = "xyes"; then
27685 echo '#include <sys/types.h>' >> $outfile
27686fi
27687if test "x$rb_sys_time_h" = "xyes"; then
27688 echo '#include <sys/time.h>' >> $outfile
27689fi
27690if test "x$rb_sys_stat_h" = "xyes"; then
27691 echo '#include <sys/stat.h>' >> $outfile
27692fi
27693if test "x$rb_time_h" = "xyes"; then
27694 echo '#include <time.h>' >> $outfile
27695fi
27696
27697if test "x$rb_sys_socket_h" = "xyes"; then
27698 echo '#include <sys/socket.h>' >> $outfile
27699fi
27700
27701if test "x$rb_netinet_in_h" = "xyes"; then
27702 echo '#include <netinet/in.h>' >> $outfile
27703fi
27704
27705if test "x$rb_arpa_inet_h" = "xyes"; then
27706 echo '#include <arpa/inet.h>' >> $outfile
27707fi
27708
27709if test "x$rb_unistd_h" = "xyes"; then
27710 echo '#include <unistd.h>' >> $outfile
27711fi
27712
27713if test "x$rb_crypt_h" = "xyes"; then
27714 echo '#include <crypt.h>' >> $outfile
27715fi
27716
27717if test "x$rb_errno_h" = "xyes"; then
27718 echo '#include <errno.h>' >> $outfile
27719fi
27720
4414eb3c
VY
27721echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
27722
27723
b57f37fb
WP
27724if test "x$rb_sockaddr_sa_len" = "xyes"; then
27725 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
27726fi
27727
b57f37fb
WP
27728if test "x$rb_sockaddr_storage" = "xyes"; then
27729 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
27730else
94b4fbf9 27731 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
b57f37fb
WP
27732fi
27733
27734cat >> $outfile <<\_______EOF
27735#endif /* __LIBRB_CONFIG_H */
27736_______EOF
27737
27738if cmp -s $outfile include/librb-config.h; then
f030cae8
VY
27739 { $as_echo "$as_me:$LINENO: include/librb-config.h is unchanged" >&5
27740$as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
b57f37fb
WP
27741 ${rb_rm} -f $outfile
27742else
27743 ${rb_mv} $outfile include/librb-config.h
27744fi
27745
27746 ;;
27747
27748 esac
27749done # for ac_tag
27750
27751
27752{ (exit 0); exit 0; }
27753_ACEOF
27754chmod +x $CONFIG_STATUS
27755ac_clean_files=$ac_clean_files_save
27756
f030cae8
VY
27757test $ac_write_fail = 0 ||
27758 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27759$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27760 { (exit 1); exit 1; }; }
27761
b57f37fb
WP
27762
27763# configure is writing to config.log, and then calls config.status.
27764# config.status does its own redirection, appending to config.log.
27765# Unfortunately, on DOS this fails, as config.log is still kept open
27766# by configure, so config.status won't be able to write to it; its
27767# output is simply discarded. So we exec the FD to /dev/null,
27768# effectively closing config.log, so it can be properly (re)opened and
27769# appended to by config.status. When coming back to configure, we
27770# need to make the FD available again.
27771if test "$no_create" != yes; then
27772 ac_cs_success=:
27773 ac_config_status_args=
27774 test "$silent" = yes &&
27775 ac_config_status_args="$ac_config_status_args --quiet"
27776 exec 5>/dev/null
27777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27778 exec 5>>config.log
27779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27780 # would make configure fail if this is the last instruction.
27781 $ac_cs_success || { (exit 1); exit 1; }
27782fi
f030cae8
VY
27783if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27784 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27785$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27786fi
b57f37fb 27787
b57f37fb
WP
27788
27789
27790echo
27791echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
27792echo
27793
27794echo "Installing into: $prefix"
27795
27796echo "IPv6 support ................... $have_v6"
27797echo "Assert debugging ............... $assert"
27798echo "Block allocator ................ $balloc"
033be687 27799echo "SSL Type........................ $SSL_TYPE"
b57f37fb
WP
27800echo
27801