Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / file / dist / configure
blob00c1aa472b49eaa9406109cdf022c38099c63c3a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for file 5.03.
5 # Report bugs to <christos@astron.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='file'
730 PACKAGE_TARNAME='file'
731 PACKAGE_VERSION='5.03'
732 PACKAGE_STRING='file 5.03'
733 PACKAGE_BUGREPORT='christos@astron.com'
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 am__isrc
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 pkgdatadir
831 fsect
832 FSECT5_TRUE
833 FSECT5_FALSE
834 WARNINGS
836 CFLAGS
837 LDFLAGS
838 CPPFLAGS
839 ac_ct_CC
840 EXEEXT
841 OBJEXT
842 DEPDIR
843 am__include
844 am__quote
845 AMDEP_TRUE
846 AMDEP_FALSE
847 AMDEPBACKSLASH
848 CCDEPMODE
849 am__fastdepCC_TRUE
850 am__fastdepCC_FALSE
851 LN_S
852 build
853 build_cpu
854 build_vendor
855 build_os
856 host
857 host_cpu
858 host_vendor
859 host_os
861 GREP
862 EGREP
863 ECHO
865 RANLIB
866 DSYMUTIL
867 NMEDIT
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 LIBOBJS
881 IS_CROSS_COMPILE_TRUE
882 IS_CROSS_COMPILE_FALSE
883 LTLIBOBJS'
884 ac_subst_files=''
885 ac_precious_vars='build_alias
886 host_alias
887 target_alias
889 CFLAGS
890 LDFLAGS
891 LIBS
892 CPPFLAGS
895 CXXFLAGS
897 CXXCPP
899 FFLAGS'
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
948 ac_prev=
949 ac_dashdash=
950 for ac_option
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
968 ac_dashdash=yes ;;
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
987 --config-cache | -C)
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1218 -with-* | --with-*)
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 esac
1277 done
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1298 done
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 echo X"$0" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1352 /^X\(\/\/\)$/{
1353 s//\1/
1356 /^X\(\/\).*/{
1357 s//\1/
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1365 else
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures file 5.03 to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1457 cat <<\_ACEOF
1459 Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of file 5.03:";;
1473 esac
1474 cat <<\_ACEOF
1476 Optional Features:
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --disable-elf disable builtin ELF support
1480 --disable-elf-core disable ELF core file support
1481 --enable-fsect-man5 enable file formats in man section 5
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --disable-largefile omit support for large files
1490 --disable-warnings disable compiler warnings
1492 Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1496 --with-pic try to use only PIC/non-PIC objects [default=use
1497 both]
1498 --with-tags[=TAGS] include additional configurations [automatic]
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CPP C preprocessor
1509 CXX C++ compiler command
1510 CXXFLAGS C++ compiler flags
1511 CXXCPP C++ preprocessor
1512 F77 Fortran 77 compiler command
1513 FFLAGS Fortran 77 compiler flags
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1518 Report bugs to <christos@astron.com>.
1519 _ACEOF
1520 ac_status=$?
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" || continue
1527 ac_builddir=.
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 file configure 5.03
1580 generated by GNU Autoconf 2.61
1582 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1583 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1589 cat >config.log <<_ACEOF
1590 This file contains any messages produced by compilers while
1591 running configure, to aid debugging if configure makes a mistake.
1593 It was created by file $as_me 5.03, which was
1594 generated by GNU Autoconf 2.61. Invocation command line was
1596 $ $0 $@
1598 _ACEOF
1599 exec 5>>config.log
1601 cat <<_ASUNAME
1602 ## --------- ##
1603 ## Platform. ##
1604 ## --------- ##
1606 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1615 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1619 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1623 _ASUNAME
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1631 done
1632 IFS=$as_save_IFS
1634 } >&5
1636 cat >&5 <<_ACEOF
1639 ## ----------- ##
1640 ## Core tests. ##
1641 ## ----------- ##
1643 _ACEOF
1646 # Keep a trace of the command line.
1647 # Strip out --no-create and --no-recursion so they do not pile up.
1648 # Strip out --silent because we don't want to record it for future runs.
1649 # Also quote any args containing shell meta-characters.
1650 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_configure_args=
1652 ac_configure_args0=
1653 ac_configure_args1=
1654 ac_must_keep_next=false
1655 for ac_pass in 1 2
1657 for ac_arg
1659 case $ac_arg in
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 continue ;;
1664 *\'*)
1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 esac
1667 case $ac_pass in
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
1672 ac_must_keep_next=false # Got value, back to normal.
1673 else
1674 case $ac_arg in
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 esac
1683 -* ) ac_must_keep_next=true ;;
1684 esac
1686 ac_configure_args="$ac_configure_args '$ac_arg'"
1688 esac
1689 done
1690 done
1691 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694 # When interrupted or exit'd, cleanup temporary files, and complete
1695 # config.log. We remove comments because anyway the quotes in there
1696 # would cause problems or look ugly.
1697 # WARNING: Use '\'' to represent an apostrophe within the trap.
1698 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699 trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
1702 echo
1704 cat <<\_ASBOX
1705 ## ---------------- ##
1706 ## Cache variables. ##
1707 ## ---------------- ##
1708 _ASBOX
1709 echo
1710 # The following way of writing the cache mishandles newlines in values,
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1714 case $ac_val in #(
1715 *${as_nl}*)
1716 case $ac_var in #(
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 esac
1720 case $ac_var in #(
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
1726 (set) 2>&1 |
1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1729 sed -n \
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736 esac |
1737 sort
1739 echo
1741 cat <<\_ASBOX
1742 ## ----------------- ##
1743 ## Output variables. ##
1744 ## ----------------- ##
1745 _ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
1754 done | sort
1755 echo
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
1759 ## ------------------- ##
1760 ## File substitutions. ##
1761 ## ------------------- ##
1762 _ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 echo "$ac_var='\''$ac_val'\''"
1771 done | sort
1772 echo
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777 ## ----------- ##
1778 ## confdefs.h. ##
1779 ## ----------- ##
1780 _ASBOX
1781 echo
1782 cat confdefs.h
1783 echo
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1788 } >&5
1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791 exit $exit_status
1793 for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 done
1796 ac_signal=0
1798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1799 rm -f -r conftest* confdefs.h
1801 # Predefined preprocessor variables.
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 _ACEOF
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 _ACEOF
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 _ACEOF
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 _ACEOF
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 _ACEOF
1828 # Let the site file select an alternate cache file if it wants to.
1829 # Prefer explicitly selected file to automatically selected ones.
1830 if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832 elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 else
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
1838 shift
1839 for ac_site_file
1841 if test -r "$ac_site_file"; then
1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1845 . "$ac_site_file"
1847 done
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1858 esac
1860 else
1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1866 # Check that the precious variables saved in the cache have kept the same
1867 # value.
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1875 set,)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,set)
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,);;
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889 echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891 echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1893 fi;;
1894 esac
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1897 case $ac_new_val in
1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 *) ac_arg=$ac_var=$ac_new_val ;;
1900 esac
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 esac
1906 done
1907 if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1939 ac_ext=c
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 am__api_version='1.10'
1948 ac_aux_dir=
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1953 break
1954 elif test -f "$ac_dir/install.sh"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1957 break
1958 elif test -f "$ac_dir/shtool"; then
1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1961 break
1963 done
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Find a good install program. We prefer a C program (faster),
1980 # so one script is as good as another. But avoid the broken or
1981 # incompatible versions:
1982 # SysV /etc/install, /usr/sbin/install
1983 # SunOS /usr/etc/install
1984 # IRIX /sbin/install
1985 # AIX /bin/install
1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990 # OS/2's system install, which has a completely different semantic
1991 # ./install, which can be erroneously created by make from ./install.sh.
1992 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1993 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1994 if test -z "$INSTALL"; then
1995 if test "${ac_cv_path_install+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 # Account for people who put trailing slashes in PATH elements.
2004 case $as_dir/ in
2005 ./ | .// | /cC/* | \
2006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2008 /usr/ucb/* ) ;;
2010 # OSF1 and SCO ODT 3.0 have their own names for install.
2011 # Don't use installbsd from OSF since it installs stuff as root
2012 # by default.
2013 for ac_prog in ginstall scoinst install; do
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2016 if test $ac_prog = install &&
2017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # AIX install. It has an incompatible calling convention.
2020 elif test $ac_prog = install &&
2021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2022 # program-specific install script used by HP pwplus--don't use.
2024 else
2025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2026 break 3
2029 done
2030 done
2032 esac
2033 done
2034 IFS=$as_save_IFS
2038 if test "${ac_cv_path_install+set}" = set; then
2039 INSTALL=$ac_cv_path_install
2040 else
2041 # As a last resort, use the slow shell script. Don't cache a
2042 # value for INSTALL within a source directory, because that will
2043 # break other packages using the cache if that directory is
2044 # removed, or if the value is a relative name.
2045 INSTALL=$ac_install_sh
2048 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2049 echo "${ECHO_T}$INSTALL" >&6; }
2051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2052 # It thinks the first close brace ends the variable substitution.
2053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2060 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2061 # Just in case
2062 sleep 1
2063 echo timestamp > conftest.file
2064 # Do `set' in a subshell so we don't clobber the current shell's
2065 # arguments. Must try -L first in case configure is actually a
2066 # symlink; some systems play weird games with the mod time of symlinks
2067 # (eg FreeBSD returns the mod time of the symlink's containing
2068 # directory).
2069 if (
2070 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2071 if test "$*" = "X"; then
2072 # -L didn't work.
2073 set X `ls -t $srcdir/configure conftest.file`
2075 rm -f conftest.file
2076 if test "$*" != "X $srcdir/configure conftest.file" \
2077 && test "$*" != "X conftest.file $srcdir/configure"; then
2079 # If neither matched, then we have a broken ls. This can happen
2080 # if, for instance, CONFIG_SHELL is bash and it inherits a
2081 # broken ls alias from the environment. This has actually
2082 # happened. Such a system could not be considered "sane".
2083 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2084 alias in your environment" >&5
2085 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2086 alias in your environment" >&2;}
2087 { (exit 1); exit 1; }; }
2090 test "$2" = conftest.file
2092 then
2093 # Ok.
2095 else
2096 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2097 Check your system clock" >&5
2098 echo "$as_me: error: newly created file is older than distributed files!
2099 Check your system clock" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6; }
2104 test "$program_prefix" != NONE &&
2105 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2106 # Use a double $ so make ignores it.
2107 test "$program_suffix" != NONE &&
2108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2109 # Double any \ or $. echo might interpret backslashes.
2110 # By default was `s,x,x', remove it if useless.
2111 cat <<\_ACEOF >conftest.sed
2112 s/[\\$]/&&/g;s/;s,x,x,$//
2113 _ACEOF
2114 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2115 rm -f conftest.sed
2117 # expand $ac_aux_dir to an absolute path
2118 am_aux_dir=`cd $ac_aux_dir && pwd`
2120 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2121 # Use eval to expand $SHELL
2122 if eval "$MISSING --run true"; then
2123 am_missing_run="$MISSING --run "
2124 else
2125 am_missing_run=
2126 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2127 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2130 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2131 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2132 if test -z "$MKDIR_P"; then
2133 if test "${ac_cv_path_mkdir+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_prog in mkdir gmkdir; do
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2144 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2145 'mkdir (GNU coreutils) '* | \
2146 'mkdir (coreutils) '* | \
2147 'mkdir (fileutils) '4.1*)
2148 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2149 break 3;;
2150 esac
2151 done
2152 done
2153 done
2154 IFS=$as_save_IFS
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 MKDIR_P="$ac_cv_path_mkdir -p"
2160 else
2161 # As a last resort, use the slow shell script. Don't cache a
2162 # value for MKDIR_P within a source directory, because that will
2163 # break other packages using the cache if that directory is
2164 # removed, or if the value is a relative name.
2165 test -d ./--version && rmdir ./--version
2166 MKDIR_P="\$(SHELL) $ac_install_sh -d"
2169 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2170 echo "${ECHO_T}$MKDIR_P" >&6; }
2172 mkdir_p="$MKDIR_P"
2173 case $mkdir_p in
2174 [\\/$]* | ?:[\\/]*) ;;
2175 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2176 esac
2178 for ac_prog in gawk mawk nawk awk
2180 # Extract the first word of "$ac_prog", so it can be a program name with args.
2181 set dummy $ac_prog; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_AWK+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$AWK"; then
2188 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_AWK="$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2201 done
2202 done
2203 IFS=$as_save_IFS
2207 AWK=$ac_cv_prog_AWK
2208 if test -n "$AWK"; then
2209 { echo "$as_me:$LINENO: result: $AWK" >&5
2210 echo "${ECHO_T}$AWK" >&6; }
2211 else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2217 test -n "$AWK" && break
2218 done
2220 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2221 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2222 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2223 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 cat >conftest.make <<\_ACEOF
2227 SHELL = /bin/sh
2228 all:
2229 @echo '@@@%%%=$(MAKE)=@@@%%%'
2230 _ACEOF
2231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2233 *@@@%%%=?*=@@@%%%*)
2234 eval ac_cv_prog_make_${ac_make}_set=yes;;
2236 eval ac_cv_prog_make_${ac_make}_set=no;;
2237 esac
2238 rm -f conftest.make
2240 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2241 { echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6; }
2243 SET_MAKE=
2244 else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2247 SET_MAKE="MAKE=${MAKE-make}"
2250 rm -rf .tst 2>/dev/null
2251 mkdir .tst 2>/dev/null
2252 if test -d .tst; then
2253 am__leading_dot=.
2254 else
2255 am__leading_dot=_
2257 rmdir .tst 2>/dev/null
2259 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2260 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2261 # is not polluted with repeated "-I."
2262 am__isrc=' -I$(srcdir)'
2263 # test to see if srcdir already configured
2264 if test -f $srcdir/config.status; then
2265 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267 { (exit 1); exit 1; }; }
2271 # test whether we have cygpath
2272 if test -z "$CYGPATH_W"; then
2273 if (cygpath --version) >/dev/null 2>/dev/null; then
2274 CYGPATH_W='cygpath -w'
2275 else
2276 CYGPATH_W=echo
2281 # Define the identity of the package.
2282 PACKAGE='file'
2283 VERSION='5.03'
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE "$PACKAGE"
2288 _ACEOF
2291 cat >>confdefs.h <<_ACEOF
2292 #define VERSION "$VERSION"
2293 _ACEOF
2295 # Some tools Automake needs.
2297 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2300 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2303 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2306 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2309 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2311 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2313 # Installed binaries are usually stripped using `strip' when the user
2314 # run `make install-strip'. However `strip' might not be the right
2315 # tool to use in cross-compilation environments, therefore Automake
2316 # will honor the `STRIP' environment variable to overrule this program.
2317 if test "$cross_compiling" != no; then
2318 if test -n "$ac_tool_prefix"; then
2319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2320 set dummy ${ac_tool_prefix}strip; ac_word=$2
2321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2323 if test "${ac_cv_prog_STRIP+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$STRIP"; then
2327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2340 done
2341 done
2342 IFS=$as_save_IFS
2346 STRIP=$ac_cv_prog_STRIP
2347 if test -n "$STRIP"; then
2348 { echo "$as_me:$LINENO: result: $STRIP" >&5
2349 echo "${ECHO_T}$STRIP" >&6; }
2350 else
2351 { echo "$as_me:$LINENO: result: no" >&5
2352 echo "${ECHO_T}no" >&6; }
2357 if test -z "$ac_cv_prog_STRIP"; then
2358 ac_ct_STRIP=$STRIP
2359 # Extract the first word of "strip", so it can be a program name with args.
2360 set dummy strip; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366 if test -n "$ac_ct_STRIP"; then
2367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_ac_ct_STRIP="strip"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2380 done
2381 done
2382 IFS=$as_save_IFS
2386 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2387 if test -n "$ac_ct_STRIP"; then
2388 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2389 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2390 else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2395 if test "x$ac_ct_STRIP" = x; then
2396 STRIP=":"
2397 else
2398 case $cross_compiling:$ac_tool_warned in
2399 yes:)
2400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2401 whose name does not start with the host triplet. If you think this
2402 configuration is useful to you, please write to autoconf@gnu.org." >&5
2403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2406 ac_tool_warned=yes ;;
2407 esac
2408 STRIP=$ac_ct_STRIP
2410 else
2411 STRIP="$ac_cv_prog_STRIP"
2415 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417 # We need awk for the "check" target. The system "awk" is bad on
2418 # some platforms.
2419 # Always define AMTAR for backward compatibility.
2421 AMTAR=${AMTAR-"${am_missing_run}tar"}
2423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2429 ac_config_headers="$ac_config_headers config.h"
2431 #AC_CONFIG_MACRO_DIR([m4])
2433 { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
2434 echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
2435 # Check whether --enable-elf was given.
2436 if test "${enable_elf+set}" = set; then
2437 enableval=$enable_elf; if test "${enableval}" = yes; then
2438 { echo "$as_me:$LINENO: result: yes" >&5
2439 echo "${ECHO_T}yes" >&6; }
2441 cat >>confdefs.h <<\_ACEOF
2442 #define BUILTIN_ELF 1
2443 _ACEOF
2445 else
2446 { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2449 else
2451 # enable by default
2452 { echo "$as_me:$LINENO: result: yes" >&5
2453 echo "${ECHO_T}yes" >&6; }
2455 cat >>confdefs.h <<\_ACEOF
2456 #define BUILTIN_ELF 1
2457 _ACEOF
2463 { echo "$as_me:$LINENO: checking for ELF core file support" >&5
2464 echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
2465 # Check whether --enable-elf-core was given.
2466 if test "${enable_elf_core+set}" = set; then
2467 enableval=$enable_elf_core; if test "${enableval}" = yes; then
2468 { echo "$as_me:$LINENO: result: yes" >&5
2469 echo "${ECHO_T}yes" >&6; }
2471 cat >>confdefs.h <<\_ACEOF
2472 #define ELFCORE 1
2473 _ACEOF
2475 else
2476 { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2479 else
2481 # enable by default
2482 { echo "$as_me:$LINENO: result: yes" >&5
2483 echo "${ECHO_T}yes" >&6; }
2485 cat >>confdefs.h <<\_ACEOF
2486 #define ELFCORE 1
2487 _ACEOF
2493 { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
2494 echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
2495 # Check whether --enable-fsect-man5 was given.
2496 if test "${enable_fsect_man5+set}" = set; then
2497 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
2498 { echo "$as_me:$LINENO: result: yes" >&5
2499 echo "${ECHO_T}yes" >&6; }
2500 fsect=5
2501 else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2504 fsect=4
2506 else
2508 # disable by default
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2511 fsect=4
2516 pkgdatadir='$(datadir)/misc'
2519 if test x$fsect = x5; then
2520 FSECT5_TRUE=
2521 FSECT5_FALSE='#'
2522 else
2523 FSECT5_TRUE='#'
2524 FSECT5_FALSE=
2530 cat >>confdefs.h <<\_ACEOF
2531 #define _GNU_SOURCE 1
2532 _ACEOF
2536 ac_ext=c
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2563 done
2564 done
2565 IFS=$as_save_IFS
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2573 else
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2580 if test -z "$ac_cv_prog_CC"; then
2581 ac_ct_CC=$CC
2582 # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_ac_ct_CC="gcc"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2603 done
2604 done
2605 IFS=$as_save_IFS
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6; }
2613 else
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2618 if test "x$ac_ct_CC" = x; then
2619 CC=""
2620 else
2621 case $cross_compiling:$ac_tool_warned in
2622 yes:)
2623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2630 esac
2631 CC=$ac_ct_CC
2633 else
2634 CC="$ac_cv_prog_CC"
2637 if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_CC="${ac_tool_prefix}cc"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2660 done
2661 done
2662 IFS=$as_save_IFS
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668 { echo "$as_me:$LINENO: result: $CC" >&5
2669 echo "${ECHO_T}$CC" >&6; }
2670 else
2671 { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2678 if test -z "$CC"; then
2679 # Extract the first word of "cc", so it can be a program name with args.
2680 set dummy cc; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2688 else
2689 ac_prog_rejected=no
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698 ac_prog_rejected=yes
2699 continue
2701 ac_cv_prog_CC="cc"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2705 done
2706 done
2707 IFS=$as_save_IFS
2709 if test $ac_prog_rejected = yes; then
2710 # We found a bogon in the path, so make sure we never use it.
2711 set dummy $ac_cv_prog_CC
2712 shift
2713 if test $# != 0; then
2714 # We chose a different compiler from the bogus one.
2715 # However, it has the same basename, so the bogon will be chosen
2716 # first if we set CC to just the basename; use the full file name.
2717 shift
2718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725 { echo "$as_me:$LINENO: result: $CC" >&5
2726 echo "${ECHO_T}$CC" >&6; }
2727 else
2728 { echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6; }
2734 if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in cl.exe
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2759 done
2760 done
2761 IFS=$as_save_IFS
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { echo "$as_me:$LINENO: result: $CC" >&5
2768 echo "${ECHO_T}$CC" >&6; }
2769 else
2770 { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2775 test -n "$CC" && break
2776 done
2778 if test -z "$CC"; then
2779 ac_ct_CC=$CC
2780 for ac_prog in cl.exe
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2803 done
2804 done
2805 IFS=$as_save_IFS
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 echo "${ECHO_T}$ac_ct_CC" >&6; }
2813 else
2814 { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2819 test -n "$ac_ct_CC" && break
2820 done
2822 if test "x$ac_ct_CC" = x; then
2823 CC=""
2824 else
2825 case $cross_compiling:$ac_tool_warned in
2826 yes:)
2827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet. If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&5
2830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2831 whose name does not start with the host triplet. If you think this
2832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2833 ac_tool_warned=yes ;;
2834 esac
2835 CC=$ac_ct_CC
2842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2848 # Provide some information about the compiler.
2849 echo "$as_me:$LINENO: checking for C compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (ac_try="$ac_compiler --version >&5"
2852 case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compiler --version >&5") 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861 { (ac_try="$ac_compiler -v >&5"
2862 case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_compiler -v >&5") 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }
2871 { (ac_try="$ac_compiler -V >&5"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compiler -V >&5") 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2882 cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h. */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2890 main ()
2894 return 0;
2896 _ACEOF
2897 ac_clean_files_save=$ac_clean_files
2898 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2899 # Try to create an executable without -o first, disregard a.out.
2900 # It will help us diagnose broken compilers, and finding out an intuition
2901 # of exeext.
2902 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2903 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2904 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2906 # List of possible output files, starting from the most likely.
2907 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2908 # only as a last resort. b.out is created by i960 compilers.
2909 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2911 # The IRIX 6 linker writes into existing files which may not be
2912 # executable, retaining their permissions. Remove them first so a
2913 # subsequent execution test works.
2914 ac_rmfiles=
2915 for ac_file in $ac_files
2917 case $ac_file in
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2919 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2920 esac
2921 done
2922 rm -f $ac_rmfiles
2924 if { (ac_try="$ac_link_default"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_link_default") 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2936 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2937 # so that the user can short-circuit this test for compilers unknown to
2938 # Autoconf.
2939 for ac_file in $ac_files ''
2941 test -f "$ac_file" || continue
2942 case $ac_file in
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2945 [ab].out )
2946 # We found the default executable, but exeext='' is most
2947 # certainly right.
2948 break;;
2949 *.* )
2950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2951 then :; else
2952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 # We set ac_cv_exeext here because the later test for it is not
2955 # safe: cross compilers may not add the suffix if given an `-o'
2956 # argument, so we may need to know it at that point already.
2957 # Even if this section looks crufty: it has the advantage of
2958 # actually working.
2959 break;;
2961 break;;
2962 esac
2963 done
2964 test "$ac_cv_exeext" = no && ac_cv_exeext=
2966 else
2967 ac_file=''
2970 { echo "$as_me:$LINENO: result: $ac_file" >&5
2971 echo "${ECHO_T}$ac_file" >&6; }
2972 if test -z "$ac_file"; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2977 See \`config.log' for more details." >&5
2978 echo "$as_me: error: C compiler cannot create executables
2979 See \`config.log' for more details." >&2;}
2980 { (exit 77); exit 77; }; }
2983 ac_exeext=$ac_cv_exeext
2985 # Check that the compiler produces executables we can run. If not, either
2986 # the compiler is broken, or we cross compile.
2987 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2988 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2989 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2990 # If not cross compiling, check that we can run a simple program.
2991 if test "$cross_compiling" != yes; then
2992 if { ac_try='./$ac_file'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 cross_compiling=no
3003 else
3004 if test "$cross_compiling" = maybe; then
3005 cross_compiling=yes
3006 else
3007 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3008 If you meant to cross compile, use \`--host'.
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot run C compiled programs.
3011 If you meant to cross compile, use \`--host'.
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3017 { echo "$as_me:$LINENO: result: yes" >&5
3018 echo "${ECHO_T}yes" >&6; }
3020 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3021 ac_clean_files=$ac_clean_files_save
3022 # Check that the compiler produces executables we can run. If not, either
3023 # the compiler is broken, or we cross compile.
3024 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3025 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3026 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3027 echo "${ECHO_T}$cross_compiling" >&6; }
3029 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3030 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3031 if { (ac_try="$ac_link"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_link") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; then
3041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3042 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3043 # work properly (i.e., refer to `conftest.exe'), while it won't with
3044 # `rm'.
3045 for ac_file in conftest.exe conftest conftest.*; do
3046 test -f "$ac_file" || continue
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050 break;;
3051 * ) break;;
3052 esac
3053 done
3054 else
3055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3062 rm -f conftest$ac_cv_exeext
3063 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3064 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3066 rm -f conftest.$ac_ext
3067 EXEEXT=$ac_cv_exeext
3068 ac_exeext=$EXEEXT
3069 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3070 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3071 if test "${ac_cv_objext+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3082 main ()
3086 return 0;
3088 _ACEOF
3089 rm -f conftest.o conftest.obj
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; then
3100 for ac_file in conftest.o conftest.obj conftest.*; do
3101 test -f "$ac_file" || continue;
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3105 break;;
3106 esac
3107 done
3108 else
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3115 See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }
3119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3121 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3122 echo "${ECHO_T}$ac_cv_objext" >&6; }
3123 OBJEXT=$ac_cv_objext
3124 ac_objext=$OBJEXT
3125 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3126 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3127 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 cat >conftest.$ac_ext <<_ACEOF
3131 /* confdefs.h. */
3132 _ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3138 main ()
3140 #ifndef __GNUC__
3141 choke me
3142 #endif
3145 return 0;
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest.$ac_objext; then
3165 ac_compiler_gnu=yes
3166 else
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 ac_compiler_gnu=no
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3177 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3178 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3179 GCC=`test $ac_compiler_gnu = yes && echo yes`
3180 ac_test_CFLAGS=${CFLAGS+set}
3181 ac_save_CFLAGS=$CFLAGS
3182 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3183 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3184 if test "${ac_cv_prog_cc_g+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3189 ac_cv_prog_cc_g=no
3190 CFLAGS="-g"
3191 cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3199 main ()
3203 return 0;
3205 _ACEOF
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && {
3220 test -z "$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 } && test -s conftest.$ac_objext; then
3223 ac_cv_prog_cc_g=yes
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 CFLAGS=""
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3237 main ()
3241 return 0;
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3252 ac_status=$?
3253 grep -v '^ *+' conftest.er1 >conftest.err
3254 rm -f conftest.er1
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3262 else
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 CFLAGS="-g"
3268 cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h. */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3276 main ()
3280 return 0;
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_g=yes
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3317 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3318 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3319 if test "$ac_test_CFLAGS" = set; then
3320 CFLAGS=$ac_save_CFLAGS
3321 elif test $ac_cv_prog_cc_g = yes; then
3322 if test "$GCC" = yes; then
3323 CFLAGS="-g -O2"
3324 else
3325 CFLAGS="-g"
3327 else
3328 if test "$GCC" = yes; then
3329 CFLAGS="-O2"
3330 else
3331 CFLAGS=
3334 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3335 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_cc_c89+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 ac_cv_prog_cc_c89=no
3340 ac_save_CC=$CC
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include <stdarg.h>
3348 #include <stdio.h>
3349 #include <sys/types.h>
3350 #include <sys/stat.h>
3351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3352 struct buf { int x; };
3353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3354 static char *e (p, i)
3355 char **p;
3356 int i;
3358 return p[i];
3360 static char *f (char * (*g) (char **, int), char **p, ...)
3362 char *s;
3363 va_list v;
3364 va_start (v,p);
3365 s = g (p, va_arg (v,int));
3366 va_end (v);
3367 return s;
3370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3371 function prototypes and stuff, but not '\xHH' hex character constants.
3372 These don't provoke an error unfortunately, instead are silently treated
3373 as 'x'. The following induces an error, until -std is added to get
3374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3375 array size at least. It's necessary to write '\x00'==0 to get something
3376 that's true only with -std. */
3377 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3379 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3380 inside strings and character constants. */
3381 #define FOO(x) 'x'
3382 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3384 int test (int i, double x);
3385 struct s1 {int (*f) (int a);};
3386 struct s2 {int (*f) (double a);};
3387 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3388 int argc;
3389 char **argv;
3391 main ()
3393 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3395 return 0;
3397 _ACEOF
3398 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3399 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3401 CC="$ac_save_CC $ac_arg"
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3404 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3410 ac_status=$?
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest.$ac_objext; then
3419 ac_cv_prog_cc_c89=$ac_arg
3420 else
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3427 rm -f core conftest.err conftest.$ac_objext
3428 test "x$ac_cv_prog_cc_c89" != "xno" && break
3429 done
3430 rm -f conftest.$ac_ext
3431 CC=$ac_save_CC
3434 # AC_CACHE_VAL
3435 case "x$ac_cv_prog_cc_c89" in
3437 { echo "$as_me:$LINENO: result: none needed" >&5
3438 echo "${ECHO_T}none needed" >&6; } ;;
3439 xno)
3440 { echo "$as_me:$LINENO: result: unsupported" >&5
3441 echo "${ECHO_T}unsupported" >&6; } ;;
3443 CC="$CC $ac_cv_prog_cc_c89"
3444 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3445 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3446 esac
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 DEPDIR="${am__leading_dot}deps"
3456 ac_config_commands="$ac_config_commands depfiles"
3459 am_make=${MAKE-make}
3460 cat > confinc << 'END'
3461 am__doit:
3462 @echo done
3463 .PHONY: am__doit
3465 # If we don't find an include directive, just comment out the code.
3466 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3467 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3468 am__include="#"
3469 am__quote=
3470 _am_result=none
3471 # First try GNU make style include.
3472 echo "include confinc" > confmf
3473 # We grep out `Entering directory' and `Leaving directory'
3474 # messages which can occur if `w' ends up in MAKEFLAGS.
3475 # In particular we don't look at `^make:' because GNU make might
3476 # be invoked under some other name (usually "gmake"), in which
3477 # case it prints its new name instead of `make'.
3478 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3479 am__include=include
3480 am__quote=
3481 _am_result=GNU
3483 # Now try BSD make style include.
3484 if test "$am__include" = "#"; then
3485 echo '.include "confinc"' > confmf
3486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3487 am__include=.include
3488 am__quote="\""
3489 _am_result=BSD
3494 { echo "$as_me:$LINENO: result: $_am_result" >&5
3495 echo "${ECHO_T}$_am_result" >&6; }
3496 rm -f confinc confmf
3498 # Check whether --enable-dependency-tracking was given.
3499 if test "${enable_dependency_tracking+set}" = set; then
3500 enableval=$enable_dependency_tracking;
3503 if test "x$enable_dependency_tracking" != xno; then
3504 am_depcomp="$ac_aux_dir/depcomp"
3505 AMDEPBACKSLASH='\'
3507 if test "x$enable_dependency_tracking" != xno; then
3508 AMDEP_TRUE=
3509 AMDEP_FALSE='#'
3510 else
3511 AMDEP_TRUE='#'
3512 AMDEP_FALSE=
3517 depcc="$CC" am_compiler_list=
3519 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3520 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3521 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3525 # We make a subdir and do the tests there. Otherwise we can end up
3526 # making bogus files that we don't know about and never remove. For
3527 # instance it was reported that on HP-UX the gcc test will end up
3528 # making a dummy file named `D' -- because `-MD' means `put the output
3529 # in D'.
3530 mkdir conftest.dir
3531 # Copy depcomp to subdir because otherwise we won't find it if we're
3532 # using a relative directory.
3533 cp "$am_depcomp" conftest.dir
3534 cd conftest.dir
3535 # We will build objects and dependencies in a subdirectory because
3536 # it helps to detect inapplicable dependency modes. For instance
3537 # both Tru64's cc and ICC support -MD to output dependencies as a
3538 # side effect of compilation, but ICC will put the dependencies in
3539 # the current directory while Tru64 will put them in the object
3540 # directory.
3541 mkdir sub
3543 am_cv_CC_dependencies_compiler_type=none
3544 if test "$am_compiler_list" = ""; then
3545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3547 for depmode in $am_compiler_list; do
3548 # Setup a source with many dependencies, because some compilers
3549 # like to wrap large dependency lists on column 80 (with \), and
3550 # we should not choose a depcomp mode which is confused by this.
3552 # We need to recreate these files for each test, as the compiler may
3553 # overwrite some of them when testing with obscure command lines.
3554 # This happens at least with the AIX C compiler.
3555 : > sub/conftest.c
3556 for i in 1 2 3 4 5 6; do
3557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3558 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3559 # Solaris 8's {/usr,}/bin/sh.
3560 touch sub/conftst$i.h
3561 done
3562 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3564 case $depmode in
3565 nosideeffect)
3566 # after this tag, mechanisms are not by side-effect, so they'll
3567 # only be used when explicitly requested
3568 if test "x$enable_dependency_tracking" = xyes; then
3569 continue
3570 else
3571 break
3574 none) break ;;
3575 esac
3576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3577 # mode. It turns out that the SunPro C++ compiler does not properly
3578 # handle `-M -o', and we need to detect this.
3579 if depmode=$depmode \
3580 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3582 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3583 >/dev/null 2>conftest.err &&
3584 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3586 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3588 # icc doesn't choke on unknown options, it will just issue warnings
3589 # or remarks (even with -Werror). So we grep stderr for any message
3590 # that says an option was ignored or not supported.
3591 # When given -MP, icc 7.0 and 7.1 complain thusly:
3592 # icc: Command line warning: ignoring option '-M'; no argument required
3593 # The diagnosis changed in icc 8.0:
3594 # icc: Command line remark: option '-MP' not supported
3595 if (grep 'ignoring option' conftest.err ||
3596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3597 am_cv_CC_dependencies_compiler_type=$depmode
3598 break
3601 done
3603 cd ..
3604 rm -rf conftest.dir
3605 else
3606 am_cv_CC_dependencies_compiler_type=none
3610 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3611 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3612 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3615 test "x$enable_dependency_tracking" != xno \
3616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3617 am__fastdepCC_TRUE=
3618 am__fastdepCC_FALSE='#'
3619 else
3620 am__fastdepCC_TRUE='#'
3621 am__fastdepCC_FALSE=
3625 if test "x$CC" != xcc; then
3626 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3627 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3628 else
3629 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3630 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3632 set dummy $CC; ac_cc=`echo $2 |
3633 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3634 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3645 main ()
3649 return 0;
3651 _ACEOF
3652 # Make sure it works both with $CC and with simple cc.
3653 # We do the test twice because some compilers refuse to overwrite an
3654 # existing .o file with -o, though they will create one.
3655 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3656 rm -f conftest2.*
3657 if { (case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_try") 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_try") 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); };
3675 then
3676 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3677 if test "x$CC" != xcc; then
3678 # Test first that cc exists at all.
3679 if { ac_try='cc -c conftest.$ac_ext >&5'
3680 { (case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3690 rm -f conftest2.*
3691 if { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } &&
3700 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_try") 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); };
3709 then
3710 # cc works too.
3712 else
3713 # cc exists but doesn't like -o.
3714 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3718 else
3719 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3721 rm -f core conftest*
3724 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3725 { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3727 else
3728 { echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6; }
3731 cat >>confdefs.h <<\_ACEOF
3732 #define NO_MINUS_C_MINUS_O 1
3733 _ACEOF
3737 # FIXME: we rely on the cache variable name because
3738 # there is no other way.
3739 set dummy $CC
3740 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3741 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3742 # Losing compiler, so override with the script.
3743 # FIXME: It is wrong to rewrite CC.
3744 # But if we don't then we get into trouble of one sort or another.
3745 # A longer-term fix would be to have automake use am__CC in this case,
3746 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3747 CC="$am_aux_dir/compile $CC"
3751 # Find a good install program. We prefer a C program (faster),
3752 # so one script is as good as another. But avoid the broken or
3753 # incompatible versions:
3754 # SysV /etc/install, /usr/sbin/install
3755 # SunOS /usr/etc/install
3756 # IRIX /sbin/install
3757 # AIX /bin/install
3758 # AmigaOS /C/install, which installs bootblocks on floppy discs
3759 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3760 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3761 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3762 # OS/2's system install, which has a completely different semantic
3763 # ./install, which can be erroneously created by make from ./install.sh.
3764 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3765 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3766 if test -z "$INSTALL"; then
3767 if test "${ac_cv_path_install+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 # Account for people who put trailing slashes in PATH elements.
3776 case $as_dir/ in
3777 ./ | .// | /cC/* | \
3778 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3779 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3780 /usr/ucb/* ) ;;
3782 # OSF1 and SCO ODT 3.0 have their own names for install.
3783 # Don't use installbsd from OSF since it installs stuff as root
3784 # by default.
3785 for ac_prog in ginstall scoinst install; do
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3788 if test $ac_prog = install &&
3789 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3790 # AIX install. It has an incompatible calling convention.
3792 elif test $ac_prog = install &&
3793 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3794 # program-specific install script used by HP pwplus--don't use.
3796 else
3797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3798 break 3
3801 done
3802 done
3804 esac
3805 done
3806 IFS=$as_save_IFS
3810 if test "${ac_cv_path_install+set}" = set; then
3811 INSTALL=$ac_cv_path_install
3812 else
3813 # As a last resort, use the slow shell script. Don't cache a
3814 # value for INSTALL within a source directory, because that will
3815 # break other packages using the cache if that directory is
3816 # removed, or if the value is a relative name.
3817 INSTALL=$ac_install_sh
3820 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3821 echo "${ECHO_T}$INSTALL" >&6; }
3823 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3824 # It thinks the first close brace ends the variable substitution.
3825 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3827 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3831 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3832 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3833 LN_S=$as_ln_s
3834 if test "$LN_S" = "ln -s"; then
3835 { echo "$as_me:$LINENO: result: yes" >&5
3836 echo "${ECHO_T}yes" >&6; }
3837 else
3838 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3839 echo "${ECHO_T}no, using $LN_S" >&6; }
3842 # Check whether --enable-shared was given.
3843 if test "${enable_shared+set}" = set; then
3844 enableval=$enable_shared; p=${PACKAGE-default}
3845 case $enableval in
3846 yes) enable_shared=yes ;;
3847 no) enable_shared=no ;;
3849 enable_shared=no
3850 # Look at the argument we got. We use all the common list separators.
3851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3852 for pkg in $enableval; do
3853 IFS="$lt_save_ifs"
3854 if test "X$pkg" = "X$p"; then
3855 enable_shared=yes
3857 done
3858 IFS="$lt_save_ifs"
3860 esac
3861 else
3862 enable_shared=yes
3866 # Check whether --enable-static was given.
3867 if test "${enable_static+set}" = set; then
3868 enableval=$enable_static; p=${PACKAGE-default}
3869 case $enableval in
3870 yes) enable_static=yes ;;
3871 no) enable_static=no ;;
3873 enable_static=no
3874 # Look at the argument we got. We use all the common list separators.
3875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3876 for pkg in $enableval; do
3877 IFS="$lt_save_ifs"
3878 if test "X$pkg" = "X$p"; then
3879 enable_static=yes
3881 done
3882 IFS="$lt_save_ifs"
3884 esac
3885 else
3886 enable_static=yes
3890 # Check whether --enable-fast-install was given.
3891 if test "${enable_fast_install+set}" = set; then
3892 enableval=$enable_fast_install; p=${PACKAGE-default}
3893 case $enableval in
3894 yes) enable_fast_install=yes ;;
3895 no) enable_fast_install=no ;;
3897 enable_fast_install=no
3898 # Look at the argument we got. We use all the common list separators.
3899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3900 for pkg in $enableval; do
3901 IFS="$lt_save_ifs"
3902 if test "X$pkg" = "X$p"; then
3903 enable_fast_install=yes
3905 done
3906 IFS="$lt_save_ifs"
3908 esac
3909 else
3910 enable_fast_install=yes
3914 # Make sure we can run config.sub.
3915 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3916 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3917 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3918 { (exit 1); exit 1; }; }
3920 { echo "$as_me:$LINENO: checking build system type" >&5
3921 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3922 if test "${ac_cv_build+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 ac_build_alias=$build_alias
3926 test "x$ac_build_alias" = x &&
3927 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3928 test "x$ac_build_alias" = x &&
3929 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3930 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3931 { (exit 1); exit 1; }; }
3932 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3935 { (exit 1); exit 1; }; }
3938 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3939 echo "${ECHO_T}$ac_cv_build" >&6; }
3940 case $ac_cv_build in
3941 *-*-*) ;;
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3943 echo "$as_me: error: invalid value of canonical build" >&2;}
3944 { (exit 1); exit 1; }; };;
3945 esac
3946 build=$ac_cv_build
3947 ac_save_IFS=$IFS; IFS='-'
3948 set x $ac_cv_build
3949 shift
3950 build_cpu=$1
3951 build_vendor=$2
3952 shift; shift
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3955 build_os=$*
3956 IFS=$ac_save_IFS
3957 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3960 { echo "$as_me:$LINENO: checking host system type" >&5
3961 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3962 if test "${ac_cv_host+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 if test "x$host_alias" = x; then
3966 ac_cv_host=$ac_cv_build
3967 else
3968 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3969 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3970 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3971 { (exit 1); exit 1; }; }
3975 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3976 echo "${ECHO_T}$ac_cv_host" >&6; }
3977 case $ac_cv_host in
3978 *-*-*) ;;
3979 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3980 echo "$as_me: error: invalid value of canonical host" >&2;}
3981 { (exit 1); exit 1; }; };;
3982 esac
3983 host=$ac_cv_host
3984 ac_save_IFS=$IFS; IFS='-'
3985 set x $ac_cv_host
3986 shift
3987 host_cpu=$1
3988 host_vendor=$2
3989 shift; shift
3990 # Remember, the first character of IFS is used to create $*,
3991 # except with old shells:
3992 host_os=$*
3993 IFS=$ac_save_IFS
3994 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3997 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3998 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3999 if test "${lt_cv_path_SED+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 # Loop through the user's path and test for sed and gsed.
4003 # Then use that list of sed's as ones to test for truncation.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for lt_ac_prog in sed gsed; do
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4012 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4014 done
4015 done
4016 done
4017 IFS=$as_save_IFS
4018 lt_ac_max=0
4019 lt_ac_count=0
4020 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4021 # along with /bin/sed that truncates output.
4022 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4023 test ! -f $lt_ac_sed && continue
4024 cat /dev/null > conftest.in
4025 lt_ac_count=0
4026 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4027 # Check for GNU sed and select it if it is found.
4028 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4029 lt_cv_path_SED=$lt_ac_sed
4030 break
4032 while true; do
4033 cat conftest.in conftest.in >conftest.tmp
4034 mv conftest.tmp conftest.in
4035 cp conftest.in conftest.nl
4036 echo >>conftest.nl
4037 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4038 cmp -s conftest.out conftest.nl || break
4039 # 10000 chars as input seems more than enough
4040 test $lt_ac_count -gt 10 && break
4041 lt_ac_count=`expr $lt_ac_count + 1`
4042 if test $lt_ac_count -gt $lt_ac_max; then
4043 lt_ac_max=$lt_ac_count
4044 lt_cv_path_SED=$lt_ac_sed
4046 done
4047 done
4051 SED=$lt_cv_path_SED
4053 { echo "$as_me:$LINENO: result: $SED" >&5
4054 echo "${ECHO_T}$SED" >&6; }
4056 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4057 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4058 if test "${ac_cv_path_GREP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 # Extract the first word of "grep ggrep" to use in msg output
4062 if test -z "$GREP"; then
4063 set dummy grep ggrep; ac_prog_name=$2
4064 if test "${ac_cv_path_GREP+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 ac_path_GREP_found=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_prog in grep ggrep; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4077 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4078 # Check for GNU ac_path_GREP and select it if it is found.
4079 # Check for GNU $ac_path_GREP
4080 case `"$ac_path_GREP" --version 2>&1` in
4081 *GNU*)
4082 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4084 ac_count=0
4085 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4086 while :
4088 cat "conftest.in" "conftest.in" >"conftest.tmp"
4089 mv "conftest.tmp" "conftest.in"
4090 cp "conftest.in" "conftest.nl"
4091 echo 'GREP' >> "conftest.nl"
4092 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094 ac_count=`expr $ac_count + 1`
4095 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4096 # Best one so far, save it but keep looking for a better one
4097 ac_cv_path_GREP="$ac_path_GREP"
4098 ac_path_GREP_max=$ac_count
4100 # 10*(2^10) chars as input seems more than enough
4101 test $ac_count -gt 10 && break
4102 done
4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4104 esac
4107 $ac_path_GREP_found && break 3
4108 done
4109 done
4111 done
4112 IFS=$as_save_IFS
4117 GREP="$ac_cv_path_GREP"
4118 if test -z "$GREP"; then
4119 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121 { (exit 1); exit 1; }; }
4124 else
4125 ac_cv_path_GREP=$GREP
4130 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4131 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4132 GREP="$ac_cv_path_GREP"
4135 { echo "$as_me:$LINENO: checking for egrep" >&5
4136 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4137 if test "${ac_cv_path_EGREP+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4141 then ac_cv_path_EGREP="$GREP -E"
4142 else
4143 # Extract the first word of "egrep" to use in msg output
4144 if test -z "$EGREP"; then
4145 set dummy egrep; ac_prog_name=$2
4146 if test "${ac_cv_path_EGREP+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 ac_path_EGREP_found=false
4150 # Loop through the user's path and test for each of PROGNAME-LIST
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_prog in egrep; do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4159 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4160 # Check for GNU ac_path_EGREP and select it if it is found.
4161 # Check for GNU $ac_path_EGREP
4162 case `"$ac_path_EGREP" --version 2>&1` in
4163 *GNU*)
4164 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4166 ac_count=0
4167 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4168 while :
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
4173 echo 'EGREP' >> "conftest.nl"
4174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176 ac_count=`expr $ac_count + 1`
4177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_EGREP="$ac_path_EGREP"
4180 ac_path_EGREP_max=$ac_count
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4184 done
4185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186 esac
4189 $ac_path_EGREP_found && break 3
4190 done
4191 done
4193 done
4194 IFS=$as_save_IFS
4199 EGREP="$ac_cv_path_EGREP"
4200 if test -z "$EGREP"; then
4201 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4202 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4203 { (exit 1); exit 1; }; }
4206 else
4207 ac_cv_path_EGREP=$EGREP
4213 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4214 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4215 EGREP="$ac_cv_path_EGREP"
4219 # Check whether --with-gnu-ld was given.
4220 if test "${with_gnu_ld+set}" = set; then
4221 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4222 else
4223 with_gnu_ld=no
4226 ac_prog=ld
4227 if test "$GCC" = yes; then
4228 # Check if gcc -print-prog-name=ld gives a path.
4229 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4230 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4231 case $host in
4232 *-*-mingw*)
4233 # gcc leaves a trailing carriage return which upsets mingw
4234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4237 esac
4238 case $ac_prog in
4239 # Accept absolute paths.
4240 [\\/]* | ?:[\\/]*)
4241 re_direlt='/[^/][^/]*/\.\./'
4242 # Canonicalize the pathname of ld
4243 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4244 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4245 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4246 done
4247 test -z "$LD" && LD="$ac_prog"
4250 # If it fails, then pretend we aren't using GCC.
4251 ac_prog=ld
4254 # If it is relative, then search for the first ld in PATH.
4255 with_gnu_ld=unknown
4257 esac
4258 elif test "$with_gnu_ld" = yes; then
4259 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4260 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4261 else
4262 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4263 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4265 if test "${lt_cv_path_LD+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 if test -z "$LD"; then
4269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4270 for ac_dir in $PATH; do
4271 IFS="$lt_save_ifs"
4272 test -z "$ac_dir" && ac_dir=.
4273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4274 lt_cv_path_LD="$ac_dir/$ac_prog"
4275 # Check to see if the program is GNU ld. I'd rather use --version,
4276 # but apparently some variants of GNU ld only accept -v.
4277 # Break only if it was the GNU/non-GNU ld that we prefer.
4278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4279 *GNU* | *'with BFD'*)
4280 test "$with_gnu_ld" != no && break
4283 test "$with_gnu_ld" != yes && break
4285 esac
4287 done
4288 IFS="$lt_save_ifs"
4289 else
4290 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4294 LD="$lt_cv_path_LD"
4295 if test -n "$LD"; then
4296 { echo "$as_me:$LINENO: result: $LD" >&5
4297 echo "${ECHO_T}$LD" >&6; }
4298 else
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4302 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4303 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4304 { (exit 1); exit 1; }; }
4305 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4306 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4307 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4311 case `$LD -v 2>&1 </dev/null` in
4312 *GNU* | *'with BFD'*)
4313 lt_cv_prog_gnu_ld=yes
4316 lt_cv_prog_gnu_ld=no
4318 esac
4320 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4321 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4322 with_gnu_ld=$lt_cv_prog_gnu_ld
4325 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4326 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4327 if test "${lt_cv_ld_reload_flag+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330 lt_cv_ld_reload_flag='-r'
4332 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4333 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4334 reload_flag=$lt_cv_ld_reload_flag
4335 case $reload_flag in
4336 "" | " "*) ;;
4337 *) reload_flag=" $reload_flag" ;;
4338 esac
4339 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4340 case $host_os in
4341 darwin*)
4342 if test "$GCC" = yes; then
4343 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4344 else
4345 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4348 esac
4350 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4351 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4352 if test "${lt_cv_path_NM+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 if test -n "$NM"; then
4356 # Let the user override the test.
4357 lt_cv_path_NM="$NM"
4358 else
4359 lt_nm_to_check="${ac_tool_prefix}nm"
4360 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4361 lt_nm_to_check="$lt_nm_to_check nm"
4363 for lt_tmp_nm in $lt_nm_to_check; do
4364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4365 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4366 IFS="$lt_save_ifs"
4367 test -z "$ac_dir" && ac_dir=.
4368 tmp_nm="$ac_dir/$lt_tmp_nm"
4369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4370 # Check to see if the nm accepts a BSD-compat flag.
4371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4372 # nm: unknown option "B" ignored
4373 # Tru64's nm complains that /dev/null is an invalid object file
4374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4375 */dev/null* | *'Invalid file or object type'*)
4376 lt_cv_path_NM="$tmp_nm -B"
4377 break
4380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4381 */dev/null*)
4382 lt_cv_path_NM="$tmp_nm -p"
4383 break
4386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4387 continue # so that we can try to find one that supports BSD flags
4389 esac
4391 esac
4393 done
4394 IFS="$lt_save_ifs"
4395 done
4396 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4399 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4400 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4401 NM="$lt_cv_path_NM"
4403 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4404 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4405 if test "${lt_cv_deplibs_check_method+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 lt_cv_file_magic_cmd='$MAGIC_CMD'
4409 lt_cv_file_magic_test_file=
4410 lt_cv_deplibs_check_method='unknown'
4411 # Need to set the preceding variable on all platforms that support
4412 # interlibrary dependencies.
4413 # 'none' -- dependencies not supported.
4414 # `unknown' -- same as none, but documents that we really don't know.
4415 # 'pass_all' -- all dependencies passed with no checks.
4416 # 'test_compile' -- check by making test program.
4417 # 'file_magic [[regex]]' -- check by looking for files in library path
4418 # which responds to the $file_magic_cmd with a given extended regex.
4419 # If you have `file' or equivalent on your system and you're not sure
4420 # whether `pass_all' will *always* work, you probably want this one.
4422 case $host_os in
4423 aix[4-9]*)
4424 lt_cv_deplibs_check_method=pass_all
4427 beos*)
4428 lt_cv_deplibs_check_method=pass_all
4431 bsdi[45]*)
4432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4433 lt_cv_file_magic_cmd='/usr/bin/file -L'
4434 lt_cv_file_magic_test_file=/shlib/libc.so
4437 cygwin*)
4438 # func_win32_libid is a shell function defined in ltmain.sh
4439 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4440 lt_cv_file_magic_cmd='func_win32_libid'
4443 mingw* | pw32*)
4444 # Base MSYS/MinGW do not provide the 'file' command needed by
4445 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4446 # unless we find 'file', for example because we are cross-compiling.
4447 if ( file / ) >/dev/null 2>&1; then
4448 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4449 lt_cv_file_magic_cmd='func_win32_libid'
4450 else
4451 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4452 lt_cv_file_magic_cmd='$OBJDUMP -f'
4456 darwin* | rhapsody*)
4457 lt_cv_deplibs_check_method=pass_all
4460 freebsd* | dragonfly*)
4461 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4462 case $host_cpu in
4463 i*86 )
4464 # Not sure whether the presence of OpenBSD here was a mistake.
4465 # Let's accept both of them until this is cleared up.
4466 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4467 lt_cv_file_magic_cmd=/usr/bin/file
4468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4470 esac
4471 else
4472 lt_cv_deplibs_check_method=pass_all
4476 gnu*)
4477 lt_cv_deplibs_check_method=pass_all
4480 hpux10.20* | hpux11*)
4481 lt_cv_file_magic_cmd=/usr/bin/file
4482 case $host_cpu in
4483 ia64*)
4484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4487 hppa*64*)
4488 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]'
4489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4495 esac
4498 interix[3-9]*)
4499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4503 irix5* | irix6* | nonstopux*)
4504 case $LD in
4505 *-32|*"-32 ") libmagic=32-bit;;
4506 *-n32|*"-n32 ") libmagic=N32;;
4507 *-64|*"-64 ") libmagic=64-bit;;
4508 *) libmagic=never-match;;
4509 esac
4510 lt_cv_deplibs_check_method=pass_all
4513 # This must be Linux ELF.
4514 linux* | k*bsd*-gnu)
4515 lt_cv_deplibs_check_method=pass_all
4518 netbsd*)
4519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4521 else
4522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4526 newos6*)
4527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4528 lt_cv_file_magic_cmd=/usr/bin/file
4529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4532 nto-qnx*)
4533 lt_cv_deplibs_check_method=unknown
4536 openbsd*)
4537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4539 else
4540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4544 osf3* | osf4* | osf5*)
4545 lt_cv_deplibs_check_method=pass_all
4548 rdos*)
4549 lt_cv_deplibs_check_method=pass_all
4552 solaris*)
4553 lt_cv_deplibs_check_method=pass_all
4556 sysv4 | sysv4.3*)
4557 case $host_vendor in
4558 motorola)
4559 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]'
4560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4562 ncr)
4563 lt_cv_deplibs_check_method=pass_all
4565 sequent)
4566 lt_cv_file_magic_cmd='/bin/file'
4567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4569 sni)
4570 lt_cv_file_magic_cmd='/bin/file'
4571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4572 lt_cv_file_magic_test_file=/lib/libc.so
4574 siemens)
4575 lt_cv_deplibs_check_method=pass_all
4578 lt_cv_deplibs_check_method=pass_all
4580 esac
4583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4584 lt_cv_deplibs_check_method=pass_all
4586 esac
4589 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4590 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4591 file_magic_cmd=$lt_cv_file_magic_cmd
4592 deplibs_check_method=$lt_cv_deplibs_check_method
4593 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4598 # If no C compiler was specified, use CC.
4599 LTCC=${LTCC-"$CC"}
4601 # If no C compiler flags were specified, use CFLAGS.
4602 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4604 # Allow CC to be a program name with arguments.
4605 compiler=$CC
4608 # Check whether --enable-libtool-lock was given.
4609 if test "${enable_libtool_lock+set}" = set; then
4610 enableval=$enable_libtool_lock;
4613 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4615 # Some flags need to be propagated to the compiler or linker for good
4616 # libtool support.
4617 case $host in
4618 ia64-*-hpux*)
4619 # Find out which ABI we are using.
4620 echo 'int i;' > conftest.$ac_ext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622 (eval $ac_compile) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; then
4626 case `/usr/bin/file conftest.$ac_objext` in
4627 *ELF-32*)
4628 HPUX_IA64_MODE="32"
4630 *ELF-64*)
4631 HPUX_IA64_MODE="64"
4633 esac
4635 rm -rf conftest*
4637 *-*-irix6*)
4638 # Find out which ABI we are using.
4639 echo '#line 4639 "configure"' > conftest.$ac_ext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; then
4645 if test "$lt_cv_prog_gnu_ld" = yes; then
4646 case `/usr/bin/file conftest.$ac_objext` in
4647 *32-bit*)
4648 LD="${LD-ld} -melf32bsmip"
4650 *N32*)
4651 LD="${LD-ld} -melf32bmipn32"
4653 *64-bit*)
4654 LD="${LD-ld} -melf64bmip"
4656 esac
4657 else
4658 case `/usr/bin/file conftest.$ac_objext` in
4659 *32-bit*)
4660 LD="${LD-ld} -32"
4662 *N32*)
4663 LD="${LD-ld} -n32"
4665 *64-bit*)
4666 LD="${LD-ld} -64"
4668 esac
4671 rm -rf conftest*
4674 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4675 s390*-*linux*|sparc*-*linux*)
4676 # Find out which ABI we are using.
4677 echo 'int i;' > conftest.$ac_ext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; then
4683 case `/usr/bin/file conftest.o` in
4684 *32-bit*)
4685 case $host in
4686 x86_64-*kfreebsd*-gnu)
4687 LD="${LD-ld} -m elf_i386_fbsd"
4689 x86_64-*linux*)
4690 LD="${LD-ld} -m elf_i386"
4692 ppc64-*linux*|powerpc64-*linux*)
4693 LD="${LD-ld} -m elf32ppclinux"
4695 s390x-*linux*)
4696 LD="${LD-ld} -m elf_s390"
4698 sparc64-*linux*)
4699 LD="${LD-ld} -m elf32_sparc"
4701 esac
4703 *64-bit*)
4704 case $host in
4705 x86_64-*kfreebsd*-gnu)
4706 LD="${LD-ld} -m elf_x86_64_fbsd"
4708 x86_64-*linux*)
4709 LD="${LD-ld} -m elf_x86_64"
4711 ppc*-*linux*|powerpc*-*linux*)
4712 LD="${LD-ld} -m elf64ppc"
4714 s390*-*linux*)
4715 LD="${LD-ld} -m elf64_s390"
4717 sparc*-*linux*)
4718 LD="${LD-ld} -m elf64_sparc"
4720 esac
4722 esac
4724 rm -rf conftest*
4727 *-*-sco3.2v5*)
4728 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4729 SAVE_CFLAGS="$CFLAGS"
4730 CFLAGS="$CFLAGS -belf"
4731 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4732 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4733 if test "${lt_cv_cc_needs_belf+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736 ac_ext=c
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4750 main ()
4754 return 0;
4756 _ACEOF
4757 rm -f conftest.$ac_objext conftest$ac_exeext
4758 if { (ac_try="$ac_link"
4759 case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_link") 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && {
4771 test -z "$ac_c_werror_flag" ||
4772 test ! -s conftest.err
4773 } && test -s conftest$ac_exeext &&
4774 $as_test_x conftest$ac_exeext; then
4775 lt_cv_cc_needs_belf=yes
4776 else
4777 echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4780 lt_cv_cc_needs_belf=no
4783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4784 conftest$ac_exeext conftest.$ac_ext
4785 ac_ext=c
4786 ac_cpp='$CPP $CPPFLAGS'
4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4793 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4794 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4795 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4796 CFLAGS="$SAVE_CFLAGS"
4799 sparc*-*solaris*)
4800 # Find out which ABI we are using.
4801 echo 'int i;' > conftest.$ac_ext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
4807 case `/usr/bin/file conftest.o` in
4808 *64-bit*)
4809 case $lt_cv_prog_gnu_ld in
4810 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4812 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4813 LD="${LD-ld} -64"
4816 esac
4818 esac
4820 rm -rf conftest*
4824 esac
4826 need_locks="$enable_libtool_lock"
4829 ac_ext=c
4830 ac_cpp='$CPP $CPPFLAGS'
4831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4835 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4836 # On Suns, sometimes $CPP names a directory.
4837 if test -n "$CPP" && test -d "$CPP"; then
4838 CPP=
4840 if test -z "$CPP"; then
4841 if test "${ac_cv_prog_CPP+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844 # Double quotes because CPP needs to be expanded
4845 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4847 ac_preproc_ok=false
4848 for ac_c_preproc_warn_flag in '' yes
4850 # Use a header file that comes with gcc, so configuring glibc
4851 # with a fresh cross-compiler works.
4852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 # <limits.h> exists even on freestanding compilers.
4854 # On the NeXT, cc -E runs the code through the compiler's parser,
4855 # not just through cpp. "Syntax error" is here to catch this case.
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4862 #ifdef __STDC__
4863 # include <limits.h>
4864 #else
4865 # include <assert.h>
4866 #endif
4867 Syntax error
4868 _ACEOF
4869 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 case "(($ac_try" in
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4873 esac
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 ac_status=$?
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 }; then
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 # Broken: fails on valid input.
4891 continue
4894 rm -f conftest.err conftest.$ac_ext
4896 # OK, works on sane cases. Now check whether nonexistent headers
4897 # can be detected and how.
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <ac_nonexistent.h>
4905 _ACEOF
4906 if { (ac_try="$ac_cpp conftest.$ac_ext"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null && {
4919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 }; then
4922 # Broken: success on invalid input.
4923 continue
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 # Passes both tests.
4929 ac_preproc_ok=:
4930 break
4933 rm -f conftest.err conftest.$ac_ext
4935 done
4936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937 rm -f conftest.err conftest.$ac_ext
4938 if $ac_preproc_ok; then
4939 break
4942 done
4943 ac_cv_prog_CPP=$CPP
4946 CPP=$ac_cv_prog_CPP
4947 else
4948 ac_cv_prog_CPP=$CPP
4950 { echo "$as_me:$LINENO: result: $CPP" >&5
4951 echo "${ECHO_T}$CPP" >&6; }
4952 ac_preproc_ok=false
4953 for ac_c_preproc_warn_flag in '' yes
4955 # Use a header file that comes with gcc, so configuring glibc
4956 # with a fresh cross-compiler works.
4957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4958 # <limits.h> exists even on freestanding compilers.
4959 # On the NeXT, cc -E runs the code through the compiler's parser,
4960 # not just through cpp. "Syntax error" is here to catch this case.
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 #ifdef __STDC__
4968 # include <limits.h>
4969 #else
4970 # include <assert.h>
4971 #endif
4972 Syntax error
4973 _ACEOF
4974 if { (ac_try="$ac_cpp conftest.$ac_ext"
4975 case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978 esac
4979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev/null && {
4987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4989 }; then
4991 else
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 # Broken: fails on valid input.
4996 continue
4999 rm -f conftest.err conftest.$ac_ext
5001 # OK, works on sane cases. Now check whether nonexistent headers
5002 # can be detected and how.
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 #include <ac_nonexistent.h>
5010 _ACEOF
5011 if { (ac_try="$ac_cpp conftest.$ac_ext"
5012 case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015 esac
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } >/dev/null && {
5024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 }; then
5027 # Broken: success on invalid input.
5028 continue
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 # Passes both tests.
5034 ac_preproc_ok=:
5035 break
5038 rm -f conftest.err conftest.$ac_ext
5040 done
5041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5042 rm -f conftest.err conftest.$ac_ext
5043 if $ac_preproc_ok; then
5045 else
5046 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5047 See \`config.log' for more details." >&5
5048 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5049 See \`config.log' for more details." >&2;}
5050 { (exit 1); exit 1; }; }
5053 ac_ext=c
5054 ac_cpp='$CPP $CPPFLAGS'
5055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5061 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5062 if test "${ac_cv_header_stdc+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <stdlib.h>
5072 #include <stdarg.h>
5073 #include <string.h>
5074 #include <float.h>
5077 main ()
5081 return 0;
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5086 case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5101 ac_cv_header_stdc=yes
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 ac_cv_header_stdc=no
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 if test $ac_cv_header_stdc = yes; then
5112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h. */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #include <string.h>
5121 _ACEOF
5122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5123 $EGREP "memchr" >/dev/null 2>&1; then
5125 else
5126 ac_cv_header_stdc=no
5128 rm -f conftest*
5132 if test $ac_cv_header_stdc = yes; then
5133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #include <stdlib.h>
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "free" >/dev/null 2>&1; then
5146 else
5147 ac_cv_header_stdc=no
5149 rm -f conftest*
5153 if test $ac_cv_header_stdc = yes; then
5154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5155 if test "$cross_compiling" = yes; then
5157 else
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <ctype.h>
5165 #include <stdlib.h>
5166 #if ((' ' & 0x0FF) == 0x020)
5167 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5168 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5169 #else
5170 # define ISLOWER(c) \
5171 (('a' <= (c) && (c) <= 'i') \
5172 || ('j' <= (c) && (c) <= 'r') \
5173 || ('s' <= (c) && (c) <= 'z'))
5174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5175 #endif
5177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5179 main ()
5181 int i;
5182 for (i = 0; i < 256; i++)
5183 if (XOR (islower (i), ISLOWER (i))
5184 || toupper (i) != TOUPPER (i))
5185 return 2;
5186 return 0;
5188 _ACEOF
5189 rm -f conftest$ac_exeext
5190 if { (ac_try="$ac_link"
5191 case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194 esac
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_link") 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5200 { (case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_try") 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5210 else
5211 echo "$as_me: program exited with status $ac_status" >&5
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ( exit $ac_status )
5216 ac_cv_header_stdc=no
5218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5224 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5225 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5226 if test $ac_cv_header_stdc = yes; then
5228 cat >>confdefs.h <<\_ACEOF
5229 #define STDC_HEADERS 1
5230 _ACEOF
5234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5245 inttypes.h stdint.h unistd.h
5247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h. */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 $ac_includes_default
5261 #include <$ac_header>
5262 _ACEOF
5263 rm -f conftest.$ac_objext
5264 if { (ac_try="$ac_compile"
5265 case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compile") 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && {
5277 test -z "$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 } && test -s conftest.$ac_objext; then
5280 eval "$as_ac_Header=yes"
5281 else
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 eval "$as_ac_Header=no"
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 ac_res=`eval echo '${'$as_ac_Header'}'`
5291 { echo "$as_me:$LINENO: result: $ac_res" >&5
5292 echo "${ECHO_T}$ac_res" >&6; }
5293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5294 cat >>confdefs.h <<_ACEOF
5295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296 _ACEOF
5300 done
5304 for ac_header in dlfcn.h
5306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 ac_res=`eval echo '${'$as_ac_Header'}'`
5314 { echo "$as_me:$LINENO: result: $ac_res" >&5
5315 echo "${ECHO_T}$ac_res" >&6; }
5316 else
5317 # Is the header compilable?
5318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 $ac_includes_default
5327 #include <$ac_header>
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (ac_try="$ac_compile"
5331 case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334 esac
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_c_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5346 ac_header_compiler=yes
5347 else
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_header_compiler=no
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5356 echo "${ECHO_T}$ac_header_compiler" >&6; }
5358 # Is the header present?
5359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <$ac_header>
5368 _ACEOF
5369 if { (ac_try="$ac_cpp conftest.$ac_ext"
5370 case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } >/dev/null && {
5382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 }; then
5385 ac_header_preproc=yes
5386 else
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5390 ac_header_preproc=no
5393 rm -f conftest.err conftest.$ac_ext
5394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6; }
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5399 yes:no: )
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404 ac_header_preproc=yes
5406 no:yes:* )
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5419 ( cat <<\_ASBOX
5420 ## ---------------------------------- ##
5421 ## Report this to christos@astron.com ##
5422 ## ---------------------------------- ##
5423 _ASBOX
5424 ) | sed "s/^/$as_me: WARNING: /" >&2
5426 esac
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 eval "$as_ac_Header=\$ac_header_preproc"
5434 ac_res=`eval echo '${'$as_ac_Header'}'`
5435 { echo "$as_me:$LINENO: result: $ac_res" >&5
5436 echo "${ECHO_T}$ac_res" >&6; }
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442 _ACEOF
5446 done
5448 ac_ext=cpp
5449 ac_cpp='$CXXCPP $CPPFLAGS'
5450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5453 if test -z "$CXX"; then
5454 if test -n "$CCC"; then
5455 CXX=$CCC
5456 else
5457 if test -n "$ac_tool_prefix"; then
5458 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5464 if test "${ac_cv_prog_CXX+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467 if test -n "$CXX"; then
5468 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5487 CXX=$ac_cv_prog_CXX
5488 if test -n "$CXX"; then
5489 { echo "$as_me:$LINENO: result: $CXX" >&5
5490 echo "${ECHO_T}$CXX" >&6; }
5491 else
5492 { echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6; }
5497 test -n "$CXX" && break
5498 done
5500 if test -z "$CXX"; then
5501 ac_ct_CXX=$CXX
5502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy $ac_prog; ac_word=$2
5506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5508 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 if test -n "$ac_ct_CXX"; then
5512 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_ac_ct_CXX="$ac_prog"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5531 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5532 if test -n "$ac_ct_CXX"; then
5533 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5534 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5535 else
5536 { echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6; }
5541 test -n "$ac_ct_CXX" && break
5542 done
5544 if test "x$ac_ct_CXX" = x; then
5545 CXX="g++"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5550 whose name does not start with the host triplet. If you think this
5551 configuration is useful to you, please write to autoconf@gnu.org." >&5
5552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5553 whose name does not start with the host triplet. If you think this
5554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5555 ac_tool_warned=yes ;;
5556 esac
5557 CXX=$ac_ct_CXX
5563 # Provide some information about the compiler.
5564 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5565 ac_compiler=`set X $ac_compile; echo $2`
5566 { (ac_try="$ac_compiler --version >&5"
5567 case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compiler --version >&5") 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }
5576 { (ac_try="$ac_compiler -v >&5"
5577 case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_compiler -v >&5") 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }
5586 { (ac_try="$ac_compiler -V >&5"
5587 case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_compiler -V >&5") 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }
5597 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5598 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5599 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5610 main ()
5612 #ifndef __GNUC__
5613 choke me
5614 #endif
5617 return 0;
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (ac_try="$ac_compile"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && {
5634 test -z "$ac_cxx_werror_flag" ||
5635 test ! -s conftest.err
5636 } && test -s conftest.$ac_objext; then
5637 ac_compiler_gnu=yes
5638 else
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_compiler_gnu=no
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5649 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5650 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5651 GXX=`test $ac_compiler_gnu = yes && echo yes`
5652 ac_test_CXXFLAGS=${CXXFLAGS+set}
5653 ac_save_CXXFLAGS=$CXXFLAGS
5654 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5655 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5656 if test "${ac_cv_prog_cxx_g+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5660 ac_cxx_werror_flag=yes
5661 ac_cv_prog_cxx_g=no
5662 CXXFLAGS="-g"
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5671 main ()
5675 return 0;
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_cxx_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_cv_prog_cxx_g=yes
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 CXXFLAGS=""
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5709 main ()
5713 return 0;
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && {
5730 test -z "$ac_cxx_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5739 CXXFLAGS="-g"
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5748 main ()
5752 return 0;
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5763 ac_status=$?
5764 grep -v '^ *+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_cxx_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
5772 ac_cv_prog_cxx_g=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5789 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5790 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5791 if test "$ac_test_CXXFLAGS" = set; then
5792 CXXFLAGS=$ac_save_CXXFLAGS
5793 elif test $ac_cv_prog_cxx_g = yes; then
5794 if test "$GXX" = yes; then
5795 CXXFLAGS="-g -O2"
5796 else
5797 CXXFLAGS="-g"
5799 else
5800 if test "$GXX" = yes; then
5801 CXXFLAGS="-O2"
5802 else
5803 CXXFLAGS=
5806 ac_ext=cpp
5807 ac_cpp='$CXXCPP $CPPFLAGS'
5808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812 depcc="$CXX" am_compiler_list=
5814 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5815 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5816 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5820 # We make a subdir and do the tests there. Otherwise we can end up
5821 # making bogus files that we don't know about and never remove. For
5822 # instance it was reported that on HP-UX the gcc test will end up
5823 # making a dummy file named `D' -- because `-MD' means `put the output
5824 # in D'.
5825 mkdir conftest.dir
5826 # Copy depcomp to subdir because otherwise we won't find it if we're
5827 # using a relative directory.
5828 cp "$am_depcomp" conftest.dir
5829 cd conftest.dir
5830 # We will build objects and dependencies in a subdirectory because
5831 # it helps to detect inapplicable dependency modes. For instance
5832 # both Tru64's cc and ICC support -MD to output dependencies as a
5833 # side effect of compilation, but ICC will put the dependencies in
5834 # the current directory while Tru64 will put them in the object
5835 # directory.
5836 mkdir sub
5838 am_cv_CXX_dependencies_compiler_type=none
5839 if test "$am_compiler_list" = ""; then
5840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5842 for depmode in $am_compiler_list; do
5843 # Setup a source with many dependencies, because some compilers
5844 # like to wrap large dependency lists on column 80 (with \), and
5845 # we should not choose a depcomp mode which is confused by this.
5847 # We need to recreate these files for each test, as the compiler may
5848 # overwrite some of them when testing with obscure command lines.
5849 # This happens at least with the AIX C compiler.
5850 : > sub/conftest.c
5851 for i in 1 2 3 4 5 6; do
5852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5854 # Solaris 8's {/usr,}/bin/sh.
5855 touch sub/conftst$i.h
5856 done
5857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5859 case $depmode in
5860 nosideeffect)
5861 # after this tag, mechanisms are not by side-effect, so they'll
5862 # only be used when explicitly requested
5863 if test "x$enable_dependency_tracking" = xyes; then
5864 continue
5865 else
5866 break
5869 none) break ;;
5870 esac
5871 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5872 # mode. It turns out that the SunPro C++ compiler does not properly
5873 # handle `-M -o', and we need to detect this.
5874 if depmode=$depmode \
5875 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5876 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5877 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5878 >/dev/null 2>conftest.err &&
5879 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5881 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5883 # icc doesn't choke on unknown options, it will just issue warnings
5884 # or remarks (even with -Werror). So we grep stderr for any message
5885 # that says an option was ignored or not supported.
5886 # When given -MP, icc 7.0 and 7.1 complain thusly:
5887 # icc: Command line warning: ignoring option '-M'; no argument required
5888 # The diagnosis changed in icc 8.0:
5889 # icc: Command line remark: option '-MP' not supported
5890 if (grep 'ignoring option' conftest.err ||
5891 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5892 am_cv_CXX_dependencies_compiler_type=$depmode
5893 break
5896 done
5898 cd ..
5899 rm -rf conftest.dir
5900 else
5901 am_cv_CXX_dependencies_compiler_type=none
5905 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5906 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5907 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5910 test "x$enable_dependency_tracking" != xno \
5911 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5912 am__fastdepCXX_TRUE=
5913 am__fastdepCXX_FALSE='#'
5914 else
5915 am__fastdepCXX_TRUE='#'
5916 am__fastdepCXX_FALSE=
5922 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5923 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5924 (test "X$CXX" != "Xg++"))) ; then
5925 ac_ext=cpp
5926 ac_cpp='$CXXCPP $CPPFLAGS'
5927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5930 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5931 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5932 if test -z "$CXXCPP"; then
5933 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 # Double quotes because CXXCPP needs to be expanded
5937 for CXXCPP in "$CXX -E" "/lib/cpp"
5939 ac_preproc_ok=false
5940 for ac_cxx_preproc_warn_flag in '' yes
5942 # Use a header file that comes with gcc, so configuring glibc
5943 # with a fresh cross-compiler works.
5944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5945 # <limits.h> exists even on freestanding compilers.
5946 # On the NeXT, cc -E runs the code through the compiler's parser,
5947 # not just through cpp. "Syntax error" is here to catch this case.
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #ifdef __STDC__
5955 # include <limits.h>
5956 #else
5957 # include <assert.h>
5958 #endif
5959 Syntax error
5960 _ACEOF
5961 if { (ac_try="$ac_cpp conftest.$ac_ext"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } >/dev/null && {
5974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5975 test ! -s conftest.err
5976 }; then
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 # Broken: fails on valid input.
5983 continue
5986 rm -f conftest.err conftest.$ac_ext
5988 # OK, works on sane cases. Now check whether nonexistent headers
5989 # can be detected and how.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <ac_nonexistent.h>
5997 _ACEOF
5998 if { (ac_try="$ac_cpp conftest.$ac_ext"
5999 case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002 esac
6003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6005 ac_status=$?
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } >/dev/null && {
6011 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6012 test ! -s conftest.err
6013 }; then
6014 # Broken: success on invalid input.
6015 continue
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6020 # Passes both tests.
6021 ac_preproc_ok=:
6022 break
6025 rm -f conftest.err conftest.$ac_ext
6027 done
6028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6029 rm -f conftest.err conftest.$ac_ext
6030 if $ac_preproc_ok; then
6031 break
6034 done
6035 ac_cv_prog_CXXCPP=$CXXCPP
6038 CXXCPP=$ac_cv_prog_CXXCPP
6039 else
6040 ac_cv_prog_CXXCPP=$CXXCPP
6042 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6043 echo "${ECHO_T}$CXXCPP" >&6; }
6044 ac_preproc_ok=false
6045 for ac_cxx_preproc_warn_flag in '' yes
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #ifdef __STDC__
6060 # include <limits.h>
6061 #else
6062 # include <assert.h>
6063 #endif
6064 Syntax error
6065 _ACEOF
6066 if { (ac_try="$ac_cpp conftest.$ac_ext"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } >/dev/null && {
6079 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6080 test ! -s conftest.err
6081 }; then
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 # Broken: fails on valid input.
6088 continue
6091 rm -f conftest.err conftest.$ac_ext
6093 # OK, works on sane cases. Now check whether nonexistent headers
6094 # can be detected and how.
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 #include <ac_nonexistent.h>
6102 _ACEOF
6103 if { (ac_try="$ac_cpp conftest.$ac_ext"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6110 ac_status=$?
6111 grep -v '^ *+' conftest.er1 >conftest.err
6112 rm -f conftest.er1
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } >/dev/null && {
6116 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6117 test ! -s conftest.err
6118 }; then
6119 # Broken: success on invalid input.
6120 continue
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 # Passes both tests.
6126 ac_preproc_ok=:
6127 break
6130 rm -f conftest.err conftest.$ac_ext
6132 done
6133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6134 rm -f conftest.err conftest.$ac_ext
6135 if $ac_preproc_ok; then
6137 else
6138 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6139 See \`config.log' for more details." >&5
6140 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6141 See \`config.log' for more details." >&2;}
6142 { (exit 1); exit 1; }; }
6145 ac_ext=cpp
6146 ac_cpp='$CXXCPP $CPPFLAGS'
6147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6154 ac_ext=f
6155 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6156 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6158 if test -n "$ac_tool_prefix"; then
6159 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
6161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165 if test "${ac_cv_prog_F77+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 if test -n "$F77"; then
6169 ac_cv_prog_F77="$F77" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6182 done
6183 done
6184 IFS=$as_save_IFS
6188 F77=$ac_cv_prog_F77
6189 if test -n "$F77"; then
6190 { echo "$as_me:$LINENO: result: $F77" >&5
6191 echo "${ECHO_T}$F77" >&6; }
6192 else
6193 { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6198 test -n "$F77" && break
6199 done
6201 if test -z "$F77"; then
6202 ac_ct_F77=$F77
6203 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
6205 # Extract the first word of "$ac_prog", so it can be a program name with args.
6206 set dummy $ac_prog; ac_word=$2
6207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6209 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 if test -n "$ac_ct_F77"; then
6213 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_ac_ct_F77="$ac_prog"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6226 done
6227 done
6228 IFS=$as_save_IFS
6232 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6233 if test -n "$ac_ct_F77"; then
6234 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6235 echo "${ECHO_T}$ac_ct_F77" >&6; }
6236 else
6237 { echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6; }
6242 test -n "$ac_ct_F77" && break
6243 done
6245 if test "x$ac_ct_F77" = x; then
6246 F77=""
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251 whose name does not start with the host triplet. If you think this
6252 configuration is useful to you, please write to autoconf@gnu.org." >&5
6253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet. If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 F77=$ac_ct_F77
6263 # Provide some information about the compiler.
6264 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6265 ac_compiler=`set X $ac_compile; echo $2`
6266 { (ac_try="$ac_compiler --version >&5"
6267 case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compiler --version >&5") 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }
6276 { (ac_try="$ac_compiler -v >&5"
6277 case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compiler -v >&5") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286 { (ac_try="$ac_compiler -V >&5"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compiler -V >&5") 2>&5
6293 ac_status=$?
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }
6296 rm -f a.out
6298 # If we don't use `.F' as extension, the preprocessor is not run on the
6299 # input file. (Note that this only needs to work for GNU compilers.)
6300 ac_save_ext=$ac_ext
6301 ac_ext=F
6302 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6303 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6304 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 program main
6309 #ifndef __GNUC__
6310 choke me
6311 #endif
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (ac_try="$ac_compile"
6317 case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320 esac
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322 (eval "$ac_compile") 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } && {
6329 test -z "$ac_f77_werror_flag" ||
6330 test ! -s conftest.err
6331 } && test -s conftest.$ac_objext; then
6332 ac_compiler_gnu=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 ac_compiler_gnu=no
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6344 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6345 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6346 ac_ext=$ac_save_ext
6347 ac_test_FFLAGS=${FFLAGS+set}
6348 ac_save_FFLAGS=$FFLAGS
6349 FFLAGS=
6350 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6351 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6352 if test "${ac_cv_prog_f77_g+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 FFLAGS=-g
6356 cat >conftest.$ac_ext <<_ACEOF
6357 program main
6360 _ACEOF
6361 rm -f conftest.$ac_objext
6362 if { (ac_try="$ac_compile"
6363 case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366 esac
6367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368 (eval "$ac_compile") 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && {
6375 test -z "$ac_f77_werror_flag" ||
6376 test ! -s conftest.err
6377 } && test -s conftest.$ac_objext; then
6378 ac_cv_prog_f77_g=yes
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 ac_cv_prog_f77_g=no
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6390 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6391 if test "$ac_test_FFLAGS" = set; then
6392 FFLAGS=$ac_save_FFLAGS
6393 elif test $ac_cv_prog_f77_g = yes; then
6394 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6395 FFLAGS="-g -O2"
6396 else
6397 FFLAGS="-g"
6399 else
6400 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6401 FFLAGS="-O2"
6402 else
6403 FFLAGS=
6407 G77=`test $ac_compiler_gnu = yes && echo yes`
6408 ac_ext=c
6409 ac_cpp='$CPP $CPPFLAGS'
6410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6416 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6417 # find the maximum length of command line arguments
6418 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6419 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6420 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6424 teststring="ABCD"
6426 case $build_os in
6427 msdosdjgpp*)
6428 # On DJGPP, this test can blow up pretty badly due to problems in libc
6429 # (any single argument exceeding 2000 bytes causes a buffer overrun
6430 # during glob expansion). Even if it were fixed, the result of this
6431 # check would be larger than it should be.
6432 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6435 gnu*)
6436 # Under GNU Hurd, this test is not required because there is
6437 # no limit to the length of command line arguments.
6438 # Libtool will interpret -1 as no limit whatsoever
6439 lt_cv_sys_max_cmd_len=-1;
6442 cygwin* | mingw*)
6443 # On Win9x/ME, this test blows up -- it succeeds, but takes
6444 # about 5 minutes as the teststring grows exponentially.
6445 # Worse, since 9x/ME are not pre-emptively multitasking,
6446 # you end up with a "frozen" computer, even though with patience
6447 # the test eventually succeeds (with a max line length of 256k).
6448 # Instead, let's just punt: use the minimum linelength reported by
6449 # all of the supported platforms: 8192 (on NT/2K/XP).
6450 lt_cv_sys_max_cmd_len=8192;
6453 amigaos*)
6454 # On AmigaOS with pdksh, this test takes hours, literally.
6455 # So we just punt and use a minimum line length of 8192.
6456 lt_cv_sys_max_cmd_len=8192;
6459 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6460 # This has been around since 386BSD, at least. Likely further.
6461 if test -x /sbin/sysctl; then
6462 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6463 elif test -x /usr/sbin/sysctl; then
6464 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6465 else
6466 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6468 # And add a safety zone
6469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6473 interix*)
6474 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6475 lt_cv_sys_max_cmd_len=196608
6478 osf*)
6479 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6480 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6481 # nice to cause kernel panics so lets avoid the loop below.
6482 # First set a reasonable default.
6483 lt_cv_sys_max_cmd_len=16384
6485 if test -x /sbin/sysconfig; then
6486 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6487 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6488 esac
6491 sco3.2v5*)
6492 lt_cv_sys_max_cmd_len=102400
6494 sysv5* | sco5v6* | sysv4.2uw2*)
6495 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6496 if test -n "$kargmax"; then
6497 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6498 else
6499 lt_cv_sys_max_cmd_len=32768
6503 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6504 if test -n "$lt_cv_sys_max_cmd_len"; then
6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6507 else
6508 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6509 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6510 = "XX$teststring") >/dev/null 2>&1 &&
6511 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6512 lt_cv_sys_max_cmd_len=$new_result &&
6513 test $i != 17 # 1/2 MB should be enough
6515 i=`expr $i + 1`
6516 teststring=$teststring$teststring
6517 done
6518 teststring=
6519 # Add a significant safety factor because C++ compilers can tack on massive
6520 # amounts of additional arguments before passing them to the linker.
6521 # It appears as though 1/2 is a usable value.
6522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6525 esac
6529 if test -n $lt_cv_sys_max_cmd_len ; then
6530 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6531 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6532 else
6533 { echo "$as_me:$LINENO: result: none" >&5
6534 echo "${ECHO_T}none" >&6; }
6541 # Check for command to grab the raw symbol name followed by C symbol from nm.
6542 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6543 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6544 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6548 # These are sane defaults that work on at least a few old systems.
6549 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6551 # Character class describing NM global symbol codes.
6552 symcode='[BCDEGRST]'
6554 # Regexp to match symbols that can be accessed directly from C.
6555 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6557 # Transform an extracted symbol line into a proper C declaration
6558 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6560 # Transform an extracted symbol line into symbol name and symbol address
6561 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'"
6563 # Define system-specific variables.
6564 case $host_os in
6565 aix*)
6566 symcode='[BCDT]'
6568 cygwin* | mingw* | pw32*)
6569 symcode='[ABCDGISTW]'
6571 hpux*) # Its linker distinguishes data from code symbols
6572 if test "$host_cpu" = ia64; then
6573 symcode='[ABCDEGRST]'
6575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6576 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'"
6578 linux* | k*bsd*-gnu)
6579 if test "$host_cpu" = ia64; then
6580 symcode='[ABCDGIRSTW]'
6581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6582 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'"
6585 irix* | nonstopux*)
6586 symcode='[BCDEGRST]'
6588 osf*)
6589 symcode='[BCDEGQRST]'
6591 solaris*)
6592 symcode='[BDRT]'
6594 sco3.2v5*)
6595 symcode='[DT]'
6597 sysv4.2uw2*)
6598 symcode='[DT]'
6600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6601 symcode='[ABDT]'
6603 sysv4)
6604 symcode='[DFNSTU]'
6606 esac
6608 # Handle CRLF in mingw tool chain
6609 opt_cr=
6610 case $build_os in
6611 mingw*)
6612 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6614 esac
6616 # If we're using GNU nm, then use its standard symbol codes.
6617 case `$NM -V 2>&1` in
6618 *GNU* | *'with BFD'*)
6619 symcode='[ABCDGIRSTW]' ;;
6620 esac
6622 # Try without a prefix undercore, then with it.
6623 for ac_symprfx in "" "_"; do
6625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6626 symxfrm="\\1 $ac_symprfx\\2 \\2"
6628 # Write the raw and C identifiers.
6629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6631 # Check to see that the pipe works correctly.
6632 pipe_works=no
6634 rm -f conftest*
6635 cat > conftest.$ac_ext <<EOF
6636 #ifdef __cplusplus
6637 extern "C" {
6638 #endif
6639 char nm_test_var;
6640 void nm_test_func(){}
6641 #ifdef __cplusplus
6643 #endif
6644 int main(){nm_test_var='a';nm_test_func();return(0);}
6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648 (eval $ac_compile) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; then
6652 # Now try to grab the symbols.
6653 nlist=conftest.nm
6654 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6655 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } && test -s "$nlist"; then
6659 # Try sorting and uniquifying the output.
6660 if sort "$nlist" | uniq > "$nlist"T; then
6661 mv -f "$nlist"T "$nlist"
6662 else
6663 rm -f "$nlist"T
6666 # Make sure that we snagged all the symbols we need.
6667 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6668 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6669 cat <<EOF > conftest.$ac_ext
6670 #ifdef __cplusplus
6671 extern "C" {
6672 #endif
6675 # Now generate the symbol file.
6676 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6678 cat <<EOF >> conftest.$ac_ext
6679 #if defined (__STDC__) && __STDC__
6680 # define lt_ptr_t void *
6681 #else
6682 # define lt_ptr_t char *
6683 # define const
6684 #endif
6686 /* The mapping between symbol names and symbols. */
6687 const struct {
6688 const char *name;
6689 lt_ptr_t address;
6691 lt_preloaded_symbols[] =
6694 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6695 cat <<\EOF >> conftest.$ac_ext
6696 {0, (lt_ptr_t) 0}
6699 #ifdef __cplusplus
6701 #endif
6703 # Now try linking the two files.
6704 mv conftest.$ac_objext conftstm.$ac_objext
6705 lt_save_LIBS="$LIBS"
6706 lt_save_CFLAGS="$CFLAGS"
6707 LIBS="conftstm.$ac_objext"
6708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6710 (eval $ac_link) 2>&5
6711 ac_status=$?
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6714 pipe_works=yes
6716 LIBS="$lt_save_LIBS"
6717 CFLAGS="$lt_save_CFLAGS"
6718 else
6719 echo "cannot find nm_test_func in $nlist" >&5
6721 else
6722 echo "cannot find nm_test_var in $nlist" >&5
6724 else
6725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6727 else
6728 echo "$progname: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6731 rm -rf conftest* conftst*
6733 # Do not use the global_symbol_pipe unless it works.
6734 if test "$pipe_works" = yes; then
6735 break
6736 else
6737 lt_cv_sys_global_symbol_pipe=
6739 done
6743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6744 lt_cv_sys_global_symbol_to_cdecl=
6746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6747 { echo "$as_me:$LINENO: result: failed" >&5
6748 echo "${ECHO_T}failed" >&6; }
6749 else
6750 { echo "$as_me:$LINENO: result: ok" >&5
6751 echo "${ECHO_T}ok" >&6; }
6754 { echo "$as_me:$LINENO: checking for objdir" >&5
6755 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6756 if test "${lt_cv_objdir+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 else
6759 rm -f .libs 2>/dev/null
6760 mkdir .libs 2>/dev/null
6761 if test -d .libs; then
6762 lt_cv_objdir=.libs
6763 else
6764 # MS-DOS does not allow filenames that begin with a dot.
6765 lt_cv_objdir=_libs
6767 rmdir .libs 2>/dev/null
6769 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6770 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6771 objdir=$lt_cv_objdir
6777 case $host_os in
6778 aix3*)
6779 # AIX sometimes has problems with the GCC collect2 program. For some
6780 # reason, if we set the COLLECT_NAMES environment variable, the problems
6781 # vanish in a puff of smoke.
6782 if test "X${COLLECT_NAMES+set}" != Xset; then
6783 COLLECT_NAMES=
6784 export COLLECT_NAMES
6787 esac
6789 # Sed substitution that helps us do robust quoting. It backslashifies
6790 # metacharacters that are still active within double-quoted strings.
6791 Xsed='sed -e 1s/^X//'
6792 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6794 # Same as above, but do not quote variable references.
6795 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6797 # Sed substitution to delay expansion of an escaped shell variable in a
6798 # double_quote_subst'ed string.
6799 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6801 # Sed substitution to avoid accidental globbing in evaled expressions
6802 no_glob_subst='s/\*/\\\*/g'
6804 # Constants:
6805 rm="rm -f"
6807 # Global variables:
6808 default_ofile=libtool
6809 can_build_shared=yes
6811 # All known linkers require a `.a' archive for static linking (except MSVC,
6812 # which needs '.lib').
6813 libext=a
6814 ltmain="$ac_aux_dir/ltmain.sh"
6815 ofile="$default_ofile"
6816 with_gnu_ld="$lt_cv_prog_gnu_ld"
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}ar; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_prog_AR+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 if test -n "$AR"; then
6827 ac_cv_prog_AR="$AR" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_AR="${ac_tool_prefix}ar"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6840 done
6841 done
6842 IFS=$as_save_IFS
6846 AR=$ac_cv_prog_AR
6847 if test -n "$AR"; then
6848 { echo "$as_me:$LINENO: result: $AR" >&5
6849 echo "${ECHO_T}$AR" >&6; }
6850 else
6851 { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6857 if test -z "$ac_cv_prog_AR"; then
6858 ac_ct_AR=$AR
6859 # Extract the first word of "ar", so it can be a program name with args.
6860 set dummy ar; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 if test -n "$ac_ct_AR"; then
6867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_AR="ar"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6880 done
6881 done
6882 IFS=$as_save_IFS
6886 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6887 if test -n "$ac_ct_AR"; then
6888 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6889 echo "${ECHO_T}$ac_ct_AR" >&6; }
6890 else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6895 if test "x$ac_ct_AR" = x; then
6896 AR="false"
6897 else
6898 case $cross_compiling:$ac_tool_warned in
6899 yes:)
6900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6901 whose name does not start with the host triplet. If you think this
6902 configuration is useful to you, please write to autoconf@gnu.org." >&5
6903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6904 whose name does not start with the host triplet. If you think this
6905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6906 ac_tool_warned=yes ;;
6907 esac
6908 AR=$ac_ct_AR
6910 else
6911 AR="$ac_cv_prog_AR"
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6919 if test "${ac_cv_prog_RANLIB+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 if test -n "$RANLIB"; then
6923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6936 done
6937 done
6938 IFS=$as_save_IFS
6942 RANLIB=$ac_cv_prog_RANLIB
6943 if test -n "$RANLIB"; then
6944 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6945 echo "${ECHO_T}$RANLIB" >&6; }
6946 else
6947 { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6953 if test -z "$ac_cv_prog_RANLIB"; then
6954 ac_ct_RANLIB=$RANLIB
6955 # Extract the first word of "ranlib", so it can be a program name with args.
6956 set dummy ranlib; ac_word=$2
6957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 if test -n "$ac_ct_RANLIB"; then
6963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_prog_ac_ct_RANLIB="ranlib"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6976 done
6977 done
6978 IFS=$as_save_IFS
6982 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6983 if test -n "$ac_ct_RANLIB"; then
6984 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6985 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6986 else
6987 { echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6; }
6991 if test "x$ac_ct_RANLIB" = x; then
6992 RANLIB=":"
6993 else
6994 case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6997 whose name does not start with the host triplet. If you think this
6998 configuration is useful to you, please write to autoconf@gnu.org." >&5
6999 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7000 whose name does not start with the host triplet. If you think this
7001 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7002 ac_tool_warned=yes ;;
7003 esac
7004 RANLIB=$ac_ct_RANLIB
7006 else
7007 RANLIB="$ac_cv_prog_RANLIB"
7010 if test -n "$ac_tool_prefix"; then
7011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7012 set dummy ${ac_tool_prefix}strip; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_prog_STRIP+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 if test -n "$STRIP"; then
7019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7032 done
7033 done
7034 IFS=$as_save_IFS
7038 STRIP=$ac_cv_prog_STRIP
7039 if test -n "$STRIP"; then
7040 { echo "$as_me:$LINENO: result: $STRIP" >&5
7041 echo "${ECHO_T}$STRIP" >&6; }
7042 else
7043 { echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6; }
7049 if test -z "$ac_cv_prog_STRIP"; then
7050 ac_ct_STRIP=$STRIP
7051 # Extract the first word of "strip", so it can be a program name with args.
7052 set dummy strip; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058 if test -n "$ac_ct_STRIP"; then
7059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7060 else
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 for as_dir in $PATH
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_prog_ac_ct_STRIP="strip"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7072 done
7073 done
7074 IFS=$as_save_IFS
7078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7079 if test -n "$ac_ct_STRIP"; then
7080 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7081 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7082 else
7083 { echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6; }
7087 if test "x$ac_ct_STRIP" = x; then
7088 STRIP=":"
7089 else
7090 case $cross_compiling:$ac_tool_warned in
7091 yes:)
7092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7093 whose name does not start with the host triplet. If you think this
7094 configuration is useful to you, please write to autoconf@gnu.org." >&5
7095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7096 whose name does not start with the host triplet. If you think this
7097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7098 ac_tool_warned=yes ;;
7099 esac
7100 STRIP=$ac_ct_STRIP
7102 else
7103 STRIP="$ac_cv_prog_STRIP"
7107 old_CC="$CC"
7108 old_CFLAGS="$CFLAGS"
7110 # Set sane defaults for various variables
7111 test -z "$AR" && AR=ar
7112 test -z "$AR_FLAGS" && AR_FLAGS=cru
7113 test -z "$AS" && AS=as
7114 test -z "$CC" && CC=cc
7115 test -z "$LTCC" && LTCC=$CC
7116 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7117 test -z "$DLLTOOL" && DLLTOOL=dlltool
7118 test -z "$LD" && LD=ld
7119 test -z "$LN_S" && LN_S="ln -s"
7120 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7121 test -z "$NM" && NM=nm
7122 test -z "$SED" && SED=sed
7123 test -z "$OBJDUMP" && OBJDUMP=objdump
7124 test -z "$RANLIB" && RANLIB=:
7125 test -z "$STRIP" && STRIP=:
7126 test -z "$ac_objext" && ac_objext=o
7128 # Determine commands to create old-style static archives.
7129 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7130 old_postinstall_cmds='chmod 644 $oldlib'
7131 old_postuninstall_cmds=
7133 if test -n "$RANLIB"; then
7134 case $host_os in
7135 openbsd*)
7136 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7139 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7141 esac
7142 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7145 for cc_temp in $compiler""; do
7146 case $cc_temp in
7147 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7148 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7149 \-*) ;;
7150 *) break;;
7151 esac
7152 done
7153 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7156 # Only perform the check for file, if the check method requires it
7157 case $deplibs_check_method in
7158 file_magic*)
7159 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7160 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7161 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 case $MAGIC_CMD in
7166 [\\/*] | ?:[\\/]*)
7167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7170 lt_save_MAGIC_CMD="$MAGIC_CMD"
7171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7173 for ac_dir in $ac_dummy; do
7174 IFS="$lt_save_ifs"
7175 test -z "$ac_dir" && ac_dir=.
7176 if test -f $ac_dir/${ac_tool_prefix}file; then
7177 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7178 if test -n "$file_magic_test_file"; then
7179 case $deplibs_check_method in
7180 "file_magic "*)
7181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7184 $EGREP "$file_magic_regex" > /dev/null; then
7186 else
7187 cat <<EOF 1>&2
7189 *** Warning: the command libtool uses to detect shared libraries,
7190 *** $file_magic_cmd, produces output that libtool cannot recognize.
7191 *** The result is that libtool may fail to recognize shared libraries
7192 *** as such. This will affect the creation of libtool libraries that
7193 *** depend on shared libraries, but programs linked with such libtool
7194 *** libraries will work regardless of this problem. Nevertheless, you
7195 *** may want to report the problem to your system manager and/or to
7196 *** bug-libtool@gnu.org
7199 fi ;;
7200 esac
7202 break
7204 done
7205 IFS="$lt_save_ifs"
7206 MAGIC_CMD="$lt_save_MAGIC_CMD"
7208 esac
7211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212 if test -n "$MAGIC_CMD"; then
7213 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7214 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7215 else
7216 { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7220 if test -z "$lt_cv_path_MAGIC_CMD"; then
7221 if test -n "$ac_tool_prefix"; then
7222 { echo "$as_me:$LINENO: checking for file" >&5
7223 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227 case $MAGIC_CMD in
7228 [\\/*] | ?:[\\/]*)
7229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7232 lt_save_MAGIC_CMD="$MAGIC_CMD"
7233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7235 for ac_dir in $ac_dummy; do
7236 IFS="$lt_save_ifs"
7237 test -z "$ac_dir" && ac_dir=.
7238 if test -f $ac_dir/file; then
7239 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7240 if test -n "$file_magic_test_file"; then
7241 case $deplibs_check_method in
7242 "file_magic "*)
7243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7246 $EGREP "$file_magic_regex" > /dev/null; then
7248 else
7249 cat <<EOF 1>&2
7251 *** Warning: the command libtool uses to detect shared libraries,
7252 *** $file_magic_cmd, produces output that libtool cannot recognize.
7253 *** The result is that libtool may fail to recognize shared libraries
7254 *** as such. This will affect the creation of libtool libraries that
7255 *** depend on shared libraries, but programs linked with such libtool
7256 *** libraries will work regardless of this problem. Nevertheless, you
7257 *** may want to report the problem to your system manager and/or to
7258 *** bug-libtool@gnu.org
7261 fi ;;
7262 esac
7264 break
7266 done
7267 IFS="$lt_save_ifs"
7268 MAGIC_CMD="$lt_save_MAGIC_CMD"
7270 esac
7273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7274 if test -n "$MAGIC_CMD"; then
7275 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7277 else
7278 { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7282 else
7283 MAGIC_CMD=:
7289 esac
7292 case $host_os in
7293 rhapsody* | darwin*)
7294 if test -n "$ac_tool_prefix"; then
7295 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7296 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 if test -n "$DSYMUTIL"; then
7303 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7316 done
7317 done
7318 IFS=$as_save_IFS
7322 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7323 if test -n "$DSYMUTIL"; then
7324 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7325 echo "${ECHO_T}$DSYMUTIL" >&6; }
7326 else
7327 { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7333 if test -z "$ac_cv_prog_DSYMUTIL"; then
7334 ac_ct_DSYMUTIL=$DSYMUTIL
7335 # Extract the first word of "dsymutil", so it can be a program name with args.
7336 set dummy dsymutil; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 if test -n "$ac_ct_DSYMUTIL"; then
7343 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7356 done
7357 done
7358 IFS=$as_save_IFS
7362 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7363 if test -n "$ac_ct_DSYMUTIL"; then
7364 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7365 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7366 else
7367 { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7371 if test "x$ac_ct_DSYMUTIL" = x; then
7372 DSYMUTIL=":"
7373 else
7374 case $cross_compiling:$ac_tool_warned in
7375 yes:)
7376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7377 whose name does not start with the host triplet. If you think this
7378 configuration is useful to you, please write to autoconf@gnu.org." >&5
7379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7380 whose name does not start with the host triplet. If you think this
7381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384 DSYMUTIL=$ac_ct_DSYMUTIL
7386 else
7387 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7390 if test -n "$ac_tool_prefix"; then
7391 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7392 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398 if test -n "$NMEDIT"; then
7399 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7412 done
7413 done
7414 IFS=$as_save_IFS
7418 NMEDIT=$ac_cv_prog_NMEDIT
7419 if test -n "$NMEDIT"; then
7420 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7421 echo "${ECHO_T}$NMEDIT" >&6; }
7422 else
7423 { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7429 if test -z "$ac_cv_prog_NMEDIT"; then
7430 ac_ct_NMEDIT=$NMEDIT
7431 # Extract the first word of "nmedit", so it can be a program name with args.
7432 set dummy nmedit; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 if test -n "$ac_ct_NMEDIT"; then
7439 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7452 done
7453 done
7454 IFS=$as_save_IFS
7458 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7459 if test -n "$ac_ct_NMEDIT"; then
7460 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7461 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7462 else
7463 { echo "$as_me:$LINENO: result: no" >&5
7464 echo "${ECHO_T}no" >&6; }
7467 if test "x$ac_ct_NMEDIT" = x; then
7468 NMEDIT=":"
7469 else
7470 case $cross_compiling:$ac_tool_warned in
7471 yes:)
7472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7473 whose name does not start with the host triplet. If you think this
7474 configuration is useful to you, please write to autoconf@gnu.org." >&5
7475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7476 whose name does not start with the host triplet. If you think this
7477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7478 ac_tool_warned=yes ;;
7479 esac
7480 NMEDIT=$ac_ct_NMEDIT
7482 else
7483 NMEDIT="$ac_cv_prog_NMEDIT"
7487 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7488 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7489 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492 lt_cv_apple_cc_single_mod=no
7493 if test -z "${LT_MULTI_MODULE}"; then
7494 # By default we will add the -single_module flag. You can override
7495 # by either setting the environment variable LT_MULTI_MODULE
7496 # non-empty at configure time, or by adding -multi_module to the
7497 # link flags.
7498 echo "int foo(void){return 1;}" > conftest.c
7499 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7500 -dynamiclib ${wl}-single_module conftest.c
7501 if test -f libconftest.dylib; then
7502 lt_cv_apple_cc_single_mod=yes
7503 rm -rf libconftest.dylib*
7505 rm conftest.c
7508 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7509 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7510 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7511 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7512 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 lt_cv_ld_exported_symbols_list=no
7516 save_LDFLAGS=$LDFLAGS
7517 echo "_main" > conftest.sym
7518 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7519 cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7527 main ()
7531 return 0;
7533 _ACEOF
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (ac_try="$ac_link"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest$ac_exeext &&
7551 $as_test_x conftest$ac_exeext; then
7552 lt_cv_ld_exported_symbols_list=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 lt_cv_ld_exported_symbols_list=no
7560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7561 conftest$ac_exeext conftest.$ac_ext
7562 LDFLAGS="$save_LDFLAGS"
7565 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7566 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7567 case $host_os in
7568 rhapsody* | darwin1.[0123])
7569 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7570 darwin1.*)
7571 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7572 darwin*)
7573 # if running on 10.5 or later, the deployment target defaults
7574 # to the OS version, if on x86, and 10.4, the deployment
7575 # target defaults to 10.4. Don't you love it?
7576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7577 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7579 10.[012]*)
7580 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7581 10.*)
7582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7583 esac
7585 esac
7586 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7587 _lt_dar_single_mod='$single_module'
7589 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7590 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7591 else
7592 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7594 if test "$DSYMUTIL" != ":"; then
7595 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7596 else
7597 _lt_dsymutil=
7600 esac
7603 enable_dlopen=no
7604 enable_win32_dll=no
7606 # Check whether --enable-libtool-lock was given.
7607 if test "${enable_libtool_lock+set}" = set; then
7608 enableval=$enable_libtool_lock;
7611 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7614 # Check whether --with-pic was given.
7615 if test "${with_pic+set}" = set; then
7616 withval=$with_pic; pic_mode="$withval"
7617 else
7618 pic_mode=default
7621 test -z "$pic_mode" && pic_mode=default
7623 # Use C for the default configuration in the libtool script
7624 tagname=
7625 lt_save_CC="$CC"
7626 ac_ext=c
7627 ac_cpp='$CPP $CPPFLAGS'
7628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633 # Source file extension for C test sources.
7634 ac_ext=c
7636 # Object file extension for compiled C test sources.
7637 objext=o
7638 objext=$objext
7640 # Code to be used in simple compile tests
7641 lt_simple_compile_test_code="int some_variable = 0;"
7643 # Code to be used in simple link tests
7644 lt_simple_link_test_code='int main(){return(0);}'
7647 # If no C compiler was specified, use CC.
7648 LTCC=${LTCC-"$CC"}
7650 # If no C compiler flags were specified, use CFLAGS.
7651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7653 # Allow CC to be a program name with arguments.
7654 compiler=$CC
7657 # save warnings/boilerplate of simple test code
7658 ac_outfile=conftest.$ac_objext
7659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7661 _lt_compiler_boilerplate=`cat conftest.err`
7662 $rm conftest*
7664 ac_outfile=conftest.$ac_objext
7665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667 _lt_linker_boilerplate=`cat conftest.err`
7668 $rm -r conftest*
7672 lt_prog_compiler_no_builtin_flag=
7674 if test "$GCC" = yes; then
7675 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7678 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683 lt_cv_prog_compiler_rtti_exceptions=no
7684 ac_outfile=conftest.$ac_objext
7685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7686 lt_compiler_flag="-fno-rtti -fno-exceptions"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>conftest.err)
7698 ac_status=$?
7699 cat conftest.err >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings other than the usual output.
7704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_rtti_exceptions=yes
7710 $rm conftest*
7713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7718 else
7724 lt_prog_compiler_wl=
7725 lt_prog_compiler_pic=
7726 lt_prog_compiler_static=
7728 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7731 if test "$GCC" = yes; then
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_static='-static'
7735 case $host_os in
7736 aix*)
7737 # All AIX code is PIC.
7738 if test "$host_cpu" = ia64; then
7739 # AIX 5 now supports IA64 processor
7740 lt_prog_compiler_static='-Bstatic'
7744 amigaos*)
7745 # FIXME: we need at least 68020 code to build shared libraries, but
7746 # adding the `-m68020' flag to GCC prevents building anything better,
7747 # like `-m68040'.
7748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7751 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7752 # PIC is the default for these OSes.
7755 mingw* | cygwin* | pw32* | os2*)
7756 # This hack is so that the source file can tell whether it is being
7757 # built for inclusion in a dll (and should export symbols for example).
7758 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7759 # (--disable-auto-import) libraries
7760 lt_prog_compiler_pic='-DDLL_EXPORT'
7763 darwin* | rhapsody*)
7764 # PIC is the default on this platform
7765 # Common symbols not allowed in MH_DYLIB files
7766 lt_prog_compiler_pic='-fno-common'
7769 interix[3-9]*)
7770 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7771 # Instead, we relocate shared libraries at runtime.
7774 msdosdjgpp*)
7775 # Just because we use GCC doesn't mean we suddenly get shared libraries
7776 # on systems that don't support them.
7777 lt_prog_compiler_can_build_shared=no
7778 enable_shared=no
7781 sysv4*MP*)
7782 if test -d /usr/nec; then
7783 lt_prog_compiler_pic=-Kconform_pic
7787 hpux*)
7788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7789 # not for PA HP-UX.
7790 case $host_cpu in
7791 hppa*64*|ia64*)
7792 # +Z the default
7795 lt_prog_compiler_pic='-fPIC'
7797 esac
7801 lt_prog_compiler_pic='-fPIC'
7803 esac
7804 else
7805 # PORTME Check for flag to pass linker flags through the system compiler.
7806 case $host_os in
7807 aix*)
7808 lt_prog_compiler_wl='-Wl,'
7809 if test "$host_cpu" = ia64; then
7810 # AIX 5 now supports IA64 processor
7811 lt_prog_compiler_static='-Bstatic'
7812 else
7813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7816 darwin*)
7817 # PIC is the default on this platform
7818 # Common symbols not allowed in MH_DYLIB files
7819 case $cc_basename in
7820 xlc*)
7821 lt_prog_compiler_pic='-qnocommon'
7822 lt_prog_compiler_wl='-Wl,'
7824 esac
7827 mingw* | cygwin* | pw32* | os2*)
7828 # This hack is so that the source file can tell whether it is being
7829 # built for inclusion in a dll (and should export symbols for example).
7830 lt_prog_compiler_pic='-DDLL_EXPORT'
7833 hpux9* | hpux10* | hpux11*)
7834 lt_prog_compiler_wl='-Wl,'
7835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7836 # not for PA HP-UX.
7837 case $host_cpu in
7838 hppa*64*|ia64*)
7839 # +Z the default
7842 lt_prog_compiler_pic='+Z'
7844 esac
7845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7846 lt_prog_compiler_static='${wl}-a ${wl}archive'
7849 irix5* | irix6* | nonstopux*)
7850 lt_prog_compiler_wl='-Wl,'
7851 # PIC (with -KPIC) is the default.
7852 lt_prog_compiler_static='-non_shared'
7855 newsos6)
7856 lt_prog_compiler_pic='-KPIC'
7857 lt_prog_compiler_static='-Bstatic'
7860 linux* | k*bsd*-gnu)
7861 case $cc_basename in
7862 icc* | ecc*)
7863 lt_prog_compiler_wl='-Wl,'
7864 lt_prog_compiler_pic='-KPIC'
7865 lt_prog_compiler_static='-static'
7867 pgcc* | pgf77* | pgf90* | pgf95*)
7868 # Portland Group compilers (*not* the Pentium gcc compiler,
7869 # which looks to be a dead project)
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_pic='-fpic'
7872 lt_prog_compiler_static='-Bstatic'
7874 ccc*)
7875 lt_prog_compiler_wl='-Wl,'
7876 # All Alpha code is PIC.
7877 lt_prog_compiler_static='-non_shared'
7880 case `$CC -V 2>&1 | sed 5q` in
7881 *Sun\ C*)
7882 # Sun C 5.9
7883 lt_prog_compiler_pic='-KPIC'
7884 lt_prog_compiler_static='-Bstatic'
7885 lt_prog_compiler_wl='-Wl,'
7887 *Sun\ F*)
7888 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7889 lt_prog_compiler_pic='-KPIC'
7890 lt_prog_compiler_static='-Bstatic'
7891 lt_prog_compiler_wl=''
7893 esac
7895 esac
7898 osf3* | osf4* | osf5*)
7899 lt_prog_compiler_wl='-Wl,'
7900 # All OSF/1 code is PIC.
7901 lt_prog_compiler_static='-non_shared'
7904 rdos*)
7905 lt_prog_compiler_static='-non_shared'
7908 solaris*)
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-Bstatic'
7911 case $cc_basename in
7912 f77* | f90* | f95*)
7913 lt_prog_compiler_wl='-Qoption ld ';;
7915 lt_prog_compiler_wl='-Wl,';;
7916 esac
7919 sunos4*)
7920 lt_prog_compiler_wl='-Qoption ld '
7921 lt_prog_compiler_pic='-PIC'
7922 lt_prog_compiler_static='-Bstatic'
7925 sysv4 | sysv4.2uw2* | sysv4.3*)
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_pic='-KPIC'
7928 lt_prog_compiler_static='-Bstatic'
7931 sysv4*MP*)
7932 if test -d /usr/nec ;then
7933 lt_prog_compiler_pic='-Kconform_pic'
7934 lt_prog_compiler_static='-Bstatic'
7938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7939 lt_prog_compiler_wl='-Wl,'
7940 lt_prog_compiler_pic='-KPIC'
7941 lt_prog_compiler_static='-Bstatic'
7944 unicos*)
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_can_build_shared=no
7949 uts4*)
7950 lt_prog_compiler_pic='-pic'
7951 lt_prog_compiler_static='-Bstatic'
7955 lt_prog_compiler_can_build_shared=no
7957 esac
7960 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7961 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7964 # Check to make sure the PIC flag actually works.
7966 if test -n "$lt_prog_compiler_pic"; then
7968 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7969 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7970 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973 lt_cv_prog_compiler_pic_works=no
7974 ac_outfile=conftest.$ac_objext
7975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7976 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7977 # Insert the option either (1) after the last *FLAGS variable, or
7978 # (2) before a word containing "conftest.", or (3) at the end.
7979 # Note that $ac_compile itself does not contain backslashes and begins
7980 # with a dollar sign (not a hyphen), so the echo should work correctly.
7981 # The option is referenced via a variable to avoid confusing sed.
7982 lt_compile=`echo "$ac_compile" | $SED \
7983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985 -e 's:$: $lt_compiler_flag:'`
7986 (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
7987 (eval "$lt_compile" 2>conftest.err)
7988 ac_status=$?
7989 cat conftest.err >&5
7990 echo "$as_me:7990: \$? = $ac_status" >&5
7991 if (exit $ac_status) && test -s "$ac_outfile"; then
7992 # The compiler can only warn and ignore the option if not recognized
7993 # So say no if there are warnings other than the usual output.
7994 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_pic_works=yes
8000 $rm conftest*
8003 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8004 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8006 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8007 case $lt_prog_compiler_pic in
8008 "" | " "*) ;;
8009 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8010 esac
8011 else
8012 lt_prog_compiler_pic=
8013 lt_prog_compiler_can_build_shared=no
8017 case $host_os in
8018 # For platforms which do not support PIC, -DPIC is meaningless:
8019 *djgpp*)
8020 lt_prog_compiler_pic=
8023 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8025 esac
8028 # Check to make sure the static flag actually works.
8030 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8031 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8032 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8033 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036 lt_cv_prog_compiler_static_works=no
8037 save_LDFLAGS="$LDFLAGS"
8038 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8039 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8041 # The linker can only warn and ignore the option if not recognized
8042 # So say no if there are warnings
8043 if test -s conftest.err; then
8044 # Append any errors to the config.log.
8045 cat conftest.err 1>&5
8046 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8048 if diff conftest.exp conftest.er2 >/dev/null; then
8049 lt_cv_prog_compiler_static_works=yes
8051 else
8052 lt_cv_prog_compiler_static_works=yes
8055 $rm -r conftest*
8056 LDFLAGS="$save_LDFLAGS"
8059 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8060 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8062 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8064 else
8065 lt_prog_compiler_static=
8069 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8070 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8071 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074 lt_cv_prog_compiler_c_o=no
8075 $rm -r conftest 2>/dev/null
8076 mkdir conftest
8077 cd conftest
8078 mkdir out
8079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8081 lt_compiler_flag="-o out/conftest2.$ac_objext"
8082 # Insert the option either (1) after the last *FLAGS variable, or
8083 # (2) before a word containing "conftest.", or (3) at the end.
8084 # Note that $ac_compile itself does not contain backslashes and begins
8085 # with a dollar sign (not a hyphen), so the echo should work correctly.
8086 lt_compile=`echo "$ac_compile" | $SED \
8087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089 -e 's:$: $lt_compiler_flag:'`
8090 (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
8091 (eval "$lt_compile" 2>out/conftest.err)
8092 ac_status=$?
8093 cat out/conftest.err >&5
8094 echo "$as_me:8094: \$? = $ac_status" >&5
8095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8096 then
8097 # The compiler can only warn and ignore the option if not recognized
8098 # So say no if there are warnings
8099 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8102 lt_cv_prog_compiler_c_o=yes
8105 chmod u+w . 2>&5
8106 $rm conftest*
8107 # SGI C++ compiler will create directory out/ii_files/ for
8108 # template instantiation
8109 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8110 $rm out/* && rmdir out
8111 cd ..
8112 rmdir conftest
8113 $rm conftest*
8116 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8117 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8120 hard_links="nottested"
8121 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8122 # do not overwrite the value of need_locks provided by the user
8123 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8124 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8125 hard_links=yes
8126 $rm conftest*
8127 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8128 touch conftest.a
8129 ln conftest.a conftest.b 2>&5 || hard_links=no
8130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8131 { echo "$as_me:$LINENO: result: $hard_links" >&5
8132 echo "${ECHO_T}$hard_links" >&6; }
8133 if test "$hard_links" = no; then
8134 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8135 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8136 need_locks=warn
8138 else
8139 need_locks=no
8142 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8143 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8145 runpath_var=
8146 allow_undefined_flag=
8147 enable_shared_with_static_runtimes=no
8148 archive_cmds=
8149 archive_expsym_cmds=
8150 old_archive_From_new_cmds=
8151 old_archive_from_expsyms_cmds=
8152 export_dynamic_flag_spec=
8153 whole_archive_flag_spec=
8154 thread_safe_flag_spec=
8155 hardcode_libdir_flag_spec=
8156 hardcode_libdir_flag_spec_ld=
8157 hardcode_libdir_separator=
8158 hardcode_direct=no
8159 hardcode_minus_L=no
8160 hardcode_shlibpath_var=unsupported
8161 link_all_deplibs=unknown
8162 hardcode_automatic=no
8163 module_cmds=
8164 module_expsym_cmds=
8165 always_export_symbols=no
8166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8167 # include_expsyms should be a list of space-separated symbols to be *always*
8168 # included in the symbol list
8169 include_expsyms=
8170 # exclude_expsyms can be an extended regexp of symbols to exclude
8171 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8172 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8173 # as well as any symbol that contains `d'.
8174 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8176 # platforms (ab)use it in PIC code, but their linkers get confused if
8177 # the symbol is explicitly referenced. Since portable code cannot
8178 # rely on this symbol name, it's probably fine to never include it in
8179 # preloaded symbol tables.
8180 # Exclude shared library initialization/finalization symbols.
8181 extract_expsyms_cmds=
8182 # Just being paranoid about ensuring that cc_basename is set.
8183 for cc_temp in $compiler""; do
8184 case $cc_temp in
8185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8187 \-*) ;;
8188 *) break;;
8189 esac
8190 done
8191 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8193 case $host_os in
8194 cygwin* | mingw* | pw32*)
8195 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8196 # When not using gcc, we currently assume that we are using
8197 # Microsoft Visual C++.
8198 if test "$GCC" != yes; then
8199 with_gnu_ld=no
8202 interix*)
8203 # we just hope/assume this is gcc and not c89 (= MSVC++)
8204 with_gnu_ld=yes
8206 openbsd*)
8207 with_gnu_ld=no
8209 esac
8211 ld_shlibs=yes
8212 if test "$with_gnu_ld" = yes; then
8213 # If archive_cmds runs LD, not CC, wlarc should be empty
8214 wlarc='${wl}'
8216 # Set some defaults for GNU ld with shared library support. These
8217 # are reset later if shared libraries are not supported. Putting them
8218 # here allows them to be overridden if necessary.
8219 runpath_var=LD_RUN_PATH
8220 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8221 export_dynamic_flag_spec='${wl}--export-dynamic'
8222 # ancient GNU ld didn't support --whole-archive et. al.
8223 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8224 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8225 else
8226 whole_archive_flag_spec=
8228 supports_anon_versioning=no
8229 case `$LD -v 2>/dev/null` in
8230 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8231 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8232 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8233 *\ 2.11.*) ;; # other 2.11 versions
8234 *) supports_anon_versioning=yes ;;
8235 esac
8237 # See if GNU ld supports shared libraries.
8238 case $host_os in
8239 aix[3-9]*)
8240 # On AIX/PPC, the GNU linker is very broken
8241 if test "$host_cpu" != ia64; then
8242 ld_shlibs=no
8243 cat <<EOF 1>&2
8245 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8246 *** to be unable to reliably create shared libraries on AIX.
8247 *** Therefore, libtool is disabling shared libraries support. If you
8248 *** really care for shared libraries, you may want to modify your PATH
8249 *** so that a non-GNU linker is found, and then restart.
8255 amigaos*)
8256 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)'
8257 hardcode_libdir_flag_spec='-L$libdir'
8258 hardcode_minus_L=yes
8260 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8261 # that the semantics of dynamic libraries on AmigaOS, at least up
8262 # to version 4, is to share data among multiple programs linked
8263 # with the same dynamic library. Since this doesn't match the
8264 # behavior of shared libraries on other platforms, we can't use
8265 # them.
8266 ld_shlibs=no
8269 beos*)
8270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8271 allow_undefined_flag=unsupported
8272 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8273 # support --undefined. This deserves some investigation. FIXME
8274 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275 else
8276 ld_shlibs=no
8280 cygwin* | mingw* | pw32*)
8281 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8282 # as there is no search path for DLLs.
8283 hardcode_libdir_flag_spec='-L$libdir'
8284 allow_undefined_flag=unsupported
8285 always_export_symbols=no
8286 enable_shared_with_static_runtimes=yes
8287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8289 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8291 # If the export-symbols file already is a .def file (1st line
8292 # is EXPORTS), use it as is; otherwise, prepend...
8293 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8294 cp $export_symbols $output_objdir/$soname.def;
8295 else
8296 echo EXPORTS > $output_objdir/$soname.def;
8297 cat $export_symbols >> $output_objdir/$soname.def;
8299 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8300 else
8301 ld_shlibs=no
8305 interix[3-9]*)
8306 hardcode_direct=no
8307 hardcode_shlibpath_var=no
8308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8309 export_dynamic_flag_spec='${wl}-E'
8310 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8311 # Instead, shared libraries are loaded at an image base (0x10000000 by
8312 # default) and relocated if they conflict, which is a slow very memory
8313 # consuming and fragmenting process. To avoid this, we pick a random,
8314 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8315 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8317 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'
8320 gnu* | linux* | k*bsd*-gnu)
8321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8322 tmp_addflag=
8323 case $cc_basename,$host_cpu in
8324 pgcc*) # Portland Group C compiler
8325 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'
8326 tmp_addflag=' $pic_flag'
8328 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8329 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'
8330 tmp_addflag=' $pic_flag -Mnomain' ;;
8331 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8332 tmp_addflag=' -i_dynamic' ;;
8333 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8334 tmp_addflag=' -i_dynamic -nofor_main' ;;
8335 ifc* | ifort*) # Intel Fortran compiler
8336 tmp_addflag=' -nofor_main' ;;
8337 esac
8338 case `$CC -V 2>&1 | sed 5q` in
8339 *Sun\ C*) # Sun C 5.9
8340 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'
8341 tmp_sharedflag='-G' ;;
8342 *Sun\ F*) # Sun Fortran 8.3
8343 tmp_sharedflag='-G' ;;
8345 tmp_sharedflag='-shared' ;;
8346 esac
8347 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8349 if test $supports_anon_versioning = yes; then
8350 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8352 $echo "local: *; };" >> $output_objdir/$libname.ver~
8353 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8355 else
8356 ld_shlibs=no
8360 netbsd*)
8361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8362 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8363 wlarc=
8364 else
8365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8370 solaris*)
8371 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8372 ld_shlibs=no
8373 cat <<EOF 1>&2
8375 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8376 *** create shared libraries on Solaris systems. Therefore, libtool
8377 *** is disabling shared libraries support. We urge you to upgrade GNU
8378 *** binutils to release 2.9.1 or newer. Another option is to modify
8379 *** your PATH or compiler configuration so that the native linker is
8380 *** used, and then restart.
8383 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8385 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8386 else
8387 ld_shlibs=no
8391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8392 case `$LD -v 2>&1` in
8393 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8394 ld_shlibs=no
8395 cat <<_LT_EOF 1>&2
8397 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8398 *** reliably create shared libraries on SCO systems. Therefore, libtool
8399 *** is disabling shared libraries support. We urge you to upgrade GNU
8400 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8401 *** your PATH or compiler configuration so that the native linker is
8402 *** used, and then restart.
8404 _LT_EOF
8407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8408 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8411 else
8412 ld_shlibs=no
8415 esac
8418 sunos4*)
8419 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8420 wlarc=
8421 hardcode_direct=yes
8422 hardcode_shlibpath_var=no
8426 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8429 else
8430 ld_shlibs=no
8433 esac
8435 if test "$ld_shlibs" = no; then
8436 runpath_var=
8437 hardcode_libdir_flag_spec=
8438 export_dynamic_flag_spec=
8439 whole_archive_flag_spec=
8441 else
8442 # PORTME fill in a description of your system's linker (not GNU ld)
8443 case $host_os in
8444 aix3*)
8445 allow_undefined_flag=unsupported
8446 always_export_symbols=yes
8447 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'
8448 # Note: this linker hardcodes the directories in LIBPATH if there
8449 # are no directories specified by -L.
8450 hardcode_minus_L=yes
8451 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8452 # Neither direct hardcoding nor static linking is supported with a
8453 # broken collect2.
8454 hardcode_direct=unsupported
8458 aix[4-9]*)
8459 if test "$host_cpu" = ia64; then
8460 # On IA64, the linker does run time linking by default, so we don't
8461 # have to do anything special.
8462 aix_use_runtimelinking=no
8463 exp_sym_flag='-Bexport'
8464 no_entry_flag=""
8465 else
8466 # If we're using GNU nm, then we don't want the "-C" option.
8467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8468 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8469 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'
8470 else
8471 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'
8473 aix_use_runtimelinking=no
8475 # Test if we are trying to use run time linking or normal
8476 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8477 # need to do runtime linking.
8478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8479 for ld_flag in $LDFLAGS; do
8480 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8481 aix_use_runtimelinking=yes
8482 break
8484 done
8486 esac
8488 exp_sym_flag='-bexport'
8489 no_entry_flag='-bnoentry'
8492 # When large executables or shared objects are built, AIX ld can
8493 # have problems creating the table of contents. If linking a library
8494 # or program results in "error TOC overflow" add -mminimal-toc to
8495 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8496 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8498 archive_cmds=''
8499 hardcode_direct=yes
8500 hardcode_libdir_separator=':'
8501 link_all_deplibs=yes
8503 if test "$GCC" = yes; then
8504 case $host_os in aix4.[012]|aix4.[012].*)
8505 # We only want to do this on AIX 4.2 and lower, the check
8506 # below for broken collect2 doesn't work under 4.3+
8507 collect2name=`${CC} -print-prog-name=collect2`
8508 if test -f "$collect2name" && \
8509 strings "$collect2name" | grep resolve_lib_name >/dev/null
8510 then
8511 # We have reworked collect2
8513 else
8514 # We have old collect2
8515 hardcode_direct=unsupported
8516 # It fails to find uninstalled libraries when the uninstalled
8517 # path is not listed in the libpath. Setting hardcode_minus_L
8518 # to unsupported forces relinking
8519 hardcode_minus_L=yes
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_libdir_separator=
8524 esac
8525 shared_flag='-shared'
8526 if test "$aix_use_runtimelinking" = yes; then
8527 shared_flag="$shared_flag "'${wl}-G'
8529 else
8530 # not using gcc
8531 if test "$host_cpu" = ia64; then
8532 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8533 # chokes on -Wl,-G. The following line is correct:
8534 shared_flag='-G'
8535 else
8536 if test "$aix_use_runtimelinking" = yes; then
8537 shared_flag='${wl}-G'
8538 else
8539 shared_flag='${wl}-bM:SRE'
8544 # It seems that -bexpall does not export symbols beginning with
8545 # underscore (_), so it is better to generate a list of symbols to export.
8546 always_export_symbols=yes
8547 if test "$aix_use_runtimelinking" = yes; then
8548 # Warning - without using the other runtime loading flags (-brtl),
8549 # -berok will link without error, but may produce a broken library.
8550 allow_undefined_flag='-berok'
8551 # Determine the default libpath from the value encoded in an empty executable.
8552 cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h. */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8560 main ()
8564 return 0;
8566 _ACEOF
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (ac_try="$ac_link"
8569 case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_link") 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest$ac_exeext &&
8584 $as_test_x conftest$ac_exeext; then
8586 lt_aix_libpath_sed='
8587 /Import File Strings/,/^$/ {
8588 /^0/ {
8589 s/^0 *\(.*\)$/\1/
8593 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8594 # Check for a 64-bit object if we didn't find anything.
8595 if test -z "$aix_libpath"; then
8596 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8606 conftest$ac_exeext conftest.$ac_ext
8607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8609 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8610 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"
8611 else
8612 if test "$host_cpu" = ia64; then
8613 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8614 allow_undefined_flag="-z nodefs"
8615 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"
8616 else
8617 # Determine the default libpath from the value encoded in an empty executable.
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h. */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8626 main ()
8630 return 0;
8632 _ACEOF
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8635 case "(($ac_try" in
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_link") 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } && {
8647 test -z "$ac_c_werror_flag" ||
8648 test ! -s conftest.err
8649 } && test -s conftest$ac_exeext &&
8650 $as_test_x conftest$ac_exeext; then
8652 lt_aix_libpath_sed='
8653 /Import File Strings/,/^$/ {
8654 /^0/ {
8655 s/^0 *\(.*\)$/\1/
8659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8660 # Check for a 64-bit object if we didn't find anything.
8661 if test -z "$aix_libpath"; then
8662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8664 else
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8672 conftest$ac_exeext conftest.$ac_ext
8673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8676 # Warning - without using the other run time loading flags,
8677 # -berok will link without error, but may produce a broken library.
8678 no_undefined_flag=' ${wl}-bernotok'
8679 allow_undefined_flag=' ${wl}-berok'
8680 # Exported symbols can be pulled into shared objects from archives
8681 whole_archive_flag_spec='$convenience'
8682 archive_cmds_need_lc=yes
8683 # This is similar to how AIX traditionally builds its shared libraries.
8684 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'
8689 amigaos*)
8690 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)'
8691 hardcode_libdir_flag_spec='-L$libdir'
8692 hardcode_minus_L=yes
8693 # see comment about different semantics on the GNU ld section
8694 ld_shlibs=no
8697 bsdi[45]*)
8698 export_dynamic_flag_spec=-rdynamic
8701 cygwin* | mingw* | pw32*)
8702 # When not using gcc, we currently assume that we are using
8703 # Microsoft Visual C++.
8704 # hardcode_libdir_flag_spec is actually meaningless, as there is
8705 # no search path for DLLs.
8706 hardcode_libdir_flag_spec=' '
8707 allow_undefined_flag=unsupported
8708 # Tell ltmain to make .lib files, not .a files.
8709 libext=lib
8710 # Tell ltmain to make .dll files, not .so files.
8711 shrext_cmds=".dll"
8712 # FIXME: Setting linknames here is a bad hack.
8713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8714 # The linker will automatically build a .lib file if we build a DLL.
8715 old_archive_From_new_cmds='true'
8716 # FIXME: Should let the user specify the lib program.
8717 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8718 fix_srcfile_path='`cygpath -w "$srcfile"`'
8719 enable_shared_with_static_runtimes=yes
8722 darwin* | rhapsody*)
8723 case $host_os in
8724 rhapsody* | darwin1.[012])
8725 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8727 *) # Darwin 1.3 on
8728 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8729 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8730 else
8731 case ${MACOSX_DEPLOYMENT_TARGET} in
8732 10.[012])
8733 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8735 10.*)
8736 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8738 esac
8741 esac
8742 archive_cmds_need_lc=no
8743 hardcode_direct=no
8744 hardcode_automatic=yes
8745 hardcode_shlibpath_var=unsupported
8746 whole_archive_flag_spec=''
8747 link_all_deplibs=yes
8748 if test "$GCC" = yes ; then
8749 output_verbose_link_cmd='echo'
8750 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8751 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8752 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}"
8753 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}"
8754 else
8755 case $cc_basename in
8756 xlc*)
8757 output_verbose_link_cmd='echo'
8758 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8759 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8761 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}'
8762 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}'
8765 ld_shlibs=no
8767 esac
8771 dgux*)
8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_libdir_flag_spec='-L$libdir'
8774 hardcode_shlibpath_var=no
8777 freebsd1*)
8778 ld_shlibs=no
8781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8782 # support. Future versions do this automatically, but an explicit c++rt0.o
8783 # does not break anything, and helps significantly (at the cost of a little
8784 # extra space).
8785 freebsd2.2*)
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8787 hardcode_libdir_flag_spec='-R$libdir'
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8793 freebsd2*)
8794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_direct=yes
8796 hardcode_minus_L=yes
8797 hardcode_shlibpath_var=no
8800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8801 freebsd* | dragonfly*)
8802 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8803 hardcode_libdir_flag_spec='-R$libdir'
8804 hardcode_direct=yes
8805 hardcode_shlibpath_var=no
8808 hpux9*)
8809 if test "$GCC" = yes; then
8810 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'
8811 else
8812 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'
8814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8815 hardcode_libdir_separator=:
8816 hardcode_direct=yes
8818 # hardcode_minus_L: Not really in the search PATH,
8819 # but as the default location of the library.
8820 hardcode_minus_L=yes
8821 export_dynamic_flag_spec='${wl}-E'
8824 hpux10*)
8825 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827 else
8828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8830 if test "$with_gnu_ld" = no; then
8831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8832 hardcode_libdir_separator=:
8834 hardcode_direct=yes
8835 export_dynamic_flag_spec='${wl}-E'
8837 # hardcode_minus_L: Not really in the search PATH,
8838 # but as the default location of the library.
8839 hardcode_minus_L=yes
8843 hpux11*)
8844 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8845 case $host_cpu in
8846 hppa*64*)
8847 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 ia64*)
8850 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8855 esac
8856 else
8857 case $host_cpu in
8858 hppa*64*)
8859 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8861 ia64*)
8862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8865 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8867 esac
8869 if test "$with_gnu_ld" = no; then
8870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8871 hardcode_libdir_separator=:
8873 case $host_cpu in
8874 hppa*64*|ia64*)
8875 hardcode_libdir_flag_spec_ld='+b $libdir'
8876 hardcode_direct=no
8877 hardcode_shlibpath_var=no
8880 hardcode_direct=yes
8881 export_dynamic_flag_spec='${wl}-E'
8883 # hardcode_minus_L: Not really in the search PATH,
8884 # but as the default location of the library.
8885 hardcode_minus_L=yes
8887 esac
8891 irix5* | irix6* | nonstopux*)
8892 if test "$GCC" = yes; then
8893 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'
8894 else
8895 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'
8896 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899 hardcode_libdir_separator=:
8900 link_all_deplibs=yes
8903 netbsd*)
8904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8905 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8906 else
8907 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8909 hardcode_libdir_flag_spec='-R$libdir'
8910 hardcode_direct=yes
8911 hardcode_shlibpath_var=no
8914 newsos6)
8915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916 hardcode_direct=yes
8917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8918 hardcode_libdir_separator=:
8919 hardcode_shlibpath_var=no
8922 openbsd*)
8923 if test -f /usr/libexec/ld.so; then
8924 hardcode_direct=yes
8925 hardcode_shlibpath_var=no
8926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8930 export_dynamic_flag_spec='${wl}-E'
8931 else
8932 case $host_os in
8933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8935 hardcode_libdir_flag_spec='-R$libdir'
8938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8941 esac
8943 else
8944 ld_shlibs=no
8948 os2*)
8949 hardcode_libdir_flag_spec='-L$libdir'
8950 hardcode_minus_L=yes
8951 allow_undefined_flag=unsupported
8952 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'
8953 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8956 osf3*)
8957 if test "$GCC" = yes; then
8958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8959 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'
8960 else
8961 allow_undefined_flag=' -expect_unresolved \*'
8962 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'
8964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965 hardcode_libdir_separator=:
8968 osf4* | osf5*) # as osf3* with the addition of -msym flag
8969 if test "$GCC" = yes; then
8970 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8971 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'
8972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973 else
8974 allow_undefined_flag=' -expect_unresolved \*'
8975 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'
8976 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8977 $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'
8979 # Both c and cxx compiler support -rpath directly
8980 hardcode_libdir_flag_spec='-rpath $libdir'
8982 hardcode_libdir_separator=:
8985 solaris*)
8986 no_undefined_flag=' -z text'
8987 if test "$GCC" = yes; then
8988 wlarc='${wl}'
8989 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8991 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8992 else
8993 wlarc=''
8994 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8998 hardcode_libdir_flag_spec='-R$libdir'
8999 hardcode_shlibpath_var=no
9000 case $host_os in
9001 solaris2.[0-5] | solaris2.[0-5].*) ;;
9003 # The compiler driver will combine and reorder linker options,
9004 # but understands `-z linker_flag'. GCC discards it without `$wl',
9005 # but is careful enough not to reorder.
9006 # Supported since Solaris 2.6 (maybe 2.5.1?)
9007 if test "$GCC" = yes; then
9008 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9009 else
9010 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9013 esac
9014 link_all_deplibs=yes
9017 sunos4*)
9018 if test "x$host_vendor" = xsequent; then
9019 # Use $CC to link under sequent, because it throws in some extra .o
9020 # files that make .init and .fini sections work.
9021 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9022 else
9023 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9025 hardcode_libdir_flag_spec='-L$libdir'
9026 hardcode_direct=yes
9027 hardcode_minus_L=yes
9028 hardcode_shlibpath_var=no
9031 sysv4)
9032 case $host_vendor in
9033 sni)
9034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_direct=yes # is this really true???
9037 siemens)
9038 ## LD is ld it makes a PLAMLIB
9039 ## CC just makes a GrossModule.
9040 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9041 reload_cmds='$CC -r -o $output$reload_objs'
9042 hardcode_direct=no
9044 motorola)
9045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9046 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9048 esac
9049 runpath_var='LD_RUN_PATH'
9050 hardcode_shlibpath_var=no
9053 sysv4.3*)
9054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 hardcode_shlibpath_var=no
9056 export_dynamic_flag_spec='-Bexport'
9059 sysv4*MP*)
9060 if test -d /usr/nec; then
9061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062 hardcode_shlibpath_var=no
9063 runpath_var=LD_RUN_PATH
9064 hardcode_runpath_var=yes
9065 ld_shlibs=yes
9069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9070 no_undefined_flag='${wl}-z,text'
9071 archive_cmds_need_lc=no
9072 hardcode_shlibpath_var=no
9073 runpath_var='LD_RUN_PATH'
9075 if test "$GCC" = yes; then
9076 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9077 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 else
9079 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9080 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 sysv5* | sco3.2v5* | sco5v6*)
9085 # Note: We can NOT use -z defs as we might desire, because we do not
9086 # link with -lc, and that would cause any symbols used from libc to
9087 # always be unresolved, which means just about no library would
9088 # ever link correctly. If we're not using GNU ld we use -z text
9089 # though, which does catch some bad symbols but isn't as heavy-handed
9090 # as -z defs.
9091 no_undefined_flag='${wl}-z,text'
9092 allow_undefined_flag='${wl}-z,nodefs'
9093 archive_cmds_need_lc=no
9094 hardcode_shlibpath_var=no
9095 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9096 hardcode_libdir_separator=':'
9097 link_all_deplibs=yes
9098 export_dynamic_flag_spec='${wl}-Bexport'
9099 runpath_var='LD_RUN_PATH'
9101 if test "$GCC" = yes; then
9102 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 else
9105 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 uts4*)
9111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_shlibpath_var=no
9117 ld_shlibs=no
9119 esac
9122 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9123 echo "${ECHO_T}$ld_shlibs" >&6; }
9124 test "$ld_shlibs" = no && can_build_shared=no
9127 # Do we need to explicitly link libc?
9129 case "x$archive_cmds_need_lc" in
9130 x|xyes)
9131 # Assume -lc should be added
9132 archive_cmds_need_lc=yes
9134 if test "$enable_shared" = yes && test "$GCC" = yes; then
9135 case $archive_cmds in
9136 *'~'*)
9137 # FIXME: we may have to deal with multi-command sequences.
9139 '$CC '*)
9140 # Test whether the compiler implicitly links with -lc since on some
9141 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9142 # to ld, don't add -lc before -lgcc.
9143 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9144 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9145 $rm conftest*
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9149 (eval $ac_compile) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } 2>conftest.err; then
9153 soname=conftest
9154 lib=conftest
9155 libobjs=conftest.$ac_objext
9156 deplibs=
9157 wl=$lt_prog_compiler_wl
9158 pic_flag=$lt_prog_compiler_pic
9159 compiler_flags=-v
9160 linker_flags=-v
9161 verstring=
9162 output_objdir=.
9163 libname=conftest
9164 lt_save_allow_undefined_flag=$allow_undefined_flag
9165 allow_undefined_flag=
9166 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9167 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }
9171 then
9172 archive_cmds_need_lc=no
9173 else
9174 archive_cmds_need_lc=yes
9176 allow_undefined_flag=$lt_save_allow_undefined_flag
9177 else
9178 cat conftest.err 1>&5
9180 $rm conftest*
9181 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9182 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9184 esac
9187 esac
9189 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9190 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9191 library_names_spec=
9192 libname_spec='lib$name'
9193 soname_spec=
9194 shrext_cmds=".so"
9195 postinstall_cmds=
9196 postuninstall_cmds=
9197 finish_cmds=
9198 finish_eval=
9199 shlibpath_var=
9200 shlibpath_overrides_runpath=unknown
9201 version_type=none
9202 dynamic_linker="$host_os ld.so"
9203 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9205 if test "$GCC" = yes; then
9206 case $host_os in
9207 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9208 *) lt_awk_arg="/^libraries:/" ;;
9209 esac
9210 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9211 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9212 # if the path contains ";" then we assume it to be the separator
9213 # otherwise default to the standard path separator (i.e. ":") - it is
9214 # assumed that no part of a normal pathname contains ";" but that should
9215 # okay in the real world where ";" in dirpaths is itself problematic.
9216 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9217 else
9218 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9220 # Ok, now we have the path, separated by spaces, we can step through it
9221 # and add multilib dir if necessary.
9222 lt_tmp_lt_search_path_spec=
9223 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9224 for lt_sys_path in $lt_search_path_spec; do
9225 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9226 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9227 else
9228 test -d "$lt_sys_path" && \
9229 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9231 done
9232 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9233 BEGIN {RS=" "; FS="/|\n";} {
9234 lt_foo="";
9235 lt_count=0;
9236 for (lt_i = NF; lt_i > 0; lt_i--) {
9237 if ($lt_i != "" && $lt_i != ".") {
9238 if ($lt_i == "..") {
9239 lt_count++;
9240 } else {
9241 if (lt_count == 0) {
9242 lt_foo="/" $lt_i lt_foo;
9243 } else {
9244 lt_count--;
9249 if (lt_foo != "") { lt_freq[lt_foo]++; }
9250 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9252 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9253 else
9254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9256 need_lib_prefix=unknown
9257 hardcode_into_libs=no
9259 # when you set need_version to no, make sure it does not cause -set_version
9260 # flags to be left without arguments
9261 need_version=unknown
9263 case $host_os in
9264 aix3*)
9265 version_type=linux
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9267 shlibpath_var=LIBPATH
9269 # AIX 3 has no versioning support, so we append a major version to the name.
9270 soname_spec='${libname}${release}${shared_ext}$major'
9273 aix[4-9]*)
9274 version_type=linux
9275 need_lib_prefix=no
9276 need_version=no
9277 hardcode_into_libs=yes
9278 if test "$host_cpu" = ia64; then
9279 # AIX 5 supports IA64
9280 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 else
9283 # With GCC up to 2.95.x, collect2 would create an import file
9284 # for dependence libraries. The import file would start with
9285 # the line `#! .'. This would cause the generated library to
9286 # depend on `.', always an invalid library. This was fixed in
9287 # development snapshots of GCC prior to 3.0.
9288 case $host_os in
9289 aix4 | aix4.[01] | aix4.[01].*)
9290 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9291 echo ' yes '
9292 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9294 else
9295 can_build_shared=no
9298 esac
9299 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9300 # soname into executable. Probably we can add versioning support to
9301 # collect2, so additional links can be useful in future.
9302 if test "$aix_use_runtimelinking" = yes; then
9303 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9304 # instead of lib<name>.a to let people know that these are not
9305 # typical AIX shared libraries.
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307 else
9308 # We preserve .a as extension for shared libraries through AIX4.2
9309 # and later when we are not doing run time linking.
9310 library_names_spec='${libname}${release}.a $libname.a'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9313 shlibpath_var=LIBPATH
9317 amigaos*)
9318 library_names_spec='$libname.ixlibrary $libname.a'
9319 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9320 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'
9323 beos*)
9324 library_names_spec='${libname}${shared_ext}'
9325 dynamic_linker="$host_os ld.so"
9326 shlibpath_var=LIBRARY_PATH
9329 bsdi[45]*)
9330 version_type=linux
9331 need_version=no
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9337 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9338 # the default ld.so.conf also contains /usr/contrib/lib and
9339 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9340 # libtool to hard-code these into programs
9343 cygwin* | mingw* | pw32*)
9344 version_type=windows
9345 shrext_cmds=".dll"
9346 need_version=no
9347 need_lib_prefix=no
9349 case $GCC,$host_os in
9350 yes,cygwin* | yes,mingw* | yes,pw32*)
9351 library_names_spec='$libname.dll.a'
9352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9353 postinstall_cmds='base_file=`basename \${file}`~
9354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9355 dldir=$destdir/`dirname \$dlpath`~
9356 test -d \$dldir || mkdir -p \$dldir~
9357 $install_prog $dir/$dlname \$dldir/$dlname~
9358 chmod a+x \$dldir/$dlname'
9359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9360 dlpath=$dir/\$dldll~
9361 $rm \$dlpath'
9362 shlibpath_overrides_runpath=yes
9364 case $host_os in
9365 cygwin*)
9366 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9367 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9370 mingw*)
9371 # MinGW DLLs use traditional 'lib' prefix
9372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9374 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9375 # It is most probably a Windows format PATH printed by
9376 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9377 # path with ; separators, and with drive letters. We can handle the
9378 # drive letters (cygwin fileutils understands them), so leave them,
9379 # especially as we might pass files found there to a mingw objdump,
9380 # which wouldn't understand a cygwinified path. Ahh.
9381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9382 else
9383 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9386 pw32*)
9387 # pw32 DLLs use 'pw' prefix rather than 'lib'
9388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9390 esac
9394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9396 esac
9397 dynamic_linker='Win32 ld.exe'
9398 # FIXME: first we should search . and the directory the executable is in
9399 shlibpath_var=PATH
9402 darwin* | rhapsody*)
9403 dynamic_linker="$host_os dyld"
9404 version_type=darwin
9405 need_lib_prefix=no
9406 need_version=no
9407 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9408 soname_spec='${libname}${release}${major}$shared_ext'
9409 shlibpath_overrides_runpath=yes
9410 shlibpath_var=DYLD_LIBRARY_PATH
9411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9417 dgux*)
9418 version_type=linux
9419 need_lib_prefix=no
9420 need_version=no
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9426 freebsd1*)
9427 dynamic_linker=no
9430 freebsd* | dragonfly*)
9431 # DragonFly does not have aout. When/if they implement a new
9432 # versioning mechanism, adjust this.
9433 if test -x /usr/bin/objformat; then
9434 objformat=`/usr/bin/objformat`
9435 else
9436 case $host_os in
9437 freebsd[123]*) objformat=aout ;;
9438 *) objformat=elf ;;
9439 esac
9441 version_type=freebsd-$objformat
9442 case $version_type in
9443 freebsd-elf*)
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 need_version=no
9446 need_lib_prefix=no
9448 freebsd-*)
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9450 need_version=yes
9452 esac
9453 shlibpath_var=LD_LIBRARY_PATH
9454 case $host_os in
9455 freebsd2*)
9456 shlibpath_overrides_runpath=yes
9458 freebsd3.[01]* | freebsdelf3.[01]*)
9459 shlibpath_overrides_runpath=yes
9460 hardcode_into_libs=yes
9462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9467 *) # from 4.6 on, and DragonFly
9468 shlibpath_overrides_runpath=yes
9469 hardcode_into_libs=yes
9471 esac
9474 gnu*)
9475 version_type=linux
9476 need_lib_prefix=no
9477 need_version=no
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 hardcode_into_libs=yes
9484 hpux9* | hpux10* | hpux11*)
9485 # Give a soname corresponding to the major version so that dld.sl refuses to
9486 # link against other versions.
9487 version_type=sunos
9488 need_lib_prefix=no
9489 need_version=no
9490 case $host_cpu in
9491 ia64*)
9492 shrext_cmds='.so'
9493 hardcode_into_libs=yes
9494 dynamic_linker="$host_os dld.so"
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 if test "X$HPUX_IA64_MODE" = X32; then
9500 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9501 else
9502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9506 hppa*64*)
9507 shrext_cmds='.sl'
9508 hardcode_into_libs=yes
9509 dynamic_linker="$host_os dld.sl"
9510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9518 shrext_cmds='.sl'
9519 dynamic_linker="$host_os dld.sl"
9520 shlibpath_var=SHLIB_PATH
9521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9525 esac
9526 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9527 postinstall_cmds='chmod 555 $lib'
9530 interix[3-9]*)
9531 version_type=linux
9532 need_lib_prefix=no
9533 need_version=no
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=no
9539 hardcode_into_libs=yes
9542 irix5* | irix6* | nonstopux*)
9543 case $host_os in
9544 nonstopux*) version_type=nonstopux ;;
9546 if test "$lt_cv_prog_gnu_ld" = yes; then
9547 version_type=linux
9548 else
9549 version_type=irix
9550 fi ;;
9551 esac
9552 need_lib_prefix=no
9553 need_version=no
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9556 case $host_os in
9557 irix5* | nonstopux*)
9558 libsuff= shlibsuff=
9561 case $LD in # libtool.m4 will add one of these switches to LD
9562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9563 libsuff= shlibsuff= libmagic=32-bit;;
9564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9565 libsuff=32 shlibsuff=N32 libmagic=N32;;
9566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9567 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9568 *) libsuff= shlibsuff= libmagic=never-match;;
9569 esac
9571 esac
9572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9573 shlibpath_overrides_runpath=no
9574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9576 hardcode_into_libs=yes
9579 # No shared lib support for Linux oldld, aout, or coff.
9580 linux*oldld* | linux*aout* | linux*coff*)
9581 dynamic_linker=no
9584 # This must be Linux ELF.
9585 linux* | k*bsd*-gnu)
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 shlibpath_overrides_runpath=no
9594 # This implies no fast_install, which is unacceptable.
9595 # Some rework will be needed to allow for fast_install
9596 # before this can be enabled.
9597 hardcode_into_libs=yes
9599 # Append ld.so.conf contents to the search path
9600 if test -f /etc/ld.so.conf; then
9601 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' ' '`
9602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9605 # We used to test for /lib/ld.so.1 and disable shared libraries on
9606 # powerpc, because MkLinux only supported shared libraries with the
9607 # GNU dynamic linker. Since this was broken with cross compilers,
9608 # most powerpc-linux boxes support dynamic linking these days and
9609 # people can always --disable-shared, the test was removed, and we
9610 # assume the GNU/Linux dynamic linker is in use.
9611 dynamic_linker='GNU/Linux ld.so'
9614 netbsd*)
9615 version_type=sunos
9616 need_lib_prefix=no
9617 need_version=no
9618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9621 dynamic_linker='NetBSD (a.out) ld.so'
9622 else
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624 soname_spec='${libname}${release}${shared_ext}$major'
9625 dynamic_linker='NetBSD ld.elf_so'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 shlibpath_overrides_runpath=yes
9629 hardcode_into_libs=yes
9632 newsos6)
9633 version_type=linux
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes
9639 nto-qnx*)
9640 version_type=linux
9641 need_lib_prefix=no
9642 need_version=no
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9649 openbsd*)
9650 version_type=sunos
9651 sys_lib_dlsearch_path_spec="/usr/lib"
9652 need_lib_prefix=no
9653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9654 case $host_os in
9655 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9656 *) need_version=no ;;
9657 esac
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9662 case $host_os in
9663 openbsd2.[89] | openbsd2.[89].*)
9664 shlibpath_overrides_runpath=no
9667 shlibpath_overrides_runpath=yes
9669 esac
9670 else
9671 shlibpath_overrides_runpath=yes
9675 os2*)
9676 libname_spec='$name'
9677 shrext_cmds=".dll"
9678 need_lib_prefix=no
9679 library_names_spec='$libname${shared_ext} $libname.a'
9680 dynamic_linker='OS/2 ld.exe'
9681 shlibpath_var=LIBPATH
9684 osf3* | osf4* | osf5*)
9685 version_type=osf
9686 need_lib_prefix=no
9687 need_version=no
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9695 rdos*)
9696 dynamic_linker=no
9699 solaris*)
9700 version_type=linux
9701 need_lib_prefix=no
9702 need_version=no
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes
9707 hardcode_into_libs=yes
9708 # ldd complains unless libraries are executable
9709 postinstall_cmds='chmod +x $lib'
9712 sunos4*)
9713 version_type=sunos
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=yes
9718 if test "$with_gnu_ld" = yes; then
9719 need_lib_prefix=no
9721 need_version=yes
9724 sysv4 | sysv4.3*)
9725 version_type=linux
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec='${libname}${release}${shared_ext}$major'
9728 shlibpath_var=LD_LIBRARY_PATH
9729 case $host_vendor in
9730 sni)
9731 shlibpath_overrides_runpath=no
9732 need_lib_prefix=no
9733 export_dynamic_flag_spec='${wl}-Blargedynsym'
9734 runpath_var=LD_RUN_PATH
9736 siemens)
9737 need_lib_prefix=no
9739 motorola)
9740 need_lib_prefix=no
9741 need_version=no
9742 shlibpath_overrides_runpath=no
9743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9745 esac
9748 sysv4*MP*)
9749 if test -d /usr/nec ;then
9750 version_type=linux
9751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9752 soname_spec='$libname${shared_ext}.$major'
9753 shlibpath_var=LD_LIBRARY_PATH
9757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9758 version_type=freebsd-elf
9759 need_lib_prefix=no
9760 need_version=no
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 hardcode_into_libs=yes
9765 if test "$with_gnu_ld" = yes; then
9766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9767 shlibpath_overrides_runpath=no
9768 else
9769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9770 shlibpath_overrides_runpath=yes
9771 case $host_os in
9772 sco3.2v5*)
9773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9775 esac
9777 sys_lib_dlsearch_path_spec='/usr/lib'
9780 uts4*)
9781 version_type=linux
9782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 soname_spec='${libname}${release}${shared_ext}$major'
9784 shlibpath_var=LD_LIBRARY_PATH
9788 dynamic_linker=no
9790 esac
9791 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9792 echo "${ECHO_T}$dynamic_linker" >&6; }
9793 test "$dynamic_linker" = no && can_build_shared=no
9795 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9801 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9802 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9808 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9811 if test "$GCC" = yes; then
9812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9815 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9816 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9817 hardcode_action=
9818 if test -n "$hardcode_libdir_flag_spec" || \
9819 test -n "$runpath_var" || \
9820 test "X$hardcode_automatic" = "Xyes" ; then
9822 # We can hardcode non-existant directories.
9823 if test "$hardcode_direct" != no &&
9824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9825 # have to relink, otherwise we might link with an installed library
9826 # when we should be linking with a yet-to-be-installed one
9827 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9828 test "$hardcode_minus_L" != no; then
9829 # Linking always hardcodes the temporary library directory.
9830 hardcode_action=relink
9831 else
9832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9833 hardcode_action=immediate
9835 else
9836 # We cannot hardcode anything, or else we can only hardcode existing
9837 # directories.
9838 hardcode_action=unsupported
9840 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9841 echo "${ECHO_T}$hardcode_action" >&6; }
9843 if test "$hardcode_action" = relink; then
9844 # Fast installation is not supported
9845 enable_fast_install=no
9846 elif test "$shlibpath_overrides_runpath" = yes ||
9847 test "$enable_shared" = no; then
9848 # Fast installation is not necessary
9849 enable_fast_install=needless
9852 striplib=
9853 old_striplib=
9854 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9855 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9856 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9857 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9858 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9859 { echo "$as_me:$LINENO: result: yes" >&5
9860 echo "${ECHO_T}yes" >&6; }
9861 else
9862 # FIXME - insert some real tests, host_os isn't really good enough
9863 case $host_os in
9864 darwin*)
9865 if test -n "$STRIP" ; then
9866 striplib="$STRIP -x"
9867 old_striplib="$STRIP -S"
9868 { echo "$as_me:$LINENO: result: yes" >&5
9869 echo "${ECHO_T}yes" >&6; }
9870 else
9871 { echo "$as_me:$LINENO: result: no" >&5
9872 echo "${ECHO_T}no" >&6; }
9876 { echo "$as_me:$LINENO: result: no" >&5
9877 echo "${ECHO_T}no" >&6; }
9879 esac
9882 if test "x$enable_dlopen" != xyes; then
9883 enable_dlopen=unknown
9884 enable_dlopen_self=unknown
9885 enable_dlopen_self_static=unknown
9886 else
9887 lt_cv_dlopen=no
9888 lt_cv_dlopen_libs=
9890 case $host_os in
9891 beos*)
9892 lt_cv_dlopen="load_add_on"
9893 lt_cv_dlopen_libs=
9894 lt_cv_dlopen_self=yes
9897 mingw* | pw32*)
9898 lt_cv_dlopen="LoadLibrary"
9899 lt_cv_dlopen_libs=
9902 cygwin*)
9903 lt_cv_dlopen="dlopen"
9904 lt_cv_dlopen_libs=
9907 darwin*)
9908 # if libdl is installed we need to link against it
9909 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914 ac_check_lib_save_LIBS=$LIBS
9915 LIBS="-ldl $LIBS"
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h. */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char dlopen ();
9931 main ()
9933 return dlopen ();
9935 return 0;
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext &&
9955 $as_test_x conftest$ac_exeext; then
9956 ac_cv_lib_dl_dlopen=yes
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 ac_cv_lib_dl_dlopen=no
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9970 if test $ac_cv_lib_dl_dlopen = yes; then
9971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9972 else
9974 lt_cv_dlopen="dyld"
9975 lt_cv_dlopen_libs=
9976 lt_cv_dlopen_self=yes
9983 { echo "$as_me:$LINENO: checking for shl_load" >&5
9984 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9985 if test "${ac_cv_func_shl_load+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9996 #define shl_load innocuous_shl_load
9998 /* System header to define __stub macros and hopefully few prototypes,
9999 which can conflict with char shl_load (); below.
10000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10001 <limits.h> exists even on freestanding compilers. */
10003 #ifdef __STDC__
10004 # include <limits.h>
10005 #else
10006 # include <assert.h>
10007 #endif
10009 #undef shl_load
10011 /* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 char shl_load ();
10018 /* The GNU C library defines this for functions which it implements
10019 to always fail with ENOSYS. Some functions are actually named
10020 something starting with __ and the normal name is an alias. */
10021 #if defined __stub_shl_load || defined __stub___shl_load
10022 choke me
10023 #endif
10026 main ()
10028 return shl_load ();
10030 return 0;
10032 _ACEOF
10033 rm -f conftest.$ac_objext conftest$ac_exeext
10034 if { (ac_try="$ac_link"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_link") 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && {
10047 test -z "$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 } && test -s conftest$ac_exeext &&
10050 $as_test_x conftest$ac_exeext; then
10051 ac_cv_func_shl_load=yes
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_cv_func_shl_load=no
10059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10060 conftest$ac_exeext conftest.$ac_ext
10062 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10063 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10064 if test $ac_cv_func_shl_load = yes; then
10065 lt_cv_dlopen="shl_load"
10066 else
10067 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10068 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10069 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 ac_check_lib_save_LIBS=$LIBS
10073 LIBS="-ldld $LIBS"
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char shl_load ();
10089 main ()
10091 return shl_load ();
10093 return 0;
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
10114 ac_cv_lib_dld_shl_load=yes
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_lib_dld_shl_load=no
10122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10126 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10127 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10128 if test $ac_cv_lib_dld_shl_load = yes; then
10129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10130 else
10131 { echo "$as_me:$LINENO: checking for dlopen" >&5
10132 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10133 if test "${ac_cv_func_dlopen+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10144 #define dlopen innocuous_dlopen
10146 /* System header to define __stub macros and hopefully few prototypes,
10147 which can conflict with char dlopen (); below.
10148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10149 <limits.h> exists even on freestanding compilers. */
10151 #ifdef __STDC__
10152 # include <limits.h>
10153 #else
10154 # include <assert.h>
10155 #endif
10157 #undef dlopen
10159 /* Override any GCC internal prototype to avoid an error.
10160 Use char because int might match the return type of a GCC
10161 builtin and then its argument prototype would still apply. */
10162 #ifdef __cplusplus
10163 extern "C"
10164 #endif
10165 char dlopen ();
10166 /* The GNU C library defines this for functions which it implements
10167 to always fail with ENOSYS. Some functions are actually named
10168 something starting with __ and the normal name is an alias. */
10169 #if defined __stub_dlopen || defined __stub___dlopen
10170 choke me
10171 #endif
10174 main ()
10176 return dlopen ();
10178 return 0;
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_c_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest$ac_exeext &&
10198 $as_test_x conftest$ac_exeext; then
10199 ac_cv_func_dlopen=yes
10200 else
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_cv_func_dlopen=no
10207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208 conftest$ac_exeext conftest.$ac_ext
10210 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10211 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10212 if test $ac_cv_func_dlopen = yes; then
10213 lt_cv_dlopen="dlopen"
10214 else
10215 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10216 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 ac_check_lib_save_LIBS=$LIBS
10221 LIBS="-ldl $LIBS"
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h. */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10229 /* Override any GCC internal prototype to avoid an error.
10230 Use char because int might match the return type of a GCC
10231 builtin and then its argument prototype would still apply. */
10232 #ifdef __cplusplus
10233 extern "C"
10234 #endif
10235 char dlopen ();
10237 main ()
10239 return dlopen ();
10241 return 0;
10243 _ACEOF
10244 rm -f conftest.$ac_objext conftest$ac_exeext
10245 if { (ac_try="$ac_link"
10246 case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_link") 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } && {
10258 test -z "$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10260 } && test -s conftest$ac_exeext &&
10261 $as_test_x conftest$ac_exeext; then
10262 ac_cv_lib_dl_dlopen=yes
10263 else
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_lib_dl_dlopen=no
10270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10271 conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10274 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10276 if test $ac_cv_lib_dl_dlopen = yes; then
10277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10278 else
10279 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10280 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10281 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284 ac_check_lib_save_LIBS=$LIBS
10285 LIBS="-lsvld $LIBS"
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char dlopen ();
10301 main ()
10303 return dlopen ();
10305 return 0;
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_link") 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_c_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest$ac_exeext &&
10325 $as_test_x conftest$ac_exeext; then
10326 ac_cv_lib_svld_dlopen=yes
10327 else
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ac_cv_lib_svld_dlopen=no
10334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335 conftest$ac_exeext conftest.$ac_ext
10336 LIBS=$ac_check_lib_save_LIBS
10338 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10339 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10340 if test $ac_cv_lib_svld_dlopen = yes; then
10341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10342 else
10343 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10344 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10345 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348 ac_check_lib_save_LIBS=$LIBS
10349 LIBS="-ldld $LIBS"
10350 cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h. */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10357 /* Override any GCC internal prototype to avoid an error.
10358 Use char because int might match the return type of a GCC
10359 builtin and then its argument prototype would still apply. */
10360 #ifdef __cplusplus
10361 extern "C"
10362 #endif
10363 char dld_link ();
10365 main ()
10367 return dld_link ();
10369 return 0;
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (ac_try="$ac_link"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_link") 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest$ac_exeext &&
10389 $as_test_x conftest$ac_exeext; then
10390 ac_cv_lib_dld_dld_link=yes
10391 else
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10395 ac_cv_lib_dld_dld_link=no
10398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399 conftest$ac_exeext conftest.$ac_ext
10400 LIBS=$ac_check_lib_save_LIBS
10402 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10403 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10404 if test $ac_cv_lib_dld_dld_link = yes; then
10405 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10424 esac
10426 if test "x$lt_cv_dlopen" != xno; then
10427 enable_dlopen=yes
10428 else
10429 enable_dlopen=no
10432 case $lt_cv_dlopen in
10433 dlopen)
10434 save_CPPFLAGS="$CPPFLAGS"
10435 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10437 save_LDFLAGS="$LDFLAGS"
10438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10440 save_LIBS="$LIBS"
10441 LIBS="$lt_cv_dlopen_libs $LIBS"
10443 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10444 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10445 if test "${lt_cv_dlopen_self+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 if test "$cross_compiling" = yes; then :
10449 lt_cv_dlopen_self=cross
10450 else
10451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452 lt_status=$lt_dlunknown
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10454 "configure"
10455 #include "confdefs.h"
10457 #if HAVE_DLFCN_H
10458 #include <dlfcn.h>
10459 #endif
10461 #include <stdio.h>
10463 #ifdef RTLD_GLOBAL
10464 # define LT_DLGLOBAL RTLD_GLOBAL
10465 #else
10466 # ifdef DL_GLOBAL
10467 # define LT_DLGLOBAL DL_GLOBAL
10468 # else
10469 # define LT_DLGLOBAL 0
10470 # endif
10471 #endif
10473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474 find out it does not work in some platform. */
10475 #ifndef LT_DLLAZY_OR_NOW
10476 # ifdef RTLD_LAZY
10477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10478 # else
10479 # ifdef DL_LAZY
10480 # define LT_DLLAZY_OR_NOW DL_LAZY
10481 # else
10482 # ifdef RTLD_NOW
10483 # define LT_DLLAZY_OR_NOW RTLD_NOW
10484 # else
10485 # ifdef DL_NOW
10486 # define LT_DLLAZY_OR_NOW DL_NOW
10487 # else
10488 # define LT_DLLAZY_OR_NOW 0
10489 # endif
10490 # endif
10491 # endif
10492 # endif
10493 #endif
10495 #ifdef __cplusplus
10496 extern "C" void exit (int);
10497 #endif
10499 void fnord() { int i=42;}
10500 int main ()
10502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503 int status = $lt_dlunknown;
10505 if (self)
10507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509 /* dlclose (self); */
10511 else
10512 puts (dlerror ());
10514 exit (status);
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10522 (./conftest; exit; ) >&5 2>/dev/null
10523 lt_status=$?
10524 case x$lt_status in
10525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10527 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10528 esac
10529 else :
10530 # compilation failed
10531 lt_cv_dlopen_self=no
10534 rm -fr conftest*
10538 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10539 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10541 if test "x$lt_cv_dlopen_self" = xyes; then
10542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10543 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10544 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10545 if test "${lt_cv_dlopen_self_static+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547 else
10548 if test "$cross_compiling" = yes; then :
10549 lt_cv_dlopen_self_static=cross
10550 else
10551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552 lt_status=$lt_dlunknown
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10554 "configure"
10555 #include "confdefs.h"
10557 #if HAVE_DLFCN_H
10558 #include <dlfcn.h>
10559 #endif
10561 #include <stdio.h>
10563 #ifdef RTLD_GLOBAL
10564 # define LT_DLGLOBAL RTLD_GLOBAL
10565 #else
10566 # ifdef DL_GLOBAL
10567 # define LT_DLGLOBAL DL_GLOBAL
10568 # else
10569 # define LT_DLGLOBAL 0
10570 # endif
10571 #endif
10573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10574 find out it does not work in some platform. */
10575 #ifndef LT_DLLAZY_OR_NOW
10576 # ifdef RTLD_LAZY
10577 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10578 # else
10579 # ifdef DL_LAZY
10580 # define LT_DLLAZY_OR_NOW DL_LAZY
10581 # else
10582 # ifdef RTLD_NOW
10583 # define LT_DLLAZY_OR_NOW RTLD_NOW
10584 # else
10585 # ifdef DL_NOW
10586 # define LT_DLLAZY_OR_NOW DL_NOW
10587 # else
10588 # define LT_DLLAZY_OR_NOW 0
10589 # endif
10590 # endif
10591 # endif
10592 # endif
10593 #endif
10595 #ifdef __cplusplus
10596 extern "C" void exit (int);
10597 #endif
10599 void fnord() { int i=42;}
10600 int main ()
10602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603 int status = $lt_dlunknown;
10605 if (self)
10607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609 /* dlclose (self); */
10611 else
10612 puts (dlerror ());
10614 exit (status);
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10622 (./conftest; exit; ) >&5 2>/dev/null
10623 lt_status=$?
10624 case x$lt_status in
10625 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10626 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10627 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10628 esac
10629 else :
10630 # compilation failed
10631 lt_cv_dlopen_self_static=no
10634 rm -fr conftest*
10638 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10639 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10642 CPPFLAGS="$save_CPPFLAGS"
10643 LDFLAGS="$save_LDFLAGS"
10644 LIBS="$save_LIBS"
10646 esac
10648 case $lt_cv_dlopen_self in
10649 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10650 *) enable_dlopen_self=unknown ;;
10651 esac
10653 case $lt_cv_dlopen_self_static in
10654 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10655 *) enable_dlopen_self_static=unknown ;;
10656 esac
10660 # Report which library types will actually be built
10661 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10662 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10663 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10664 echo "${ECHO_T}$can_build_shared" >&6; }
10666 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10667 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10668 test "$can_build_shared" = "no" && enable_shared=no
10670 # On AIX, shared libraries and static libraries use the same namespace, and
10671 # are all built from PIC.
10672 case $host_os in
10673 aix3*)
10674 test "$enable_shared" = yes && enable_static=no
10675 if test -n "$RANLIB"; then
10676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10677 postinstall_cmds='$RANLIB $lib'
10681 aix[4-9]*)
10682 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10683 test "$enable_shared" = yes && enable_static=no
10686 esac
10687 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10688 echo "${ECHO_T}$enable_shared" >&6; }
10690 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10691 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10692 # Make sure either enable_shared or enable_static is yes.
10693 test "$enable_shared" = yes || enable_static=yes
10694 { echo "$as_me:$LINENO: result: $enable_static" >&5
10695 echo "${ECHO_T}$enable_static" >&6; }
10697 # The else clause should only fire when bootstrapping the
10698 # libtool distribution, otherwise you forgot to ship ltmain.sh
10699 # with your package, and you will get complaints that there are
10700 # no rules to generate ltmain.sh.
10701 if test -f "$ltmain"; then
10702 # See if we are running on zsh, and set the options which allow our commands through
10703 # without removal of \ escapes.
10704 if test -n "${ZSH_VERSION+set}" ; then
10705 setopt NO_GLOB_SUBST
10707 # Now quote all the things that may contain metacharacters while being
10708 # careful not to overquote the AC_SUBSTed values. We take copies of the
10709 # variables and quote the copies for generation of the libtool script.
10710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10711 SED SHELL STRIP \
10712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10714 deplibs_check_method reload_flag reload_cmds need_locks \
10715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10716 lt_cv_sys_global_symbol_to_c_name_address \
10717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10718 old_postinstall_cmds old_postuninstall_cmds \
10719 compiler \
10720 CC \
10721 LD \
10722 lt_prog_compiler_wl \
10723 lt_prog_compiler_pic \
10724 lt_prog_compiler_static \
10725 lt_prog_compiler_no_builtin_flag \
10726 export_dynamic_flag_spec \
10727 thread_safe_flag_spec \
10728 whole_archive_flag_spec \
10729 enable_shared_with_static_runtimes \
10730 old_archive_cmds \
10731 old_archive_from_new_cmds \
10732 predep_objects \
10733 postdep_objects \
10734 predeps \
10735 postdeps \
10736 compiler_lib_search_path \
10737 compiler_lib_search_dirs \
10738 archive_cmds \
10739 archive_expsym_cmds \
10740 postinstall_cmds \
10741 postuninstall_cmds \
10742 old_archive_from_expsyms_cmds \
10743 allow_undefined_flag \
10744 no_undefined_flag \
10745 export_symbols_cmds \
10746 hardcode_libdir_flag_spec \
10747 hardcode_libdir_flag_spec_ld \
10748 hardcode_libdir_separator \
10749 hardcode_automatic \
10750 module_cmds \
10751 module_expsym_cmds \
10752 lt_cv_prog_compiler_c_o \
10753 fix_srcfile_path \
10754 exclude_expsyms \
10755 include_expsyms; do
10757 case $var in
10758 old_archive_cmds | \
10759 old_archive_from_new_cmds | \
10760 archive_cmds | \
10761 archive_expsym_cmds | \
10762 module_cmds | \
10763 module_expsym_cmds | \
10764 old_archive_from_expsyms_cmds | \
10765 export_symbols_cmds | \
10766 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10767 postinstall_cmds | postuninstall_cmds | \
10768 old_postinstall_cmds | old_postuninstall_cmds | \
10769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10770 # Double-quote double-evaled strings.
10771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10776 esac
10777 done
10779 case $lt_echo in
10780 *'\$0 --fallback-echo"')
10781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10783 esac
10785 cfgfile="${ofile}T"
10786 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10787 $rm -f "$cfgfile"
10788 { echo "$as_me:$LINENO: creating $ofile" >&5
10789 echo "$as_me: creating $ofile" >&6;}
10791 cat <<__EOF__ >> "$cfgfile"
10792 #! $SHELL
10794 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10795 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10796 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10798 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10799 # Free Software Foundation, Inc.
10801 # This file is part of GNU Libtool:
10802 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10804 # This program is free software; you can redistribute it and/or modify
10805 # it under the terms of the GNU General Public License as published by
10806 # the Free Software Foundation; either version 2 of the License, or
10807 # (at your option) any later version.
10809 # This program is distributed in the hope that it will be useful, but
10810 # WITHOUT ANY WARRANTY; without even the implied warranty of
10811 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10812 # General Public License for more details.
10814 # You should have received a copy of the GNU General Public License
10815 # along with this program; if not, write to the Free Software
10816 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10818 # As a special exception to the GNU General Public License, if you
10819 # distribute this file as part of a program that contains a
10820 # configuration script generated by Autoconf, you may include it under
10821 # the same distribution terms that you use for the rest of that program.
10823 # A sed program that does not truncate output.
10824 SED=$lt_SED
10826 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10827 Xsed="$SED -e 1s/^X//"
10829 # The HP-UX ksh and POSIX shell print the target directory to stdout
10830 # if CDPATH is set.
10831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10833 # The names of the tagged configurations supported by this script.
10834 available_tags=
10836 # ### BEGIN LIBTOOL CONFIG
10838 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10840 # Shell to use when invoking shell scripts.
10841 SHELL=$lt_SHELL
10843 # Whether or not to build shared libraries.
10844 build_libtool_libs=$enable_shared
10846 # Whether or not to build static libraries.
10847 build_old_libs=$enable_static
10849 # Whether or not to add -lc for building shared libraries.
10850 build_libtool_need_lc=$archive_cmds_need_lc
10852 # Whether or not to disallow shared libs when runtime libs are static
10853 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10855 # Whether or not to optimize for fast installation.
10856 fast_install=$enable_fast_install
10858 # The host system.
10859 host_alias=$host_alias
10860 host=$host
10861 host_os=$host_os
10863 # The build system.
10864 build_alias=$build_alias
10865 build=$build
10866 build_os=$build_os
10868 # An echo program that does not interpret backslashes.
10869 echo=$lt_echo
10871 # The archiver.
10872 AR=$lt_AR
10873 AR_FLAGS=$lt_AR_FLAGS
10875 # A C compiler.
10876 LTCC=$lt_LTCC
10878 # LTCC compiler flags.
10879 LTCFLAGS=$lt_LTCFLAGS
10881 # A language-specific compiler.
10882 CC=$lt_compiler
10884 # Is the compiler the GNU C compiler?
10885 with_gcc=$GCC
10887 # An ERE matcher.
10888 EGREP=$lt_EGREP
10890 # The linker used to build libraries.
10891 LD=$lt_LD
10893 # Whether we need hard or soft links.
10894 LN_S=$lt_LN_S
10896 # A BSD-compatible nm program.
10897 NM=$lt_NM
10899 # A symbol stripping program
10900 STRIP=$lt_STRIP
10902 # Used to examine libraries when file_magic_cmd begins "file"
10903 MAGIC_CMD=$MAGIC_CMD
10905 # Used on cygwin: DLL creation program.
10906 DLLTOOL="$DLLTOOL"
10908 # Used on cygwin: object dumper.
10909 OBJDUMP="$OBJDUMP"
10911 # Used on cygwin: assembler.
10912 AS="$AS"
10914 # The name of the directory that contains temporary libtool files.
10915 objdir=$objdir
10917 # How to create reloadable object files.
10918 reload_flag=$lt_reload_flag
10919 reload_cmds=$lt_reload_cmds
10921 # How to pass a linker flag through the compiler.
10922 wl=$lt_lt_prog_compiler_wl
10924 # Object file suffix (normally "o").
10925 objext="$ac_objext"
10927 # Old archive suffix (normally "a").
10928 libext="$libext"
10930 # Shared library suffix (normally ".so").
10931 shrext_cmds='$shrext_cmds'
10933 # Executable file suffix (normally "").
10934 exeext="$exeext"
10936 # Additional compiler flags for building library objects.
10937 pic_flag=$lt_lt_prog_compiler_pic
10938 pic_mode=$pic_mode
10940 # What is the maximum length of a command?
10941 max_cmd_len=$lt_cv_sys_max_cmd_len
10943 # Does compiler simultaneously support -c and -o options?
10944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10946 # Must we lock files when doing compilation?
10947 need_locks=$lt_need_locks
10949 # Do we need the lib prefix for modules?
10950 need_lib_prefix=$need_lib_prefix
10952 # Do we need a version for libraries?
10953 need_version=$need_version
10955 # Whether dlopen is supported.
10956 dlopen_support=$enable_dlopen
10958 # Whether dlopen of programs is supported.
10959 dlopen_self=$enable_dlopen_self
10961 # Whether dlopen of statically linked programs is supported.
10962 dlopen_self_static=$enable_dlopen_self_static
10964 # Compiler flag to prevent dynamic linking.
10965 link_static_flag=$lt_lt_prog_compiler_static
10967 # Compiler flag to turn off builtin functions.
10968 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10970 # Compiler flag to allow reflexive dlopens.
10971 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10973 # Compiler flag to generate shared objects directly from archives.
10974 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10976 # Compiler flag to generate thread-safe objects.
10977 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10979 # Library versioning type.
10980 version_type=$version_type
10982 # Format of library name prefix.
10983 libname_spec=$lt_libname_spec
10985 # List of archive names. First name is the real one, the rest are links.
10986 # The last name is the one that the linker finds with -lNAME.
10987 library_names_spec=$lt_library_names_spec
10989 # The coded name of the library, if different from the real name.
10990 soname_spec=$lt_soname_spec
10992 # Commands used to build and install an old-style archive.
10993 RANLIB=$lt_RANLIB
10994 old_archive_cmds=$lt_old_archive_cmds
10995 old_postinstall_cmds=$lt_old_postinstall_cmds
10996 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10998 # Create an old-style archive from a shared archive.
10999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11001 # Create a temporary old-style archive to link instead of a shared archive.
11002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11004 # Commands used to build and install a shared archive.
11005 archive_cmds=$lt_archive_cmds
11006 archive_expsym_cmds=$lt_archive_expsym_cmds
11007 postinstall_cmds=$lt_postinstall_cmds
11008 postuninstall_cmds=$lt_postuninstall_cmds
11010 # Commands used to build a loadable module (assumed same as above if empty)
11011 module_cmds=$lt_module_cmds
11012 module_expsym_cmds=$lt_module_expsym_cmds
11014 # Commands to strip libraries.
11015 old_striplib=$lt_old_striplib
11016 striplib=$lt_striplib
11018 # Dependencies to place before the objects being linked to create a
11019 # shared library.
11020 predep_objects=$lt_predep_objects
11022 # Dependencies to place after the objects being linked to create a
11023 # shared library.
11024 postdep_objects=$lt_postdep_objects
11026 # Dependencies to place before the objects being linked to create a
11027 # shared library.
11028 predeps=$lt_predeps
11030 # Dependencies to place after the objects being linked to create a
11031 # shared library.
11032 postdeps=$lt_postdeps
11034 # The directories searched by this compiler when creating a shared
11035 # library
11036 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11038 # The library search path used internally by the compiler when linking
11039 # a shared library.
11040 compiler_lib_search_path=$lt_compiler_lib_search_path
11042 # Method to check whether dependent libraries are shared objects.
11043 deplibs_check_method=$lt_deplibs_check_method
11045 # Command to use when deplibs_check_method == file_magic.
11046 file_magic_cmd=$lt_file_magic_cmd
11048 # Flag that allows shared libraries with undefined symbols to be built.
11049 allow_undefined_flag=$lt_allow_undefined_flag
11051 # Flag that forces no undefined symbols.
11052 no_undefined_flag=$lt_no_undefined_flag
11054 # Commands used to finish a libtool library installation in a directory.
11055 finish_cmds=$lt_finish_cmds
11057 # Same as above, but a single script fragment to be evaled but not shown.
11058 finish_eval=$lt_finish_eval
11060 # Take the output of nm and produce a listing of raw symbols and C names.
11061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11063 # Transform the output of nm in a proper C declaration
11064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11066 # Transform the output of nm in a C name address pair
11067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11069 # This is the shared library runtime path variable.
11070 runpath_var=$runpath_var
11072 # This is the shared library path variable.
11073 shlibpath_var=$shlibpath_var
11075 # Is shlibpath searched before the hard-coded library search path?
11076 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11078 # How to hardcode a shared library path into an executable.
11079 hardcode_action=$hardcode_action
11081 # Whether we should hardcode library paths into libraries.
11082 hardcode_into_libs=$hardcode_into_libs
11084 # Flag to hardcode \$libdir into a binary during linking.
11085 # This must work even if \$libdir does not exist.
11086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11088 # If ld is used when linking, flag to hardcode \$libdir into
11089 # a binary during linking. This must work even if \$libdir does
11090 # not exist.
11091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11093 # Whether we need a single -rpath flag with a separated argument.
11094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11096 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11097 # resulting binary.
11098 hardcode_direct=$hardcode_direct
11100 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11101 # resulting binary.
11102 hardcode_minus_L=$hardcode_minus_L
11104 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11105 # the resulting binary.
11106 hardcode_shlibpath_var=$hardcode_shlibpath_var
11108 # Set to yes if building a shared library automatically hardcodes DIR into the library
11109 # and all subsequent libraries and executables linked against it.
11110 hardcode_automatic=$hardcode_automatic
11112 # Variables whose values should be saved in libtool wrapper scripts and
11113 # restored at relink time.
11114 variables_saved_for_relink="$variables_saved_for_relink"
11116 # Whether libtool must link a program against all its dependency libraries.
11117 link_all_deplibs=$link_all_deplibs
11119 # Compile-time system search path for libraries
11120 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11122 # Run-time system search path for libraries
11123 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11125 # Fix the shell variable \$srcfile for the compiler.
11126 fix_srcfile_path=$lt_fix_srcfile_path
11128 # Set to yes if exported symbols are required.
11129 always_export_symbols=$always_export_symbols
11131 # The commands to list exported symbols.
11132 export_symbols_cmds=$lt_export_symbols_cmds
11134 # The commands to extract the exported symbol list from a shared archive.
11135 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11137 # Symbols that should not be listed in the preloaded symbols.
11138 exclude_expsyms=$lt_exclude_expsyms
11140 # Symbols that must always be exported.
11141 include_expsyms=$lt_include_expsyms
11143 # ### END LIBTOOL CONFIG
11145 __EOF__
11148 case $host_os in
11149 aix3*)
11150 cat <<\EOF >> "$cfgfile"
11152 # AIX sometimes has problems with the GCC collect2 program. For some
11153 # reason, if we set the COLLECT_NAMES environment variable, the problems
11154 # vanish in a puff of smoke.
11155 if test "X${COLLECT_NAMES+set}" != Xset; then
11156 COLLECT_NAMES=
11157 export COLLECT_NAMES
11161 esac
11163 # We use sed instead of cat because bash on DJGPP gets confused if
11164 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11165 # text mode, it properly converts lines to CR/LF. This bash problem
11166 # is reportedly fixed, but why not run on old versions too?
11167 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11169 mv -f "$cfgfile" "$ofile" || \
11170 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11171 chmod +x "$ofile"
11173 else
11174 # If there is no Makefile yet, we rely on a make rule to execute
11175 # `config.status --recheck' to rerun these tests and create the
11176 # libtool script then.
11177 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11178 if test -f "$ltmain_in"; then
11179 test -f Makefile && make "$ltmain"
11184 ac_ext=c
11185 ac_cpp='$CPP $CPPFLAGS'
11186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11190 CC="$lt_save_CC"
11193 # Check whether --with-tags was given.
11194 if test "${with_tags+set}" = set; then
11195 withval=$with_tags; tagnames="$withval"
11199 if test -f "$ltmain" && test -n "$tagnames"; then
11200 if test ! -f "${ofile}"; then
11201 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11202 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11205 if test -z "$LTCC"; then
11206 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11207 if test -z "$LTCC"; then
11208 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11209 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11210 else
11211 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11212 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11215 if test -z "$LTCFLAGS"; then
11216 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11219 # Extract list of available tagged configurations in $ofile.
11220 # Note that this assumes the entire list is on one line.
11221 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11224 for tagname in $tagnames; do
11225 IFS="$lt_save_ifs"
11226 # Check whether tagname contains only valid characters
11227 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11228 "") ;;
11229 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11230 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11231 { (exit 1); exit 1; }; }
11233 esac
11235 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11236 then
11237 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11238 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11239 { (exit 1); exit 1; }; }
11242 # Update the list of available tags.
11243 if test -n "$tagname"; then
11244 echo appending configuration tag \"$tagname\" to $ofile
11246 case $tagname in
11247 CXX)
11248 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11249 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11250 (test "X$CXX" != "Xg++"))) ; then
11251 ac_ext=cpp
11252 ac_cpp='$CXXCPP $CPPFLAGS'
11253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11260 archive_cmds_need_lc_CXX=no
11261 allow_undefined_flag_CXX=
11262 always_export_symbols_CXX=no
11263 archive_expsym_cmds_CXX=
11264 export_dynamic_flag_spec_CXX=
11265 hardcode_direct_CXX=no
11266 hardcode_libdir_flag_spec_CXX=
11267 hardcode_libdir_flag_spec_ld_CXX=
11268 hardcode_libdir_separator_CXX=
11269 hardcode_minus_L_CXX=no
11270 hardcode_shlibpath_var_CXX=unsupported
11271 hardcode_automatic_CXX=no
11272 module_cmds_CXX=
11273 module_expsym_cmds_CXX=
11274 link_all_deplibs_CXX=unknown
11275 old_archive_cmds_CXX=$old_archive_cmds
11276 no_undefined_flag_CXX=
11277 whole_archive_flag_spec_CXX=
11278 enable_shared_with_static_runtimes_CXX=no
11280 # Dependencies to place before and after the object being linked:
11281 predep_objects_CXX=
11282 postdep_objects_CXX=
11283 predeps_CXX=
11284 postdeps_CXX=
11285 compiler_lib_search_path_CXX=
11286 compiler_lib_search_dirs_CXX=
11288 # Source file extension for C++ test sources.
11289 ac_ext=cpp
11291 # Object file extension for compiled C++ test sources.
11292 objext=o
11293 objext_CXX=$objext
11295 # Code to be used in simple compile tests
11296 lt_simple_compile_test_code="int some_variable = 0;"
11298 # Code to be used in simple link tests
11299 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11301 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11303 # If no C compiler was specified, use CC.
11304 LTCC=${LTCC-"$CC"}
11306 # If no C compiler flags were specified, use CFLAGS.
11307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11309 # Allow CC to be a program name with arguments.
11310 compiler=$CC
11313 # save warnings/boilerplate of simple test code
11314 ac_outfile=conftest.$ac_objext
11315 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11317 _lt_compiler_boilerplate=`cat conftest.err`
11318 $rm conftest*
11320 ac_outfile=conftest.$ac_objext
11321 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11323 _lt_linker_boilerplate=`cat conftest.err`
11324 $rm -r conftest*
11327 # Allow CC to be a program name with arguments.
11328 lt_save_CC=$CC
11329 lt_save_LD=$LD
11330 lt_save_GCC=$GCC
11331 GCC=$GXX
11332 lt_save_with_gnu_ld=$with_gnu_ld
11333 lt_save_path_LD=$lt_cv_path_LD
11334 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11335 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11336 else
11337 $as_unset lt_cv_prog_gnu_ld
11339 if test -n "${lt_cv_path_LDCXX+set}"; then
11340 lt_cv_path_LD=$lt_cv_path_LDCXX
11341 else
11342 $as_unset lt_cv_path_LD
11344 test -z "${LDCXX+set}" || LD=$LDCXX
11345 CC=${CXX-"c++"}
11346 compiler=$CC
11347 compiler_CXX=$CC
11348 for cc_temp in $compiler""; do
11349 case $cc_temp in
11350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11351 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11352 \-*) ;;
11353 *) break;;
11354 esac
11355 done
11356 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11359 # We don't want -fno-exception wen compiling C++ code, so set the
11360 # no_builtin_flag separately
11361 if test "$GXX" = yes; then
11362 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11363 else
11364 lt_prog_compiler_no_builtin_flag_CXX=
11367 if test "$GXX" = yes; then
11368 # Set up default GNU C++ configuration
11371 # Check whether --with-gnu-ld was given.
11372 if test "${with_gnu_ld+set}" = set; then
11373 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11374 else
11375 with_gnu_ld=no
11378 ac_prog=ld
11379 if test "$GCC" = yes; then
11380 # Check if gcc -print-prog-name=ld gives a path.
11381 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11382 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11383 case $host in
11384 *-*-mingw*)
11385 # gcc leaves a trailing carriage return which upsets mingw
11386 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11388 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11389 esac
11390 case $ac_prog in
11391 # Accept absolute paths.
11392 [\\/]* | ?:[\\/]*)
11393 re_direlt='/[^/][^/]*/\.\./'
11394 # Canonicalize the pathname of ld
11395 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11396 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11397 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11398 done
11399 test -z "$LD" && LD="$ac_prog"
11402 # If it fails, then pretend we aren't using GCC.
11403 ac_prog=ld
11406 # If it is relative, then search for the first ld in PATH.
11407 with_gnu_ld=unknown
11409 esac
11410 elif test "$with_gnu_ld" = yes; then
11411 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11412 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11413 else
11414 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11415 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11417 if test "${lt_cv_path_LD+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 if test -z "$LD"; then
11421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11422 for ac_dir in $PATH; do
11423 IFS="$lt_save_ifs"
11424 test -z "$ac_dir" && ac_dir=.
11425 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11426 lt_cv_path_LD="$ac_dir/$ac_prog"
11427 # Check to see if the program is GNU ld. I'd rather use --version,
11428 # but apparently some variants of GNU ld only accept -v.
11429 # Break only if it was the GNU/non-GNU ld that we prefer.
11430 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11431 *GNU* | *'with BFD'*)
11432 test "$with_gnu_ld" != no && break
11435 test "$with_gnu_ld" != yes && break
11437 esac
11439 done
11440 IFS="$lt_save_ifs"
11441 else
11442 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11446 LD="$lt_cv_path_LD"
11447 if test -n "$LD"; then
11448 { echo "$as_me:$LINENO: result: $LD" >&5
11449 echo "${ECHO_T}$LD" >&6; }
11450 else
11451 { echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6; }
11454 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11455 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11456 { (exit 1); exit 1; }; }
11457 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11458 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11459 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11463 case `$LD -v 2>&1 </dev/null` in
11464 *GNU* | *'with BFD'*)
11465 lt_cv_prog_gnu_ld=yes
11468 lt_cv_prog_gnu_ld=no
11470 esac
11472 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11473 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11474 with_gnu_ld=$lt_cv_prog_gnu_ld
11478 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11479 # archiving commands below assume that GNU ld is being used.
11480 if test "$with_gnu_ld" = yes; then
11481 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11482 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'
11484 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11487 # If archive_cmds runs LD, not CC, wlarc should be empty
11488 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11489 # investigate it a little bit more. (MM)
11490 wlarc='${wl}'
11492 # ancient GNU ld didn't support --whole-archive et. al.
11493 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11494 grep 'no-whole-archive' > /dev/null; then
11495 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11496 else
11497 whole_archive_flag_spec_CXX=
11499 else
11500 with_gnu_ld=no
11501 wlarc=
11503 # A generic and very simple default shared library creation
11504 # command for GNU C++ for the case where it uses the native
11505 # linker, instead of GNU ld. If possible, this setting should
11506 # overridden to take advantage of the native linker features on
11507 # the platform it is being used on.
11508 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11511 # Commands to make compiler produce verbose output that lists
11512 # what "hidden" libraries, object files and flags are used when
11513 # linking a shared library.
11514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11516 else
11517 GXX=no
11518 with_gnu_ld=no
11519 wlarc=
11522 # PORTME: fill in a description of your system's C++ link characteristics
11523 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11524 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11525 ld_shlibs_CXX=yes
11526 case $host_os in
11527 aix3*)
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11531 aix[4-9]*)
11532 if test "$host_cpu" = ia64; then
11533 # On IA64, the linker does run time linking by default, so we don't
11534 # have to do anything special.
11535 aix_use_runtimelinking=no
11536 exp_sym_flag='-Bexport'
11537 no_entry_flag=""
11538 else
11539 aix_use_runtimelinking=no
11541 # Test if we are trying to use run time linking or normal
11542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11543 # need to do runtime linking.
11544 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11545 for ld_flag in $LDFLAGS; do
11546 case $ld_flag in
11547 *-brtl*)
11548 aix_use_runtimelinking=yes
11549 break
11551 esac
11552 done
11554 esac
11556 exp_sym_flag='-bexport'
11557 no_entry_flag='-bnoentry'
11560 # When large executables or shared objects are built, AIX ld can
11561 # have problems creating the table of contents. If linking a library
11562 # or program results in "error TOC overflow" add -mminimal-toc to
11563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11566 archive_cmds_CXX=''
11567 hardcode_direct_CXX=yes
11568 hardcode_libdir_separator_CXX=':'
11569 link_all_deplibs_CXX=yes
11571 if test "$GXX" = yes; then
11572 case $host_os in aix4.[012]|aix4.[012].*)
11573 # We only want to do this on AIX 4.2 and lower, the check
11574 # below for broken collect2 doesn't work under 4.3+
11575 collect2name=`${CC} -print-prog-name=collect2`
11576 if test -f "$collect2name" && \
11577 strings "$collect2name" | grep resolve_lib_name >/dev/null
11578 then
11579 # We have reworked collect2
11581 else
11582 # We have old collect2
11583 hardcode_direct_CXX=unsupported
11584 # It fails to find uninstalled libraries when the uninstalled
11585 # path is not listed in the libpath. Setting hardcode_minus_L
11586 # to unsupported forces relinking
11587 hardcode_minus_L_CXX=yes
11588 hardcode_libdir_flag_spec_CXX='-L$libdir'
11589 hardcode_libdir_separator_CXX=
11592 esac
11593 shared_flag='-shared'
11594 if test "$aix_use_runtimelinking" = yes; then
11595 shared_flag="$shared_flag "'${wl}-G'
11597 else
11598 # not using gcc
11599 if test "$host_cpu" = ia64; then
11600 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11601 # chokes on -Wl,-G. The following line is correct:
11602 shared_flag='-G'
11603 else
11604 if test "$aix_use_runtimelinking" = yes; then
11605 shared_flag='${wl}-G'
11606 else
11607 shared_flag='${wl}-bM:SRE'
11612 # It seems that -bexpall does not export symbols beginning with
11613 # underscore (_), so it is better to generate a list of symbols to export.
11614 always_export_symbols_CXX=yes
11615 if test "$aix_use_runtimelinking" = yes; then
11616 # Warning - without using the other runtime loading flags (-brtl),
11617 # -berok will link without error, but may produce a broken library.
11618 allow_undefined_flag_CXX='-berok'
11619 # Determine the default libpath from the value encoded in an empty executable.
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11628 main ()
11632 return 0;
11634 _ACEOF
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (ac_try="$ac_link"
11637 case "(($ac_try" in
11638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639 *) ac_try_echo=$ac_try;;
11640 esac
11641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11642 (eval "$ac_link") 2>conftest.er1
11643 ac_status=$?
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } && {
11649 test -z "$ac_cxx_werror_flag" ||
11650 test ! -s conftest.err
11651 } && test -s conftest$ac_exeext &&
11652 $as_test_x conftest$ac_exeext; then
11654 lt_aix_libpath_sed='
11655 /Import File Strings/,/^$/ {
11656 /^0/ {
11657 s/^0 *\(.*\)$/\1/
11661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11662 # Check for a 64-bit object if we didn't find anything.
11663 if test -z "$aix_libpath"; then
11664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11677 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11679 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"
11680 else
11681 if test "$host_cpu" = ia64; then
11682 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11683 allow_undefined_flag_CXX="-z nodefs"
11684 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"
11685 else
11686 # Determine the default libpath from the value encoded in an empty executable.
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h. */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11695 main ()
11699 return 0;
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (ac_try="$ac_link"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_link") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_cxx_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest$ac_exeext &&
11719 $as_test_x conftest$ac_exeext; then
11721 lt_aix_libpath_sed='
11722 /Import File Strings/,/^$/ {
11723 /^0/ {
11724 s/^0 *\(.*\)$/\1/
11728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11729 # Check for a 64-bit object if we didn't find anything.
11730 if test -z "$aix_libpath"; then
11731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11733 else
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11741 conftest$ac_exeext conftest.$ac_ext
11742 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11744 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11745 # Warning - without using the other run time loading flags,
11746 # -berok will link without error, but may produce a broken library.
11747 no_undefined_flag_CXX=' ${wl}-bernotok'
11748 allow_undefined_flag_CXX=' ${wl}-berok'
11749 # Exported symbols can be pulled into shared objects from archives
11750 whole_archive_flag_spec_CXX='$convenience'
11751 archive_cmds_need_lc_CXX=yes
11752 # This is similar to how AIX traditionally builds its shared libraries.
11753 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'
11758 beos*)
11759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11760 allow_undefined_flag_CXX=unsupported
11761 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11762 # support --undefined. This deserves some investigation. FIXME
11763 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11764 else
11765 ld_shlibs_CXX=no
11769 chorus*)
11770 case $cc_basename in
11772 # FIXME: insert proper C++ library support
11773 ld_shlibs_CXX=no
11775 esac
11778 cygwin* | mingw* | pw32*)
11779 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11780 # as there is no search path for DLLs.
11781 hardcode_libdir_flag_spec_CXX='-L$libdir'
11782 allow_undefined_flag_CXX=unsupported
11783 always_export_symbols_CXX=no
11784 enable_shared_with_static_runtimes_CXX=yes
11786 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11787 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'
11788 # If the export-symbols file already is a .def file (1st line
11789 # is EXPORTS), use it as is; otherwise, prepend...
11790 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11791 cp $export_symbols $output_objdir/$soname.def;
11792 else
11793 echo EXPORTS > $output_objdir/$soname.def;
11794 cat $export_symbols >> $output_objdir/$soname.def;
11796 $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'
11797 else
11798 ld_shlibs_CXX=no
11801 darwin* | rhapsody*)
11802 archive_cmds_need_lc_CXX=no
11803 hardcode_direct_CXX=no
11804 hardcode_automatic_CXX=yes
11805 hardcode_shlibpath_var_CXX=unsupported
11806 whole_archive_flag_spec_CXX=''
11807 link_all_deplibs_CXX=yes
11808 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11809 if test "$GXX" = yes ; then
11810 output_verbose_link_cmd='echo'
11811 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}"
11812 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11813 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}"
11814 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}"
11815 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11816 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}"
11817 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}"
11819 else
11820 case $cc_basename in
11821 xlc*)
11822 output_verbose_link_cmd='echo'
11823 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'
11824 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11826 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}'
11827 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}'
11830 ld_shlibs_CXX=no
11832 esac
11836 dgux*)
11837 case $cc_basename in
11838 ec++*)
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11842 ghcx*)
11843 # Green Hills C++ Compiler
11844 # FIXME: insert proper C++ library support
11845 ld_shlibs_CXX=no
11848 # FIXME: insert proper C++ library support
11849 ld_shlibs_CXX=no
11851 esac
11853 freebsd[12]*)
11854 # C++ shared libraries reported to be fairly broken before switch to ELF
11855 ld_shlibs_CXX=no
11857 freebsd-elf*)
11858 archive_cmds_need_lc_CXX=no
11860 freebsd* | dragonfly*)
11861 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11862 # conventions
11863 ld_shlibs_CXX=yes
11865 gnu*)
11867 hpux9*)
11868 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11869 hardcode_libdir_separator_CXX=:
11870 export_dynamic_flag_spec_CXX='${wl}-E'
11871 hardcode_direct_CXX=yes
11872 hardcode_minus_L_CXX=yes # Not in the search PATH,
11873 # but as the default
11874 # location of the library.
11876 case $cc_basename in
11877 CC*)
11878 # FIXME: insert proper C++ library support
11879 ld_shlibs_CXX=no
11881 aCC*)
11882 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'
11883 # Commands to make compiler produce verbose output that lists
11884 # what "hidden" libraries, object files and flags are used when
11885 # linking a shared library.
11887 # There doesn't appear to be a way to prevent this compiler from
11888 # explicitly linking system object files so we need to strip them
11889 # from the output so that they don't get included in the library
11890 # dependencies.
11891 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'
11894 if test "$GXX" = yes; then
11895 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'
11896 else
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
11901 esac
11903 hpux10*|hpux11*)
11904 if test $with_gnu_ld = no; then
11905 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11906 hardcode_libdir_separator_CXX=:
11908 case $host_cpu in
11909 hppa*64*|ia64*) ;;
11911 export_dynamic_flag_spec_CXX='${wl}-E'
11913 esac
11915 case $host_cpu in
11916 hppa*64*|ia64*)
11917 hardcode_direct_CXX=no
11918 hardcode_shlibpath_var_CXX=no
11921 hardcode_direct_CXX=yes
11922 hardcode_minus_L_CXX=yes # Not in the search PATH,
11923 # but as the default
11924 # location of the library.
11926 esac
11928 case $cc_basename in
11929 CC*)
11930 # FIXME: insert proper C++ library support
11931 ld_shlibs_CXX=no
11933 aCC*)
11934 case $host_cpu in
11935 hppa*64*)
11936 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11938 ia64*)
11939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11944 esac
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11952 # dependencies.
11953 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'
11956 if test "$GXX" = yes; then
11957 if test $with_gnu_ld = no; then
11958 case $host_cpu in
11959 hppa*64*)
11960 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11962 ia64*)
11963 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11966 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'
11968 esac
11970 else
11971 # FIXME: insert proper C++ library support
11972 ld_shlibs_CXX=no
11975 esac
11977 interix[3-9]*)
11978 hardcode_direct_CXX=no
11979 hardcode_shlibpath_var_CXX=no
11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981 export_dynamic_flag_spec_CXX='${wl}-E'
11982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11983 # Instead, shared libraries are loaded at an image base (0x10000000 by
11984 # default) and relocated if they conflict, which is a slow very memory
11985 # consuming and fragmenting process. To avoid this, we pick a random,
11986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11987 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11988 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'
11989 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'
11991 irix5* | irix6*)
11992 case $cc_basename in
11993 CC*)
11994 # SGI C++
11995 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'
11997 # Archives containing C++ object files must be created using
11998 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11999 # necessary to make sure instantiated templates are included
12000 # in the archive.
12001 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12004 if test "$GXX" = yes; then
12005 if test "$with_gnu_ld" = no; then
12006 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'
12007 else
12008 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'
12011 link_all_deplibs_CXX=yes
12013 esac
12014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12015 hardcode_libdir_separator_CXX=:
12017 linux* | k*bsd*-gnu)
12018 case $cc_basename in
12019 KCC*)
12020 # Kuck and Associates, Inc. (KAI) C++ Compiler
12022 # KCC will only create a shared library if the output file
12023 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12024 # to its proper name (with version) after linking.
12025 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'
12026 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'
12027 # Commands to make compiler produce verbose output that lists
12028 # what "hidden" libraries, object files and flags are used when
12029 # linking a shared library.
12031 # There doesn't appear to be a way to prevent this compiler from
12032 # explicitly linking system object files so we need to strip them
12033 # from the output so that they don't get included in the library
12034 # dependencies.
12035 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'
12037 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12040 # Archives containing C++ object files must be created using
12041 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12042 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12044 icpc*)
12045 # Intel C++
12046 with_gnu_ld=yes
12047 # version 8.0 and above of icpc choke on multiply defined symbols
12048 # if we add $predep_objects and $postdep_objects, however 7.1 and
12049 # earlier do not add the objects themselves.
12050 case `$CC -V 2>&1` in
12051 *"Version 7."*)
12052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12053 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'
12055 *) # Version 8.0 or newer
12056 tmp_idyn=
12057 case $host_cpu in
12058 ia64*) tmp_idyn=' -i_dynamic';;
12059 esac
12060 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12061 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'
12063 esac
12064 archive_cmds_need_lc_CXX=no
12065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12066 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12067 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12069 pgCC* | pgcpp*)
12070 # Portland Group C++ compiler
12071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12072 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'
12074 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12076 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'
12078 cxx*)
12079 # Compaq C++
12080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12081 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'
12083 runpath_var=LD_RUN_PATH
12084 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12085 hardcode_libdir_separator_CXX=:
12087 # Commands to make compiler produce verbose output that lists
12088 # what "hidden" libraries, object files and flags are used when
12089 # linking a shared library.
12091 # There doesn't appear to be a way to prevent this compiler from
12092 # explicitly linking system object files so we need to strip them
12093 # from the output so that they don't get included in the library
12094 # dependencies.
12095 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'
12098 case `$CC -V 2>&1 | sed 5q` in
12099 *Sun\ C*)
12100 # Sun C++ 5.9
12101 no_undefined_flag_CXX=' -zdefs'
12102 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103 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'
12104 hardcode_libdir_flag_spec_CXX='-R$libdir'
12105 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'
12107 # Not sure whether something based on
12108 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12109 # would be better.
12110 output_verbose_link_cmd='echo'
12112 # Archives containing C++ object files must be created using
12113 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12114 # necessary to make sure instantiated templates are included
12115 # in the archive.
12116 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12118 esac
12120 esac
12122 lynxos*)
12123 # FIXME: insert proper C++ library support
12124 ld_shlibs_CXX=no
12126 m88k*)
12127 # FIXME: insert proper C++ library support
12128 ld_shlibs_CXX=no
12130 mvs*)
12131 case $cc_basename in
12132 cxx*)
12133 # FIXME: insert proper C++ library support
12134 ld_shlibs_CXX=no
12137 # FIXME: insert proper C++ library support
12138 ld_shlibs_CXX=no
12140 esac
12142 netbsd*)
12143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12144 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12145 wlarc=
12146 hardcode_libdir_flag_spec_CXX='-R$libdir'
12147 hardcode_direct_CXX=yes
12148 hardcode_shlibpath_var_CXX=no
12150 # Workaround some broken pre-1.5 toolchains
12151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12153 openbsd2*)
12154 # C++ shared libraries are fairly broken
12155 ld_shlibs_CXX=no
12157 openbsd*)
12158 if test -f /usr/libexec/ld.so; then
12159 hardcode_direct_CXX=yes
12160 hardcode_shlibpath_var_CXX=no
12161 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12164 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12165 export_dynamic_flag_spec_CXX='${wl}-E'
12166 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12168 output_verbose_link_cmd='echo'
12169 else
12170 ld_shlibs_CXX=no
12173 osf3*)
12174 case $cc_basename in
12175 KCC*)
12176 # Kuck and Associates, Inc. (KAI) C++ Compiler
12178 # KCC will only create a shared library if the output file
12179 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12180 # to its proper name (with version) after linking.
12181 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'
12183 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12184 hardcode_libdir_separator_CXX=:
12186 # Archives containing C++ object files must be created using
12187 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12188 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12191 RCC*)
12192 # Rational C++ 2.4.1
12193 # FIXME: insert proper C++ library support
12194 ld_shlibs_CXX=no
12196 cxx*)
12197 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12198 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'
12200 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12201 hardcode_libdir_separator_CXX=:
12203 # Commands to make compiler produce verbose output that lists
12204 # what "hidden" libraries, object files and flags are used when
12205 # linking a shared library.
12207 # There doesn't appear to be a way to prevent this compiler from
12208 # explicitly linking system object files so we need to strip them
12209 # from the output so that they don't get included in the library
12210 # dependencies.
12211 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'
12214 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12215 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12216 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'
12218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12219 hardcode_libdir_separator_CXX=:
12221 # Commands to make compiler produce verbose output that lists
12222 # what "hidden" libraries, object files and flags are used when
12223 # linking a shared library.
12224 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12226 else
12227 # FIXME: insert proper C++ library support
12228 ld_shlibs_CXX=no
12231 esac
12233 osf4* | osf5*)
12234 case $cc_basename in
12235 KCC*)
12236 # Kuck and Associates, Inc. (KAI) C++ Compiler
12238 # KCC will only create a shared library if the output file
12239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12240 # to its proper name (with version) after linking.
12241 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'
12243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12244 hardcode_libdir_separator_CXX=:
12246 # Archives containing C++ object files must be created using
12247 # the KAI C++ compiler.
12248 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12250 RCC*)
12251 # Rational C++ 2.4.1
12252 # FIXME: insert proper C++ library support
12253 ld_shlibs_CXX=no
12255 cxx*)
12256 allow_undefined_flag_CXX=' -expect_unresolved \*'
12257 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'
12258 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12259 echo "-hidden">> $lib.exp~
12260 $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~
12261 $rm $lib.exp'
12263 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12264 hardcode_libdir_separator_CXX=:
12266 # Commands to make compiler produce verbose output that lists
12267 # what "hidden" libraries, object files and flags are used when
12268 # linking a shared library.
12270 # There doesn't appear to be a way to prevent this compiler from
12271 # explicitly linking system object files so we need to strip them
12272 # from the output so that they don't get included in the library
12273 # dependencies.
12274 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'
12277 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12278 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12279 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'
12281 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12282 hardcode_libdir_separator_CXX=:
12284 # Commands to make compiler produce verbose output that lists
12285 # what "hidden" libraries, object files and flags are used when
12286 # linking a shared library.
12287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12289 else
12290 # FIXME: insert proper C++ library support
12291 ld_shlibs_CXX=no
12294 esac
12296 psos*)
12297 # FIXME: insert proper C++ library support
12298 ld_shlibs_CXX=no
12300 sunos4*)
12301 case $cc_basename in
12302 CC*)
12303 # Sun C++ 4.x
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12307 lcc*)
12308 # Lucid
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12316 esac
12318 solaris*)
12319 case $cc_basename in
12320 CC*)
12321 # Sun C++ 4.2, 5.x and Centerline C++
12322 archive_cmds_need_lc_CXX=yes
12323 no_undefined_flag_CXX=' -zdefs'
12324 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12325 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12326 $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'
12328 hardcode_libdir_flag_spec_CXX='-R$libdir'
12329 hardcode_shlibpath_var_CXX=no
12330 case $host_os in
12331 solaris2.[0-5] | solaris2.[0-5].*) ;;
12333 # The compiler driver will combine and reorder linker options,
12334 # but understands `-z linker_flag'.
12335 # Supported since Solaris 2.6 (maybe 2.5.1?)
12336 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12338 esac
12339 link_all_deplibs_CXX=yes
12341 output_verbose_link_cmd='echo'
12343 # Archives containing C++ object files must be created using
12344 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12345 # necessary to make sure instantiated templates are included
12346 # in the archive.
12347 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12349 gcx*)
12350 # Green Hills C++ Compiler
12351 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12353 # The C++ compiler must be used to create the archive.
12354 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12357 # GNU C++ compiler with Solaris linker
12358 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12359 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12360 if $CC --version | grep -v '^2\.7' > /dev/null; then
12361 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12362 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12363 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12365 # Commands to make compiler produce verbose output that lists
12366 # what "hidden" libraries, object files and flags are used when
12367 # linking a shared library.
12368 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12369 else
12370 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12371 # platform.
12372 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12373 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12374 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12376 # Commands to make compiler produce verbose output that lists
12377 # what "hidden" libraries, object files and flags are used when
12378 # linking a shared library.
12379 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12382 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12383 case $host_os in
12384 solaris2.[0-5] | solaris2.[0-5].*) ;;
12386 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12388 esac
12391 esac
12393 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12394 no_undefined_flag_CXX='${wl}-z,text'
12395 archive_cmds_need_lc_CXX=no
12396 hardcode_shlibpath_var_CXX=no
12397 runpath_var='LD_RUN_PATH'
12399 case $cc_basename in
12400 CC*)
12401 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12402 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12405 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12406 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12408 esac
12410 sysv5* | sco3.2v5* | sco5v6*)
12411 # Note: We can NOT use -z defs as we might desire, because we do not
12412 # link with -lc, and that would cause any symbols used from libc to
12413 # always be unresolved, which means just about no library would
12414 # ever link correctly. If we're not using GNU ld we use -z text
12415 # though, which does catch some bad symbols but isn't as heavy-handed
12416 # as -z defs.
12417 # For security reasons, it is highly recommended that you always
12418 # use absolute paths for naming shared libraries, and exclude the
12419 # DT_RUNPATH tag from executables and libraries. But doing so
12420 # requires that you compile everything twice, which is a pain.
12421 # So that behaviour is only enabled if SCOABSPATH is set to a
12422 # non-empty value in the environment. Most likely only useful for
12423 # creating official distributions of packages.
12424 # This is a hack until libtool officially supports absolute path
12425 # names for shared libraries.
12426 no_undefined_flag_CXX='${wl}-z,text'
12427 allow_undefined_flag_CXX='${wl}-z,nodefs'
12428 archive_cmds_need_lc_CXX=no
12429 hardcode_shlibpath_var_CXX=no
12430 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12431 hardcode_libdir_separator_CXX=':'
12432 link_all_deplibs_CXX=yes
12433 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12434 runpath_var='LD_RUN_PATH'
12436 case $cc_basename in
12437 CC*)
12438 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12439 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12442 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12443 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12445 esac
12447 tandem*)
12448 case $cc_basename in
12449 NCC*)
12450 # NonStop-UX NCC 3.20
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12458 esac
12460 vxworks*)
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12465 # FIXME: insert proper C++ library support
12466 ld_shlibs_CXX=no
12468 esac
12469 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12470 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12471 test "$ld_shlibs_CXX" = no && can_build_shared=no
12473 GCC_CXX="$GXX"
12474 LD_CXX="$LD"
12476 cat > conftest.$ac_ext <<EOF
12477 class Foo
12479 public:
12480 Foo (void) { a = 0; }
12481 private:
12482 int a;
12486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12487 (eval $ac_compile) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; then
12491 # Parse the compiler output and extract the necessary
12492 # objects, libraries and library flags.
12494 # Sentinel used to keep track of whether or not we are before
12495 # the conftest object file.
12496 pre_test_object_deps_done=no
12498 # The `*' in the case matches for architectures that use `case' in
12499 # $output_verbose_cmd can trigger glob expansion during the loop
12500 # eval without this substitution.
12501 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12503 for p in `eval $output_verbose_link_cmd`; do
12504 case $p in
12506 -L* | -R* | -l*)
12507 # Some compilers place space between "-{L,R}" and the path.
12508 # Remove the space.
12509 if test $p = "-L" \
12510 || test $p = "-R"; then
12511 prev=$p
12512 continue
12513 else
12514 prev=
12517 if test "$pre_test_object_deps_done" = no; then
12518 case $p in
12519 -L* | -R*)
12520 # Internal compiler library paths should come after those
12521 # provided the user. The postdeps already come after the
12522 # user supplied libs so there is no need to process them.
12523 if test -z "$compiler_lib_search_path_CXX"; then
12524 compiler_lib_search_path_CXX="${prev}${p}"
12525 else
12526 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12529 # The "-l" case would never come before the object being
12530 # linked, so don't bother handling this case.
12531 esac
12532 else
12533 if test -z "$postdeps_CXX"; then
12534 postdeps_CXX="${prev}${p}"
12535 else
12536 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12541 *.$objext)
12542 # This assumes that the test object file only shows up
12543 # once in the compiler output.
12544 if test "$p" = "conftest.$objext"; then
12545 pre_test_object_deps_done=yes
12546 continue
12549 if test "$pre_test_object_deps_done" = no; then
12550 if test -z "$predep_objects_CXX"; then
12551 predep_objects_CXX="$p"
12552 else
12553 predep_objects_CXX="$predep_objects_CXX $p"
12555 else
12556 if test -z "$postdep_objects_CXX"; then
12557 postdep_objects_CXX="$p"
12558 else
12559 postdep_objects_CXX="$postdep_objects_CXX $p"
12564 *) ;; # Ignore the rest.
12566 esac
12567 done
12569 # Clean up.
12570 rm -f a.out a.exe
12571 else
12572 echo "libtool.m4: error: problem compiling CXX test program"
12575 $rm -f confest.$objext
12577 compiler_lib_search_dirs_CXX=
12578 if test -n "$compiler_lib_search_path_CXX"; then
12579 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12582 # PORTME: override above test on systems where it is broken
12583 case $host_os in
12584 interix[3-9]*)
12585 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12586 # hack all around it, let's just trust "g++" to DTRT.
12587 predep_objects_CXX=
12588 postdep_objects_CXX=
12589 postdeps_CXX=
12592 linux*)
12593 case `$CC -V 2>&1 | sed 5q` in
12594 *Sun\ C*)
12595 # Sun C++ 5.9
12597 # The more standards-conforming stlport4 library is
12598 # incompatible with the Cstd library. Avoid specifying
12599 # it if it's in CXXFLAGS. Ignore libCrun as
12600 # -library=stlport4 depends on it.
12601 case " $CXX $CXXFLAGS " in
12602 *" -library=stlport4 "*)
12603 solaris_use_stlport4=yes
12605 esac
12606 if test "$solaris_use_stlport4" != yes; then
12607 postdeps_CXX='-library=Cstd -library=Crun'
12610 esac
12613 solaris*)
12614 case $cc_basename in
12615 CC*)
12616 # The more standards-conforming stlport4 library is
12617 # incompatible with the Cstd library. Avoid specifying
12618 # it if it's in CXXFLAGS. Ignore libCrun as
12619 # -library=stlport4 depends on it.
12620 case " $CXX $CXXFLAGS " in
12621 *" -library=stlport4 "*)
12622 solaris_use_stlport4=yes
12624 esac
12626 # Adding this requires a known-good setup of shared libraries for
12627 # Sun compiler versions before 5.6, else PIC objects from an old
12628 # archive will be linked into the output, leading to subtle bugs.
12629 if test "$solaris_use_stlport4" != yes; then
12630 postdeps_CXX='-library=Cstd -library=Crun'
12633 esac
12635 esac
12637 case " $postdeps_CXX " in
12638 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12639 esac
12641 lt_prog_compiler_wl_CXX=
12642 lt_prog_compiler_pic_CXX=
12643 lt_prog_compiler_static_CXX=
12645 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12646 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12648 # C++ specific cases for pic, static, wl, etc.
12649 if test "$GXX" = yes; then
12650 lt_prog_compiler_wl_CXX='-Wl,'
12651 lt_prog_compiler_static_CXX='-static'
12653 case $host_os in
12654 aix*)
12655 # All AIX code is PIC.
12656 if test "$host_cpu" = ia64; then
12657 # AIX 5 now supports IA64 processor
12658 lt_prog_compiler_static_CXX='-Bstatic'
12661 amigaos*)
12662 # FIXME: we need at least 68020 code to build shared libraries, but
12663 # adding the `-m68020' flag to GCC prevents building anything better,
12664 # like `-m68040'.
12665 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12667 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12668 # PIC is the default for these OSes.
12670 mingw* | cygwin* | os2* | pw32*)
12671 # This hack is so that the source file can tell whether it is being
12672 # built for inclusion in a dll (and should export symbols for example).
12673 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12674 # (--disable-auto-import) libraries
12675 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12677 darwin* | rhapsody*)
12678 # PIC is the default on this platform
12679 # Common symbols not allowed in MH_DYLIB files
12680 lt_prog_compiler_pic_CXX='-fno-common'
12682 *djgpp*)
12683 # DJGPP does not support shared libraries at all
12684 lt_prog_compiler_pic_CXX=
12686 interix[3-9]*)
12687 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12688 # Instead, we relocate shared libraries at runtime.
12690 sysv4*MP*)
12691 if test -d /usr/nec; then
12692 lt_prog_compiler_pic_CXX=-Kconform_pic
12695 hpux*)
12696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12697 # not for PA HP-UX.
12698 case $host_cpu in
12699 hppa*64*|ia64*)
12702 lt_prog_compiler_pic_CXX='-fPIC'
12704 esac
12707 lt_prog_compiler_pic_CXX='-fPIC'
12709 esac
12710 else
12711 case $host_os in
12712 aix[4-9]*)
12713 # All AIX code is PIC.
12714 if test "$host_cpu" = ia64; then
12715 # AIX 5 now supports IA64 processor
12716 lt_prog_compiler_static_CXX='-Bstatic'
12717 else
12718 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12721 chorus*)
12722 case $cc_basename in
12723 cxch68*)
12724 # Green Hills C++ Compiler
12725 # _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"
12727 esac
12729 darwin*)
12730 # PIC is the default on this platform
12731 # Common symbols not allowed in MH_DYLIB files
12732 case $cc_basename in
12733 xlc*)
12734 lt_prog_compiler_pic_CXX='-qnocommon'
12735 lt_prog_compiler_wl_CXX='-Wl,'
12737 esac
12739 dgux*)
12740 case $cc_basename in
12741 ec++*)
12742 lt_prog_compiler_pic_CXX='-KPIC'
12744 ghcx*)
12745 # Green Hills C++ Compiler
12746 lt_prog_compiler_pic_CXX='-pic'
12750 esac
12752 freebsd* | dragonfly*)
12753 # FreeBSD uses GNU C++
12755 hpux9* | hpux10* | hpux11*)
12756 case $cc_basename in
12757 CC*)
12758 lt_prog_compiler_wl_CXX='-Wl,'
12759 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12760 if test "$host_cpu" != ia64; then
12761 lt_prog_compiler_pic_CXX='+Z'
12764 aCC*)
12765 lt_prog_compiler_wl_CXX='-Wl,'
12766 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12767 case $host_cpu in
12768 hppa*64*|ia64*)
12769 # +Z the default
12772 lt_prog_compiler_pic_CXX='+Z'
12774 esac
12778 esac
12780 interix*)
12781 # This is c89, which is MS Visual C++ (no shared libs)
12782 # Anyone wants to do a port?
12784 irix5* | irix6* | nonstopux*)
12785 case $cc_basename in
12786 CC*)
12787 lt_prog_compiler_wl_CXX='-Wl,'
12788 lt_prog_compiler_static_CXX='-non_shared'
12789 # CC pic flag -KPIC is the default.
12793 esac
12795 linux* | k*bsd*-gnu)
12796 case $cc_basename in
12797 KCC*)
12798 # KAI C++ Compiler
12799 lt_prog_compiler_wl_CXX='--backend -Wl,'
12800 lt_prog_compiler_pic_CXX='-fPIC'
12802 icpc* | ecpc*)
12803 # Intel C++
12804 lt_prog_compiler_wl_CXX='-Wl,'
12805 lt_prog_compiler_pic_CXX='-KPIC'
12806 lt_prog_compiler_static_CXX='-static'
12808 pgCC* | pgcpp*)
12809 # Portland Group C++ compiler.
12810 lt_prog_compiler_wl_CXX='-Wl,'
12811 lt_prog_compiler_pic_CXX='-fpic'
12812 lt_prog_compiler_static_CXX='-Bstatic'
12814 cxx*)
12815 # Compaq C++
12816 # Make sure the PIC flag is empty. It appears that all Alpha
12817 # Linux and Compaq Tru64 Unix objects are PIC.
12818 lt_prog_compiler_pic_CXX=
12819 lt_prog_compiler_static_CXX='-non_shared'
12822 case `$CC -V 2>&1 | sed 5q` in
12823 *Sun\ C*)
12824 # Sun C++ 5.9
12825 lt_prog_compiler_pic_CXX='-KPIC'
12826 lt_prog_compiler_static_CXX='-Bstatic'
12827 lt_prog_compiler_wl_CXX='-Qoption ld '
12829 esac
12831 esac
12833 lynxos*)
12835 m88k*)
12837 mvs*)
12838 case $cc_basename in
12839 cxx*)
12840 lt_prog_compiler_pic_CXX='-W c,exportall'
12844 esac
12846 netbsd*)
12848 osf3* | osf4* | osf5*)
12849 case $cc_basename in
12850 KCC*)
12851 lt_prog_compiler_wl_CXX='--backend -Wl,'
12853 RCC*)
12854 # Rational C++ 2.4.1
12855 lt_prog_compiler_pic_CXX='-pic'
12857 cxx*)
12858 # Digital/Compaq C++
12859 lt_prog_compiler_wl_CXX='-Wl,'
12860 # Make sure the PIC flag is empty. It appears that all Alpha
12861 # Linux and Compaq Tru64 Unix objects are PIC.
12862 lt_prog_compiler_pic_CXX=
12863 lt_prog_compiler_static_CXX='-non_shared'
12867 esac
12869 psos*)
12871 solaris*)
12872 case $cc_basename in
12873 CC*)
12874 # Sun C++ 4.2, 5.x and Centerline C++
12875 lt_prog_compiler_pic_CXX='-KPIC'
12876 lt_prog_compiler_static_CXX='-Bstatic'
12877 lt_prog_compiler_wl_CXX='-Qoption ld '
12879 gcx*)
12880 # Green Hills C++ Compiler
12881 lt_prog_compiler_pic_CXX='-PIC'
12885 esac
12887 sunos4*)
12888 case $cc_basename in
12889 CC*)
12890 # Sun C++ 4.x
12891 lt_prog_compiler_pic_CXX='-pic'
12892 lt_prog_compiler_static_CXX='-Bstatic'
12894 lcc*)
12895 # Lucid
12896 lt_prog_compiler_pic_CXX='-pic'
12900 esac
12902 tandem*)
12903 case $cc_basename in
12904 NCC*)
12905 # NonStop-UX NCC 3.20
12906 lt_prog_compiler_pic_CXX='-KPIC'
12910 esac
12912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12913 case $cc_basename in
12914 CC*)
12915 lt_prog_compiler_wl_CXX='-Wl,'
12916 lt_prog_compiler_pic_CXX='-KPIC'
12917 lt_prog_compiler_static_CXX='-Bstatic'
12919 esac
12921 vxworks*)
12924 lt_prog_compiler_can_build_shared_CXX=no
12926 esac
12929 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12930 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12933 # Check to make sure the PIC flag actually works.
12935 if test -n "$lt_prog_compiler_pic_CXX"; then
12937 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12938 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12939 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 else
12942 lt_cv_prog_compiler_pic_works_CXX=no
12943 ac_outfile=conftest.$ac_objext
12944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12945 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12946 # Insert the option either (1) after the last *FLAGS variable, or
12947 # (2) before a word containing "conftest.", or (3) at the end.
12948 # Note that $ac_compile itself does not contain backslashes and begins
12949 # with a dollar sign (not a hyphen), so the echo should work correctly.
12950 # The option is referenced via a variable to avoid confusing sed.
12951 lt_compile=`echo "$ac_compile" | $SED \
12952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12954 -e 's:$: $lt_compiler_flag:'`
12955 (eval echo "\"\$as_me:12955: $lt_compile\"" >&5)
12956 (eval "$lt_compile" 2>conftest.err)
12957 ac_status=$?
12958 cat conftest.err >&5
12959 echo "$as_me:12959: \$? = $ac_status" >&5
12960 if (exit $ac_status) && test -s "$ac_outfile"; then
12961 # The compiler can only warn and ignore the option if not recognized
12962 # So say no if there are warnings other than the usual output.
12963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12966 lt_cv_prog_compiler_pic_works_CXX=yes
12969 $rm conftest*
12972 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12973 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12975 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12976 case $lt_prog_compiler_pic_CXX in
12977 "" | " "*) ;;
12978 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12979 esac
12980 else
12981 lt_prog_compiler_pic_CXX=
12982 lt_prog_compiler_can_build_shared_CXX=no
12986 case $host_os in
12987 # For platforms which do not support PIC, -DPIC is meaningless:
12988 *djgpp*)
12989 lt_prog_compiler_pic_CXX=
12992 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12994 esac
12997 # Check to make sure the static flag actually works.
12999 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13000 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13001 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13002 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005 lt_cv_prog_compiler_static_works_CXX=no
13006 save_LDFLAGS="$LDFLAGS"
13007 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13008 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13010 # The linker can only warn and ignore the option if not recognized
13011 # So say no if there are warnings
13012 if test -s conftest.err; then
13013 # Append any errors to the config.log.
13014 cat conftest.err 1>&5
13015 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13017 if diff conftest.exp conftest.er2 >/dev/null; then
13018 lt_cv_prog_compiler_static_works_CXX=yes
13020 else
13021 lt_cv_prog_compiler_static_works_CXX=yes
13024 $rm -r conftest*
13025 LDFLAGS="$save_LDFLAGS"
13028 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13029 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13031 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13033 else
13034 lt_prog_compiler_static_CXX=
13038 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13040 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043 lt_cv_prog_compiler_c_o_CXX=no
13044 $rm -r conftest 2>/dev/null
13045 mkdir conftest
13046 cd conftest
13047 mkdir out
13048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13050 lt_compiler_flag="-o out/conftest2.$ac_objext"
13051 # Insert the option either (1) after the last *FLAGS variable, or
13052 # (2) before a word containing "conftest.", or (3) at the end.
13053 # Note that $ac_compile itself does not contain backslashes and begins
13054 # with a dollar sign (not a hyphen), so the echo should work correctly.
13055 lt_compile=`echo "$ac_compile" | $SED \
13056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13058 -e 's:$: $lt_compiler_flag:'`
13059 (eval echo "\"\$as_me:13059: $lt_compile\"" >&5)
13060 (eval "$lt_compile" 2>out/conftest.err)
13061 ac_status=$?
13062 cat out/conftest.err >&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13065 then
13066 # The compiler can only warn and ignore the option if not recognized
13067 # So say no if there are warnings
13068 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13071 lt_cv_prog_compiler_c_o_CXX=yes
13074 chmod u+w . 2>&5
13075 $rm conftest*
13076 # SGI C++ compiler will create directory out/ii_files/ for
13077 # template instantiation
13078 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13079 $rm out/* && rmdir out
13080 cd ..
13081 rmdir conftest
13082 $rm conftest*
13085 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13086 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13089 hard_links="nottested"
13090 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13091 # do not overwrite the value of need_locks provided by the user
13092 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13093 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13094 hard_links=yes
13095 $rm conftest*
13096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13097 touch conftest.a
13098 ln conftest.a conftest.b 2>&5 || hard_links=no
13099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13100 { echo "$as_me:$LINENO: result: $hard_links" >&5
13101 echo "${ECHO_T}$hard_links" >&6; }
13102 if test "$hard_links" = no; then
13103 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13104 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13105 need_locks=warn
13107 else
13108 need_locks=no
13111 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13112 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13114 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13115 case $host_os in
13116 aix[4-9]*)
13117 # If we're using GNU nm, then we don't want the "-C" option.
13118 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13119 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13120 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'
13121 else
13122 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'
13125 pw32*)
13126 export_symbols_cmds_CXX="$ltdll_cmds"
13128 cygwin* | mingw*)
13129 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'
13132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13134 esac
13135 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13137 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13138 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13139 test "$ld_shlibs_CXX" = no && can_build_shared=no
13142 # Do we need to explicitly link libc?
13144 case "x$archive_cmds_need_lc_CXX" in
13145 x|xyes)
13146 # Assume -lc should be added
13147 archive_cmds_need_lc_CXX=yes
13149 if test "$enable_shared" = yes && test "$GCC" = yes; then
13150 case $archive_cmds_CXX in
13151 *'~'*)
13152 # FIXME: we may have to deal with multi-command sequences.
13154 '$CC '*)
13155 # Test whether the compiler implicitly links with -lc since on some
13156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13157 # to ld, don't add -lc before -lgcc.
13158 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13159 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13160 $rm conftest*
13161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164 (eval $ac_compile) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } 2>conftest.err; then
13168 soname=conftest
13169 lib=conftest
13170 libobjs=conftest.$ac_objext
13171 deplibs=
13172 wl=$lt_prog_compiler_wl_CXX
13173 pic_flag=$lt_prog_compiler_pic_CXX
13174 compiler_flags=-v
13175 linker_flags=-v
13176 verstring=
13177 output_objdir=.
13178 libname=conftest
13179 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13180 allow_undefined_flag_CXX=
13181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13182 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }
13186 then
13187 archive_cmds_need_lc_CXX=no
13188 else
13189 archive_cmds_need_lc_CXX=yes
13191 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13192 else
13193 cat conftest.err 1>&5
13195 $rm conftest*
13196 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13197 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13199 esac
13202 esac
13204 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13206 library_names_spec=
13207 libname_spec='lib$name'
13208 soname_spec=
13209 shrext_cmds=".so"
13210 postinstall_cmds=
13211 postuninstall_cmds=
13212 finish_cmds=
13213 finish_eval=
13214 shlibpath_var=
13215 shlibpath_overrides_runpath=unknown
13216 version_type=none
13217 dynamic_linker="$host_os ld.so"
13218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13220 need_lib_prefix=unknown
13221 hardcode_into_libs=no
13223 # when you set need_version to no, make sure it does not cause -set_version
13224 # flags to be left without arguments
13225 need_version=unknown
13227 case $host_os in
13228 aix3*)
13229 version_type=linux
13230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13231 shlibpath_var=LIBPATH
13233 # AIX 3 has no versioning support, so we append a major version to the name.
13234 soname_spec='${libname}${release}${shared_ext}$major'
13237 aix[4-9]*)
13238 version_type=linux
13239 need_lib_prefix=no
13240 need_version=no
13241 hardcode_into_libs=yes
13242 if test "$host_cpu" = ia64; then
13243 # AIX 5 supports IA64
13244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13245 shlibpath_var=LD_LIBRARY_PATH
13246 else
13247 # With GCC up to 2.95.x, collect2 would create an import file
13248 # for dependence libraries. The import file would start with
13249 # the line `#! .'. This would cause the generated library to
13250 # depend on `.', always an invalid library. This was fixed in
13251 # development snapshots of GCC prior to 3.0.
13252 case $host_os in
13253 aix4 | aix4.[01] | aix4.[01].*)
13254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13255 echo ' yes '
13256 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13258 else
13259 can_build_shared=no
13262 esac
13263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13264 # soname into executable. Probably we can add versioning support to
13265 # collect2, so additional links can be useful in future.
13266 if test "$aix_use_runtimelinking" = yes; then
13267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13268 # instead of lib<name>.a to let people know that these are not
13269 # typical AIX shared libraries.
13270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271 else
13272 # We preserve .a as extension for shared libraries through AIX4.2
13273 # and later when we are not doing run time linking.
13274 library_names_spec='${libname}${release}.a $libname.a'
13275 soname_spec='${libname}${release}${shared_ext}$major'
13277 shlibpath_var=LIBPATH
13281 amigaos*)
13282 library_names_spec='$libname.ixlibrary $libname.a'
13283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13284 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'
13287 beos*)
13288 library_names_spec='${libname}${shared_ext}'
13289 dynamic_linker="$host_os ld.so"
13290 shlibpath_var=LIBRARY_PATH
13293 bsdi[45]*)
13294 version_type=linux
13295 need_version=no
13296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13297 soname_spec='${libname}${release}${shared_ext}$major'
13298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13299 shlibpath_var=LD_LIBRARY_PATH
13300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13302 # the default ld.so.conf also contains /usr/contrib/lib and
13303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13304 # libtool to hard-code these into programs
13307 cygwin* | mingw* | pw32*)
13308 version_type=windows
13309 shrext_cmds=".dll"
13310 need_version=no
13311 need_lib_prefix=no
13313 case $GCC,$host_os in
13314 yes,cygwin* | yes,mingw* | yes,pw32*)
13315 library_names_spec='$libname.dll.a'
13316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13317 postinstall_cmds='base_file=`basename \${file}`~
13318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13319 dldir=$destdir/`dirname \$dlpath`~
13320 test -d \$dldir || mkdir -p \$dldir~
13321 $install_prog $dir/$dlname \$dldir/$dlname~
13322 chmod a+x \$dldir/$dlname'
13323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13324 dlpath=$dir/\$dldll~
13325 $rm \$dlpath'
13326 shlibpath_overrides_runpath=yes
13328 case $host_os in
13329 cygwin*)
13330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13332 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13334 mingw*)
13335 # MinGW DLLs use traditional 'lib' prefix
13336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13337 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13338 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13339 # It is most probably a Windows format PATH printed by
13340 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13341 # path with ; separators, and with drive letters. We can handle the
13342 # drive letters (cygwin fileutils understands them), so leave them,
13343 # especially as we might pass files found there to a mingw objdump,
13344 # which wouldn't understand a cygwinified path. Ahh.
13345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13346 else
13347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13350 pw32*)
13351 # pw32 DLLs use 'pw' prefix rather than 'lib'
13352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13354 esac
13358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13360 esac
13361 dynamic_linker='Win32 ld.exe'
13362 # FIXME: first we should search . and the directory the executable is in
13363 shlibpath_var=PATH
13366 darwin* | rhapsody*)
13367 dynamic_linker="$host_os dyld"
13368 version_type=darwin
13369 need_lib_prefix=no
13370 need_version=no
13371 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13372 soname_spec='${libname}${release}${major}$shared_ext'
13373 shlibpath_overrides_runpath=yes
13374 shlibpath_var=DYLD_LIBRARY_PATH
13375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13380 dgux*)
13381 version_type=linux
13382 need_lib_prefix=no
13383 need_version=no
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13385 soname_spec='${libname}${release}${shared_ext}$major'
13386 shlibpath_var=LD_LIBRARY_PATH
13389 freebsd1*)
13390 dynamic_linker=no
13393 freebsd* | dragonfly*)
13394 # DragonFly does not have aout. When/if they implement a new
13395 # versioning mechanism, adjust this.
13396 if test -x /usr/bin/objformat; then
13397 objformat=`/usr/bin/objformat`
13398 else
13399 case $host_os in
13400 freebsd[123]*) objformat=aout ;;
13401 *) objformat=elf ;;
13402 esac
13404 version_type=freebsd-$objformat
13405 case $version_type in
13406 freebsd-elf*)
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13408 need_version=no
13409 need_lib_prefix=no
13411 freebsd-*)
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13413 need_version=yes
13415 esac
13416 shlibpath_var=LD_LIBRARY_PATH
13417 case $host_os in
13418 freebsd2*)
13419 shlibpath_overrides_runpath=yes
13421 freebsd3.[01]* | freebsdelf3.[01]*)
13422 shlibpath_overrides_runpath=yes
13423 hardcode_into_libs=yes
13425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13427 shlibpath_overrides_runpath=no
13428 hardcode_into_libs=yes
13430 *) # from 4.6 on, and DragonFly
13431 shlibpath_overrides_runpath=yes
13432 hardcode_into_libs=yes
13434 esac
13437 gnu*)
13438 version_type=linux
13439 need_lib_prefix=no
13440 need_version=no
13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13442 soname_spec='${libname}${release}${shared_ext}$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 hardcode_into_libs=yes
13447 hpux9* | hpux10* | hpux11*)
13448 # Give a soname corresponding to the major version so that dld.sl refuses to
13449 # link against other versions.
13450 version_type=sunos
13451 need_lib_prefix=no
13452 need_version=no
13453 case $host_cpu in
13454 ia64*)
13455 shrext_cmds='.so'
13456 hardcode_into_libs=yes
13457 dynamic_linker="$host_os dld.so"
13458 shlibpath_var=LD_LIBRARY_PATH
13459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461 soname_spec='${libname}${release}${shared_ext}$major'
13462 if test "X$HPUX_IA64_MODE" = X32; then
13463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13464 else
13465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13469 hppa*64*)
13470 shrext_cmds='.sl'
13471 hardcode_into_libs=yes
13472 dynamic_linker="$host_os dld.sl"
13473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 soname_spec='${libname}${release}${shared_ext}$major'
13477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13481 shrext_cmds='.sl'
13482 dynamic_linker="$host_os dld.sl"
13483 shlibpath_var=SHLIB_PATH
13484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
13488 esac
13489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13490 postinstall_cmds='chmod 555 $lib'
13493 interix[3-9]*)
13494 version_type=linux
13495 need_lib_prefix=no
13496 need_version=no
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=no
13502 hardcode_into_libs=yes
13505 irix5* | irix6* | nonstopux*)
13506 case $host_os in
13507 nonstopux*) version_type=nonstopux ;;
13509 if test "$lt_cv_prog_gnu_ld" = yes; then
13510 version_type=linux
13511 else
13512 version_type=irix
13513 fi ;;
13514 esac
13515 need_lib_prefix=no
13516 need_version=no
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13519 case $host_os in
13520 irix5* | nonstopux*)
13521 libsuff= shlibsuff=
13524 case $LD in # libtool.m4 will add one of these switches to LD
13525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13526 libsuff= shlibsuff= libmagic=32-bit;;
13527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13528 libsuff=32 shlibsuff=N32 libmagic=N32;;
13529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13531 *) libsuff= shlibsuff= libmagic=never-match;;
13532 esac
13534 esac
13535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13536 shlibpath_overrides_runpath=no
13537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13539 hardcode_into_libs=yes
13542 # No shared lib support for Linux oldld, aout, or coff.
13543 linux*oldld* | linux*aout* | linux*coff*)
13544 dynamic_linker=no
13547 # This must be Linux ELF.
13548 linux* | k*bsd*-gnu)
13549 version_type=linux
13550 need_lib_prefix=no
13551 need_version=no
13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13553 soname_spec='${libname}${release}${shared_ext}$major'
13554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13555 shlibpath_var=LD_LIBRARY_PATH
13556 shlibpath_overrides_runpath=no
13557 # This implies no fast_install, which is unacceptable.
13558 # Some rework will be needed to allow for fast_install
13559 # before this can be enabled.
13560 hardcode_into_libs=yes
13562 # Append ld.so.conf contents to the search path
13563 if test -f /etc/ld.so.conf; then
13564 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' ' '`
13565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13568 # We used to test for /lib/ld.so.1 and disable shared libraries on
13569 # powerpc, because MkLinux only supported shared libraries with the
13570 # GNU dynamic linker. Since this was broken with cross compilers,
13571 # most powerpc-linux boxes support dynamic linking these days and
13572 # people can always --disable-shared, the test was removed, and we
13573 # assume the GNU/Linux dynamic linker is in use.
13574 dynamic_linker='GNU/Linux ld.so'
13577 netbsd*)
13578 version_type=sunos
13579 need_lib_prefix=no
13580 need_version=no
13581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13584 dynamic_linker='NetBSD (a.out) ld.so'
13585 else
13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13587 soname_spec='${libname}${release}${shared_ext}$major'
13588 dynamic_linker='NetBSD ld.elf_so'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=yes
13592 hardcode_into_libs=yes
13595 newsos6)
13596 version_type=linux
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 shlibpath_overrides_runpath=yes
13602 nto-qnx*)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 shlibpath_overrides_runpath=yes
13612 openbsd*)
13613 version_type=sunos
13614 sys_lib_dlsearch_path_spec="/usr/lib"
13615 need_lib_prefix=no
13616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13617 case $host_os in
13618 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13619 *) need_version=no ;;
13620 esac
13621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13623 shlibpath_var=LD_LIBRARY_PATH
13624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13625 case $host_os in
13626 openbsd2.[89] | openbsd2.[89].*)
13627 shlibpath_overrides_runpath=no
13630 shlibpath_overrides_runpath=yes
13632 esac
13633 else
13634 shlibpath_overrides_runpath=yes
13638 os2*)
13639 libname_spec='$name'
13640 shrext_cmds=".dll"
13641 need_lib_prefix=no
13642 library_names_spec='$libname${shared_ext} $libname.a'
13643 dynamic_linker='OS/2 ld.exe'
13644 shlibpath_var=LIBPATH
13647 osf3* | osf4* | osf5*)
13648 version_type=osf
13649 need_lib_prefix=no
13650 need_version=no
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653 shlibpath_var=LD_LIBRARY_PATH
13654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13658 rdos*)
13659 dynamic_linker=no
13662 solaris*)
13663 version_type=linux
13664 need_lib_prefix=no
13665 need_version=no
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 shlibpath_var=LD_LIBRARY_PATH
13669 shlibpath_overrides_runpath=yes
13670 hardcode_into_libs=yes
13671 # ldd complains unless libraries are executable
13672 postinstall_cmds='chmod +x $lib'
13675 sunos4*)
13676 version_type=sunos
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13678 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13679 shlibpath_var=LD_LIBRARY_PATH
13680 shlibpath_overrides_runpath=yes
13681 if test "$with_gnu_ld" = yes; then
13682 need_lib_prefix=no
13684 need_version=yes
13687 sysv4 | sysv4.3*)
13688 version_type=linux
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13690 soname_spec='${libname}${release}${shared_ext}$major'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 case $host_vendor in
13693 sni)
13694 shlibpath_overrides_runpath=no
13695 need_lib_prefix=no
13696 export_dynamic_flag_spec='${wl}-Blargedynsym'
13697 runpath_var=LD_RUN_PATH
13699 siemens)
13700 need_lib_prefix=no
13702 motorola)
13703 need_lib_prefix=no
13704 need_version=no
13705 shlibpath_overrides_runpath=no
13706 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13708 esac
13711 sysv4*MP*)
13712 if test -d /usr/nec ;then
13713 version_type=linux
13714 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13715 soname_spec='$libname${shared_ext}.$major'
13716 shlibpath_var=LD_LIBRARY_PATH
13720 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13721 version_type=freebsd-elf
13722 need_lib_prefix=no
13723 need_version=no
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13725 soname_spec='${libname}${release}${shared_ext}$major'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 hardcode_into_libs=yes
13728 if test "$with_gnu_ld" = yes; then
13729 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13730 shlibpath_overrides_runpath=no
13731 else
13732 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13733 shlibpath_overrides_runpath=yes
13734 case $host_os in
13735 sco3.2v5*)
13736 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13738 esac
13740 sys_lib_dlsearch_path_spec='/usr/lib'
13743 uts4*)
13744 version_type=linux
13745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13746 soname_spec='${libname}${release}${shared_ext}$major'
13747 shlibpath_var=LD_LIBRARY_PATH
13751 dynamic_linker=no
13753 esac
13754 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13755 echo "${ECHO_T}$dynamic_linker" >&6; }
13756 test "$dynamic_linker" = no && can_build_shared=no
13758 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13764 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13765 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 else
13768 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13771 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13774 if test "$GCC" = yes; then
13775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13778 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13779 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13780 hardcode_action_CXX=
13781 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13782 test -n "$runpath_var_CXX" || \
13783 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13785 # We can hardcode non-existant directories.
13786 if test "$hardcode_direct_CXX" != no &&
13787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13788 # have to relink, otherwise we might link with an installed library
13789 # when we should be linking with a yet-to-be-installed one
13790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13791 test "$hardcode_minus_L_CXX" != no; then
13792 # Linking always hardcodes the temporary library directory.
13793 hardcode_action_CXX=relink
13794 else
13795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13796 hardcode_action_CXX=immediate
13798 else
13799 # We cannot hardcode anything, or else we can only hardcode existing
13800 # directories.
13801 hardcode_action_CXX=unsupported
13803 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13804 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13806 if test "$hardcode_action_CXX" = relink; then
13807 # Fast installation is not supported
13808 enable_fast_install=no
13809 elif test "$shlibpath_overrides_runpath" = yes ||
13810 test "$enable_shared" = no; then
13811 # Fast installation is not necessary
13812 enable_fast_install=needless
13816 # The else clause should only fire when bootstrapping the
13817 # libtool distribution, otherwise you forgot to ship ltmain.sh
13818 # with your package, and you will get complaints that there are
13819 # no rules to generate ltmain.sh.
13820 if test -f "$ltmain"; then
13821 # See if we are running on zsh, and set the options which allow our commands through
13822 # without removal of \ escapes.
13823 if test -n "${ZSH_VERSION+set}" ; then
13824 setopt NO_GLOB_SUBST
13826 # Now quote all the things that may contain metacharacters while being
13827 # careful not to overquote the AC_SUBSTed values. We take copies of the
13828 # variables and quote the copies for generation of the libtool script.
13829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13830 SED SHELL STRIP \
13831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13833 deplibs_check_method reload_flag reload_cmds need_locks \
13834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13835 lt_cv_sys_global_symbol_to_c_name_address \
13836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13837 old_postinstall_cmds old_postuninstall_cmds \
13838 compiler_CXX \
13839 CC_CXX \
13840 LD_CXX \
13841 lt_prog_compiler_wl_CXX \
13842 lt_prog_compiler_pic_CXX \
13843 lt_prog_compiler_static_CXX \
13844 lt_prog_compiler_no_builtin_flag_CXX \
13845 export_dynamic_flag_spec_CXX \
13846 thread_safe_flag_spec_CXX \
13847 whole_archive_flag_spec_CXX \
13848 enable_shared_with_static_runtimes_CXX \
13849 old_archive_cmds_CXX \
13850 old_archive_from_new_cmds_CXX \
13851 predep_objects_CXX \
13852 postdep_objects_CXX \
13853 predeps_CXX \
13854 postdeps_CXX \
13855 compiler_lib_search_path_CXX \
13856 compiler_lib_search_dirs_CXX \
13857 archive_cmds_CXX \
13858 archive_expsym_cmds_CXX \
13859 postinstall_cmds_CXX \
13860 postuninstall_cmds_CXX \
13861 old_archive_from_expsyms_cmds_CXX \
13862 allow_undefined_flag_CXX \
13863 no_undefined_flag_CXX \
13864 export_symbols_cmds_CXX \
13865 hardcode_libdir_flag_spec_CXX \
13866 hardcode_libdir_flag_spec_ld_CXX \
13867 hardcode_libdir_separator_CXX \
13868 hardcode_automatic_CXX \
13869 module_cmds_CXX \
13870 module_expsym_cmds_CXX \
13871 lt_cv_prog_compiler_c_o_CXX \
13872 fix_srcfile_path_CXX \
13873 exclude_expsyms_CXX \
13874 include_expsyms_CXX; do
13876 case $var in
13877 old_archive_cmds_CXX | \
13878 old_archive_from_new_cmds_CXX | \
13879 archive_cmds_CXX | \
13880 archive_expsym_cmds_CXX | \
13881 module_cmds_CXX | \
13882 module_expsym_cmds_CXX | \
13883 old_archive_from_expsyms_cmds_CXX | \
13884 export_symbols_cmds_CXX | \
13885 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13886 postinstall_cmds | postuninstall_cmds | \
13887 old_postinstall_cmds | old_postuninstall_cmds | \
13888 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13889 # Double-quote double-evaled strings.
13890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13895 esac
13896 done
13898 case $lt_echo in
13899 *'\$0 --fallback-echo"')
13900 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13902 esac
13904 cfgfile="$ofile"
13906 cat <<__EOF__ >> "$cfgfile"
13907 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13909 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13911 # Shell to use when invoking shell scripts.
13912 SHELL=$lt_SHELL
13914 # Whether or not to build shared libraries.
13915 build_libtool_libs=$enable_shared
13917 # Whether or not to build static libraries.
13918 build_old_libs=$enable_static
13920 # Whether or not to add -lc for building shared libraries.
13921 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13923 # Whether or not to disallow shared libs when runtime libs are static
13924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13926 # Whether or not to optimize for fast installation.
13927 fast_install=$enable_fast_install
13929 # The host system.
13930 host_alias=$host_alias
13931 host=$host
13932 host_os=$host_os
13934 # The build system.
13935 build_alias=$build_alias
13936 build=$build
13937 build_os=$build_os
13939 # An echo program that does not interpret backslashes.
13940 echo=$lt_echo
13942 # The archiver.
13943 AR=$lt_AR
13944 AR_FLAGS=$lt_AR_FLAGS
13946 # A C compiler.
13947 LTCC=$lt_LTCC
13949 # LTCC compiler flags.
13950 LTCFLAGS=$lt_LTCFLAGS
13952 # A language-specific compiler.
13953 CC=$lt_compiler_CXX
13955 # Is the compiler the GNU C compiler?
13956 with_gcc=$GCC_CXX
13958 # An ERE matcher.
13959 EGREP=$lt_EGREP
13961 # The linker used to build libraries.
13962 LD=$lt_LD_CXX
13964 # Whether we need hard or soft links.
13965 LN_S=$lt_LN_S
13967 # A BSD-compatible nm program.
13968 NM=$lt_NM
13970 # A symbol stripping program
13971 STRIP=$lt_STRIP
13973 # Used to examine libraries when file_magic_cmd begins "file"
13974 MAGIC_CMD=$MAGIC_CMD
13976 # Used on cygwin: DLL creation program.
13977 DLLTOOL="$DLLTOOL"
13979 # Used on cygwin: object dumper.
13980 OBJDUMP="$OBJDUMP"
13982 # Used on cygwin: assembler.
13983 AS="$AS"
13985 # The name of the directory that contains temporary libtool files.
13986 objdir=$objdir
13988 # How to create reloadable object files.
13989 reload_flag=$lt_reload_flag
13990 reload_cmds=$lt_reload_cmds
13992 # How to pass a linker flag through the compiler.
13993 wl=$lt_lt_prog_compiler_wl_CXX
13995 # Object file suffix (normally "o").
13996 objext="$ac_objext"
13998 # Old archive suffix (normally "a").
13999 libext="$libext"
14001 # Shared library suffix (normally ".so").
14002 shrext_cmds='$shrext_cmds'
14004 # Executable file suffix (normally "").
14005 exeext="$exeext"
14007 # Additional compiler flags for building library objects.
14008 pic_flag=$lt_lt_prog_compiler_pic_CXX
14009 pic_mode=$pic_mode
14011 # What is the maximum length of a command?
14012 max_cmd_len=$lt_cv_sys_max_cmd_len
14014 # Does compiler simultaneously support -c and -o options?
14015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14017 # Must we lock files when doing compilation?
14018 need_locks=$lt_need_locks
14020 # Do we need the lib prefix for modules?
14021 need_lib_prefix=$need_lib_prefix
14023 # Do we need a version for libraries?
14024 need_version=$need_version
14026 # Whether dlopen is supported.
14027 dlopen_support=$enable_dlopen
14029 # Whether dlopen of programs is supported.
14030 dlopen_self=$enable_dlopen_self
14032 # Whether dlopen of statically linked programs is supported.
14033 dlopen_self_static=$enable_dlopen_self_static
14035 # Compiler flag to prevent dynamic linking.
14036 link_static_flag=$lt_lt_prog_compiler_static_CXX
14038 # Compiler flag to turn off builtin functions.
14039 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14041 # Compiler flag to allow reflexive dlopens.
14042 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14044 # Compiler flag to generate shared objects directly from archives.
14045 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14047 # Compiler flag to generate thread-safe objects.
14048 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14050 # Library versioning type.
14051 version_type=$version_type
14053 # Format of library name prefix.
14054 libname_spec=$lt_libname_spec
14056 # List of archive names. First name is the real one, the rest are links.
14057 # The last name is the one that the linker finds with -lNAME.
14058 library_names_spec=$lt_library_names_spec
14060 # The coded name of the library, if different from the real name.
14061 soname_spec=$lt_soname_spec
14063 # Commands used to build and install an old-style archive.
14064 RANLIB=$lt_RANLIB
14065 old_archive_cmds=$lt_old_archive_cmds_CXX
14066 old_postinstall_cmds=$lt_old_postinstall_cmds
14067 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14069 # Create an old-style archive from a shared archive.
14070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14072 # Create a temporary old-style archive to link instead of a shared archive.
14073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14075 # Commands used to build and install a shared archive.
14076 archive_cmds=$lt_archive_cmds_CXX
14077 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14078 postinstall_cmds=$lt_postinstall_cmds
14079 postuninstall_cmds=$lt_postuninstall_cmds
14081 # Commands used to build a loadable module (assumed same as above if empty)
14082 module_cmds=$lt_module_cmds_CXX
14083 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14085 # Commands to strip libraries.
14086 old_striplib=$lt_old_striplib
14087 striplib=$lt_striplib
14089 # Dependencies to place before the objects being linked to create a
14090 # shared library.
14091 predep_objects=$lt_predep_objects_CXX
14093 # Dependencies to place after the objects being linked to create a
14094 # shared library.
14095 postdep_objects=$lt_postdep_objects_CXX
14097 # Dependencies to place before the objects being linked to create a
14098 # shared library.
14099 predeps=$lt_predeps_CXX
14101 # Dependencies to place after the objects being linked to create a
14102 # shared library.
14103 postdeps=$lt_postdeps_CXX
14105 # The directories searched by this compiler when creating a shared
14106 # library
14107 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14109 # The library search path used internally by the compiler when linking
14110 # a shared library.
14111 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14113 # Method to check whether dependent libraries are shared objects.
14114 deplibs_check_method=$lt_deplibs_check_method
14116 # Command to use when deplibs_check_method == file_magic.
14117 file_magic_cmd=$lt_file_magic_cmd
14119 # Flag that allows shared libraries with undefined symbols to be built.
14120 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14122 # Flag that forces no undefined symbols.
14123 no_undefined_flag=$lt_no_undefined_flag_CXX
14125 # Commands used to finish a libtool library installation in a directory.
14126 finish_cmds=$lt_finish_cmds
14128 # Same as above, but a single script fragment to be evaled but not shown.
14129 finish_eval=$lt_finish_eval
14131 # Take the output of nm and produce a listing of raw symbols and C names.
14132 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14134 # Transform the output of nm in a proper C declaration
14135 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14137 # Transform the output of nm in a C name address pair
14138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14140 # This is the shared library runtime path variable.
14141 runpath_var=$runpath_var
14143 # This is the shared library path variable.
14144 shlibpath_var=$shlibpath_var
14146 # Is shlibpath searched before the hard-coded library search path?
14147 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14149 # How to hardcode a shared library path into an executable.
14150 hardcode_action=$hardcode_action_CXX
14152 # Whether we should hardcode library paths into libraries.
14153 hardcode_into_libs=$hardcode_into_libs
14155 # Flag to hardcode \$libdir into a binary during linking.
14156 # This must work even if \$libdir does not exist.
14157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14159 # If ld is used when linking, flag to hardcode \$libdir into
14160 # a binary during linking. This must work even if \$libdir does
14161 # not exist.
14162 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14164 # Whether we need a single -rpath flag with a separated argument.
14165 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14167 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14168 # resulting binary.
14169 hardcode_direct=$hardcode_direct_CXX
14171 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14172 # resulting binary.
14173 hardcode_minus_L=$hardcode_minus_L_CXX
14175 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14176 # the resulting binary.
14177 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14179 # Set to yes if building a shared library automatically hardcodes DIR into the library
14180 # and all subsequent libraries and executables linked against it.
14181 hardcode_automatic=$hardcode_automatic_CXX
14183 # Variables whose values should be saved in libtool wrapper scripts and
14184 # restored at relink time.
14185 variables_saved_for_relink="$variables_saved_for_relink"
14187 # Whether libtool must link a program against all its dependency libraries.
14188 link_all_deplibs=$link_all_deplibs_CXX
14190 # Compile-time system search path for libraries
14191 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14193 # Run-time system search path for libraries
14194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14196 # Fix the shell variable \$srcfile for the compiler.
14197 fix_srcfile_path=$lt_fix_srcfile_path
14199 # Set to yes if exported symbols are required.
14200 always_export_symbols=$always_export_symbols_CXX
14202 # The commands to list exported symbols.
14203 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14205 # The commands to extract the exported symbol list from a shared archive.
14206 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14208 # Symbols that should not be listed in the preloaded symbols.
14209 exclude_expsyms=$lt_exclude_expsyms_CXX
14211 # Symbols that must always be exported.
14212 include_expsyms=$lt_include_expsyms_CXX
14214 # ### END LIBTOOL TAG CONFIG: $tagname
14216 __EOF__
14219 else
14220 # If there is no Makefile yet, we rely on a make rule to execute
14221 # `config.status --recheck' to rerun these tests and create the
14222 # libtool script then.
14223 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14224 if test -f "$ltmain_in"; then
14225 test -f Makefile && make "$ltmain"
14230 ac_ext=c
14231 ac_cpp='$CPP $CPPFLAGS'
14232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14236 CC=$lt_save_CC
14237 LDCXX=$LD
14238 LD=$lt_save_LD
14239 GCC=$lt_save_GCC
14240 with_gnu_ldcxx=$with_gnu_ld
14241 with_gnu_ld=$lt_save_with_gnu_ld
14242 lt_cv_path_LDCXX=$lt_cv_path_LD
14243 lt_cv_path_LD=$lt_save_path_LD
14244 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14245 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14247 else
14248 tagname=""
14252 F77)
14253 if test -n "$F77" && test "X$F77" != "Xno"; then
14255 ac_ext=f
14256 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14257 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14258 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14261 archive_cmds_need_lc_F77=no
14262 allow_undefined_flag_F77=
14263 always_export_symbols_F77=no
14264 archive_expsym_cmds_F77=
14265 export_dynamic_flag_spec_F77=
14266 hardcode_direct_F77=no
14267 hardcode_libdir_flag_spec_F77=
14268 hardcode_libdir_flag_spec_ld_F77=
14269 hardcode_libdir_separator_F77=
14270 hardcode_minus_L_F77=no
14271 hardcode_automatic_F77=no
14272 module_cmds_F77=
14273 module_expsym_cmds_F77=
14274 link_all_deplibs_F77=unknown
14275 old_archive_cmds_F77=$old_archive_cmds
14276 no_undefined_flag_F77=
14277 whole_archive_flag_spec_F77=
14278 enable_shared_with_static_runtimes_F77=no
14280 # Source file extension for f77 test sources.
14281 ac_ext=f
14283 # Object file extension for compiled f77 test sources.
14284 objext=o
14285 objext_F77=$objext
14287 # Code to be used in simple compile tests
14288 lt_simple_compile_test_code="\
14289 subroutine t
14290 return
14294 # Code to be used in simple link tests
14295 lt_simple_link_test_code="\
14296 program t
14300 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14302 # If no C compiler was specified, use CC.
14303 LTCC=${LTCC-"$CC"}
14305 # If no C compiler flags were specified, use CFLAGS.
14306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14308 # Allow CC to be a program name with arguments.
14309 compiler=$CC
14312 # save warnings/boilerplate of simple test code
14313 ac_outfile=conftest.$ac_objext
14314 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14315 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14316 _lt_compiler_boilerplate=`cat conftest.err`
14317 $rm conftest*
14319 ac_outfile=conftest.$ac_objext
14320 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14321 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14322 _lt_linker_boilerplate=`cat conftest.err`
14323 $rm -r conftest*
14326 # Allow CC to be a program name with arguments.
14327 lt_save_CC="$CC"
14328 CC=${F77-"f77"}
14329 compiler=$CC
14330 compiler_F77=$CC
14331 for cc_temp in $compiler""; do
14332 case $cc_temp in
14333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14335 \-*) ;;
14336 *) break;;
14337 esac
14338 done
14339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14342 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14343 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14344 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14345 echo "${ECHO_T}$can_build_shared" >&6; }
14347 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14348 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14349 test "$can_build_shared" = "no" && enable_shared=no
14351 # On AIX, shared libraries and static libraries use the same namespace, and
14352 # are all built from PIC.
14353 case $host_os in
14354 aix3*)
14355 test "$enable_shared" = yes && enable_static=no
14356 if test -n "$RANLIB"; then
14357 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14358 postinstall_cmds='$RANLIB $lib'
14361 aix[4-9]*)
14362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14363 test "$enable_shared" = yes && enable_static=no
14366 esac
14367 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14368 echo "${ECHO_T}$enable_shared" >&6; }
14370 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14371 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14372 # Make sure either enable_shared or enable_static is yes.
14373 test "$enable_shared" = yes || enable_static=yes
14374 { echo "$as_me:$LINENO: result: $enable_static" >&5
14375 echo "${ECHO_T}$enable_static" >&6; }
14377 GCC_F77="$G77"
14378 LD_F77="$LD"
14380 lt_prog_compiler_wl_F77=
14381 lt_prog_compiler_pic_F77=
14382 lt_prog_compiler_static_F77=
14384 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14387 if test "$GCC" = yes; then
14388 lt_prog_compiler_wl_F77='-Wl,'
14389 lt_prog_compiler_static_F77='-static'
14391 case $host_os in
14392 aix*)
14393 # All AIX code is PIC.
14394 if test "$host_cpu" = ia64; then
14395 # AIX 5 now supports IA64 processor
14396 lt_prog_compiler_static_F77='-Bstatic'
14400 amigaos*)
14401 # FIXME: we need at least 68020 code to build shared libraries, but
14402 # adding the `-m68020' flag to GCC prevents building anything better,
14403 # like `-m68040'.
14404 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14407 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14408 # PIC is the default for these OSes.
14411 mingw* | cygwin* | pw32* | os2*)
14412 # This hack is so that the source file can tell whether it is being
14413 # built for inclusion in a dll (and should export symbols for example).
14414 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14415 # (--disable-auto-import) libraries
14416 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14419 darwin* | rhapsody*)
14420 # PIC is the default on this platform
14421 # Common symbols not allowed in MH_DYLIB files
14422 lt_prog_compiler_pic_F77='-fno-common'
14425 interix[3-9]*)
14426 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14427 # Instead, we relocate shared libraries at runtime.
14430 msdosdjgpp*)
14431 # Just because we use GCC doesn't mean we suddenly get shared libraries
14432 # on systems that don't support them.
14433 lt_prog_compiler_can_build_shared_F77=no
14434 enable_shared=no
14437 sysv4*MP*)
14438 if test -d /usr/nec; then
14439 lt_prog_compiler_pic_F77=-Kconform_pic
14443 hpux*)
14444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14445 # not for PA HP-UX.
14446 case $host_cpu in
14447 hppa*64*|ia64*)
14448 # +Z the default
14451 lt_prog_compiler_pic_F77='-fPIC'
14453 esac
14457 lt_prog_compiler_pic_F77='-fPIC'
14459 esac
14460 else
14461 # PORTME Check for flag to pass linker flags through the system compiler.
14462 case $host_os in
14463 aix*)
14464 lt_prog_compiler_wl_F77='-Wl,'
14465 if test "$host_cpu" = ia64; then
14466 # AIX 5 now supports IA64 processor
14467 lt_prog_compiler_static_F77='-Bstatic'
14468 else
14469 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14472 darwin*)
14473 # PIC is the default on this platform
14474 # Common symbols not allowed in MH_DYLIB files
14475 case $cc_basename in
14476 xlc*)
14477 lt_prog_compiler_pic_F77='-qnocommon'
14478 lt_prog_compiler_wl_F77='-Wl,'
14480 esac
14483 mingw* | cygwin* | pw32* | os2*)
14484 # This hack is so that the source file can tell whether it is being
14485 # built for inclusion in a dll (and should export symbols for example).
14486 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14489 hpux9* | hpux10* | hpux11*)
14490 lt_prog_compiler_wl_F77='-Wl,'
14491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14492 # not for PA HP-UX.
14493 case $host_cpu in
14494 hppa*64*|ia64*)
14495 # +Z the default
14498 lt_prog_compiler_pic_F77='+Z'
14500 esac
14501 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14502 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14505 irix5* | irix6* | nonstopux*)
14506 lt_prog_compiler_wl_F77='-Wl,'
14507 # PIC (with -KPIC) is the default.
14508 lt_prog_compiler_static_F77='-non_shared'
14511 newsos6)
14512 lt_prog_compiler_pic_F77='-KPIC'
14513 lt_prog_compiler_static_F77='-Bstatic'
14516 linux* | k*bsd*-gnu)
14517 case $cc_basename in
14518 icc* | ecc*)
14519 lt_prog_compiler_wl_F77='-Wl,'
14520 lt_prog_compiler_pic_F77='-KPIC'
14521 lt_prog_compiler_static_F77='-static'
14523 pgcc* | pgf77* | pgf90* | pgf95*)
14524 # Portland Group compilers (*not* the Pentium gcc compiler,
14525 # which looks to be a dead project)
14526 lt_prog_compiler_wl_F77='-Wl,'
14527 lt_prog_compiler_pic_F77='-fpic'
14528 lt_prog_compiler_static_F77='-Bstatic'
14530 ccc*)
14531 lt_prog_compiler_wl_F77='-Wl,'
14532 # All Alpha code is PIC.
14533 lt_prog_compiler_static_F77='-non_shared'
14536 case `$CC -V 2>&1 | sed 5q` in
14537 *Sun\ C*)
14538 # Sun C 5.9
14539 lt_prog_compiler_pic_F77='-KPIC'
14540 lt_prog_compiler_static_F77='-Bstatic'
14541 lt_prog_compiler_wl_F77='-Wl,'
14543 *Sun\ F*)
14544 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14545 lt_prog_compiler_pic_F77='-KPIC'
14546 lt_prog_compiler_static_F77='-Bstatic'
14547 lt_prog_compiler_wl_F77=''
14549 esac
14551 esac
14554 osf3* | osf4* | osf5*)
14555 lt_prog_compiler_wl_F77='-Wl,'
14556 # All OSF/1 code is PIC.
14557 lt_prog_compiler_static_F77='-non_shared'
14560 rdos*)
14561 lt_prog_compiler_static_F77='-non_shared'
14564 solaris*)
14565 lt_prog_compiler_pic_F77='-KPIC'
14566 lt_prog_compiler_static_F77='-Bstatic'
14567 case $cc_basename in
14568 f77* | f90* | f95*)
14569 lt_prog_compiler_wl_F77='-Qoption ld ';;
14571 lt_prog_compiler_wl_F77='-Wl,';;
14572 esac
14575 sunos4*)
14576 lt_prog_compiler_wl_F77='-Qoption ld '
14577 lt_prog_compiler_pic_F77='-PIC'
14578 lt_prog_compiler_static_F77='-Bstatic'
14581 sysv4 | sysv4.2uw2* | sysv4.3*)
14582 lt_prog_compiler_wl_F77='-Wl,'
14583 lt_prog_compiler_pic_F77='-KPIC'
14584 lt_prog_compiler_static_F77='-Bstatic'
14587 sysv4*MP*)
14588 if test -d /usr/nec ;then
14589 lt_prog_compiler_pic_F77='-Kconform_pic'
14590 lt_prog_compiler_static_F77='-Bstatic'
14594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14595 lt_prog_compiler_wl_F77='-Wl,'
14596 lt_prog_compiler_pic_F77='-KPIC'
14597 lt_prog_compiler_static_F77='-Bstatic'
14600 unicos*)
14601 lt_prog_compiler_wl_F77='-Wl,'
14602 lt_prog_compiler_can_build_shared_F77=no
14605 uts4*)
14606 lt_prog_compiler_pic_F77='-pic'
14607 lt_prog_compiler_static_F77='-Bstatic'
14611 lt_prog_compiler_can_build_shared_F77=no
14613 esac
14616 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14617 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14620 # Check to make sure the PIC flag actually works.
14622 if test -n "$lt_prog_compiler_pic_F77"; then
14624 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14625 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14626 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629 lt_cv_prog_compiler_pic_works_F77=no
14630 ac_outfile=conftest.$ac_objext
14631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14632 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14633 # Insert the option either (1) after the last *FLAGS variable, or
14634 # (2) before a word containing "conftest.", or (3) at the end.
14635 # Note that $ac_compile itself does not contain backslashes and begins
14636 # with a dollar sign (not a hyphen), so the echo should work correctly.
14637 # The option is referenced via a variable to avoid confusing sed.
14638 lt_compile=`echo "$ac_compile" | $SED \
14639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641 -e 's:$: $lt_compiler_flag:'`
14642 (eval echo "\"\$as_me:14642: $lt_compile\"" >&5)
14643 (eval "$lt_compile" 2>conftest.err)
14644 ac_status=$?
14645 cat conftest.err >&5
14646 echo "$as_me:14646: \$? = $ac_status" >&5
14647 if (exit $ac_status) && test -s "$ac_outfile"; then
14648 # The compiler can only warn and ignore the option if not recognized
14649 # So say no if there are warnings other than the usual output.
14650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14653 lt_cv_prog_compiler_pic_works_F77=yes
14656 $rm conftest*
14659 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14660 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14662 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14663 case $lt_prog_compiler_pic_F77 in
14664 "" | " "*) ;;
14665 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14666 esac
14667 else
14668 lt_prog_compiler_pic_F77=
14669 lt_prog_compiler_can_build_shared_F77=no
14673 case $host_os in
14674 # For platforms which do not support PIC, -DPIC is meaningless:
14675 *djgpp*)
14676 lt_prog_compiler_pic_F77=
14679 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14681 esac
14684 # Check to make sure the static flag actually works.
14686 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14687 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14688 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14689 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692 lt_cv_prog_compiler_static_works_F77=no
14693 save_LDFLAGS="$LDFLAGS"
14694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14695 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14697 # The linker can only warn and ignore the option if not recognized
14698 # So say no if there are warnings
14699 if test -s conftest.err; then
14700 # Append any errors to the config.log.
14701 cat conftest.err 1>&5
14702 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14704 if diff conftest.exp conftest.er2 >/dev/null; then
14705 lt_cv_prog_compiler_static_works_F77=yes
14707 else
14708 lt_cv_prog_compiler_static_works_F77=yes
14711 $rm -r conftest*
14712 LDFLAGS="$save_LDFLAGS"
14715 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14716 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14718 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14720 else
14721 lt_prog_compiler_static_F77=
14725 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14726 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14727 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730 lt_cv_prog_compiler_c_o_F77=no
14731 $rm -r conftest 2>/dev/null
14732 mkdir conftest
14733 cd conftest
14734 mkdir out
14735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14737 lt_compiler_flag="-o out/conftest2.$ac_objext"
14738 # Insert the option either (1) after the last *FLAGS variable, or
14739 # (2) before a word containing "conftest.", or (3) at the end.
14740 # Note that $ac_compile itself does not contain backslashes and begins
14741 # with a dollar sign (not a hyphen), so the echo should work correctly.
14742 lt_compile=`echo "$ac_compile" | $SED \
14743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14745 -e 's:$: $lt_compiler_flag:'`
14746 (eval echo "\"\$as_me:14746: $lt_compile\"" >&5)
14747 (eval "$lt_compile" 2>out/conftest.err)
14748 ac_status=$?
14749 cat out/conftest.err >&5
14750 echo "$as_me:14750: \$? = $ac_status" >&5
14751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14752 then
14753 # The compiler can only warn and ignore the option if not recognized
14754 # So say no if there are warnings
14755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14758 lt_cv_prog_compiler_c_o_F77=yes
14761 chmod u+w . 2>&5
14762 $rm conftest*
14763 # SGI C++ compiler will create directory out/ii_files/ for
14764 # template instantiation
14765 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14766 $rm out/* && rmdir out
14767 cd ..
14768 rmdir conftest
14769 $rm conftest*
14772 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14773 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14776 hard_links="nottested"
14777 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14778 # do not overwrite the value of need_locks provided by the user
14779 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14780 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14781 hard_links=yes
14782 $rm conftest*
14783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14784 touch conftest.a
14785 ln conftest.a conftest.b 2>&5 || hard_links=no
14786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14787 { echo "$as_me:$LINENO: result: $hard_links" >&5
14788 echo "${ECHO_T}$hard_links" >&6; }
14789 if test "$hard_links" = no; then
14790 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14791 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14792 need_locks=warn
14794 else
14795 need_locks=no
14798 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14799 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14801 runpath_var=
14802 allow_undefined_flag_F77=
14803 enable_shared_with_static_runtimes_F77=no
14804 archive_cmds_F77=
14805 archive_expsym_cmds_F77=
14806 old_archive_From_new_cmds_F77=
14807 old_archive_from_expsyms_cmds_F77=
14808 export_dynamic_flag_spec_F77=
14809 whole_archive_flag_spec_F77=
14810 thread_safe_flag_spec_F77=
14811 hardcode_libdir_flag_spec_F77=
14812 hardcode_libdir_flag_spec_ld_F77=
14813 hardcode_libdir_separator_F77=
14814 hardcode_direct_F77=no
14815 hardcode_minus_L_F77=no
14816 hardcode_shlibpath_var_F77=unsupported
14817 link_all_deplibs_F77=unknown
14818 hardcode_automatic_F77=no
14819 module_cmds_F77=
14820 module_expsym_cmds_F77=
14821 always_export_symbols_F77=no
14822 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14823 # include_expsyms should be a list of space-separated symbols to be *always*
14824 # included in the symbol list
14825 include_expsyms_F77=
14826 # exclude_expsyms can be an extended regexp of symbols to exclude
14827 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14828 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14829 # as well as any symbol that contains `d'.
14830 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14831 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14832 # platforms (ab)use it in PIC code, but their linkers get confused if
14833 # the symbol is explicitly referenced. Since portable code cannot
14834 # rely on this symbol name, it's probably fine to never include it in
14835 # preloaded symbol tables.
14836 # Exclude shared library initialization/finalization symbols.
14837 extract_expsyms_cmds=
14838 # Just being paranoid about ensuring that cc_basename is set.
14839 for cc_temp in $compiler""; do
14840 case $cc_temp in
14841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14843 \-*) ;;
14844 *) break;;
14845 esac
14846 done
14847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14849 case $host_os in
14850 cygwin* | mingw* | pw32*)
14851 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14852 # When not using gcc, we currently assume that we are using
14853 # Microsoft Visual C++.
14854 if test "$GCC" != yes; then
14855 with_gnu_ld=no
14858 interix*)
14859 # we just hope/assume this is gcc and not c89 (= MSVC++)
14860 with_gnu_ld=yes
14862 openbsd*)
14863 with_gnu_ld=no
14865 esac
14867 ld_shlibs_F77=yes
14868 if test "$with_gnu_ld" = yes; then
14869 # If archive_cmds runs LD, not CC, wlarc should be empty
14870 wlarc='${wl}'
14872 # Set some defaults for GNU ld with shared library support. These
14873 # are reset later if shared libraries are not supported. Putting them
14874 # here allows them to be overridden if necessary.
14875 runpath_var=LD_RUN_PATH
14876 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14877 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14878 # ancient GNU ld didn't support --whole-archive et. al.
14879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14880 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14881 else
14882 whole_archive_flag_spec_F77=
14884 supports_anon_versioning=no
14885 case `$LD -v 2>/dev/null` in
14886 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14889 *\ 2.11.*) ;; # other 2.11 versions
14890 *) supports_anon_versioning=yes ;;
14891 esac
14893 # See if GNU ld supports shared libraries.
14894 case $host_os in
14895 aix[3-9]*)
14896 # On AIX/PPC, the GNU linker is very broken
14897 if test "$host_cpu" != ia64; then
14898 ld_shlibs_F77=no
14899 cat <<EOF 1>&2
14901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14902 *** to be unable to reliably create shared libraries on AIX.
14903 *** Therefore, libtool is disabling shared libraries support. If you
14904 *** really care for shared libraries, you may want to modify your PATH
14905 *** so that a non-GNU linker is found, and then restart.
14911 amigaos*)
14912 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)'
14913 hardcode_libdir_flag_spec_F77='-L$libdir'
14914 hardcode_minus_L_F77=yes
14916 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14917 # that the semantics of dynamic libraries on AmigaOS, at least up
14918 # to version 4, is to share data among multiple programs linked
14919 # with the same dynamic library. Since this doesn't match the
14920 # behavior of shared libraries on other platforms, we can't use
14921 # them.
14922 ld_shlibs_F77=no
14925 beos*)
14926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14927 allow_undefined_flag_F77=unsupported
14928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14929 # support --undefined. This deserves some investigation. FIXME
14930 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14931 else
14932 ld_shlibs_F77=no
14936 cygwin* | mingw* | pw32*)
14937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14938 # as there is no search path for DLLs.
14939 hardcode_libdir_flag_spec_F77='-L$libdir'
14940 allow_undefined_flag_F77=unsupported
14941 always_export_symbols_F77=no
14942 enable_shared_with_static_runtimes_F77=yes
14943 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14946 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14947 # If the export-symbols file already is a .def file (1st line
14948 # is EXPORTS), use it as is; otherwise, prepend...
14949 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14950 cp $export_symbols $output_objdir/$soname.def;
14951 else
14952 echo EXPORTS > $output_objdir/$soname.def;
14953 cat $export_symbols >> $output_objdir/$soname.def;
14955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14956 else
14957 ld_shlibs_F77=no
14961 interix[3-9]*)
14962 hardcode_direct_F77=no
14963 hardcode_shlibpath_var_F77=no
14964 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14965 export_dynamic_flag_spec_F77='${wl}-E'
14966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14967 # Instead, shared libraries are loaded at an image base (0x10000000 by
14968 # default) and relocated if they conflict, which is a slow very memory
14969 # consuming and fragmenting process. To avoid this, we pick a random,
14970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14971 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14972 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'
14973 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'
14976 gnu* | linux* | k*bsd*-gnu)
14977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14978 tmp_addflag=
14979 case $cc_basename,$host_cpu in
14980 pgcc*) # Portland Group C compiler
14981 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'
14982 tmp_addflag=' $pic_flag'
14984 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14985 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'
14986 tmp_addflag=' $pic_flag -Mnomain' ;;
14987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14988 tmp_addflag=' -i_dynamic' ;;
14989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14990 tmp_addflag=' -i_dynamic -nofor_main' ;;
14991 ifc* | ifort*) # Intel Fortran compiler
14992 tmp_addflag=' -nofor_main' ;;
14993 esac
14994 case `$CC -V 2>&1 | sed 5q` in
14995 *Sun\ C*) # Sun C 5.9
14996 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'
14997 tmp_sharedflag='-G' ;;
14998 *Sun\ F*) # Sun Fortran 8.3
14999 tmp_sharedflag='-G' ;;
15001 tmp_sharedflag='-shared' ;;
15002 esac
15003 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005 if test $supports_anon_versioning = yes; then
15006 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15008 $echo "local: *; };" >> $output_objdir/$libname.ver~
15009 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15011 else
15012 ld_shlibs_F77=no
15016 netbsd*)
15017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15018 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15019 wlarc=
15020 else
15021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15026 solaris*)
15027 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15028 ld_shlibs_F77=no
15029 cat <<EOF 1>&2
15031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15032 *** create shared libraries on Solaris systems. Therefore, libtool
15033 *** is disabling shared libraries support. We urge you to upgrade GNU
15034 *** binutils to release 2.9.1 or newer. Another option is to modify
15035 *** your PATH or compiler configuration so that the native linker is
15036 *** used, and then restart.
15039 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15042 else
15043 ld_shlibs_F77=no
15047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15048 case `$LD -v 2>&1` in
15049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15050 ld_shlibs_F77=no
15051 cat <<_LT_EOF 1>&2
15053 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15054 *** reliably create shared libraries on SCO systems. Therefore, libtool
15055 *** is disabling shared libraries support. We urge you to upgrade GNU
15056 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15057 *** your PATH or compiler configuration so that the native linker is
15058 *** used, and then restart.
15060 _LT_EOF
15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15064 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15065 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15066 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15067 else
15068 ld_shlibs_F77=no
15071 esac
15074 sunos4*)
15075 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15076 wlarc=
15077 hardcode_direct_F77=yes
15078 hardcode_shlibpath_var_F77=no
15082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15084 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15085 else
15086 ld_shlibs_F77=no
15089 esac
15091 if test "$ld_shlibs_F77" = no; then
15092 runpath_var=
15093 hardcode_libdir_flag_spec_F77=
15094 export_dynamic_flag_spec_F77=
15095 whole_archive_flag_spec_F77=
15097 else
15098 # PORTME fill in a description of your system's linker (not GNU ld)
15099 case $host_os in
15100 aix3*)
15101 allow_undefined_flag_F77=unsupported
15102 always_export_symbols_F77=yes
15103 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'
15104 # Note: this linker hardcodes the directories in LIBPATH if there
15105 # are no directories specified by -L.
15106 hardcode_minus_L_F77=yes
15107 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15108 # Neither direct hardcoding nor static linking is supported with a
15109 # broken collect2.
15110 hardcode_direct_F77=unsupported
15114 aix[4-9]*)
15115 if test "$host_cpu" = ia64; then
15116 # On IA64, the linker does run time linking by default, so we don't
15117 # have to do anything special.
15118 aix_use_runtimelinking=no
15119 exp_sym_flag='-Bexport'
15120 no_entry_flag=""
15121 else
15122 # If we're using GNU nm, then we don't want the "-C" option.
15123 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15124 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15125 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'
15126 else
15127 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'
15129 aix_use_runtimelinking=no
15131 # Test if we are trying to use run time linking or normal
15132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15133 # need to do runtime linking.
15134 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15135 for ld_flag in $LDFLAGS; do
15136 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15137 aix_use_runtimelinking=yes
15138 break
15140 done
15142 esac
15144 exp_sym_flag='-bexport'
15145 no_entry_flag='-bnoentry'
15148 # When large executables or shared objects are built, AIX ld can
15149 # have problems creating the table of contents. If linking a library
15150 # or program results in "error TOC overflow" add -mminimal-toc to
15151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15154 archive_cmds_F77=''
15155 hardcode_direct_F77=yes
15156 hardcode_libdir_separator_F77=':'
15157 link_all_deplibs_F77=yes
15159 if test "$GCC" = yes; then
15160 case $host_os in aix4.[012]|aix4.[012].*)
15161 # We only want to do this on AIX 4.2 and lower, the check
15162 # below for broken collect2 doesn't work under 4.3+
15163 collect2name=`${CC} -print-prog-name=collect2`
15164 if test -f "$collect2name" && \
15165 strings "$collect2name" | grep resolve_lib_name >/dev/null
15166 then
15167 # We have reworked collect2
15169 else
15170 # We have old collect2
15171 hardcode_direct_F77=unsupported
15172 # It fails to find uninstalled libraries when the uninstalled
15173 # path is not listed in the libpath. Setting hardcode_minus_L
15174 # to unsupported forces relinking
15175 hardcode_minus_L_F77=yes
15176 hardcode_libdir_flag_spec_F77='-L$libdir'
15177 hardcode_libdir_separator_F77=
15180 esac
15181 shared_flag='-shared'
15182 if test "$aix_use_runtimelinking" = yes; then
15183 shared_flag="$shared_flag "'${wl}-G'
15185 else
15186 # not using gcc
15187 if test "$host_cpu" = ia64; then
15188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15189 # chokes on -Wl,-G. The following line is correct:
15190 shared_flag='-G'
15191 else
15192 if test "$aix_use_runtimelinking" = yes; then
15193 shared_flag='${wl}-G'
15194 else
15195 shared_flag='${wl}-bM:SRE'
15200 # It seems that -bexpall does not export symbols beginning with
15201 # underscore (_), so it is better to generate a list of symbols to export.
15202 always_export_symbols_F77=yes
15203 if test "$aix_use_runtimelinking" = yes; then
15204 # Warning - without using the other runtime loading flags (-brtl),
15205 # -berok will link without error, but may produce a broken library.
15206 allow_undefined_flag_F77='-berok'
15207 # Determine the default libpath from the value encoded in an empty executable.
15208 cat >conftest.$ac_ext <<_ACEOF
15209 program main
15212 _ACEOF
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218 esac
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_link") 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } && {
15227 test -z "$ac_f77_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest$ac_exeext &&
15230 $as_test_x conftest$ac_exeext; then
15232 lt_aix_libpath_sed='
15233 /Import File Strings/,/^$/ {
15234 /^0/ {
15235 s/^0 *\(.*\)$/\1/
15239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15240 # Check for a 64-bit object if we didn't find anything.
15241 if test -z "$aix_libpath"; then
15242 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15244 else
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15252 conftest$ac_exeext conftest.$ac_ext
15253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15255 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15256 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"
15257 else
15258 if test "$host_cpu" = ia64; then
15259 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15260 allow_undefined_flag_F77="-z nodefs"
15261 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"
15262 else
15263 # Determine the default libpath from the value encoded in an empty executable.
15264 cat >conftest.$ac_ext <<_ACEOF
15265 program main
15268 _ACEOF
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (ac_try="$ac_link"
15271 case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274 esac
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_link") 2>conftest.er1
15277 ac_status=$?
15278 grep -v '^ *+' conftest.er1 >conftest.err
15279 rm -f conftest.er1
15280 cat conftest.err >&5
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } && {
15283 test -z "$ac_f77_werror_flag" ||
15284 test ! -s conftest.err
15285 } && test -s conftest$ac_exeext &&
15286 $as_test_x conftest$ac_exeext; then
15288 lt_aix_libpath_sed='
15289 /Import File Strings/,/^$/ {
15290 /^0/ {
15291 s/^0 *\(.*\)$/\1/
15295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15296 # Check for a 64-bit object if we didn't find anything.
15297 if test -z "$aix_libpath"; then
15298 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15300 else
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15308 conftest$ac_exeext conftest.$ac_ext
15309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15311 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15312 # Warning - without using the other run time loading flags,
15313 # -berok will link without error, but may produce a broken library.
15314 no_undefined_flag_F77=' ${wl}-bernotok'
15315 allow_undefined_flag_F77=' ${wl}-berok'
15316 # Exported symbols can be pulled into shared objects from archives
15317 whole_archive_flag_spec_F77='$convenience'
15318 archive_cmds_need_lc_F77=yes
15319 # This is similar to how AIX traditionally builds its shared libraries.
15320 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'
15325 amigaos*)
15326 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)'
15327 hardcode_libdir_flag_spec_F77='-L$libdir'
15328 hardcode_minus_L_F77=yes
15329 # see comment about different semantics on the GNU ld section
15330 ld_shlibs_F77=no
15333 bsdi[45]*)
15334 export_dynamic_flag_spec_F77=-rdynamic
15337 cygwin* | mingw* | pw32*)
15338 # When not using gcc, we currently assume that we are using
15339 # Microsoft Visual C++.
15340 # hardcode_libdir_flag_spec is actually meaningless, as there is
15341 # no search path for DLLs.
15342 hardcode_libdir_flag_spec_F77=' '
15343 allow_undefined_flag_F77=unsupported
15344 # Tell ltmain to make .lib files, not .a files.
15345 libext=lib
15346 # Tell ltmain to make .dll files, not .so files.
15347 shrext_cmds=".dll"
15348 # FIXME: Setting linknames here is a bad hack.
15349 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15350 # The linker will automatically build a .lib file if we build a DLL.
15351 old_archive_From_new_cmds_F77='true'
15352 # FIXME: Should let the user specify the lib program.
15353 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15354 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15355 enable_shared_with_static_runtimes_F77=yes
15358 darwin* | rhapsody*)
15359 case $host_os in
15360 rhapsody* | darwin1.[012])
15361 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15363 *) # Darwin 1.3 on
15364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15365 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15366 else
15367 case ${MACOSX_DEPLOYMENT_TARGET} in
15368 10.[012])
15369 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15371 10.*)
15372 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15374 esac
15377 esac
15378 archive_cmds_need_lc_F77=no
15379 hardcode_direct_F77=no
15380 hardcode_automatic_F77=yes
15381 hardcode_shlibpath_var_F77=unsupported
15382 whole_archive_flag_spec_F77=''
15383 link_all_deplibs_F77=yes
15384 if test "$GCC" = yes ; then
15385 output_verbose_link_cmd='echo'
15386 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}"
15387 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15388 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}"
15389 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}"
15390 else
15391 case $cc_basename in
15392 xlc*)
15393 output_verbose_link_cmd='echo'
15394 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15395 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15396 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15397 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}'
15398 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}'
15401 ld_shlibs_F77=no
15403 esac
15407 dgux*)
15408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15409 hardcode_libdir_flag_spec_F77='-L$libdir'
15410 hardcode_shlibpath_var_F77=no
15413 freebsd1*)
15414 ld_shlibs_F77=no
15417 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15418 # support. Future versions do this automatically, but an explicit c++rt0.o
15419 # does not break anything, and helps significantly (at the cost of a little
15420 # extra space).
15421 freebsd2.2*)
15422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15423 hardcode_libdir_flag_spec_F77='-R$libdir'
15424 hardcode_direct_F77=yes
15425 hardcode_shlibpath_var_F77=no
15428 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15429 freebsd2*)
15430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15431 hardcode_direct_F77=yes
15432 hardcode_minus_L_F77=yes
15433 hardcode_shlibpath_var_F77=no
15436 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15437 freebsd* | dragonfly*)
15438 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15439 hardcode_libdir_flag_spec_F77='-R$libdir'
15440 hardcode_direct_F77=yes
15441 hardcode_shlibpath_var_F77=no
15444 hpux9*)
15445 if test "$GCC" = yes; then
15446 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'
15447 else
15448 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'
15450 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15451 hardcode_libdir_separator_F77=:
15452 hardcode_direct_F77=yes
15454 # hardcode_minus_L: Not really in the search PATH,
15455 # but as the default location of the library.
15456 hardcode_minus_L_F77=yes
15457 export_dynamic_flag_spec_F77='${wl}-E'
15460 hpux10*)
15461 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15462 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15463 else
15464 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15466 if test "$with_gnu_ld" = no; then
15467 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15468 hardcode_libdir_separator_F77=:
15470 hardcode_direct_F77=yes
15471 export_dynamic_flag_spec_F77='${wl}-E'
15473 # hardcode_minus_L: Not really in the search PATH,
15474 # but as the default location of the library.
15475 hardcode_minus_L_F77=yes
15479 hpux11*)
15480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15481 case $host_cpu in
15482 hppa*64*)
15483 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15485 ia64*)
15486 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15489 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15491 esac
15492 else
15493 case $host_cpu in
15494 hppa*64*)
15495 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15497 ia64*)
15498 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15501 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15503 esac
15505 if test "$with_gnu_ld" = no; then
15506 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15507 hardcode_libdir_separator_F77=:
15509 case $host_cpu in
15510 hppa*64*|ia64*)
15511 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15512 hardcode_direct_F77=no
15513 hardcode_shlibpath_var_F77=no
15516 hardcode_direct_F77=yes
15517 export_dynamic_flag_spec_F77='${wl}-E'
15519 # hardcode_minus_L: Not really in the search PATH,
15520 # but as the default location of the library.
15521 hardcode_minus_L_F77=yes
15523 esac
15527 irix5* | irix6* | nonstopux*)
15528 if test "$GCC" = yes; then
15529 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'
15530 else
15531 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'
15532 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15534 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15535 hardcode_libdir_separator_F77=:
15536 link_all_deplibs_F77=yes
15539 netbsd*)
15540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15541 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15542 else
15543 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15545 hardcode_libdir_flag_spec_F77='-R$libdir'
15546 hardcode_direct_F77=yes
15547 hardcode_shlibpath_var_F77=no
15550 newsos6)
15551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct_F77=yes
15553 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15554 hardcode_libdir_separator_F77=:
15555 hardcode_shlibpath_var_F77=no
15558 openbsd*)
15559 if test -f /usr/libexec/ld.so; then
15560 hardcode_direct_F77=yes
15561 hardcode_shlibpath_var_F77=no
15562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15563 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15564 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15565 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15566 export_dynamic_flag_spec_F77='${wl}-E'
15567 else
15568 case $host_os in
15569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15570 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_libdir_flag_spec_F77='-R$libdir'
15574 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15575 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15577 esac
15579 else
15580 ld_shlibs_F77=no
15584 os2*)
15585 hardcode_libdir_flag_spec_F77='-L$libdir'
15586 hardcode_minus_L_F77=yes
15587 allow_undefined_flag_F77=unsupported
15588 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'
15589 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15592 osf3*)
15593 if test "$GCC" = yes; then
15594 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15595 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'
15596 else
15597 allow_undefined_flag_F77=' -expect_unresolved \*'
15598 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'
15600 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15601 hardcode_libdir_separator_F77=:
15604 osf4* | osf5*) # as osf3* with the addition of -msym flag
15605 if test "$GCC" = yes; then
15606 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15607 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'
15608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15609 else
15610 allow_undefined_flag_F77=' -expect_unresolved \*'
15611 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'
15612 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~
15613 $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'
15615 # Both c and cxx compiler support -rpath directly
15616 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15618 hardcode_libdir_separator_F77=:
15621 solaris*)
15622 no_undefined_flag_F77=' -z text'
15623 if test "$GCC" = yes; then
15624 wlarc='${wl}'
15625 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15626 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15627 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15628 else
15629 wlarc=''
15630 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15634 hardcode_libdir_flag_spec_F77='-R$libdir'
15635 hardcode_shlibpath_var_F77=no
15636 case $host_os in
15637 solaris2.[0-5] | solaris2.[0-5].*) ;;
15639 # The compiler driver will combine and reorder linker options,
15640 # but understands `-z linker_flag'. GCC discards it without `$wl',
15641 # but is careful enough not to reorder.
15642 # Supported since Solaris 2.6 (maybe 2.5.1?)
15643 if test "$GCC" = yes; then
15644 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15645 else
15646 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15649 esac
15650 link_all_deplibs_F77=yes
15653 sunos4*)
15654 if test "x$host_vendor" = xsequent; then
15655 # Use $CC to link under sequent, because it throws in some extra .o
15656 # files that make .init and .fini sections work.
15657 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15658 else
15659 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15661 hardcode_libdir_flag_spec_F77='-L$libdir'
15662 hardcode_direct_F77=yes
15663 hardcode_minus_L_F77=yes
15664 hardcode_shlibpath_var_F77=no
15667 sysv4)
15668 case $host_vendor in
15669 sni)
15670 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15671 hardcode_direct_F77=yes # is this really true???
15673 siemens)
15674 ## LD is ld it makes a PLAMLIB
15675 ## CC just makes a GrossModule.
15676 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15677 reload_cmds_F77='$CC -r -o $output$reload_objs'
15678 hardcode_direct_F77=no
15680 motorola)
15681 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15682 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15684 esac
15685 runpath_var='LD_RUN_PATH'
15686 hardcode_shlibpath_var_F77=no
15689 sysv4.3*)
15690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 hardcode_shlibpath_var_F77=no
15692 export_dynamic_flag_spec_F77='-Bexport'
15695 sysv4*MP*)
15696 if test -d /usr/nec; then
15697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15698 hardcode_shlibpath_var_F77=no
15699 runpath_var=LD_RUN_PATH
15700 hardcode_runpath_var=yes
15701 ld_shlibs_F77=yes
15705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15706 no_undefined_flag_F77='${wl}-z,text'
15707 archive_cmds_need_lc_F77=no
15708 hardcode_shlibpath_var_F77=no
15709 runpath_var='LD_RUN_PATH'
15711 if test "$GCC" = yes; then
15712 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15713 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15714 else
15715 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15716 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720 sysv5* | sco3.2v5* | sco5v6*)
15721 # Note: We can NOT use -z defs as we might desire, because we do not
15722 # link with -lc, and that would cause any symbols used from libc to
15723 # always be unresolved, which means just about no library would
15724 # ever link correctly. If we're not using GNU ld we use -z text
15725 # though, which does catch some bad symbols but isn't as heavy-handed
15726 # as -z defs.
15727 no_undefined_flag_F77='${wl}-z,text'
15728 allow_undefined_flag_F77='${wl}-z,nodefs'
15729 archive_cmds_need_lc_F77=no
15730 hardcode_shlibpath_var_F77=no
15731 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15732 hardcode_libdir_separator_F77=':'
15733 link_all_deplibs_F77=yes
15734 export_dynamic_flag_spec_F77='${wl}-Bexport'
15735 runpath_var='LD_RUN_PATH'
15737 if test "$GCC" = yes; then
15738 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15739 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15740 else
15741 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15742 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15746 uts4*)
15747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 hardcode_libdir_flag_spec_F77='-L$libdir'
15749 hardcode_shlibpath_var_F77=no
15753 ld_shlibs_F77=no
15755 esac
15758 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15759 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15760 test "$ld_shlibs_F77" = no && can_build_shared=no
15763 # Do we need to explicitly link libc?
15765 case "x$archive_cmds_need_lc_F77" in
15766 x|xyes)
15767 # Assume -lc should be added
15768 archive_cmds_need_lc_F77=yes
15770 if test "$enable_shared" = yes && test "$GCC" = yes; then
15771 case $archive_cmds_F77 in
15772 *'~'*)
15773 # FIXME: we may have to deal with multi-command sequences.
15775 '$CC '*)
15776 # Test whether the compiler implicitly links with -lc since on some
15777 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15778 # to ld, don't add -lc before -lgcc.
15779 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15780 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15781 $rm conftest*
15782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } 2>conftest.err; then
15789 soname=conftest
15790 lib=conftest
15791 libobjs=conftest.$ac_objext
15792 deplibs=
15793 wl=$lt_prog_compiler_wl_F77
15794 pic_flag=$lt_prog_compiler_pic_F77
15795 compiler_flags=-v
15796 linker_flags=-v
15797 verstring=
15798 output_objdir=.
15799 libname=conftest
15800 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15801 allow_undefined_flag_F77=
15802 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15803 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }
15807 then
15808 archive_cmds_need_lc_F77=no
15809 else
15810 archive_cmds_need_lc_F77=yes
15812 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15813 else
15814 cat conftest.err 1>&5
15816 $rm conftest*
15817 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15818 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15820 esac
15823 esac
15825 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15826 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15827 library_names_spec=
15828 libname_spec='lib$name'
15829 soname_spec=
15830 shrext_cmds=".so"
15831 postinstall_cmds=
15832 postuninstall_cmds=
15833 finish_cmds=
15834 finish_eval=
15835 shlibpath_var=
15836 shlibpath_overrides_runpath=unknown
15837 version_type=none
15838 dynamic_linker="$host_os ld.so"
15839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15841 need_lib_prefix=unknown
15842 hardcode_into_libs=no
15844 # when you set need_version to no, make sure it does not cause -set_version
15845 # flags to be left without arguments
15846 need_version=unknown
15848 case $host_os in
15849 aix3*)
15850 version_type=linux
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15852 shlibpath_var=LIBPATH
15854 # AIX 3 has no versioning support, so we append a major version to the name.
15855 soname_spec='${libname}${release}${shared_ext}$major'
15858 aix[4-9]*)
15859 version_type=linux
15860 need_lib_prefix=no
15861 need_version=no
15862 hardcode_into_libs=yes
15863 if test "$host_cpu" = ia64; then
15864 # AIX 5 supports IA64
15865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15866 shlibpath_var=LD_LIBRARY_PATH
15867 else
15868 # With GCC up to 2.95.x, collect2 would create an import file
15869 # for dependence libraries. The import file would start with
15870 # the line `#! .'. This would cause the generated library to
15871 # depend on `.', always an invalid library. This was fixed in
15872 # development snapshots of GCC prior to 3.0.
15873 case $host_os in
15874 aix4 | aix4.[01] | aix4.[01].*)
15875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15876 echo ' yes '
15877 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15879 else
15880 can_build_shared=no
15883 esac
15884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15885 # soname into executable. Probably we can add versioning support to
15886 # collect2, so additional links can be useful in future.
15887 if test "$aix_use_runtimelinking" = yes; then
15888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15889 # instead of lib<name>.a to let people know that these are not
15890 # typical AIX shared libraries.
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 else
15893 # We preserve .a as extension for shared libraries through AIX4.2
15894 # and later when we are not doing run time linking.
15895 library_names_spec='${libname}${release}.a $libname.a'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15898 shlibpath_var=LIBPATH
15902 amigaos*)
15903 library_names_spec='$libname.ixlibrary $libname.a'
15904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15905 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'
15908 beos*)
15909 library_names_spec='${libname}${shared_ext}'
15910 dynamic_linker="$host_os ld.so"
15911 shlibpath_var=LIBRARY_PATH
15914 bsdi[45]*)
15915 version_type=linux
15916 need_version=no
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15922 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15923 # the default ld.so.conf also contains /usr/contrib/lib and
15924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15925 # libtool to hard-code these into programs
15928 cygwin* | mingw* | pw32*)
15929 version_type=windows
15930 shrext_cmds=".dll"
15931 need_version=no
15932 need_lib_prefix=no
15934 case $GCC,$host_os in
15935 yes,cygwin* | yes,mingw* | yes,pw32*)
15936 library_names_spec='$libname.dll.a'
15937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15938 postinstall_cmds='base_file=`basename \${file}`~
15939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15940 dldir=$destdir/`dirname \$dlpath`~
15941 test -d \$dldir || mkdir -p \$dldir~
15942 $install_prog $dir/$dlname \$dldir/$dlname~
15943 chmod a+x \$dldir/$dlname'
15944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15945 dlpath=$dir/\$dldll~
15946 $rm \$dlpath'
15947 shlibpath_overrides_runpath=yes
15949 case $host_os in
15950 cygwin*)
15951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15953 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15955 mingw*)
15956 # MinGW DLLs use traditional 'lib' prefix
15957 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15958 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15959 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15960 # It is most probably a Windows format PATH printed by
15961 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15962 # path with ; separators, and with drive letters. We can handle the
15963 # drive letters (cygwin fileutils understands them), so leave them,
15964 # especially as we might pass files found there to a mingw objdump,
15965 # which wouldn't understand a cygwinified path. Ahh.
15966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15967 else
15968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15971 pw32*)
15972 # pw32 DLLs use 'pw' prefix rather than 'lib'
15973 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15975 esac
15979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15981 esac
15982 dynamic_linker='Win32 ld.exe'
15983 # FIXME: first we should search . and the directory the executable is in
15984 shlibpath_var=PATH
15987 darwin* | rhapsody*)
15988 dynamic_linker="$host_os dyld"
15989 version_type=darwin
15990 need_lib_prefix=no
15991 need_version=no
15992 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15993 soname_spec='${libname}${release}${major}$shared_ext'
15994 shlibpath_overrides_runpath=yes
15995 shlibpath_var=DYLD_LIBRARY_PATH
15996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15998 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16001 dgux*)
16002 version_type=linux
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 shlibpath_var=LD_LIBRARY_PATH
16010 freebsd1*)
16011 dynamic_linker=no
16014 freebsd* | dragonfly*)
16015 # DragonFly does not have aout. When/if they implement a new
16016 # versioning mechanism, adjust this.
16017 if test -x /usr/bin/objformat; then
16018 objformat=`/usr/bin/objformat`
16019 else
16020 case $host_os in
16021 freebsd[123]*) objformat=aout ;;
16022 *) objformat=elf ;;
16023 esac
16025 version_type=freebsd-$objformat
16026 case $version_type in
16027 freebsd-elf*)
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16029 need_version=no
16030 need_lib_prefix=no
16032 freebsd-*)
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16034 need_version=yes
16036 esac
16037 shlibpath_var=LD_LIBRARY_PATH
16038 case $host_os in
16039 freebsd2*)
16040 shlibpath_overrides_runpath=yes
16042 freebsd3.[01]* | freebsdelf3.[01]*)
16043 shlibpath_overrides_runpath=yes
16044 hardcode_into_libs=yes
16046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16048 shlibpath_overrides_runpath=no
16049 hardcode_into_libs=yes
16051 *) # from 4.6 on, and DragonFly
16052 shlibpath_overrides_runpath=yes
16053 hardcode_into_libs=yes
16055 esac
16058 gnu*)
16059 version_type=linux
16060 need_lib_prefix=no
16061 need_version=no
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 hardcode_into_libs=yes
16068 hpux9* | hpux10* | hpux11*)
16069 # Give a soname corresponding to the major version so that dld.sl refuses to
16070 # link against other versions.
16071 version_type=sunos
16072 need_lib_prefix=no
16073 need_version=no
16074 case $host_cpu in
16075 ia64*)
16076 shrext_cmds='.so'
16077 hardcode_into_libs=yes
16078 dynamic_linker="$host_os dld.so"
16079 shlibpath_var=LD_LIBRARY_PATH
16080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16082 soname_spec='${libname}${release}${shared_ext}$major'
16083 if test "X$HPUX_IA64_MODE" = X32; then
16084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16085 else
16086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16090 hppa*64*)
16091 shrext_cmds='.sl'
16092 hardcode_into_libs=yes
16093 dynamic_linker="$host_os dld.sl"
16094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16102 shrext_cmds='.sl'
16103 dynamic_linker="$host_os dld.sl"
16104 shlibpath_var=SHLIB_PATH
16105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16109 esac
16110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16111 postinstall_cmds='chmod 555 $lib'
16114 interix[3-9]*)
16115 version_type=linux
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 shlibpath_overrides_runpath=no
16123 hardcode_into_libs=yes
16126 irix5* | irix6* | nonstopux*)
16127 case $host_os in
16128 nonstopux*) version_type=nonstopux ;;
16130 if test "$lt_cv_prog_gnu_ld" = yes; then
16131 version_type=linux
16132 else
16133 version_type=irix
16134 fi ;;
16135 esac
16136 need_lib_prefix=no
16137 need_version=no
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16140 case $host_os in
16141 irix5* | nonstopux*)
16142 libsuff= shlibsuff=
16145 case $LD in # libtool.m4 will add one of these switches to LD
16146 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16147 libsuff= shlibsuff= libmagic=32-bit;;
16148 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16149 libsuff=32 shlibsuff=N32 libmagic=N32;;
16150 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16151 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16152 *) libsuff= shlibsuff= libmagic=never-match;;
16153 esac
16155 esac
16156 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16157 shlibpath_overrides_runpath=no
16158 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16159 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16160 hardcode_into_libs=yes
16163 # No shared lib support for Linux oldld, aout, or coff.
16164 linux*oldld* | linux*aout* | linux*coff*)
16165 dynamic_linker=no
16168 # This must be Linux ELF.
16169 linux* | k*bsd*-gnu)
16170 version_type=linux
16171 need_lib_prefix=no
16172 need_version=no
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 shlibpath_overrides_runpath=no
16178 # This implies no fast_install, which is unacceptable.
16179 # Some rework will be needed to allow for fast_install
16180 # before this can be enabled.
16181 hardcode_into_libs=yes
16183 # Append ld.so.conf contents to the search path
16184 if test -f /etc/ld.so.conf; then
16185 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' ' '`
16186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16189 # We used to test for /lib/ld.so.1 and disable shared libraries on
16190 # powerpc, because MkLinux only supported shared libraries with the
16191 # GNU dynamic linker. Since this was broken with cross compilers,
16192 # most powerpc-linux boxes support dynamic linking these days and
16193 # people can always --disable-shared, the test was removed, and we
16194 # assume the GNU/Linux dynamic linker is in use.
16195 dynamic_linker='GNU/Linux ld.so'
16198 netbsd*)
16199 version_type=sunos
16200 need_lib_prefix=no
16201 need_version=no
16202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16205 dynamic_linker='NetBSD (a.out) ld.so'
16206 else
16207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16208 soname_spec='${libname}${release}${shared_ext}$major'
16209 dynamic_linker='NetBSD ld.elf_so'
16211 shlibpath_var=LD_LIBRARY_PATH
16212 shlibpath_overrides_runpath=yes
16213 hardcode_into_libs=yes
16216 newsos6)
16217 version_type=linux
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 shlibpath_overrides_runpath=yes
16223 nto-qnx*)
16224 version_type=linux
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16233 openbsd*)
16234 version_type=sunos
16235 sys_lib_dlsearch_path_spec="/usr/lib"
16236 need_lib_prefix=no
16237 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16238 case $host_os in
16239 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16240 *) need_version=no ;;
16241 esac
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16244 shlibpath_var=LD_LIBRARY_PATH
16245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16246 case $host_os in
16247 openbsd2.[89] | openbsd2.[89].*)
16248 shlibpath_overrides_runpath=no
16251 shlibpath_overrides_runpath=yes
16253 esac
16254 else
16255 shlibpath_overrides_runpath=yes
16259 os2*)
16260 libname_spec='$name'
16261 shrext_cmds=".dll"
16262 need_lib_prefix=no
16263 library_names_spec='$libname${shared_ext} $libname.a'
16264 dynamic_linker='OS/2 ld.exe'
16265 shlibpath_var=LIBPATH
16268 osf3* | osf4* | osf5*)
16269 version_type=osf
16270 need_lib_prefix=no
16271 need_version=no
16272 soname_spec='${libname}${release}${shared_ext}$major'
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 shlibpath_var=LD_LIBRARY_PATH
16275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16279 rdos*)
16280 dynamic_linker=no
16283 solaris*)
16284 version_type=linux
16285 need_lib_prefix=no
16286 need_version=no
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 shlibpath_overrides_runpath=yes
16291 hardcode_into_libs=yes
16292 # ldd complains unless libraries are executable
16293 postinstall_cmds='chmod +x $lib'
16296 sunos4*)
16297 version_type=sunos
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16300 shlibpath_var=LD_LIBRARY_PATH
16301 shlibpath_overrides_runpath=yes
16302 if test "$with_gnu_ld" = yes; then
16303 need_lib_prefix=no
16305 need_version=yes
16308 sysv4 | sysv4.3*)
16309 version_type=linux
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 case $host_vendor in
16314 sni)
16315 shlibpath_overrides_runpath=no
16316 need_lib_prefix=no
16317 export_dynamic_flag_spec='${wl}-Blargedynsym'
16318 runpath_var=LD_RUN_PATH
16320 siemens)
16321 need_lib_prefix=no
16323 motorola)
16324 need_lib_prefix=no
16325 need_version=no
16326 shlibpath_overrides_runpath=no
16327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16329 esac
16332 sysv4*MP*)
16333 if test -d /usr/nec ;then
16334 version_type=linux
16335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16336 soname_spec='$libname${shared_ext}.$major'
16337 shlibpath_var=LD_LIBRARY_PATH
16341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16342 version_type=freebsd-elf
16343 need_lib_prefix=no
16344 need_version=no
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16346 soname_spec='${libname}${release}${shared_ext}$major'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 hardcode_into_libs=yes
16349 if test "$with_gnu_ld" = yes; then
16350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16351 shlibpath_overrides_runpath=no
16352 else
16353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16354 shlibpath_overrides_runpath=yes
16355 case $host_os in
16356 sco3.2v5*)
16357 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16359 esac
16361 sys_lib_dlsearch_path_spec='/usr/lib'
16364 uts4*)
16365 version_type=linux
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 shlibpath_var=LD_LIBRARY_PATH
16372 dynamic_linker=no
16374 esac
16375 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16376 echo "${ECHO_T}$dynamic_linker" >&6; }
16377 test "$dynamic_linker" = no && can_build_shared=no
16379 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16385 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16386 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16392 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16395 if test "$GCC" = yes; then
16396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16399 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16400 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16401 hardcode_action_F77=
16402 if test -n "$hardcode_libdir_flag_spec_F77" || \
16403 test -n "$runpath_var_F77" || \
16404 test "X$hardcode_automatic_F77" = "Xyes" ; then
16406 # We can hardcode non-existant directories.
16407 if test "$hardcode_direct_F77" != no &&
16408 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16409 # have to relink, otherwise we might link with an installed library
16410 # when we should be linking with a yet-to-be-installed one
16411 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16412 test "$hardcode_minus_L_F77" != no; then
16413 # Linking always hardcodes the temporary library directory.
16414 hardcode_action_F77=relink
16415 else
16416 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16417 hardcode_action_F77=immediate
16419 else
16420 # We cannot hardcode anything, or else we can only hardcode existing
16421 # directories.
16422 hardcode_action_F77=unsupported
16424 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16425 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16427 if test "$hardcode_action_F77" = relink; then
16428 # Fast installation is not supported
16429 enable_fast_install=no
16430 elif test "$shlibpath_overrides_runpath" = yes ||
16431 test "$enable_shared" = no; then
16432 # Fast installation is not necessary
16433 enable_fast_install=needless
16437 # The else clause should only fire when bootstrapping the
16438 # libtool distribution, otherwise you forgot to ship ltmain.sh
16439 # with your package, and you will get complaints that there are
16440 # no rules to generate ltmain.sh.
16441 if test -f "$ltmain"; then
16442 # See if we are running on zsh, and set the options which allow our commands through
16443 # without removal of \ escapes.
16444 if test -n "${ZSH_VERSION+set}" ; then
16445 setopt NO_GLOB_SUBST
16447 # Now quote all the things that may contain metacharacters while being
16448 # careful not to overquote the AC_SUBSTed values. We take copies of the
16449 # variables and quote the copies for generation of the libtool script.
16450 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16451 SED SHELL STRIP \
16452 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16453 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16454 deplibs_check_method reload_flag reload_cmds need_locks \
16455 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16456 lt_cv_sys_global_symbol_to_c_name_address \
16457 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16458 old_postinstall_cmds old_postuninstall_cmds \
16459 compiler_F77 \
16460 CC_F77 \
16461 LD_F77 \
16462 lt_prog_compiler_wl_F77 \
16463 lt_prog_compiler_pic_F77 \
16464 lt_prog_compiler_static_F77 \
16465 lt_prog_compiler_no_builtin_flag_F77 \
16466 export_dynamic_flag_spec_F77 \
16467 thread_safe_flag_spec_F77 \
16468 whole_archive_flag_spec_F77 \
16469 enable_shared_with_static_runtimes_F77 \
16470 old_archive_cmds_F77 \
16471 old_archive_from_new_cmds_F77 \
16472 predep_objects_F77 \
16473 postdep_objects_F77 \
16474 predeps_F77 \
16475 postdeps_F77 \
16476 compiler_lib_search_path_F77 \
16477 compiler_lib_search_dirs_F77 \
16478 archive_cmds_F77 \
16479 archive_expsym_cmds_F77 \
16480 postinstall_cmds_F77 \
16481 postuninstall_cmds_F77 \
16482 old_archive_from_expsyms_cmds_F77 \
16483 allow_undefined_flag_F77 \
16484 no_undefined_flag_F77 \
16485 export_symbols_cmds_F77 \
16486 hardcode_libdir_flag_spec_F77 \
16487 hardcode_libdir_flag_spec_ld_F77 \
16488 hardcode_libdir_separator_F77 \
16489 hardcode_automatic_F77 \
16490 module_cmds_F77 \
16491 module_expsym_cmds_F77 \
16492 lt_cv_prog_compiler_c_o_F77 \
16493 fix_srcfile_path_F77 \
16494 exclude_expsyms_F77 \
16495 include_expsyms_F77; do
16497 case $var in
16498 old_archive_cmds_F77 | \
16499 old_archive_from_new_cmds_F77 | \
16500 archive_cmds_F77 | \
16501 archive_expsym_cmds_F77 | \
16502 module_cmds_F77 | \
16503 module_expsym_cmds_F77 | \
16504 old_archive_from_expsyms_cmds_F77 | \
16505 export_symbols_cmds_F77 | \
16506 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16507 postinstall_cmds | postuninstall_cmds | \
16508 old_postinstall_cmds | old_postuninstall_cmds | \
16509 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16510 # Double-quote double-evaled strings.
16511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16516 esac
16517 done
16519 case $lt_echo in
16520 *'\$0 --fallback-echo"')
16521 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16523 esac
16525 cfgfile="$ofile"
16527 cat <<__EOF__ >> "$cfgfile"
16528 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16532 # Shell to use when invoking shell scripts.
16533 SHELL=$lt_SHELL
16535 # Whether or not to build shared libraries.
16536 build_libtool_libs=$enable_shared
16538 # Whether or not to build static libraries.
16539 build_old_libs=$enable_static
16541 # Whether or not to add -lc for building shared libraries.
16542 build_libtool_need_lc=$archive_cmds_need_lc_F77
16544 # Whether or not to disallow shared libs when runtime libs are static
16545 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16547 # Whether or not to optimize for fast installation.
16548 fast_install=$enable_fast_install
16550 # The host system.
16551 host_alias=$host_alias
16552 host=$host
16553 host_os=$host_os
16555 # The build system.
16556 build_alias=$build_alias
16557 build=$build
16558 build_os=$build_os
16560 # An echo program that does not interpret backslashes.
16561 echo=$lt_echo
16563 # The archiver.
16564 AR=$lt_AR
16565 AR_FLAGS=$lt_AR_FLAGS
16567 # A C compiler.
16568 LTCC=$lt_LTCC
16570 # LTCC compiler flags.
16571 LTCFLAGS=$lt_LTCFLAGS
16573 # A language-specific compiler.
16574 CC=$lt_compiler_F77
16576 # Is the compiler the GNU C compiler?
16577 with_gcc=$GCC_F77
16579 # An ERE matcher.
16580 EGREP=$lt_EGREP
16582 # The linker used to build libraries.
16583 LD=$lt_LD_F77
16585 # Whether we need hard or soft links.
16586 LN_S=$lt_LN_S
16588 # A BSD-compatible nm program.
16589 NM=$lt_NM
16591 # A symbol stripping program
16592 STRIP=$lt_STRIP
16594 # Used to examine libraries when file_magic_cmd begins "file"
16595 MAGIC_CMD=$MAGIC_CMD
16597 # Used on cygwin: DLL creation program.
16598 DLLTOOL="$DLLTOOL"
16600 # Used on cygwin: object dumper.
16601 OBJDUMP="$OBJDUMP"
16603 # Used on cygwin: assembler.
16604 AS="$AS"
16606 # The name of the directory that contains temporary libtool files.
16607 objdir=$objdir
16609 # How to create reloadable object files.
16610 reload_flag=$lt_reload_flag
16611 reload_cmds=$lt_reload_cmds
16613 # How to pass a linker flag through the compiler.
16614 wl=$lt_lt_prog_compiler_wl_F77
16616 # Object file suffix (normally "o").
16617 objext="$ac_objext"
16619 # Old archive suffix (normally "a").
16620 libext="$libext"
16622 # Shared library suffix (normally ".so").
16623 shrext_cmds='$shrext_cmds'
16625 # Executable file suffix (normally "").
16626 exeext="$exeext"
16628 # Additional compiler flags for building library objects.
16629 pic_flag=$lt_lt_prog_compiler_pic_F77
16630 pic_mode=$pic_mode
16632 # What is the maximum length of a command?
16633 max_cmd_len=$lt_cv_sys_max_cmd_len
16635 # Does compiler simultaneously support -c and -o options?
16636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16638 # Must we lock files when doing compilation?
16639 need_locks=$lt_need_locks
16641 # Do we need the lib prefix for modules?
16642 need_lib_prefix=$need_lib_prefix
16644 # Do we need a version for libraries?
16645 need_version=$need_version
16647 # Whether dlopen is supported.
16648 dlopen_support=$enable_dlopen
16650 # Whether dlopen of programs is supported.
16651 dlopen_self=$enable_dlopen_self
16653 # Whether dlopen of statically linked programs is supported.
16654 dlopen_self_static=$enable_dlopen_self_static
16656 # Compiler flag to prevent dynamic linking.
16657 link_static_flag=$lt_lt_prog_compiler_static_F77
16659 # Compiler flag to turn off builtin functions.
16660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16662 # Compiler flag to allow reflexive dlopens.
16663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16665 # Compiler flag to generate shared objects directly from archives.
16666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16668 # Compiler flag to generate thread-safe objects.
16669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16671 # Library versioning type.
16672 version_type=$version_type
16674 # Format of library name prefix.
16675 libname_spec=$lt_libname_spec
16677 # List of archive names. First name is the real one, the rest are links.
16678 # The last name is the one that the linker finds with -lNAME.
16679 library_names_spec=$lt_library_names_spec
16681 # The coded name of the library, if different from the real name.
16682 soname_spec=$lt_soname_spec
16684 # Commands used to build and install an old-style archive.
16685 RANLIB=$lt_RANLIB
16686 old_archive_cmds=$lt_old_archive_cmds_F77
16687 old_postinstall_cmds=$lt_old_postinstall_cmds
16688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16690 # Create an old-style archive from a shared archive.
16691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16693 # Create a temporary old-style archive to link instead of a shared archive.
16694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16696 # Commands used to build and install a shared archive.
16697 archive_cmds=$lt_archive_cmds_F77
16698 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16699 postinstall_cmds=$lt_postinstall_cmds
16700 postuninstall_cmds=$lt_postuninstall_cmds
16702 # Commands used to build a loadable module (assumed same as above if empty)
16703 module_cmds=$lt_module_cmds_F77
16704 module_expsym_cmds=$lt_module_expsym_cmds_F77
16706 # Commands to strip libraries.
16707 old_striplib=$lt_old_striplib
16708 striplib=$lt_striplib
16710 # Dependencies to place before the objects being linked to create a
16711 # shared library.
16712 predep_objects=$lt_predep_objects_F77
16714 # Dependencies to place after the objects being linked to create a
16715 # shared library.
16716 postdep_objects=$lt_postdep_objects_F77
16718 # Dependencies to place before the objects being linked to create a
16719 # shared library.
16720 predeps=$lt_predeps_F77
16722 # Dependencies to place after the objects being linked to create a
16723 # shared library.
16724 postdeps=$lt_postdeps_F77
16726 # The directories searched by this compiler when creating a shared
16727 # library
16728 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16730 # The library search path used internally by the compiler when linking
16731 # a shared library.
16732 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16734 # Method to check whether dependent libraries are shared objects.
16735 deplibs_check_method=$lt_deplibs_check_method
16737 # Command to use when deplibs_check_method == file_magic.
16738 file_magic_cmd=$lt_file_magic_cmd
16740 # Flag that allows shared libraries with undefined symbols to be built.
16741 allow_undefined_flag=$lt_allow_undefined_flag_F77
16743 # Flag that forces no undefined symbols.
16744 no_undefined_flag=$lt_no_undefined_flag_F77
16746 # Commands used to finish a libtool library installation in a directory.
16747 finish_cmds=$lt_finish_cmds
16749 # Same as above, but a single script fragment to be evaled but not shown.
16750 finish_eval=$lt_finish_eval
16752 # Take the output of nm and produce a listing of raw symbols and C names.
16753 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16755 # Transform the output of nm in a proper C declaration
16756 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16758 # Transform the output of nm in a C name address pair
16759 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16761 # This is the shared library runtime path variable.
16762 runpath_var=$runpath_var
16764 # This is the shared library path variable.
16765 shlibpath_var=$shlibpath_var
16767 # Is shlibpath searched before the hard-coded library search path?
16768 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16770 # How to hardcode a shared library path into an executable.
16771 hardcode_action=$hardcode_action_F77
16773 # Whether we should hardcode library paths into libraries.
16774 hardcode_into_libs=$hardcode_into_libs
16776 # Flag to hardcode \$libdir into a binary during linking.
16777 # This must work even if \$libdir does not exist.
16778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16780 # If ld is used when linking, flag to hardcode \$libdir into
16781 # a binary during linking. This must work even if \$libdir does
16782 # not exist.
16783 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16785 # Whether we need a single -rpath flag with a separated argument.
16786 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16788 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16789 # resulting binary.
16790 hardcode_direct=$hardcode_direct_F77
16792 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16793 # resulting binary.
16794 hardcode_minus_L=$hardcode_minus_L_F77
16796 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16797 # the resulting binary.
16798 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16800 # Set to yes if building a shared library automatically hardcodes DIR into the library
16801 # and all subsequent libraries and executables linked against it.
16802 hardcode_automatic=$hardcode_automatic_F77
16804 # Variables whose values should be saved in libtool wrapper scripts and
16805 # restored at relink time.
16806 variables_saved_for_relink="$variables_saved_for_relink"
16808 # Whether libtool must link a program against all its dependency libraries.
16809 link_all_deplibs=$link_all_deplibs_F77
16811 # Compile-time system search path for libraries
16812 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16814 # Run-time system search path for libraries
16815 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16817 # Fix the shell variable \$srcfile for the compiler.
16818 fix_srcfile_path=$lt_fix_srcfile_path
16820 # Set to yes if exported symbols are required.
16821 always_export_symbols=$always_export_symbols_F77
16823 # The commands to list exported symbols.
16824 export_symbols_cmds=$lt_export_symbols_cmds_F77
16826 # The commands to extract the exported symbol list from a shared archive.
16827 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16829 # Symbols that should not be listed in the preloaded symbols.
16830 exclude_expsyms=$lt_exclude_expsyms_F77
16832 # Symbols that must always be exported.
16833 include_expsyms=$lt_include_expsyms_F77
16835 # ### END LIBTOOL TAG CONFIG: $tagname
16837 __EOF__
16840 else
16841 # If there is no Makefile yet, we rely on a make rule to execute
16842 # `config.status --recheck' to rerun these tests and create the
16843 # libtool script then.
16844 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16845 if test -f "$ltmain_in"; then
16846 test -f Makefile && make "$ltmain"
16851 ac_ext=c
16852 ac_cpp='$CPP $CPPFLAGS'
16853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16857 CC="$lt_save_CC"
16859 else
16860 tagname=""
16864 GCJ)
16865 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16868 # Source file extension for Java test sources.
16869 ac_ext=java
16871 # Object file extension for compiled Java test sources.
16872 objext=o
16873 objext_GCJ=$objext
16875 # Code to be used in simple compile tests
16876 lt_simple_compile_test_code="class foo {}"
16878 # Code to be used in simple link tests
16879 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16881 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16883 # If no C compiler was specified, use CC.
16884 LTCC=${LTCC-"$CC"}
16886 # If no C compiler flags were specified, use CFLAGS.
16887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16889 # Allow CC to be a program name with arguments.
16890 compiler=$CC
16893 # save warnings/boilerplate of simple test code
16894 ac_outfile=conftest.$ac_objext
16895 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16896 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16897 _lt_compiler_boilerplate=`cat conftest.err`
16898 $rm conftest*
16900 ac_outfile=conftest.$ac_objext
16901 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16902 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16903 _lt_linker_boilerplate=`cat conftest.err`
16904 $rm -r conftest*
16907 # Allow CC to be a program name with arguments.
16908 lt_save_CC="$CC"
16909 CC=${GCJ-"gcj"}
16910 compiler=$CC
16911 compiler_GCJ=$CC
16912 for cc_temp in $compiler""; do
16913 case $cc_temp in
16914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16916 \-*) ;;
16917 *) break;;
16918 esac
16919 done
16920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16923 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16924 archive_cmds_need_lc_GCJ=no
16926 old_archive_cmds_GCJ=$old_archive_cmds
16929 lt_prog_compiler_no_builtin_flag_GCJ=
16931 if test "$GCC" = yes; then
16932 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16935 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16936 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16937 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 else
16940 lt_cv_prog_compiler_rtti_exceptions=no
16941 ac_outfile=conftest.$ac_objext
16942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16943 lt_compiler_flag="-fno-rtti -fno-exceptions"
16944 # Insert the option either (1) after the last *FLAGS variable, or
16945 # (2) before a word containing "conftest.", or (3) at the end.
16946 # Note that $ac_compile itself does not contain backslashes and begins
16947 # with a dollar sign (not a hyphen), so the echo should work correctly.
16948 # The option is referenced via a variable to avoid confusing sed.
16949 lt_compile=`echo "$ac_compile" | $SED \
16950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16952 -e 's:$: $lt_compiler_flag:'`
16953 (eval echo "\"\$as_me:16953: $lt_compile\"" >&5)
16954 (eval "$lt_compile" 2>conftest.err)
16955 ac_status=$?
16956 cat conftest.err >&5
16957 echo "$as_me:16957: \$? = $ac_status" >&5
16958 if (exit $ac_status) && test -s "$ac_outfile"; then
16959 # The compiler can only warn and ignore the option if not recognized
16960 # So say no if there are warnings other than the usual output.
16961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16964 lt_cv_prog_compiler_rtti_exceptions=yes
16967 $rm conftest*
16970 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16971 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16973 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16974 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16975 else
16981 lt_prog_compiler_wl_GCJ=
16982 lt_prog_compiler_pic_GCJ=
16983 lt_prog_compiler_static_GCJ=
16985 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16986 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16988 if test "$GCC" = yes; then
16989 lt_prog_compiler_wl_GCJ='-Wl,'
16990 lt_prog_compiler_static_GCJ='-static'
16992 case $host_os in
16993 aix*)
16994 # All AIX code is PIC.
16995 if test "$host_cpu" = ia64; then
16996 # AIX 5 now supports IA64 processor
16997 lt_prog_compiler_static_GCJ='-Bstatic'
17001 amigaos*)
17002 # FIXME: we need at least 68020 code to build shared libraries, but
17003 # adding the `-m68020' flag to GCC prevents building anything better,
17004 # like `-m68040'.
17005 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17009 # PIC is the default for these OSes.
17012 mingw* | cygwin* | pw32* | os2*)
17013 # This hack is so that the source file can tell whether it is being
17014 # built for inclusion in a dll (and should export symbols for example).
17015 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17016 # (--disable-auto-import) libraries
17020 darwin* | rhapsody*)
17021 # PIC is the default on this platform
17022 # Common symbols not allowed in MH_DYLIB files
17023 lt_prog_compiler_pic_GCJ='-fno-common'
17026 interix[3-9]*)
17027 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17028 # Instead, we relocate shared libraries at runtime.
17031 msdosdjgpp*)
17032 # Just because we use GCC doesn't mean we suddenly get shared libraries
17033 # on systems that don't support them.
17034 lt_prog_compiler_can_build_shared_GCJ=no
17035 enable_shared=no
17038 sysv4*MP*)
17039 if test -d /usr/nec; then
17040 lt_prog_compiler_pic_GCJ=-Kconform_pic
17044 hpux*)
17045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17046 # not for PA HP-UX.
17047 case $host_cpu in
17048 hppa*64*|ia64*)
17049 # +Z the default
17052 lt_prog_compiler_pic_GCJ='-fPIC'
17054 esac
17058 lt_prog_compiler_pic_GCJ='-fPIC'
17060 esac
17061 else
17062 # PORTME Check for flag to pass linker flags through the system compiler.
17063 case $host_os in
17064 aix*)
17065 lt_prog_compiler_wl_GCJ='-Wl,'
17066 if test "$host_cpu" = ia64; then
17067 # AIX 5 now supports IA64 processor
17068 lt_prog_compiler_static_GCJ='-Bstatic'
17069 else
17070 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17073 darwin*)
17074 # PIC is the default on this platform
17075 # Common symbols not allowed in MH_DYLIB files
17076 case $cc_basename in
17077 xlc*)
17078 lt_prog_compiler_pic_GCJ='-qnocommon'
17079 lt_prog_compiler_wl_GCJ='-Wl,'
17081 esac
17084 mingw* | cygwin* | pw32* | os2*)
17085 # This hack is so that the source file can tell whether it is being
17086 # built for inclusion in a dll (and should export symbols for example).
17090 hpux9* | hpux10* | hpux11*)
17091 lt_prog_compiler_wl_GCJ='-Wl,'
17092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17093 # not for PA HP-UX.
17094 case $host_cpu in
17095 hppa*64*|ia64*)
17096 # +Z the default
17099 lt_prog_compiler_pic_GCJ='+Z'
17101 esac
17102 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17103 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17106 irix5* | irix6* | nonstopux*)
17107 lt_prog_compiler_wl_GCJ='-Wl,'
17108 # PIC (with -KPIC) is the default.
17109 lt_prog_compiler_static_GCJ='-non_shared'
17112 newsos6)
17113 lt_prog_compiler_pic_GCJ='-KPIC'
17114 lt_prog_compiler_static_GCJ='-Bstatic'
17117 linux* | k*bsd*-gnu)
17118 case $cc_basename in
17119 icc* | ecc*)
17120 lt_prog_compiler_wl_GCJ='-Wl,'
17121 lt_prog_compiler_pic_GCJ='-KPIC'
17122 lt_prog_compiler_static_GCJ='-static'
17124 pgcc* | pgf77* | pgf90* | pgf95*)
17125 # Portland Group compilers (*not* the Pentium gcc compiler,
17126 # which looks to be a dead project)
17127 lt_prog_compiler_wl_GCJ='-Wl,'
17128 lt_prog_compiler_pic_GCJ='-fpic'
17129 lt_prog_compiler_static_GCJ='-Bstatic'
17131 ccc*)
17132 lt_prog_compiler_wl_GCJ='-Wl,'
17133 # All Alpha code is PIC.
17134 lt_prog_compiler_static_GCJ='-non_shared'
17137 case `$CC -V 2>&1 | sed 5q` in
17138 *Sun\ C*)
17139 # Sun C 5.9
17140 lt_prog_compiler_pic_GCJ='-KPIC'
17141 lt_prog_compiler_static_GCJ='-Bstatic'
17142 lt_prog_compiler_wl_GCJ='-Wl,'
17144 *Sun\ F*)
17145 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17146 lt_prog_compiler_pic_GCJ='-KPIC'
17147 lt_prog_compiler_static_GCJ='-Bstatic'
17148 lt_prog_compiler_wl_GCJ=''
17150 esac
17152 esac
17155 osf3* | osf4* | osf5*)
17156 lt_prog_compiler_wl_GCJ='-Wl,'
17157 # All OSF/1 code is PIC.
17158 lt_prog_compiler_static_GCJ='-non_shared'
17161 rdos*)
17162 lt_prog_compiler_static_GCJ='-non_shared'
17165 solaris*)
17166 lt_prog_compiler_pic_GCJ='-KPIC'
17167 lt_prog_compiler_static_GCJ='-Bstatic'
17168 case $cc_basename in
17169 f77* | f90* | f95*)
17170 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17172 lt_prog_compiler_wl_GCJ='-Wl,';;
17173 esac
17176 sunos4*)
17177 lt_prog_compiler_wl_GCJ='-Qoption ld '
17178 lt_prog_compiler_pic_GCJ='-PIC'
17179 lt_prog_compiler_static_GCJ='-Bstatic'
17182 sysv4 | sysv4.2uw2* | sysv4.3*)
17183 lt_prog_compiler_wl_GCJ='-Wl,'
17184 lt_prog_compiler_pic_GCJ='-KPIC'
17185 lt_prog_compiler_static_GCJ='-Bstatic'
17188 sysv4*MP*)
17189 if test -d /usr/nec ;then
17190 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17191 lt_prog_compiler_static_GCJ='-Bstatic'
17195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17196 lt_prog_compiler_wl_GCJ='-Wl,'
17197 lt_prog_compiler_pic_GCJ='-KPIC'
17198 lt_prog_compiler_static_GCJ='-Bstatic'
17201 unicos*)
17202 lt_prog_compiler_wl_GCJ='-Wl,'
17203 lt_prog_compiler_can_build_shared_GCJ=no
17206 uts4*)
17207 lt_prog_compiler_pic_GCJ='-pic'
17208 lt_prog_compiler_static_GCJ='-Bstatic'
17212 lt_prog_compiler_can_build_shared_GCJ=no
17214 esac
17217 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17218 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17221 # Check to make sure the PIC flag actually works.
17223 if test -n "$lt_prog_compiler_pic_GCJ"; then
17225 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17226 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17227 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 lt_cv_prog_compiler_pic_works_GCJ=no
17231 ac_outfile=conftest.$ac_objext
17232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17233 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17234 # Insert the option either (1) after the last *FLAGS variable, or
17235 # (2) before a word containing "conftest.", or (3) at the end.
17236 # Note that $ac_compile itself does not contain backslashes and begins
17237 # with a dollar sign (not a hyphen), so the echo should work correctly.
17238 # The option is referenced via a variable to avoid confusing sed.
17239 lt_compile=`echo "$ac_compile" | $SED \
17240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17242 -e 's:$: $lt_compiler_flag:'`
17243 (eval echo "\"\$as_me:17243: $lt_compile\"" >&5)
17244 (eval "$lt_compile" 2>conftest.err)
17245 ac_status=$?
17246 cat conftest.err >&5
17247 echo "$as_me:17247: \$? = $ac_status" >&5
17248 if (exit $ac_status) && test -s "$ac_outfile"; then
17249 # The compiler can only warn and ignore the option if not recognized
17250 # So say no if there are warnings other than the usual output.
17251 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17254 lt_cv_prog_compiler_pic_works_GCJ=yes
17257 $rm conftest*
17260 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17261 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17263 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17264 case $lt_prog_compiler_pic_GCJ in
17265 "" | " "*) ;;
17266 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17267 esac
17268 else
17269 lt_prog_compiler_pic_GCJ=
17270 lt_prog_compiler_can_build_shared_GCJ=no
17274 case $host_os in
17275 # For platforms which do not support PIC, -DPIC is meaningless:
17276 *djgpp*)
17277 lt_prog_compiler_pic_GCJ=
17280 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17282 esac
17285 # Check to make sure the static flag actually works.
17287 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17288 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17289 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17290 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 else
17293 lt_cv_prog_compiler_static_works_GCJ=no
17294 save_LDFLAGS="$LDFLAGS"
17295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17298 # The linker can only warn and ignore the option if not recognized
17299 # So say no if there are warnings
17300 if test -s conftest.err; then
17301 # Append any errors to the config.log.
17302 cat conftest.err 1>&5
17303 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17305 if diff conftest.exp conftest.er2 >/dev/null; then
17306 lt_cv_prog_compiler_static_works_GCJ=yes
17308 else
17309 lt_cv_prog_compiler_static_works_GCJ=yes
17312 $rm -r conftest*
17313 LDFLAGS="$save_LDFLAGS"
17316 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17317 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17319 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17321 else
17322 lt_prog_compiler_static_GCJ=
17326 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17327 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17328 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331 lt_cv_prog_compiler_c_o_GCJ=no
17332 $rm -r conftest 2>/dev/null
17333 mkdir conftest
17334 cd conftest
17335 mkdir out
17336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17338 lt_compiler_flag="-o out/conftest2.$ac_objext"
17339 # Insert the option either (1) after the last *FLAGS variable, or
17340 # (2) before a word containing "conftest.", or (3) at the end.
17341 # Note that $ac_compile itself does not contain backslashes and begins
17342 # with a dollar sign (not a hyphen), so the echo should work correctly.
17343 lt_compile=`echo "$ac_compile" | $SED \
17344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17346 -e 's:$: $lt_compiler_flag:'`
17347 (eval echo "\"\$as_me:17347: $lt_compile\"" >&5)
17348 (eval "$lt_compile" 2>out/conftest.err)
17349 ac_status=$?
17350 cat out/conftest.err >&5
17351 echo "$as_me:17351: \$? = $ac_status" >&5
17352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17353 then
17354 # The compiler can only warn and ignore the option if not recognized
17355 # So say no if there are warnings
17356 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17359 lt_cv_prog_compiler_c_o_GCJ=yes
17362 chmod u+w . 2>&5
17363 $rm conftest*
17364 # SGI C++ compiler will create directory out/ii_files/ for
17365 # template instantiation
17366 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17367 $rm out/* && rmdir out
17368 cd ..
17369 rmdir conftest
17370 $rm conftest*
17373 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17374 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17377 hard_links="nottested"
17378 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17379 # do not overwrite the value of need_locks provided by the user
17380 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17381 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17382 hard_links=yes
17383 $rm conftest*
17384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17385 touch conftest.a
17386 ln conftest.a conftest.b 2>&5 || hard_links=no
17387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17388 { echo "$as_me:$LINENO: result: $hard_links" >&5
17389 echo "${ECHO_T}$hard_links" >&6; }
17390 if test "$hard_links" = no; then
17391 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17392 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17393 need_locks=warn
17395 else
17396 need_locks=no
17399 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17400 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17402 runpath_var=
17403 allow_undefined_flag_GCJ=
17404 enable_shared_with_static_runtimes_GCJ=no
17405 archive_cmds_GCJ=
17406 archive_expsym_cmds_GCJ=
17407 old_archive_From_new_cmds_GCJ=
17408 old_archive_from_expsyms_cmds_GCJ=
17409 export_dynamic_flag_spec_GCJ=
17410 whole_archive_flag_spec_GCJ=
17411 thread_safe_flag_spec_GCJ=
17412 hardcode_libdir_flag_spec_GCJ=
17413 hardcode_libdir_flag_spec_ld_GCJ=
17414 hardcode_libdir_separator_GCJ=
17415 hardcode_direct_GCJ=no
17416 hardcode_minus_L_GCJ=no
17417 hardcode_shlibpath_var_GCJ=unsupported
17418 link_all_deplibs_GCJ=unknown
17419 hardcode_automatic_GCJ=no
17420 module_cmds_GCJ=
17421 module_expsym_cmds_GCJ=
17422 always_export_symbols_GCJ=no
17423 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17424 # include_expsyms should be a list of space-separated symbols to be *always*
17425 # included in the symbol list
17426 include_expsyms_GCJ=
17427 # exclude_expsyms can be an extended regexp of symbols to exclude
17428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17430 # as well as any symbol that contains `d'.
17431 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17433 # platforms (ab)use it in PIC code, but their linkers get confused if
17434 # the symbol is explicitly referenced. Since portable code cannot
17435 # rely on this symbol name, it's probably fine to never include it in
17436 # preloaded symbol tables.
17437 # Exclude shared library initialization/finalization symbols.
17438 extract_expsyms_cmds=
17439 # Just being paranoid about ensuring that cc_basename is set.
17440 for cc_temp in $compiler""; do
17441 case $cc_temp in
17442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17444 \-*) ;;
17445 *) break;;
17446 esac
17447 done
17448 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17450 case $host_os in
17451 cygwin* | mingw* | pw32*)
17452 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17453 # When not using gcc, we currently assume that we are using
17454 # Microsoft Visual C++.
17455 if test "$GCC" != yes; then
17456 with_gnu_ld=no
17459 interix*)
17460 # we just hope/assume this is gcc and not c89 (= MSVC++)
17461 with_gnu_ld=yes
17463 openbsd*)
17464 with_gnu_ld=no
17466 esac
17468 ld_shlibs_GCJ=yes
17469 if test "$with_gnu_ld" = yes; then
17470 # If archive_cmds runs LD, not CC, wlarc should be empty
17471 wlarc='${wl}'
17473 # Set some defaults for GNU ld with shared library support. These
17474 # are reset later if shared libraries are not supported. Putting them
17475 # here allows them to be overridden if necessary.
17476 runpath_var=LD_RUN_PATH
17477 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17478 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17479 # ancient GNU ld didn't support --whole-archive et. al.
17480 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17481 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17482 else
17483 whole_archive_flag_spec_GCJ=
17485 supports_anon_versioning=no
17486 case `$LD -v 2>/dev/null` in
17487 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17488 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17489 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17490 *\ 2.11.*) ;; # other 2.11 versions
17491 *) supports_anon_versioning=yes ;;
17492 esac
17494 # See if GNU ld supports shared libraries.
17495 case $host_os in
17496 aix[3-9]*)
17497 # On AIX/PPC, the GNU linker is very broken
17498 if test "$host_cpu" != ia64; then
17499 ld_shlibs_GCJ=no
17500 cat <<EOF 1>&2
17502 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17503 *** to be unable to reliably create shared libraries on AIX.
17504 *** Therefore, libtool is disabling shared libraries support. If you
17505 *** really care for shared libraries, you may want to modify your PATH
17506 *** so that a non-GNU linker is found, and then restart.
17512 amigaos*)
17513 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)'
17514 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17515 hardcode_minus_L_GCJ=yes
17517 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17518 # that the semantics of dynamic libraries on AmigaOS, at least up
17519 # to version 4, is to share data among multiple programs linked
17520 # with the same dynamic library. Since this doesn't match the
17521 # behavior of shared libraries on other platforms, we can't use
17522 # them.
17523 ld_shlibs_GCJ=no
17526 beos*)
17527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17528 allow_undefined_flag_GCJ=unsupported
17529 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17530 # support --undefined. This deserves some investigation. FIXME
17531 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17532 else
17533 ld_shlibs_GCJ=no
17537 cygwin* | mingw* | pw32*)
17538 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17539 # as there is no search path for DLLs.
17540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541 allow_undefined_flag_GCJ=unsupported
17542 always_export_symbols_GCJ=no
17543 enable_shared_with_static_runtimes_GCJ=yes
17544 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17546 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17547 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17548 # If the export-symbols file already is a .def file (1st line
17549 # is EXPORTS), use it as is; otherwise, prepend...
17550 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17551 cp $export_symbols $output_objdir/$soname.def;
17552 else
17553 echo EXPORTS > $output_objdir/$soname.def;
17554 cat $export_symbols >> $output_objdir/$soname.def;
17556 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17557 else
17558 ld_shlibs_GCJ=no
17562 interix[3-9]*)
17563 hardcode_direct_GCJ=no
17564 hardcode_shlibpath_var_GCJ=no
17565 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17566 export_dynamic_flag_spec_GCJ='${wl}-E'
17567 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17568 # Instead, shared libraries are loaded at an image base (0x10000000 by
17569 # default) and relocated if they conflict, which is a slow very memory
17570 # consuming and fragmenting process. To avoid this, we pick a random,
17571 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17572 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17573 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'
17574 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'
17577 gnu* | linux* | k*bsd*-gnu)
17578 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17579 tmp_addflag=
17580 case $cc_basename,$host_cpu in
17581 pgcc*) # Portland Group C compiler
17582 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'
17583 tmp_addflag=' $pic_flag'
17585 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17586 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'
17587 tmp_addflag=' $pic_flag -Mnomain' ;;
17588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17589 tmp_addflag=' -i_dynamic' ;;
17590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17591 tmp_addflag=' -i_dynamic -nofor_main' ;;
17592 ifc* | ifort*) # Intel Fortran compiler
17593 tmp_addflag=' -nofor_main' ;;
17594 esac
17595 case `$CC -V 2>&1 | sed 5q` in
17596 *Sun\ C*) # Sun C 5.9
17597 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'
17598 tmp_sharedflag='-G' ;;
17599 *Sun\ F*) # Sun Fortran 8.3
17600 tmp_sharedflag='-G' ;;
17602 tmp_sharedflag='-shared' ;;
17603 esac
17604 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17606 if test $supports_anon_versioning = yes; then
17607 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17609 $echo "local: *; };" >> $output_objdir/$libname.ver~
17610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17612 else
17613 ld_shlibs_GCJ=no
17617 netbsd*)
17618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17619 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17620 wlarc=
17621 else
17622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17627 solaris*)
17628 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17629 ld_shlibs_GCJ=no
17630 cat <<EOF 1>&2
17632 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17633 *** create shared libraries on Solaris systems. Therefore, libtool
17634 *** is disabling shared libraries support. We urge you to upgrade GNU
17635 *** binutils to release 2.9.1 or newer. Another option is to modify
17636 *** your PATH or compiler configuration so that the native linker is
17637 *** used, and then restart.
17640 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17641 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17642 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17643 else
17644 ld_shlibs_GCJ=no
17648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17649 case `$LD -v 2>&1` in
17650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17651 ld_shlibs_GCJ=no
17652 cat <<_LT_EOF 1>&2
17654 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17655 *** reliably create shared libraries on SCO systems. Therefore, libtool
17656 *** is disabling shared libraries support. We urge you to upgrade GNU
17657 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17658 *** your PATH or compiler configuration so that the native linker is
17659 *** used, and then restart.
17661 _LT_EOF
17664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17665 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17666 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17667 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17668 else
17669 ld_shlibs_GCJ=no
17672 esac
17675 sunos4*)
17676 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17677 wlarc=
17678 hardcode_direct_GCJ=yes
17679 hardcode_shlibpath_var_GCJ=no
17683 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17684 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17685 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17686 else
17687 ld_shlibs_GCJ=no
17690 esac
17692 if test "$ld_shlibs_GCJ" = no; then
17693 runpath_var=
17694 hardcode_libdir_flag_spec_GCJ=
17695 export_dynamic_flag_spec_GCJ=
17696 whole_archive_flag_spec_GCJ=
17698 else
17699 # PORTME fill in a description of your system's linker (not GNU ld)
17700 case $host_os in
17701 aix3*)
17702 allow_undefined_flag_GCJ=unsupported
17703 always_export_symbols_GCJ=yes
17704 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'
17705 # Note: this linker hardcodes the directories in LIBPATH if there
17706 # are no directories specified by -L.
17707 hardcode_minus_L_GCJ=yes
17708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17709 # Neither direct hardcoding nor static linking is supported with a
17710 # broken collect2.
17711 hardcode_direct_GCJ=unsupported
17715 aix[4-9]*)
17716 if test "$host_cpu" = ia64; then
17717 # On IA64, the linker does run time linking by default, so we don't
17718 # have to do anything special.
17719 aix_use_runtimelinking=no
17720 exp_sym_flag='-Bexport'
17721 no_entry_flag=""
17722 else
17723 # If we're using GNU nm, then we don't want the "-C" option.
17724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17726 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'
17727 else
17728 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'
17730 aix_use_runtimelinking=no
17732 # Test if we are trying to use run time linking or normal
17733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17734 # need to do runtime linking.
17735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17736 for ld_flag in $LDFLAGS; do
17737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17738 aix_use_runtimelinking=yes
17739 break
17741 done
17743 esac
17745 exp_sym_flag='-bexport'
17746 no_entry_flag='-bnoentry'
17749 # When large executables or shared objects are built, AIX ld can
17750 # have problems creating the table of contents. If linking a library
17751 # or program results in "error TOC overflow" add -mminimal-toc to
17752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17755 archive_cmds_GCJ=''
17756 hardcode_direct_GCJ=yes
17757 hardcode_libdir_separator_GCJ=':'
17758 link_all_deplibs_GCJ=yes
17760 if test "$GCC" = yes; then
17761 case $host_os in aix4.[012]|aix4.[012].*)
17762 # We only want to do this on AIX 4.2 and lower, the check
17763 # below for broken collect2 doesn't work under 4.3+
17764 collect2name=`${CC} -print-prog-name=collect2`
17765 if test -f "$collect2name" && \
17766 strings "$collect2name" | grep resolve_lib_name >/dev/null
17767 then
17768 # We have reworked collect2
17770 else
17771 # We have old collect2
17772 hardcode_direct_GCJ=unsupported
17773 # It fails to find uninstalled libraries when the uninstalled
17774 # path is not listed in the libpath. Setting hardcode_minus_L
17775 # to unsupported forces relinking
17776 hardcode_minus_L_GCJ=yes
17777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17778 hardcode_libdir_separator_GCJ=
17781 esac
17782 shared_flag='-shared'
17783 if test "$aix_use_runtimelinking" = yes; then
17784 shared_flag="$shared_flag "'${wl}-G'
17786 else
17787 # not using gcc
17788 if test "$host_cpu" = ia64; then
17789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17790 # chokes on -Wl,-G. The following line is correct:
17791 shared_flag='-G'
17792 else
17793 if test "$aix_use_runtimelinking" = yes; then
17794 shared_flag='${wl}-G'
17795 else
17796 shared_flag='${wl}-bM:SRE'
17801 # It seems that -bexpall does not export symbols beginning with
17802 # underscore (_), so it is better to generate a list of symbols to export.
17803 always_export_symbols_GCJ=yes
17804 if test "$aix_use_runtimelinking" = yes; then
17805 # Warning - without using the other runtime loading flags (-brtl),
17806 # -berok will link without error, but may produce a broken library.
17807 allow_undefined_flag_GCJ='-berok'
17808 # Determine the default libpath from the value encoded in an empty executable.
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17817 main ()
17821 return 0;
17823 _ACEOF
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_link") 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } && {
17838 test -z "$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17840 } && test -s conftest$ac_exeext &&
17841 $as_test_x conftest$ac_exeext; then
17843 lt_aix_libpath_sed='
17844 /Import File Strings/,/^$/ {
17845 /^0/ {
17846 s/^0 *\(.*\)$/\1/
17850 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17851 # Check for a 64-bit object if we didn't find anything.
17852 if test -z "$aix_libpath"; then
17853 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17855 else
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17863 conftest$ac_exeext conftest.$ac_ext
17864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17866 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17867 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"
17868 else
17869 if test "$host_cpu" = ia64; then
17870 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17871 allow_undefined_flag_GCJ="-z nodefs"
17872 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"
17873 else
17874 # Determine the default libpath from the value encoded in an empty executable.
17875 cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h. */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17883 main ()
17887 return 0;
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (ac_try="$ac_link"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_link") 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } && {
17904 test -z "$ac_c_werror_flag" ||
17905 test ! -s conftest.err
17906 } && test -s conftest$ac_exeext &&
17907 $as_test_x conftest$ac_exeext; then
17909 lt_aix_libpath_sed='
17910 /Import File Strings/,/^$/ {
17911 /^0/ {
17912 s/^0 *\(.*\)$/\1/
17916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17917 # Check for a 64-bit object if we didn't find anything.
17918 if test -z "$aix_libpath"; then
17919 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17921 else
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17929 conftest$ac_exeext conftest.$ac_ext
17930 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17932 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17933 # Warning - without using the other run time loading flags,
17934 # -berok will link without error, but may produce a broken library.
17935 no_undefined_flag_GCJ=' ${wl}-bernotok'
17936 allow_undefined_flag_GCJ=' ${wl}-berok'
17937 # Exported symbols can be pulled into shared objects from archives
17938 whole_archive_flag_spec_GCJ='$convenience'
17939 archive_cmds_need_lc_GCJ=yes
17940 # This is similar to how AIX traditionally builds its shared libraries.
17941 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'
17946 amigaos*)
17947 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)'
17948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17949 hardcode_minus_L_GCJ=yes
17950 # see comment about different semantics on the GNU ld section
17951 ld_shlibs_GCJ=no
17954 bsdi[45]*)
17955 export_dynamic_flag_spec_GCJ=-rdynamic
17958 cygwin* | mingw* | pw32*)
17959 # When not using gcc, we currently assume that we are using
17960 # Microsoft Visual C++.
17961 # hardcode_libdir_flag_spec is actually meaningless, as there is
17962 # no search path for DLLs.
17963 hardcode_libdir_flag_spec_GCJ=' '
17964 allow_undefined_flag_GCJ=unsupported
17965 # Tell ltmain to make .lib files, not .a files.
17966 libext=lib
17967 # Tell ltmain to make .dll files, not .so files.
17968 shrext_cmds=".dll"
17969 # FIXME: Setting linknames here is a bad hack.
17970 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17971 # The linker will automatically build a .lib file if we build a DLL.
17972 old_archive_From_new_cmds_GCJ='true'
17973 # FIXME: Should let the user specify the lib program.
17974 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17975 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17976 enable_shared_with_static_runtimes_GCJ=yes
17979 darwin* | rhapsody*)
17980 case $host_os in
17981 rhapsody* | darwin1.[012])
17982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17984 *) # Darwin 1.3 on
17985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17986 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17987 else
17988 case ${MACOSX_DEPLOYMENT_TARGET} in
17989 10.[012])
17990 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17992 10.*)
17993 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17995 esac
17998 esac
17999 archive_cmds_need_lc_GCJ=no
18000 hardcode_direct_GCJ=no
18001 hardcode_automatic_GCJ=yes
18002 hardcode_shlibpath_var_GCJ=unsupported
18003 whole_archive_flag_spec_GCJ=''
18004 link_all_deplibs_GCJ=yes
18005 if test "$GCC" = yes ; then
18006 output_verbose_link_cmd='echo'
18007 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}"
18008 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18009 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}"
18010 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}"
18011 else
18012 case $cc_basename in
18013 xlc*)
18014 output_verbose_link_cmd='echo'
18015 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18016 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18018 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}'
18019 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}'
18022 ld_shlibs_GCJ=no
18024 esac
18028 dgux*)
18029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18031 hardcode_shlibpath_var_GCJ=no
18034 freebsd1*)
18035 ld_shlibs_GCJ=no
18038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18039 # support. Future versions do this automatically, but an explicit c++rt0.o
18040 # does not break anything, and helps significantly (at the cost of a little
18041 # extra space).
18042 freebsd2.2*)
18043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18044 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18045 hardcode_direct_GCJ=yes
18046 hardcode_shlibpath_var_GCJ=no
18049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18050 freebsd2*)
18051 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_direct_GCJ=yes
18053 hardcode_minus_L_GCJ=yes
18054 hardcode_shlibpath_var_GCJ=no
18057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18058 freebsd* | dragonfly*)
18059 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061 hardcode_direct_GCJ=yes
18062 hardcode_shlibpath_var_GCJ=no
18065 hpux9*)
18066 if test "$GCC" = yes; then
18067 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'
18068 else
18069 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'
18071 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18072 hardcode_libdir_separator_GCJ=:
18073 hardcode_direct_GCJ=yes
18075 # hardcode_minus_L: Not really in the search PATH,
18076 # but as the default location of the library.
18077 hardcode_minus_L_GCJ=yes
18078 export_dynamic_flag_spec_GCJ='${wl}-E'
18081 hpux10*)
18082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18083 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18084 else
18085 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18087 if test "$with_gnu_ld" = no; then
18088 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18089 hardcode_libdir_separator_GCJ=:
18091 hardcode_direct_GCJ=yes
18092 export_dynamic_flag_spec_GCJ='${wl}-E'
18094 # hardcode_minus_L: Not really in the search PATH,
18095 # but as the default location of the library.
18096 hardcode_minus_L_GCJ=yes
18100 hpux11*)
18101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18102 case $host_cpu in
18103 hppa*64*)
18104 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18106 ia64*)
18107 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18110 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18112 esac
18113 else
18114 case $host_cpu in
18115 hppa*64*)
18116 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18118 ia64*)
18119 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18122 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18124 esac
18126 if test "$with_gnu_ld" = no; then
18127 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18128 hardcode_libdir_separator_GCJ=:
18130 case $host_cpu in
18131 hppa*64*|ia64*)
18132 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18133 hardcode_direct_GCJ=no
18134 hardcode_shlibpath_var_GCJ=no
18137 hardcode_direct_GCJ=yes
18138 export_dynamic_flag_spec_GCJ='${wl}-E'
18140 # hardcode_minus_L: Not really in the search PATH,
18141 # but as the default location of the library.
18142 hardcode_minus_L_GCJ=yes
18144 esac
18148 irix5* | irix6* | nonstopux*)
18149 if test "$GCC" = yes; then
18150 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'
18151 else
18152 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'
18153 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18156 hardcode_libdir_separator_GCJ=:
18157 link_all_deplibs_GCJ=yes
18160 netbsd*)
18161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18162 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18163 else
18164 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18166 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18167 hardcode_direct_GCJ=yes
18168 hardcode_shlibpath_var_GCJ=no
18171 newsos6)
18172 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18173 hardcode_direct_GCJ=yes
18174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175 hardcode_libdir_separator_GCJ=:
18176 hardcode_shlibpath_var_GCJ=no
18179 openbsd*)
18180 if test -f /usr/libexec/ld.so; then
18181 hardcode_direct_GCJ=yes
18182 hardcode_shlibpath_var_GCJ=no
18183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18184 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18185 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18187 export_dynamic_flag_spec_GCJ='${wl}-E'
18188 else
18189 case $host_os in
18190 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18191 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18192 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18196 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18198 esac
18200 else
18201 ld_shlibs_GCJ=no
18205 os2*)
18206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18207 hardcode_minus_L_GCJ=yes
18208 allow_undefined_flag_GCJ=unsupported
18209 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'
18210 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18213 osf3*)
18214 if test "$GCC" = yes; then
18215 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18216 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'
18217 else
18218 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18219 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'
18221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18222 hardcode_libdir_separator_GCJ=:
18225 osf4* | osf5*) # as osf3* with the addition of -msym flag
18226 if test "$GCC" = yes; then
18227 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18228 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'
18229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18230 else
18231 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18232 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'
18233 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~
18234 $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'
18236 # Both c and cxx compiler support -rpath directly
18237 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18239 hardcode_libdir_separator_GCJ=:
18242 solaris*)
18243 no_undefined_flag_GCJ=' -z text'
18244 if test "$GCC" = yes; then
18245 wlarc='${wl}'
18246 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18248 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18249 else
18250 wlarc=''
18251 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18253 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18255 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18256 hardcode_shlibpath_var_GCJ=no
18257 case $host_os in
18258 solaris2.[0-5] | solaris2.[0-5].*) ;;
18260 # The compiler driver will combine and reorder linker options,
18261 # but understands `-z linker_flag'. GCC discards it without `$wl',
18262 # but is careful enough not to reorder.
18263 # Supported since Solaris 2.6 (maybe 2.5.1?)
18264 if test "$GCC" = yes; then
18265 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18266 else
18267 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18270 esac
18271 link_all_deplibs_GCJ=yes
18274 sunos4*)
18275 if test "x$host_vendor" = xsequent; then
18276 # Use $CC to link under sequent, because it throws in some extra .o
18277 # files that make .init and .fini sections work.
18278 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18279 else
18280 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18282 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18283 hardcode_direct_GCJ=yes
18284 hardcode_minus_L_GCJ=yes
18285 hardcode_shlibpath_var_GCJ=no
18288 sysv4)
18289 case $host_vendor in
18290 sni)
18291 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18292 hardcode_direct_GCJ=yes # is this really true???
18294 siemens)
18295 ## LD is ld it makes a PLAMLIB
18296 ## CC just makes a GrossModule.
18297 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18298 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18299 hardcode_direct_GCJ=no
18301 motorola)
18302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18305 esac
18306 runpath_var='LD_RUN_PATH'
18307 hardcode_shlibpath_var_GCJ=no
18310 sysv4.3*)
18311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18312 hardcode_shlibpath_var_GCJ=no
18313 export_dynamic_flag_spec_GCJ='-Bexport'
18316 sysv4*MP*)
18317 if test -d /usr/nec; then
18318 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18319 hardcode_shlibpath_var_GCJ=no
18320 runpath_var=LD_RUN_PATH
18321 hardcode_runpath_var=yes
18322 ld_shlibs_GCJ=yes
18326 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18327 no_undefined_flag_GCJ='${wl}-z,text'
18328 archive_cmds_need_lc_GCJ=no
18329 hardcode_shlibpath_var_GCJ=no
18330 runpath_var='LD_RUN_PATH'
18332 if test "$GCC" = yes; then
18333 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18334 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18335 else
18336 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18337 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18341 sysv5* | sco3.2v5* | sco5v6*)
18342 # Note: We can NOT use -z defs as we might desire, because we do not
18343 # link with -lc, and that would cause any symbols used from libc to
18344 # always be unresolved, which means just about no library would
18345 # ever link correctly. If we're not using GNU ld we use -z text
18346 # though, which does catch some bad symbols but isn't as heavy-handed
18347 # as -z defs.
18348 no_undefined_flag_GCJ='${wl}-z,text'
18349 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18350 archive_cmds_need_lc_GCJ=no
18351 hardcode_shlibpath_var_GCJ=no
18352 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18353 hardcode_libdir_separator_GCJ=':'
18354 link_all_deplibs_GCJ=yes
18355 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18356 runpath_var='LD_RUN_PATH'
18358 if test "$GCC" = yes; then
18359 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18360 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18361 else
18362 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18363 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18367 uts4*)
18368 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18370 hardcode_shlibpath_var_GCJ=no
18374 ld_shlibs_GCJ=no
18376 esac
18379 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18380 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18381 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18384 # Do we need to explicitly link libc?
18386 case "x$archive_cmds_need_lc_GCJ" in
18387 x|xyes)
18388 # Assume -lc should be added
18389 archive_cmds_need_lc_GCJ=yes
18391 if test "$enable_shared" = yes && test "$GCC" = yes; then
18392 case $archive_cmds_GCJ in
18393 *'~'*)
18394 # FIXME: we may have to deal with multi-command sequences.
18396 '$CC '*)
18397 # Test whether the compiler implicitly links with -lc since on some
18398 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18399 # to ld, don't add -lc before -lgcc.
18400 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18401 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18402 $rm conftest*
18403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18406 (eval $ac_compile) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } 2>conftest.err; then
18410 soname=conftest
18411 lib=conftest
18412 libobjs=conftest.$ac_objext
18413 deplibs=
18414 wl=$lt_prog_compiler_wl_GCJ
18415 pic_flag=$lt_prog_compiler_pic_GCJ
18416 compiler_flags=-v
18417 linker_flags=-v
18418 verstring=
18419 output_objdir=.
18420 libname=conftest
18421 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18422 allow_undefined_flag_GCJ=
18423 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18424 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }
18428 then
18429 archive_cmds_need_lc_GCJ=no
18430 else
18431 archive_cmds_need_lc_GCJ=yes
18433 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18434 else
18435 cat conftest.err 1>&5
18437 $rm conftest*
18438 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18439 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18441 esac
18444 esac
18446 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18447 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18448 library_names_spec=
18449 libname_spec='lib$name'
18450 soname_spec=
18451 shrext_cmds=".so"
18452 postinstall_cmds=
18453 postuninstall_cmds=
18454 finish_cmds=
18455 finish_eval=
18456 shlibpath_var=
18457 shlibpath_overrides_runpath=unknown
18458 version_type=none
18459 dynamic_linker="$host_os ld.so"
18460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18462 need_lib_prefix=unknown
18463 hardcode_into_libs=no
18465 # when you set need_version to no, make sure it does not cause -set_version
18466 # flags to be left without arguments
18467 need_version=unknown
18469 case $host_os in
18470 aix3*)
18471 version_type=linux
18472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18473 shlibpath_var=LIBPATH
18475 # AIX 3 has no versioning support, so we append a major version to the name.
18476 soname_spec='${libname}${release}${shared_ext}$major'
18479 aix[4-9]*)
18480 version_type=linux
18481 need_lib_prefix=no
18482 need_version=no
18483 hardcode_into_libs=yes
18484 if test "$host_cpu" = ia64; then
18485 # AIX 5 supports IA64
18486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18487 shlibpath_var=LD_LIBRARY_PATH
18488 else
18489 # With GCC up to 2.95.x, collect2 would create an import file
18490 # for dependence libraries. The import file would start with
18491 # the line `#! .'. This would cause the generated library to
18492 # depend on `.', always an invalid library. This was fixed in
18493 # development snapshots of GCC prior to 3.0.
18494 case $host_os in
18495 aix4 | aix4.[01] | aix4.[01].*)
18496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18497 echo ' yes '
18498 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18500 else
18501 can_build_shared=no
18504 esac
18505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18506 # soname into executable. Probably we can add versioning support to
18507 # collect2, so additional links can be useful in future.
18508 if test "$aix_use_runtimelinking" = yes; then
18509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18510 # instead of lib<name>.a to let people know that these are not
18511 # typical AIX shared libraries.
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513 else
18514 # We preserve .a as extension for shared libraries through AIX4.2
18515 # and later when we are not doing run time linking.
18516 library_names_spec='${libname}${release}.a $libname.a'
18517 soname_spec='${libname}${release}${shared_ext}$major'
18519 shlibpath_var=LIBPATH
18523 amigaos*)
18524 library_names_spec='$libname.ixlibrary $libname.a'
18525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18526 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'
18529 beos*)
18530 library_names_spec='${libname}${shared_ext}'
18531 dynamic_linker="$host_os ld.so"
18532 shlibpath_var=LIBRARY_PATH
18535 bsdi[45]*)
18536 version_type=linux
18537 need_version=no
18538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18539 soname_spec='${libname}${release}${shared_ext}$major'
18540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18544 # the default ld.so.conf also contains /usr/contrib/lib and
18545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18546 # libtool to hard-code these into programs
18549 cygwin* | mingw* | pw32*)
18550 version_type=windows
18551 shrext_cmds=".dll"
18552 need_version=no
18553 need_lib_prefix=no
18555 case $GCC,$host_os in
18556 yes,cygwin* | yes,mingw* | yes,pw32*)
18557 library_names_spec='$libname.dll.a'
18558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18559 postinstall_cmds='base_file=`basename \${file}`~
18560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18561 dldir=$destdir/`dirname \$dlpath`~
18562 test -d \$dldir || mkdir -p \$dldir~
18563 $install_prog $dir/$dlname \$dldir/$dlname~
18564 chmod a+x \$dldir/$dlname'
18565 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18566 dlpath=$dir/\$dldll~
18567 $rm \$dlpath'
18568 shlibpath_overrides_runpath=yes
18570 case $host_os in
18571 cygwin*)
18572 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18573 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18574 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18576 mingw*)
18577 # MinGW DLLs use traditional 'lib' prefix
18578 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18580 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18581 # It is most probably a Windows format PATH printed by
18582 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18583 # path with ; separators, and with drive letters. We can handle the
18584 # drive letters (cygwin fileutils understands them), so leave them,
18585 # especially as we might pass files found there to a mingw objdump,
18586 # which wouldn't understand a cygwinified path. Ahh.
18587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18588 else
18589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18592 pw32*)
18593 # pw32 DLLs use 'pw' prefix rather than 'lib'
18594 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18596 esac
18600 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18602 esac
18603 dynamic_linker='Win32 ld.exe'
18604 # FIXME: first we should search . and the directory the executable is in
18605 shlibpath_var=PATH
18608 darwin* | rhapsody*)
18609 dynamic_linker="$host_os dyld"
18610 version_type=darwin
18611 need_lib_prefix=no
18612 need_version=no
18613 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18614 soname_spec='${libname}${release}${major}$shared_ext'
18615 shlibpath_overrides_runpath=yes
18616 shlibpath_var=DYLD_LIBRARY_PATH
18617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18622 dgux*)
18623 version_type=linux
18624 need_lib_prefix=no
18625 need_version=no
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18627 soname_spec='${libname}${release}${shared_ext}$major'
18628 shlibpath_var=LD_LIBRARY_PATH
18631 freebsd1*)
18632 dynamic_linker=no
18635 freebsd* | dragonfly*)
18636 # DragonFly does not have aout. When/if they implement a new
18637 # versioning mechanism, adjust this.
18638 if test -x /usr/bin/objformat; then
18639 objformat=`/usr/bin/objformat`
18640 else
18641 case $host_os in
18642 freebsd[123]*) objformat=aout ;;
18643 *) objformat=elf ;;
18644 esac
18646 version_type=freebsd-$objformat
18647 case $version_type in
18648 freebsd-elf*)
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18650 need_version=no
18651 need_lib_prefix=no
18653 freebsd-*)
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18655 need_version=yes
18657 esac
18658 shlibpath_var=LD_LIBRARY_PATH
18659 case $host_os in
18660 freebsd2*)
18661 shlibpath_overrides_runpath=yes
18663 freebsd3.[01]* | freebsdelf3.[01]*)
18664 shlibpath_overrides_runpath=yes
18665 hardcode_into_libs=yes
18667 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18668 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18669 shlibpath_overrides_runpath=no
18670 hardcode_into_libs=yes
18672 *) # from 4.6 on, and DragonFly
18673 shlibpath_overrides_runpath=yes
18674 hardcode_into_libs=yes
18676 esac
18679 gnu*)
18680 version_type=linux
18681 need_lib_prefix=no
18682 need_version=no
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18684 soname_spec='${libname}${release}${shared_ext}$major'
18685 shlibpath_var=LD_LIBRARY_PATH
18686 hardcode_into_libs=yes
18689 hpux9* | hpux10* | hpux11*)
18690 # Give a soname corresponding to the major version so that dld.sl refuses to
18691 # link against other versions.
18692 version_type=sunos
18693 need_lib_prefix=no
18694 need_version=no
18695 case $host_cpu in
18696 ia64*)
18697 shrext_cmds='.so'
18698 hardcode_into_libs=yes
18699 dynamic_linker="$host_os dld.so"
18700 shlibpath_var=LD_LIBRARY_PATH
18701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18703 soname_spec='${libname}${release}${shared_ext}$major'
18704 if test "X$HPUX_IA64_MODE" = X32; then
18705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18706 else
18707 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18711 hppa*64*)
18712 shrext_cmds='.sl'
18713 hardcode_into_libs=yes
18714 dynamic_linker="$host_os dld.sl"
18715 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18718 soname_spec='${libname}${release}${shared_ext}$major'
18719 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18723 shrext_cmds='.sl'
18724 dynamic_linker="$host_os dld.sl"
18725 shlibpath_var=SHLIB_PATH
18726 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18730 esac
18731 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18732 postinstall_cmds='chmod 555 $lib'
18735 interix[3-9]*)
18736 version_type=linux
18737 need_lib_prefix=no
18738 need_version=no
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18742 shlibpath_var=LD_LIBRARY_PATH
18743 shlibpath_overrides_runpath=no
18744 hardcode_into_libs=yes
18747 irix5* | irix6* | nonstopux*)
18748 case $host_os in
18749 nonstopux*) version_type=nonstopux ;;
18751 if test "$lt_cv_prog_gnu_ld" = yes; then
18752 version_type=linux
18753 else
18754 version_type=irix
18755 fi ;;
18756 esac
18757 need_lib_prefix=no
18758 need_version=no
18759 soname_spec='${libname}${release}${shared_ext}$major'
18760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18761 case $host_os in
18762 irix5* | nonstopux*)
18763 libsuff= shlibsuff=
18766 case $LD in # libtool.m4 will add one of these switches to LD
18767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18768 libsuff= shlibsuff= libmagic=32-bit;;
18769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18770 libsuff=32 shlibsuff=N32 libmagic=N32;;
18771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18773 *) libsuff= shlibsuff= libmagic=never-match;;
18774 esac
18776 esac
18777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18778 shlibpath_overrides_runpath=no
18779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18781 hardcode_into_libs=yes
18784 # No shared lib support for Linux oldld, aout, or coff.
18785 linux*oldld* | linux*aout* | linux*coff*)
18786 dynamic_linker=no
18789 # This must be Linux ELF.
18790 linux* | k*bsd*-gnu)
18791 version_type=linux
18792 need_lib_prefix=no
18793 need_version=no
18794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18795 soname_spec='${libname}${release}${shared_ext}$major'
18796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18797 shlibpath_var=LD_LIBRARY_PATH
18798 shlibpath_overrides_runpath=no
18799 # This implies no fast_install, which is unacceptable.
18800 # Some rework will be needed to allow for fast_install
18801 # before this can be enabled.
18802 hardcode_into_libs=yes
18804 # Append ld.so.conf contents to the search path
18805 if test -f /etc/ld.so.conf; then
18806 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' ' '`
18807 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18810 # We used to test for /lib/ld.so.1 and disable shared libraries on
18811 # powerpc, because MkLinux only supported shared libraries with the
18812 # GNU dynamic linker. Since this was broken with cross compilers,
18813 # most powerpc-linux boxes support dynamic linking these days and
18814 # people can always --disable-shared, the test was removed, and we
18815 # assume the GNU/Linux dynamic linker is in use.
18816 dynamic_linker='GNU/Linux ld.so'
18819 netbsd*)
18820 version_type=sunos
18821 need_lib_prefix=no
18822 need_version=no
18823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18826 dynamic_linker='NetBSD (a.out) ld.so'
18827 else
18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18829 soname_spec='${libname}${release}${shared_ext}$major'
18830 dynamic_linker='NetBSD ld.elf_so'
18832 shlibpath_var=LD_LIBRARY_PATH
18833 shlibpath_overrides_runpath=yes
18834 hardcode_into_libs=yes
18837 newsos6)
18838 version_type=linux
18839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18840 shlibpath_var=LD_LIBRARY_PATH
18841 shlibpath_overrides_runpath=yes
18844 nto-qnx*)
18845 version_type=linux
18846 need_lib_prefix=no
18847 need_version=no
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18849 soname_spec='${libname}${release}${shared_ext}$major'
18850 shlibpath_var=LD_LIBRARY_PATH
18851 shlibpath_overrides_runpath=yes
18854 openbsd*)
18855 version_type=sunos
18856 sys_lib_dlsearch_path_spec="/usr/lib"
18857 need_lib_prefix=no
18858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18859 case $host_os in
18860 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18861 *) need_version=no ;;
18862 esac
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18865 shlibpath_var=LD_LIBRARY_PATH
18866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18867 case $host_os in
18868 openbsd2.[89] | openbsd2.[89].*)
18869 shlibpath_overrides_runpath=no
18872 shlibpath_overrides_runpath=yes
18874 esac
18875 else
18876 shlibpath_overrides_runpath=yes
18880 os2*)
18881 libname_spec='$name'
18882 shrext_cmds=".dll"
18883 need_lib_prefix=no
18884 library_names_spec='$libname${shared_ext} $libname.a'
18885 dynamic_linker='OS/2 ld.exe'
18886 shlibpath_var=LIBPATH
18889 osf3* | osf4* | osf5*)
18890 version_type=osf
18891 need_lib_prefix=no
18892 need_version=no
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18900 rdos*)
18901 dynamic_linker=no
18904 solaris*)
18905 version_type=linux
18906 need_lib_prefix=no
18907 need_version=no
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 shlibpath_var=LD_LIBRARY_PATH
18911 shlibpath_overrides_runpath=yes
18912 hardcode_into_libs=yes
18913 # ldd complains unless libraries are executable
18914 postinstall_cmds='chmod +x $lib'
18917 sunos4*)
18918 version_type=sunos
18919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18921 shlibpath_var=LD_LIBRARY_PATH
18922 shlibpath_overrides_runpath=yes
18923 if test "$with_gnu_ld" = yes; then
18924 need_lib_prefix=no
18926 need_version=yes
18929 sysv4 | sysv4.3*)
18930 version_type=linux
18931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18932 soname_spec='${libname}${release}${shared_ext}$major'
18933 shlibpath_var=LD_LIBRARY_PATH
18934 case $host_vendor in
18935 sni)
18936 shlibpath_overrides_runpath=no
18937 need_lib_prefix=no
18938 export_dynamic_flag_spec='${wl}-Blargedynsym'
18939 runpath_var=LD_RUN_PATH
18941 siemens)
18942 need_lib_prefix=no
18944 motorola)
18945 need_lib_prefix=no
18946 need_version=no
18947 shlibpath_overrides_runpath=no
18948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18950 esac
18953 sysv4*MP*)
18954 if test -d /usr/nec ;then
18955 version_type=linux
18956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18957 soname_spec='$libname${shared_ext}.$major'
18958 shlibpath_var=LD_LIBRARY_PATH
18962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18963 version_type=freebsd-elf
18964 need_lib_prefix=no
18965 need_version=no
18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 shlibpath_var=LD_LIBRARY_PATH
18969 hardcode_into_libs=yes
18970 if test "$with_gnu_ld" = yes; then
18971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18972 shlibpath_overrides_runpath=no
18973 else
18974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18975 shlibpath_overrides_runpath=yes
18976 case $host_os in
18977 sco3.2v5*)
18978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18980 esac
18982 sys_lib_dlsearch_path_spec='/usr/lib'
18985 uts4*)
18986 version_type=linux
18987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18988 soname_spec='${libname}${release}${shared_ext}$major'
18989 shlibpath_var=LD_LIBRARY_PATH
18993 dynamic_linker=no
18995 esac
18996 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18997 echo "${ECHO_T}$dynamic_linker" >&6; }
18998 test "$dynamic_linker" = no && can_build_shared=no
19000 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19006 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19007 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19015 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19016 if test "$GCC" = yes; then
19017 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19020 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19021 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19022 hardcode_action_GCJ=
19023 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19024 test -n "$runpath_var_GCJ" || \
19025 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19027 # We can hardcode non-existant directories.
19028 if test "$hardcode_direct_GCJ" != no &&
19029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19030 # have to relink, otherwise we might link with an installed library
19031 # when we should be linking with a yet-to-be-installed one
19032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19033 test "$hardcode_minus_L_GCJ" != no; then
19034 # Linking always hardcodes the temporary library directory.
19035 hardcode_action_GCJ=relink
19036 else
19037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19038 hardcode_action_GCJ=immediate
19040 else
19041 # We cannot hardcode anything, or else we can only hardcode existing
19042 # directories.
19043 hardcode_action_GCJ=unsupported
19045 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19046 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19048 if test "$hardcode_action_GCJ" = relink; then
19049 # Fast installation is not supported
19050 enable_fast_install=no
19051 elif test "$shlibpath_overrides_runpath" = yes ||
19052 test "$enable_shared" = no; then
19053 # Fast installation is not necessary
19054 enable_fast_install=needless
19058 # The else clause should only fire when bootstrapping the
19059 # libtool distribution, otherwise you forgot to ship ltmain.sh
19060 # with your package, and you will get complaints that there are
19061 # no rules to generate ltmain.sh.
19062 if test -f "$ltmain"; then
19063 # See if we are running on zsh, and set the options which allow our commands through
19064 # without removal of \ escapes.
19065 if test -n "${ZSH_VERSION+set}" ; then
19066 setopt NO_GLOB_SUBST
19068 # Now quote all the things that may contain metacharacters while being
19069 # careful not to overquote the AC_SUBSTed values. We take copies of the
19070 # variables and quote the copies for generation of the libtool script.
19071 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19072 SED SHELL STRIP \
19073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19075 deplibs_check_method reload_flag reload_cmds need_locks \
19076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19077 lt_cv_sys_global_symbol_to_c_name_address \
19078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19079 old_postinstall_cmds old_postuninstall_cmds \
19080 compiler_GCJ \
19081 CC_GCJ \
19082 LD_GCJ \
19083 lt_prog_compiler_wl_GCJ \
19084 lt_prog_compiler_pic_GCJ \
19085 lt_prog_compiler_static_GCJ \
19086 lt_prog_compiler_no_builtin_flag_GCJ \
19087 export_dynamic_flag_spec_GCJ \
19088 thread_safe_flag_spec_GCJ \
19089 whole_archive_flag_spec_GCJ \
19090 enable_shared_with_static_runtimes_GCJ \
19091 old_archive_cmds_GCJ \
19092 old_archive_from_new_cmds_GCJ \
19093 predep_objects_GCJ \
19094 postdep_objects_GCJ \
19095 predeps_GCJ \
19096 postdeps_GCJ \
19097 compiler_lib_search_path_GCJ \
19098 compiler_lib_search_dirs_GCJ \
19099 archive_cmds_GCJ \
19100 archive_expsym_cmds_GCJ \
19101 postinstall_cmds_GCJ \
19102 postuninstall_cmds_GCJ \
19103 old_archive_from_expsyms_cmds_GCJ \
19104 allow_undefined_flag_GCJ \
19105 no_undefined_flag_GCJ \
19106 export_symbols_cmds_GCJ \
19107 hardcode_libdir_flag_spec_GCJ \
19108 hardcode_libdir_flag_spec_ld_GCJ \
19109 hardcode_libdir_separator_GCJ \
19110 hardcode_automatic_GCJ \
19111 module_cmds_GCJ \
19112 module_expsym_cmds_GCJ \
19113 lt_cv_prog_compiler_c_o_GCJ \
19114 fix_srcfile_path_GCJ \
19115 exclude_expsyms_GCJ \
19116 include_expsyms_GCJ; do
19118 case $var in
19119 old_archive_cmds_GCJ | \
19120 old_archive_from_new_cmds_GCJ | \
19121 archive_cmds_GCJ | \
19122 archive_expsym_cmds_GCJ | \
19123 module_cmds_GCJ | \
19124 module_expsym_cmds_GCJ | \
19125 old_archive_from_expsyms_cmds_GCJ | \
19126 export_symbols_cmds_GCJ | \
19127 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19128 postinstall_cmds | postuninstall_cmds | \
19129 old_postinstall_cmds | old_postuninstall_cmds | \
19130 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19131 # Double-quote double-evaled strings.
19132 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19137 esac
19138 done
19140 case $lt_echo in
19141 *'\$0 --fallback-echo"')
19142 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19144 esac
19146 cfgfile="$ofile"
19148 cat <<__EOF__ >> "$cfgfile"
19149 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19151 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19153 # Shell to use when invoking shell scripts.
19154 SHELL=$lt_SHELL
19156 # Whether or not to build shared libraries.
19157 build_libtool_libs=$enable_shared
19159 # Whether or not to build static libraries.
19160 build_old_libs=$enable_static
19162 # Whether or not to add -lc for building shared libraries.
19163 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19165 # Whether or not to disallow shared libs when runtime libs are static
19166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19168 # Whether or not to optimize for fast installation.
19169 fast_install=$enable_fast_install
19171 # The host system.
19172 host_alias=$host_alias
19173 host=$host
19174 host_os=$host_os
19176 # The build system.
19177 build_alias=$build_alias
19178 build=$build
19179 build_os=$build_os
19181 # An echo program that does not interpret backslashes.
19182 echo=$lt_echo
19184 # The archiver.
19185 AR=$lt_AR
19186 AR_FLAGS=$lt_AR_FLAGS
19188 # A C compiler.
19189 LTCC=$lt_LTCC
19191 # LTCC compiler flags.
19192 LTCFLAGS=$lt_LTCFLAGS
19194 # A language-specific compiler.
19195 CC=$lt_compiler_GCJ
19197 # Is the compiler the GNU C compiler?
19198 with_gcc=$GCC_GCJ
19200 # An ERE matcher.
19201 EGREP=$lt_EGREP
19203 # The linker used to build libraries.
19204 LD=$lt_LD_GCJ
19206 # Whether we need hard or soft links.
19207 LN_S=$lt_LN_S
19209 # A BSD-compatible nm program.
19210 NM=$lt_NM
19212 # A symbol stripping program
19213 STRIP=$lt_STRIP
19215 # Used to examine libraries when file_magic_cmd begins "file"
19216 MAGIC_CMD=$MAGIC_CMD
19218 # Used on cygwin: DLL creation program.
19219 DLLTOOL="$DLLTOOL"
19221 # Used on cygwin: object dumper.
19222 OBJDUMP="$OBJDUMP"
19224 # Used on cygwin: assembler.
19225 AS="$AS"
19227 # The name of the directory that contains temporary libtool files.
19228 objdir=$objdir
19230 # How to create reloadable object files.
19231 reload_flag=$lt_reload_flag
19232 reload_cmds=$lt_reload_cmds
19234 # How to pass a linker flag through the compiler.
19235 wl=$lt_lt_prog_compiler_wl_GCJ
19237 # Object file suffix (normally "o").
19238 objext="$ac_objext"
19240 # Old archive suffix (normally "a").
19241 libext="$libext"
19243 # Shared library suffix (normally ".so").
19244 shrext_cmds='$shrext_cmds'
19246 # Executable file suffix (normally "").
19247 exeext="$exeext"
19249 # Additional compiler flags for building library objects.
19250 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19251 pic_mode=$pic_mode
19253 # What is the maximum length of a command?
19254 max_cmd_len=$lt_cv_sys_max_cmd_len
19256 # Does compiler simultaneously support -c and -o options?
19257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19259 # Must we lock files when doing compilation?
19260 need_locks=$lt_need_locks
19262 # Do we need the lib prefix for modules?
19263 need_lib_prefix=$need_lib_prefix
19265 # Do we need a version for libraries?
19266 need_version=$need_version
19268 # Whether dlopen is supported.
19269 dlopen_support=$enable_dlopen
19271 # Whether dlopen of programs is supported.
19272 dlopen_self=$enable_dlopen_self
19274 # Whether dlopen of statically linked programs is supported.
19275 dlopen_self_static=$enable_dlopen_self_static
19277 # Compiler flag to prevent dynamic linking.
19278 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19280 # Compiler flag to turn off builtin functions.
19281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19283 # Compiler flag to allow reflexive dlopens.
19284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19286 # Compiler flag to generate shared objects directly from archives.
19287 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19289 # Compiler flag to generate thread-safe objects.
19290 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19292 # Library versioning type.
19293 version_type=$version_type
19295 # Format of library name prefix.
19296 libname_spec=$lt_libname_spec
19298 # List of archive names. First name is the real one, the rest are links.
19299 # The last name is the one that the linker finds with -lNAME.
19300 library_names_spec=$lt_library_names_spec
19302 # The coded name of the library, if different from the real name.
19303 soname_spec=$lt_soname_spec
19305 # Commands used to build and install an old-style archive.
19306 RANLIB=$lt_RANLIB
19307 old_archive_cmds=$lt_old_archive_cmds_GCJ
19308 old_postinstall_cmds=$lt_old_postinstall_cmds
19309 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19311 # Create an old-style archive from a shared archive.
19312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19314 # Create a temporary old-style archive to link instead of a shared archive.
19315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19317 # Commands used to build and install a shared archive.
19318 archive_cmds=$lt_archive_cmds_GCJ
19319 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19320 postinstall_cmds=$lt_postinstall_cmds
19321 postuninstall_cmds=$lt_postuninstall_cmds
19323 # Commands used to build a loadable module (assumed same as above if empty)
19324 module_cmds=$lt_module_cmds_GCJ
19325 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19327 # Commands to strip libraries.
19328 old_striplib=$lt_old_striplib
19329 striplib=$lt_striplib
19331 # Dependencies to place before the objects being linked to create a
19332 # shared library.
19333 predep_objects=$lt_predep_objects_GCJ
19335 # Dependencies to place after the objects being linked to create a
19336 # shared library.
19337 postdep_objects=$lt_postdep_objects_GCJ
19339 # Dependencies to place before the objects being linked to create a
19340 # shared library.
19341 predeps=$lt_predeps_GCJ
19343 # Dependencies to place after the objects being linked to create a
19344 # shared library.
19345 postdeps=$lt_postdeps_GCJ
19347 # The directories searched by this compiler when creating a shared
19348 # library
19349 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19351 # The library search path used internally by the compiler when linking
19352 # a shared library.
19353 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19355 # Method to check whether dependent libraries are shared objects.
19356 deplibs_check_method=$lt_deplibs_check_method
19358 # Command to use when deplibs_check_method == file_magic.
19359 file_magic_cmd=$lt_file_magic_cmd
19361 # Flag that allows shared libraries with undefined symbols to be built.
19362 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19364 # Flag that forces no undefined symbols.
19365 no_undefined_flag=$lt_no_undefined_flag_GCJ
19367 # Commands used to finish a libtool library installation in a directory.
19368 finish_cmds=$lt_finish_cmds
19370 # Same as above, but a single script fragment to be evaled but not shown.
19371 finish_eval=$lt_finish_eval
19373 # Take the output of nm and produce a listing of raw symbols and C names.
19374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19376 # Transform the output of nm in a proper C declaration
19377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19379 # Transform the output of nm in a C name address pair
19380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19382 # This is the shared library runtime path variable.
19383 runpath_var=$runpath_var
19385 # This is the shared library path variable.
19386 shlibpath_var=$shlibpath_var
19388 # Is shlibpath searched before the hard-coded library search path?
19389 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19391 # How to hardcode a shared library path into an executable.
19392 hardcode_action=$hardcode_action_GCJ
19394 # Whether we should hardcode library paths into libraries.
19395 hardcode_into_libs=$hardcode_into_libs
19397 # Flag to hardcode \$libdir into a binary during linking.
19398 # This must work even if \$libdir does not exist.
19399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19401 # If ld is used when linking, flag to hardcode \$libdir into
19402 # a binary during linking. This must work even if \$libdir does
19403 # not exist.
19404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19406 # Whether we need a single -rpath flag with a separated argument.
19407 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19409 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19410 # resulting binary.
19411 hardcode_direct=$hardcode_direct_GCJ
19413 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19414 # resulting binary.
19415 hardcode_minus_L=$hardcode_minus_L_GCJ
19417 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19418 # the resulting binary.
19419 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19421 # Set to yes if building a shared library automatically hardcodes DIR into the library
19422 # and all subsequent libraries and executables linked against it.
19423 hardcode_automatic=$hardcode_automatic_GCJ
19425 # Variables whose values should be saved in libtool wrapper scripts and
19426 # restored at relink time.
19427 variables_saved_for_relink="$variables_saved_for_relink"
19429 # Whether libtool must link a program against all its dependency libraries.
19430 link_all_deplibs=$link_all_deplibs_GCJ
19432 # Compile-time system search path for libraries
19433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19435 # Run-time system search path for libraries
19436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19438 # Fix the shell variable \$srcfile for the compiler.
19439 fix_srcfile_path=$lt_fix_srcfile_path
19441 # Set to yes if exported symbols are required.
19442 always_export_symbols=$always_export_symbols_GCJ
19444 # The commands to list exported symbols.
19445 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19447 # The commands to extract the exported symbol list from a shared archive.
19448 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19450 # Symbols that should not be listed in the preloaded symbols.
19451 exclude_expsyms=$lt_exclude_expsyms_GCJ
19453 # Symbols that must always be exported.
19454 include_expsyms=$lt_include_expsyms_GCJ
19456 # ### END LIBTOOL TAG CONFIG: $tagname
19458 __EOF__
19461 else
19462 # If there is no Makefile yet, we rely on a make rule to execute
19463 # `config.status --recheck' to rerun these tests and create the
19464 # libtool script then.
19465 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19466 if test -f "$ltmain_in"; then
19467 test -f Makefile && make "$ltmain"
19472 ac_ext=c
19473 ac_cpp='$CPP $CPPFLAGS'
19474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19478 CC="$lt_save_CC"
19480 else
19481 tagname=""
19488 # Source file extension for RC test sources.
19489 ac_ext=rc
19491 # Object file extension for compiled RC test sources.
19492 objext=o
19493 objext_RC=$objext
19495 # Code to be used in simple compile tests
19496 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19498 # Code to be used in simple link tests
19499 lt_simple_link_test_code="$lt_simple_compile_test_code"
19501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19503 # If no C compiler was specified, use CC.
19504 LTCC=${LTCC-"$CC"}
19506 # If no C compiler flags were specified, use CFLAGS.
19507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19509 # Allow CC to be a program name with arguments.
19510 compiler=$CC
19513 # save warnings/boilerplate of simple test code
19514 ac_outfile=conftest.$ac_objext
19515 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19517 _lt_compiler_boilerplate=`cat conftest.err`
19518 $rm conftest*
19520 ac_outfile=conftest.$ac_objext
19521 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19523 _lt_linker_boilerplate=`cat conftest.err`
19524 $rm -r conftest*
19527 # Allow CC to be a program name with arguments.
19528 lt_save_CC="$CC"
19529 CC=${RC-"windres"}
19530 compiler=$CC
19531 compiler_RC=$CC
19532 for cc_temp in $compiler""; do
19533 case $cc_temp in
19534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19536 \-*) ;;
19537 *) break;;
19538 esac
19539 done
19540 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19542 lt_cv_prog_compiler_c_o_RC=yes
19544 # The else clause should only fire when bootstrapping the
19545 # libtool distribution, otherwise you forgot to ship ltmain.sh
19546 # with your package, and you will get complaints that there are
19547 # no rules to generate ltmain.sh.
19548 if test -f "$ltmain"; then
19549 # See if we are running on zsh, and set the options which allow our commands through
19550 # without removal of \ escapes.
19551 if test -n "${ZSH_VERSION+set}" ; then
19552 setopt NO_GLOB_SUBST
19554 # Now quote all the things that may contain metacharacters while being
19555 # careful not to overquote the AC_SUBSTed values. We take copies of the
19556 # variables and quote the copies for generation of the libtool script.
19557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19558 SED SHELL STRIP \
19559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19561 deplibs_check_method reload_flag reload_cmds need_locks \
19562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19563 lt_cv_sys_global_symbol_to_c_name_address \
19564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19565 old_postinstall_cmds old_postuninstall_cmds \
19566 compiler_RC \
19567 CC_RC \
19568 LD_RC \
19569 lt_prog_compiler_wl_RC \
19570 lt_prog_compiler_pic_RC \
19571 lt_prog_compiler_static_RC \
19572 lt_prog_compiler_no_builtin_flag_RC \
19573 export_dynamic_flag_spec_RC \
19574 thread_safe_flag_spec_RC \
19575 whole_archive_flag_spec_RC \
19576 enable_shared_with_static_runtimes_RC \
19577 old_archive_cmds_RC \
19578 old_archive_from_new_cmds_RC \
19579 predep_objects_RC \
19580 postdep_objects_RC \
19581 predeps_RC \
19582 postdeps_RC \
19583 compiler_lib_search_path_RC \
19584 compiler_lib_search_dirs_RC \
19585 archive_cmds_RC \
19586 archive_expsym_cmds_RC \
19587 postinstall_cmds_RC \
19588 postuninstall_cmds_RC \
19589 old_archive_from_expsyms_cmds_RC \
19590 allow_undefined_flag_RC \
19591 no_undefined_flag_RC \
19592 export_symbols_cmds_RC \
19593 hardcode_libdir_flag_spec_RC \
19594 hardcode_libdir_flag_spec_ld_RC \
19595 hardcode_libdir_separator_RC \
19596 hardcode_automatic_RC \
19597 module_cmds_RC \
19598 module_expsym_cmds_RC \
19599 lt_cv_prog_compiler_c_o_RC \
19600 fix_srcfile_path_RC \
19601 exclude_expsyms_RC \
19602 include_expsyms_RC; do
19604 case $var in
19605 old_archive_cmds_RC | \
19606 old_archive_from_new_cmds_RC | \
19607 archive_cmds_RC | \
19608 archive_expsym_cmds_RC | \
19609 module_cmds_RC | \
19610 module_expsym_cmds_RC | \
19611 old_archive_from_expsyms_cmds_RC | \
19612 export_symbols_cmds_RC | \
19613 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19614 postinstall_cmds | postuninstall_cmds | \
19615 old_postinstall_cmds | old_postuninstall_cmds | \
19616 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19617 # Double-quote double-evaled strings.
19618 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19621 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19623 esac
19624 done
19626 case $lt_echo in
19627 *'\$0 --fallback-echo"')
19628 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19630 esac
19632 cfgfile="$ofile"
19634 cat <<__EOF__ >> "$cfgfile"
19635 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19639 # Shell to use when invoking shell scripts.
19640 SHELL=$lt_SHELL
19642 # Whether or not to build shared libraries.
19643 build_libtool_libs=$enable_shared
19645 # Whether or not to build static libraries.
19646 build_old_libs=$enable_static
19648 # Whether or not to add -lc for building shared libraries.
19649 build_libtool_need_lc=$archive_cmds_need_lc_RC
19651 # Whether or not to disallow shared libs when runtime libs are static
19652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19654 # Whether or not to optimize for fast installation.
19655 fast_install=$enable_fast_install
19657 # The host system.
19658 host_alias=$host_alias
19659 host=$host
19660 host_os=$host_os
19662 # The build system.
19663 build_alias=$build_alias
19664 build=$build
19665 build_os=$build_os
19667 # An echo program that does not interpret backslashes.
19668 echo=$lt_echo
19670 # The archiver.
19671 AR=$lt_AR
19672 AR_FLAGS=$lt_AR_FLAGS
19674 # A C compiler.
19675 LTCC=$lt_LTCC
19677 # LTCC compiler flags.
19678 LTCFLAGS=$lt_LTCFLAGS
19680 # A language-specific compiler.
19681 CC=$lt_compiler_RC
19683 # Is the compiler the GNU C compiler?
19684 with_gcc=$GCC_RC
19686 # An ERE matcher.
19687 EGREP=$lt_EGREP
19689 # The linker used to build libraries.
19690 LD=$lt_LD_RC
19692 # Whether we need hard or soft links.
19693 LN_S=$lt_LN_S
19695 # A BSD-compatible nm program.
19696 NM=$lt_NM
19698 # A symbol stripping program
19699 STRIP=$lt_STRIP
19701 # Used to examine libraries when file_magic_cmd begins "file"
19702 MAGIC_CMD=$MAGIC_CMD
19704 # Used on cygwin: DLL creation program.
19705 DLLTOOL="$DLLTOOL"
19707 # Used on cygwin: object dumper.
19708 OBJDUMP="$OBJDUMP"
19710 # Used on cygwin: assembler.
19711 AS="$AS"
19713 # The name of the directory that contains temporary libtool files.
19714 objdir=$objdir
19716 # How to create reloadable object files.
19717 reload_flag=$lt_reload_flag
19718 reload_cmds=$lt_reload_cmds
19720 # How to pass a linker flag through the compiler.
19721 wl=$lt_lt_prog_compiler_wl_RC
19723 # Object file suffix (normally "o").
19724 objext="$ac_objext"
19726 # Old archive suffix (normally "a").
19727 libext="$libext"
19729 # Shared library suffix (normally ".so").
19730 shrext_cmds='$shrext_cmds'
19732 # Executable file suffix (normally "").
19733 exeext="$exeext"
19735 # Additional compiler flags for building library objects.
19736 pic_flag=$lt_lt_prog_compiler_pic_RC
19737 pic_mode=$pic_mode
19739 # What is the maximum length of a command?
19740 max_cmd_len=$lt_cv_sys_max_cmd_len
19742 # Does compiler simultaneously support -c and -o options?
19743 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19745 # Must we lock files when doing compilation?
19746 need_locks=$lt_need_locks
19748 # Do we need the lib prefix for modules?
19749 need_lib_prefix=$need_lib_prefix
19751 # Do we need a version for libraries?
19752 need_version=$need_version
19754 # Whether dlopen is supported.
19755 dlopen_support=$enable_dlopen
19757 # Whether dlopen of programs is supported.
19758 dlopen_self=$enable_dlopen_self
19760 # Whether dlopen of statically linked programs is supported.
19761 dlopen_self_static=$enable_dlopen_self_static
19763 # Compiler flag to prevent dynamic linking.
19764 link_static_flag=$lt_lt_prog_compiler_static_RC
19766 # Compiler flag to turn off builtin functions.
19767 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19769 # Compiler flag to allow reflexive dlopens.
19770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19772 # Compiler flag to generate shared objects directly from archives.
19773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19775 # Compiler flag to generate thread-safe objects.
19776 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19778 # Library versioning type.
19779 version_type=$version_type
19781 # Format of library name prefix.
19782 libname_spec=$lt_libname_spec
19784 # List of archive names. First name is the real one, the rest are links.
19785 # The last name is the one that the linker finds with -lNAME.
19786 library_names_spec=$lt_library_names_spec
19788 # The coded name of the library, if different from the real name.
19789 soname_spec=$lt_soname_spec
19791 # Commands used to build and install an old-style archive.
19792 RANLIB=$lt_RANLIB
19793 old_archive_cmds=$lt_old_archive_cmds_RC
19794 old_postinstall_cmds=$lt_old_postinstall_cmds
19795 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19797 # Create an old-style archive from a shared archive.
19798 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19800 # Create a temporary old-style archive to link instead of a shared archive.
19801 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19803 # Commands used to build and install a shared archive.
19804 archive_cmds=$lt_archive_cmds_RC
19805 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19806 postinstall_cmds=$lt_postinstall_cmds
19807 postuninstall_cmds=$lt_postuninstall_cmds
19809 # Commands used to build a loadable module (assumed same as above if empty)
19810 module_cmds=$lt_module_cmds_RC
19811 module_expsym_cmds=$lt_module_expsym_cmds_RC
19813 # Commands to strip libraries.
19814 old_striplib=$lt_old_striplib
19815 striplib=$lt_striplib
19817 # Dependencies to place before the objects being linked to create a
19818 # shared library.
19819 predep_objects=$lt_predep_objects_RC
19821 # Dependencies to place after the objects being linked to create a
19822 # shared library.
19823 postdep_objects=$lt_postdep_objects_RC
19825 # Dependencies to place before the objects being linked to create a
19826 # shared library.
19827 predeps=$lt_predeps_RC
19829 # Dependencies to place after the objects being linked to create a
19830 # shared library.
19831 postdeps=$lt_postdeps_RC
19833 # The directories searched by this compiler when creating a shared
19834 # library
19835 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19837 # The library search path used internally by the compiler when linking
19838 # a shared library.
19839 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19841 # Method to check whether dependent libraries are shared objects.
19842 deplibs_check_method=$lt_deplibs_check_method
19844 # Command to use when deplibs_check_method == file_magic.
19845 file_magic_cmd=$lt_file_magic_cmd
19847 # Flag that allows shared libraries with undefined symbols to be built.
19848 allow_undefined_flag=$lt_allow_undefined_flag_RC
19850 # Flag that forces no undefined symbols.
19851 no_undefined_flag=$lt_no_undefined_flag_RC
19853 # Commands used to finish a libtool library installation in a directory.
19854 finish_cmds=$lt_finish_cmds
19856 # Same as above, but a single script fragment to be evaled but not shown.
19857 finish_eval=$lt_finish_eval
19859 # Take the output of nm and produce a listing of raw symbols and C names.
19860 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19862 # Transform the output of nm in a proper C declaration
19863 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19865 # Transform the output of nm in a C name address pair
19866 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19868 # This is the shared library runtime path variable.
19869 runpath_var=$runpath_var
19871 # This is the shared library path variable.
19872 shlibpath_var=$shlibpath_var
19874 # Is shlibpath searched before the hard-coded library search path?
19875 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19877 # How to hardcode a shared library path into an executable.
19878 hardcode_action=$hardcode_action_RC
19880 # Whether we should hardcode library paths into libraries.
19881 hardcode_into_libs=$hardcode_into_libs
19883 # Flag to hardcode \$libdir into a binary during linking.
19884 # This must work even if \$libdir does not exist.
19885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19887 # If ld is used when linking, flag to hardcode \$libdir into
19888 # a binary during linking. This must work even if \$libdir does
19889 # not exist.
19890 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19892 # Whether we need a single -rpath flag with a separated argument.
19893 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19895 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19896 # resulting binary.
19897 hardcode_direct=$hardcode_direct_RC
19899 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19900 # resulting binary.
19901 hardcode_minus_L=$hardcode_minus_L_RC
19903 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19904 # the resulting binary.
19905 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19907 # Set to yes if building a shared library automatically hardcodes DIR into the library
19908 # and all subsequent libraries and executables linked against it.
19909 hardcode_automatic=$hardcode_automatic_RC
19911 # Variables whose values should be saved in libtool wrapper scripts and
19912 # restored at relink time.
19913 variables_saved_for_relink="$variables_saved_for_relink"
19915 # Whether libtool must link a program against all its dependency libraries.
19916 link_all_deplibs=$link_all_deplibs_RC
19918 # Compile-time system search path for libraries
19919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19921 # Run-time system search path for libraries
19922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19924 # Fix the shell variable \$srcfile for the compiler.
19925 fix_srcfile_path=$lt_fix_srcfile_path
19927 # Set to yes if exported symbols are required.
19928 always_export_symbols=$always_export_symbols_RC
19930 # The commands to list exported symbols.
19931 export_symbols_cmds=$lt_export_symbols_cmds_RC
19933 # The commands to extract the exported symbol list from a shared archive.
19934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19936 # Symbols that should not be listed in the preloaded symbols.
19937 exclude_expsyms=$lt_exclude_expsyms_RC
19939 # Symbols that must always be exported.
19940 include_expsyms=$lt_include_expsyms_RC
19942 # ### END LIBTOOL TAG CONFIG: $tagname
19944 __EOF__
19947 else
19948 # If there is no Makefile yet, we rely on a make rule to execute
19949 # `config.status --recheck' to rerun these tests and create the
19950 # libtool script then.
19951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19952 if test -f "$ltmain_in"; then
19953 test -f Makefile && make "$ltmain"
19958 ac_ext=c
19959 ac_cpp='$CPP $CPPFLAGS'
19960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19964 CC="$lt_save_CC"
19969 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19970 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19971 { (exit 1); exit 1; }; }
19973 esac
19975 # Append the new tag name to the list of available tags.
19976 if test -n "$tagname" ; then
19977 available_tags="$available_tags $tagname"
19980 done
19981 IFS="$lt_save_ifs"
19983 # Now substitute the updated list of available tags.
19984 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19985 mv "${ofile}T" "$ofile"
19986 chmod +x "$ofile"
19987 else
19988 rm -f "${ofile}T"
19989 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19990 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19991 { (exit 1); exit 1; }; }
19997 # This can be used to rebuild libtool when needed
19998 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20000 # Always use our own libtool.
20001 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20003 # Prevent multiple expansion
20025 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20027 if test "${ac_cv_header_stdc+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h. */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <stdlib.h>
20037 #include <stdarg.h>
20038 #include <string.h>
20039 #include <float.h>
20042 main ()
20046 return 0;
20048 _ACEOF
20049 rm -f conftest.$ac_objext
20050 if { (ac_try="$ac_compile"
20051 case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20054 esac
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_compile") 2>conftest.er1
20057 ac_status=$?
20058 grep -v '^ *+' conftest.er1 >conftest.err
20059 rm -f conftest.er1
20060 cat conftest.err >&5
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); } && {
20063 test -z "$ac_c_werror_flag" ||
20064 test ! -s conftest.err
20065 } && test -s conftest.$ac_objext; then
20066 ac_cv_header_stdc=yes
20067 else
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_cv_header_stdc=no
20074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20076 if test $ac_cv_header_stdc = yes; then
20077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20078 cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h. */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 #include <string.h>
20086 _ACEOF
20087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20088 $EGREP "memchr" >/dev/null 2>&1; then
20090 else
20091 ac_cv_header_stdc=no
20093 rm -f conftest*
20097 if test $ac_cv_header_stdc = yes; then
20098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20099 cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h. */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 #include <stdlib.h>
20107 _ACEOF
20108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20109 $EGREP "free" >/dev/null 2>&1; then
20111 else
20112 ac_cv_header_stdc=no
20114 rm -f conftest*
20118 if test $ac_cv_header_stdc = yes; then
20119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20120 if test "$cross_compiling" = yes; then
20122 else
20123 cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h. */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 #include <ctype.h>
20130 #include <stdlib.h>
20131 #if ((' ' & 0x0FF) == 0x020)
20132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20134 #else
20135 # define ISLOWER(c) \
20136 (('a' <= (c) && (c) <= 'i') \
20137 || ('j' <= (c) && (c) <= 'r') \
20138 || ('s' <= (c) && (c) <= 'z'))
20139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20140 #endif
20142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20144 main ()
20146 int i;
20147 for (i = 0; i < 256; i++)
20148 if (XOR (islower (i), ISLOWER (i))
20149 || toupper (i) != TOUPPER (i))
20150 return 2;
20151 return 0;
20153 _ACEOF
20154 rm -f conftest$ac_exeext
20155 if { (ac_try="$ac_link"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_link") 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20165 { (case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20175 else
20176 echo "$as_me: program exited with status $ac_status" >&5
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ( exit $ac_status )
20181 ac_cv_header_stdc=no
20183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20189 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20190 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20191 if test $ac_cv_header_stdc = yes; then
20193 cat >>confdefs.h <<\_ACEOF
20194 #define STDC_HEADERS 1
20195 _ACEOF
20199 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20200 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20201 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20203 else
20204 cat >conftest.$ac_ext <<_ACEOF
20205 /* confdefs.h. */
20206 _ACEOF
20207 cat confdefs.h >>conftest.$ac_ext
20208 cat >>conftest.$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 #include <sys/types.h>
20212 main ()
20214 return makedev(0, 0);
20216 return 0;
20218 _ACEOF
20219 rm -f conftest.$ac_objext conftest$ac_exeext
20220 if { (ac_try="$ac_link"
20221 case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_link") 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest$ac_exeext &&
20236 $as_test_x conftest$ac_exeext; then
20237 ac_cv_header_sys_types_h_makedev=yes
20238 else
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_cv_header_sys_types_h_makedev=no
20245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20246 conftest$ac_exeext conftest.$ac_ext
20249 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20250 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20252 if test $ac_cv_header_sys_types_h_makedev = no; then
20253 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20254 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20255 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20256 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20260 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20261 else
20262 # Is the header compilable?
20263 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20264 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h. */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 $ac_includes_default
20272 #include <sys/mkdev.h>
20273 _ACEOF
20274 rm -f conftest.$ac_objext
20275 if { (ac_try="$ac_compile"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
20291 ac_header_compiler=yes
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 ac_header_compiler=no
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20301 echo "${ECHO_T}$ac_header_compiler" >&6; }
20303 # Is the header present?
20304 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20305 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20306 cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h. */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 #include <sys/mkdev.h>
20313 _ACEOF
20314 if { (ac_try="$ac_cpp conftest.$ac_ext"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20318 esac
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20321 ac_status=$?
20322 grep -v '^ *+' conftest.er1 >conftest.err
20323 rm -f conftest.er1
20324 cat conftest.err >&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } >/dev/null && {
20327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 }; then
20330 ac_header_preproc=yes
20331 else
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ac_header_preproc=no
20338 rm -f conftest.err conftest.$ac_ext
20339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20340 echo "${ECHO_T}$ac_header_preproc" >&6; }
20342 # So? What about this header?
20343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20344 yes:no: )
20345 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20346 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20348 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20349 ac_header_preproc=yes
20351 no:yes:* )
20352 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20353 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20354 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20355 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20357 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20359 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20361 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20363 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20364 ( cat <<\_ASBOX
20365 ## ---------------------------------- ##
20366 ## Report this to christos@astron.com ##
20367 ## ---------------------------------- ##
20368 _ASBOX
20369 ) | sed "s/^/$as_me: WARNING: /" >&2
20371 esac
20372 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20373 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20374 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20379 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20380 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20383 if test $ac_cv_header_sys_mkdev_h = yes; then
20385 cat >>confdefs.h <<\_ACEOF
20386 #define MAJOR_IN_MKDEV 1
20387 _ACEOF
20393 if test $ac_cv_header_sys_mkdev_h = no; then
20394 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20395 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20396 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20397 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20398 echo $ECHO_N "(cached) $ECHO_C" >&6
20400 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20401 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20402 else
20403 # Is the header compilable?
20404 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20405 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 $ac_includes_default
20413 #include <sys/sysmacros.h>
20414 _ACEOF
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419 *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422 (eval "$ac_compile") 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } && {
20429 test -z "$ac_c_werror_flag" ||
20430 test ! -s conftest.err
20431 } && test -s conftest.$ac_objext; then
20432 ac_header_compiler=yes
20433 else
20434 echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20437 ac_header_compiler=no
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20442 echo "${ECHO_T}$ac_header_compiler" >&6; }
20444 # Is the header present?
20445 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20446 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h. */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 #include <sys/sysmacros.h>
20454 _ACEOF
20455 if { (ac_try="$ac_cpp conftest.$ac_ext"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } >/dev/null && {
20468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20469 test ! -s conftest.err
20470 }; then
20471 ac_header_preproc=yes
20472 else
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20476 ac_header_preproc=no
20479 rm -f conftest.err conftest.$ac_ext
20480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20481 echo "${ECHO_T}$ac_header_preproc" >&6; }
20483 # So? What about this header?
20484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20485 yes:no: )
20486 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20487 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20489 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20490 ac_header_preproc=yes
20492 no:yes:* )
20493 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20494 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20496 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20498 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20500 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20502 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20504 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20505 ( cat <<\_ASBOX
20506 ## ---------------------------------- ##
20507 ## Report this to christos@astron.com ##
20508 ## ---------------------------------- ##
20509 _ASBOX
20510 ) | sed "s/^/$as_me: WARNING: /" >&2
20512 esac
20513 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20514 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20515 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517 else
20518 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20520 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20521 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20524 if test $ac_cv_header_sys_sysmacros_h = yes; then
20526 cat >>confdefs.h <<\_ACEOF
20527 #define MAJOR_IN_SYSMACROS 1
20528 _ACEOF
20536 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20537 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20538 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541 cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h. */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20547 #include <sys/types.h>
20548 #include <sys/wait.h>
20549 #ifndef WEXITSTATUS
20550 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20551 #endif
20552 #ifndef WIFEXITED
20553 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20554 #endif
20557 main ()
20559 int s;
20560 wait (&s);
20561 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20563 return 0;
20565 _ACEOF
20566 rm -f conftest.$ac_objext
20567 if { (ac_try="$ac_compile"
20568 case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_compile") 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest.$ac_objext; then
20583 ac_cv_header_sys_wait_h=yes
20584 else
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_header_sys_wait_h=no
20591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20594 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20595 if test $ac_cv_header_sys_wait_h = yes; then
20597 cat >>confdefs.h <<\_ACEOF
20598 #define HAVE_SYS_WAIT_H 1
20599 _ACEOF
20609 for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
20611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 ac_res=`eval echo '${'$as_ac_Header'}'`
20619 { echo "$as_me:$LINENO: result: $ac_res" >&5
20620 echo "${ECHO_T}$ac_res" >&6; }
20621 else
20622 # Is the header compilable?
20623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h. */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 $ac_includes_default
20632 #include <$ac_header>
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639 esac
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_compile") 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } && {
20648 test -z "$ac_c_werror_flag" ||
20649 test ! -s conftest.err
20650 } && test -s conftest.$ac_objext; then
20651 ac_header_compiler=yes
20652 else
20653 echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20656 ac_header_compiler=no
20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20661 echo "${ECHO_T}$ac_header_compiler" >&6; }
20663 # Is the header present?
20664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h. */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 #include <$ac_header>
20673 _ACEOF
20674 if { (ac_try="$ac_cpp conftest.$ac_ext"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20678 esac
20679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20681 ac_status=$?
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } >/dev/null && {
20687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 }; then
20690 ac_header_preproc=yes
20691 else
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_header_preproc=no
20698 rm -f conftest.err conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20700 echo "${ECHO_T}$ac_header_preproc" >&6; }
20702 # So? What about this header?
20703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20704 yes:no: )
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20709 ac_header_preproc=yes
20711 no:yes:* )
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20724 ( cat <<\_ASBOX
20725 ## ---------------------------------- ##
20726 ## Report this to christos@astron.com ##
20727 ## ---------------------------------- ##
20728 _ASBOX
20729 ) | sed "s/^/$as_me: WARNING: /" >&2
20731 esac
20732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 else
20737 eval "$as_ac_Header=\$ac_header_preproc"
20739 ac_res=`eval echo '${'$as_ac_Header'}'`
20740 { echo "$as_me:$LINENO: result: $ac_res" >&5
20741 echo "${ECHO_T}$ac_res" >&6; }
20744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20745 cat >>confdefs.h <<_ACEOF
20746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20747 _ACEOF
20751 done
20757 for ac_header in utime.h wchar.h wctype.h limits.h
20759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 ac_res=`eval echo '${'$as_ac_Header'}'`
20767 { echo "$as_me:$LINENO: result: $ac_res" >&5
20768 echo "${ECHO_T}$ac_res" >&6; }
20769 else
20770 # Is the header compilable?
20771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 $ac_includes_default
20780 #include <$ac_header>
20781 _ACEOF
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_compile") 2>conftest.er1
20790 ac_status=$?
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } && {
20796 test -z "$ac_c_werror_flag" ||
20797 test ! -s conftest.err
20798 } && test -s conftest.$ac_objext; then
20799 ac_header_compiler=yes
20800 else
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20804 ac_header_compiler=no
20807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20809 echo "${ECHO_T}$ac_header_compiler" >&6; }
20811 # Is the header present?
20812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h. */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 #include <$ac_header>
20821 _ACEOF
20822 if { (ac_try="$ac_cpp conftest.$ac_ext"
20823 case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20829 ac_status=$?
20830 grep -v '^ *+' conftest.er1 >conftest.err
20831 rm -f conftest.er1
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } >/dev/null && {
20835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20836 test ! -s conftest.err
20837 }; then
20838 ac_header_preproc=yes
20839 else
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ac_header_preproc=no
20846 rm -f conftest.err conftest.$ac_ext
20847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20848 echo "${ECHO_T}$ac_header_preproc" >&6; }
20850 # So? What about this header?
20851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20852 yes:no: )
20853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20857 ac_header_preproc=yes
20859 no:yes:* )
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20872 ( cat <<\_ASBOX
20873 ## ---------------------------------- ##
20874 ## Report this to christos@astron.com ##
20875 ## ---------------------------------- ##
20876 _ASBOX
20877 ) | sed "s/^/$as_me: WARNING: /" >&2
20879 esac
20880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20884 else
20885 eval "$as_ac_Header=\$ac_header_preproc"
20887 ac_res=`eval echo '${'$as_ac_Header'}'`
20888 { echo "$as_me:$LINENO: result: $ac_res" >&5
20889 echo "${ECHO_T}$ac_res" >&6; }
20892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20893 cat >>confdefs.h <<_ACEOF
20894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20895 _ACEOF
20899 done
20903 for ac_header in getopt.h err.h
20905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 ac_res=`eval echo '${'$as_ac_Header'}'`
20913 { echo "$as_me:$LINENO: result: $ac_res" >&5
20914 echo "${ECHO_T}$ac_res" >&6; }
20915 else
20916 # Is the header compilable?
20917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 $ac_includes_default
20926 #include <$ac_header>
20927 _ACEOF
20928 rm -f conftest.$ac_objext
20929 if { (ac_try="$ac_compile"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_compile") 2>conftest.er1
20936 ac_status=$?
20937 grep -v '^ *+' conftest.er1 >conftest.err
20938 rm -f conftest.er1
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } && {
20942 test -z "$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20944 } && test -s conftest.$ac_objext; then
20945 ac_header_compiler=yes
20946 else
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 ac_header_compiler=no
20953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20955 echo "${ECHO_T}$ac_header_compiler" >&6; }
20957 # Is the header present?
20958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20960 cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h. */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20966 #include <$ac_header>
20967 _ACEOF
20968 if { (ac_try="$ac_cpp conftest.$ac_ext"
20969 case "(($ac_try" in
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20975 ac_status=$?
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } >/dev/null && {
20981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20982 test ! -s conftest.err
20983 }; then
20984 ac_header_preproc=yes
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20989 ac_header_preproc=no
20992 rm -f conftest.err conftest.$ac_ext
20993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20994 echo "${ECHO_T}$ac_header_preproc" >&6; }
20996 # So? What about this header?
20997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20998 yes:no: )
20999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21003 ac_header_preproc=yes
21005 no:yes:* )
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21018 ( cat <<\_ASBOX
21019 ## ---------------------------------- ##
21020 ## Report this to christos@astron.com ##
21021 ## ---------------------------------- ##
21022 _ASBOX
21023 ) | sed "s/^/$as_me: WARNING: /" >&2
21025 esac
21026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 else
21031 eval "$as_ac_Header=\$ac_header_preproc"
21033 ac_res=`eval echo '${'$as_ac_Header'}'`
21034 { echo "$as_me:$LINENO: result: $ac_res" >&5
21035 echo "${ECHO_T}$ac_res" >&6; }
21038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21039 cat >>confdefs.h <<_ACEOF
21040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21041 _ACEOF
21045 done
21052 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
21054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
21061 ac_res=`eval echo '${'$as_ac_Header'}'`
21062 { echo "$as_me:$LINENO: result: $ac_res" >&5
21063 echo "${ECHO_T}$ac_res" >&6; }
21064 else
21065 # Is the header compilable?
21066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21068 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h. */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21074 $ac_includes_default
21075 #include <$ac_header>
21076 _ACEOF
21077 rm -f conftest.$ac_objext
21078 if { (ac_try="$ac_compile"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21082 esac
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_compile") 2>conftest.er1
21085 ac_status=$?
21086 grep -v '^ *+' conftest.er1 >conftest.err
21087 rm -f conftest.er1
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } && {
21091 test -z "$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 } && test -s conftest.$ac_objext; then
21094 ac_header_compiler=yes
21095 else
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_header_compiler=no
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21104 echo "${ECHO_T}$ac_header_compiler" >&6; }
21106 # Is the header present?
21107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21109 cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h. */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <$ac_header>
21116 _ACEOF
21117 if { (ac_try="$ac_cpp conftest.$ac_ext"
21118 case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21121 esac
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } >/dev/null && {
21130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21131 test ! -s conftest.err
21132 }; then
21133 ac_header_preproc=yes
21134 else
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ac_header_preproc=no
21141 rm -f conftest.err conftest.$ac_ext
21142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21143 echo "${ECHO_T}$ac_header_preproc" >&6; }
21145 # So? What about this header?
21146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21147 yes:no: )
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21152 ac_header_preproc=yes
21154 no:yes:* )
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21167 ( cat <<\_ASBOX
21168 ## ---------------------------------- ##
21169 ## Report this to christos@astron.com ##
21170 ## ---------------------------------- ##
21171 _ASBOX
21172 ) | sed "s/^/$as_me: WARNING: /" >&2
21174 esac
21175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 else
21180 eval "$as_ac_Header=\$ac_header_preproc"
21182 ac_res=`eval echo '${'$as_ac_Header'}'`
21183 { echo "$as_me:$LINENO: result: $ac_res" >&5
21184 echo "${ECHO_T}$ac_res" >&6; }
21187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21188 cat >>confdefs.h <<_ACEOF
21189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21190 _ACEOF
21194 done
21197 for ac_header in zlib.h
21199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21206 ac_res=`eval echo '${'$as_ac_Header'}'`
21207 { echo "$as_me:$LINENO: result: $ac_res" >&5
21208 echo "${ECHO_T}$ac_res" >&6; }
21209 else
21210 # Is the header compilable?
21211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h. */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 $ac_includes_default
21220 #include <$ac_header>
21221 _ACEOF
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_compile") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest.$ac_objext; then
21239 ac_header_compiler=yes
21240 else
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_header_compiler=no
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21249 echo "${ECHO_T}$ac_header_compiler" >&6; }
21251 # Is the header present?
21252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21254 cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h. */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 #include <$ac_header>
21261 _ACEOF
21262 if { (ac_try="$ac_cpp conftest.$ac_ext"
21263 case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21266 esac
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21269 ac_status=$?
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } >/dev/null && {
21275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21276 test ! -s conftest.err
21277 }; then
21278 ac_header_preproc=yes
21279 else
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21283 ac_header_preproc=no
21286 rm -f conftest.err conftest.$ac_ext
21287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21288 echo "${ECHO_T}$ac_header_preproc" >&6; }
21290 # So? What about this header?
21291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21292 yes:no: )
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21297 ac_header_preproc=yes
21299 no:yes:* )
21300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21312 ( cat <<\_ASBOX
21313 ## ---------------------------------- ##
21314 ## Report this to christos@astron.com ##
21315 ## ---------------------------------- ##
21316 _ASBOX
21317 ) | sed "s/^/$as_me: WARNING: /" >&2
21319 esac
21320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325 eval "$as_ac_Header=\$ac_header_preproc"
21327 ac_res=`eval echo '${'$as_ac_Header'}'`
21328 { echo "$as_me:$LINENO: result: $ac_res" >&5
21329 echo "${ECHO_T}$ac_res" >&6; }
21332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21333 cat >>confdefs.h <<_ACEOF
21334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21335 _ACEOF
21339 done
21342 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21343 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21344 if test "${ac_cv_c_const+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h. */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21355 main ()
21357 /* FIXME: Include the comments suggested by Paul. */
21358 #ifndef __cplusplus
21359 /* Ultrix mips cc rejects this. */
21360 typedef int charset[2];
21361 const charset cs;
21362 /* SunOS 4.1.1 cc rejects this. */
21363 char const *const *pcpcc;
21364 char **ppc;
21365 /* NEC SVR4.0.2 mips cc rejects this. */
21366 struct point {int x, y;};
21367 static struct point const zero = {0,0};
21368 /* AIX XL C 1.02.0.0 rejects this.
21369 It does not let you subtract one const X* pointer from another in
21370 an arm of an if-expression whose if-part is not a constant
21371 expression */
21372 const char *g = "string";
21373 pcpcc = &g + (g ? g-g : 0);
21374 /* HPUX 7.0 cc rejects these. */
21375 ++pcpcc;
21376 ppc = (char**) pcpcc;
21377 pcpcc = (char const *const *) ppc;
21378 { /* SCO 3.2v4 cc rejects this. */
21379 char *t;
21380 char const *s = 0 ? (char *) 0 : (char const *) 0;
21382 *t++ = 0;
21383 if (s) return 0;
21385 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21386 int x[] = {25, 17};
21387 const int *foo = &x[0];
21388 ++foo;
21390 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21391 typedef const int *iptr;
21392 iptr p = 0;
21393 ++p;
21395 { /* AIX XL C 1.02.0.0 rejects this saying
21396 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21397 struct s { int j; const int *ap[3]; };
21398 struct s *b; b->j = 5;
21400 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21401 const int foo = 10;
21402 if (!foo) return 0;
21404 return !cs[0] && !zero.x;
21405 #endif
21408 return 0;
21410 _ACEOF
21411 rm -f conftest.$ac_objext
21412 if { (ac_try="$ac_compile"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_compile") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest.$ac_objext; then
21428 ac_cv_c_const=yes
21429 else
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ac_cv_c_const=no
21436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21438 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21439 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21440 if test $ac_cv_c_const = no; then
21442 cat >>confdefs.h <<\_ACEOF
21443 #define const
21444 _ACEOF
21448 { echo "$as_me:$LINENO: checking for off_t" >&5
21449 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21450 if test "${ac_cv_type_off_t+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h. */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 $ac_includes_default
21460 typedef off_t ac__type_new_;
21462 main ()
21464 if ((ac__type_new_ *) 0)
21465 return 0;
21466 if (sizeof (ac__type_new_))
21467 return 0;
21469 return 0;
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (ac_try="$ac_compile"
21474 case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21477 esac
21478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_compile") 2>conftest.er1
21480 ac_status=$?
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } && {
21486 test -z "$ac_c_werror_flag" ||
21487 test ! -s conftest.err
21488 } && test -s conftest.$ac_objext; then
21489 ac_cv_type_off_t=yes
21490 else
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 ac_cv_type_off_t=no
21497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21499 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21500 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21501 if test $ac_cv_type_off_t = yes; then
21503 else
21505 cat >>confdefs.h <<_ACEOF
21506 #define off_t long int
21507 _ACEOF
21511 { echo "$as_me:$LINENO: checking for size_t" >&5
21512 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21513 if test "${ac_cv_type_size_t+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 else
21516 cat >conftest.$ac_ext <<_ACEOF
21517 /* confdefs.h. */
21518 _ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 $ac_includes_default
21523 typedef size_t ac__type_new_;
21525 main ()
21527 if ((ac__type_new_ *) 0)
21528 return 0;
21529 if (sizeof (ac__type_new_))
21530 return 0;
21532 return 0;
21534 _ACEOF
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_c_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest.$ac_objext; then
21552 ac_cv_type_size_t=yes
21553 else
21554 echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21557 ac_cv_type_size_t=no
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21563 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21564 if test $ac_cv_type_size_t = yes; then
21566 else
21568 cat >>confdefs.h <<_ACEOF
21569 #define size_t unsigned int
21570 _ACEOF
21574 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21575 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21576 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 $ac_includes_default
21587 main ()
21589 static struct stat ac_aggr;
21590 if (ac_aggr.st_rdev)
21591 return 0;
21593 return 0;
21595 _ACEOF
21596 rm -f conftest.$ac_objext
21597 if { (ac_try="$ac_compile"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_compile") 2>conftest.er1
21604 ac_status=$?
21605 grep -v '^ *+' conftest.er1 >conftest.err
21606 rm -f conftest.er1
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } && {
21610 test -z "$ac_c_werror_flag" ||
21611 test ! -s conftest.err
21612 } && test -s conftest.$ac_objext; then
21613 ac_cv_member_struct_stat_st_rdev=yes
21614 else
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h. */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21626 main ()
21628 static struct stat ac_aggr;
21629 if (sizeof ac_aggr.st_rdev)
21630 return 0;
21632 return 0;
21634 _ACEOF
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21643 ac_status=$?
21644 grep -v '^ *+' conftest.er1 >conftest.err
21645 rm -f conftest.er1
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest.$ac_objext; then
21652 ac_cv_member_struct_stat_st_rdev=yes
21653 else
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 ac_cv_member_struct_stat_st_rdev=no
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21666 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21667 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21669 cat >>confdefs.h <<_ACEOF
21670 #define HAVE_STRUCT_STAT_ST_RDEV 1
21671 _ACEOF
21677 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21678 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21679 if test "${ac_cv_struct_tm+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h. */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 #include <sys/types.h>
21689 #include <time.h>
21692 main ()
21694 struct tm tm;
21695 int *p = &tm.tm_sec;
21696 return !p;
21698 return 0;
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21709 ac_status=$?
21710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && {
21715 test -z "$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 } && test -s conftest.$ac_objext; then
21718 ac_cv_struct_tm=time.h
21719 else
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 ac_cv_struct_tm=sys/time.h
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21729 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21730 if test $ac_cv_struct_tm = sys/time.h; then
21732 cat >>confdefs.h <<\_ACEOF
21733 #define TM_IN_SYS_TIME 1
21734 _ACEOF
21738 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
21739 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
21740 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h. */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 $ac_includes_default
21751 main ()
21753 static struct tm ac_aggr;
21754 if (ac_aggr.tm_gmtoff)
21755 return 0;
21757 return 0;
21759 _ACEOF
21760 rm -f conftest.$ac_objext
21761 if { (ac_try="$ac_compile"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_compile") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest.$ac_objext; then
21777 ac_cv_member_struct_tm_tm_gmtoff=yes
21778 else
21779 echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h. */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 $ac_includes_default
21790 main ()
21792 static struct tm ac_aggr;
21793 if (sizeof ac_aggr.tm_gmtoff)
21794 return 0;
21796 return 0;
21798 _ACEOF
21799 rm -f conftest.$ac_objext
21800 if { (ac_try="$ac_compile"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21804 esac
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_compile") 2>conftest.er1
21807 ac_status=$?
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } && {
21813 test -z "$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 } && test -s conftest.$ac_objext; then
21816 ac_cv_member_struct_tm_tm_gmtoff=yes
21817 else
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_cv_member_struct_tm_tm_gmtoff=no
21824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
21830 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
21831 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
21833 cat >>confdefs.h <<_ACEOF
21834 #define HAVE_STRUCT_TM_TM_GMTOFF 1
21835 _ACEOF
21839 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21840 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21841 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21842 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 else
21844 cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h. */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 $ac_includes_default
21852 main ()
21854 static struct tm ac_aggr;
21855 if (ac_aggr.tm_zone)
21856 return 0;
21858 return 0;
21860 _ACEOF
21861 rm -f conftest.$ac_objext
21862 if { (ac_try="$ac_compile"
21863 case "(($ac_try" in
21864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21865 *) ac_try_echo=$ac_try;;
21866 esac
21867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21868 (eval "$ac_compile") 2>conftest.er1
21869 ac_status=$?
21870 grep -v '^ *+' conftest.er1 >conftest.err
21871 rm -f conftest.er1
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } && {
21875 test -z "$ac_c_werror_flag" ||
21876 test ! -s conftest.err
21877 } && test -s conftest.$ac_objext; then
21878 ac_cv_member_struct_tm_tm_zone=yes
21879 else
21880 echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h. */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 $ac_includes_default
21891 main ()
21893 static struct tm ac_aggr;
21894 if (sizeof ac_aggr.tm_zone)
21895 return 0;
21897 return 0;
21899 _ACEOF
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_compile") 2>conftest.er1
21908 ac_status=$?
21909 grep -v '^ *+' conftest.er1 >conftest.err
21910 rm -f conftest.er1
21911 cat conftest.err >&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && {
21914 test -z "$ac_c_werror_flag" ||
21915 test ! -s conftest.err
21916 } && test -s conftest.$ac_objext; then
21917 ac_cv_member_struct_tm_tm_zone=yes
21918 else
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21922 ac_cv_member_struct_tm_tm_zone=no
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21932 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935 #define HAVE_STRUCT_TM_TM_ZONE 1
21936 _ACEOF
21941 { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
21942 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
21943 if test "${ac_cv_struct_tm_zone+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946 cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h. */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #include <sys/types.h>
21953 #include <$ac_cv_struct_tm>
21955 main ()
21957 struct tm tm; tm.tm_zone;
21959 return 0;
21961 _ACEOF
21962 rm -f conftest.$ac_objext
21963 if { (ac_try="$ac_compile"
21964 case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21967 esac
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_compile") 2>conftest.er1
21970 ac_status=$?
21971 grep -v '^ *+' conftest.er1 >conftest.err
21972 rm -f conftest.er1
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } && {
21976 test -z "$ac_c_werror_flag" ||
21977 test ! -s conftest.err
21978 } && test -s conftest.$ac_objext; then
21979 ac_cv_struct_tm_zone=yes
21980 else
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 ac_cv_struct_tm_zone=no
21987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
21990 echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
21991 if test "$ac_cv_struct_tm_zone" = yes; then
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_TM_ZONE 1
21995 _ACEOF
21999 { echo "$as_me:$LINENO: checking for tzname" >&5
22000 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22001 if test "${ac_cv_var_tzname+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 #include <time.h>
22011 #ifndef tzname /* For SGI. */
22012 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22013 #endif
22015 main ()
22017 atoi(*tzname);
22019 return 0;
22021 _ACEOF
22022 rm -f conftest.$ac_objext conftest$ac_exeext
22023 if { (ac_try="$ac_link"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>conftest.er1
22030 ac_status=$?
22031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } && {
22036 test -z "$ac_c_werror_flag" ||
22037 test ! -s conftest.err
22038 } && test -s conftest$ac_exeext &&
22039 $as_test_x conftest$ac_exeext; then
22040 ac_cv_var_tzname=yes
22041 else
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 ac_cv_var_tzname=no
22048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22049 conftest$ac_exeext conftest.$ac_ext
22051 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22052 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22053 if test $ac_cv_var_tzname = yes; then
22055 cat >>confdefs.h <<\_ACEOF
22056 #define HAVE_TZNAME 1
22057 _ACEOF
22061 { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
22062 echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
22063 if test "${ac_cv_struct_tm_isdst+set}" = set; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h. */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072 #include <sys/types.h>
22073 #include <$ac_cv_struct_tm>
22075 main ()
22077 struct tm tm; tm.tm_isdst;
22079 return 0;
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086 *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089 (eval "$ac_compile") 2>conftest.er1
22090 ac_status=$?
22091 grep -v '^ *+' conftest.er1 >conftest.err
22092 rm -f conftest.er1
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } && {
22096 test -z "$ac_c_werror_flag" ||
22097 test ! -s conftest.err
22098 } && test -s conftest.$ac_objext; then
22099 ac_cv_struct_tm_isdst=yes
22100 else
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ac_cv_struct_tm_isdst=no
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22109 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
22110 echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
22111 if test "$ac_cv_struct_tm_isdst" = yes; then
22113 cat >>confdefs.h <<\_ACEOF
22114 #define HAVE_TM_ISDST 1
22115 _ACEOF
22119 { echo "$as_me:$LINENO: checking for daylight" >&5
22120 echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
22121 if test "${ac_cv_var_daylight+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124 cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h. */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h. */
22130 #include <time.h>
22131 #ifndef daylight /* In case IRIX #defines this, too */
22132 extern int daylight;
22133 #endif
22135 main ()
22137 atoi(daylight);
22139 return 0;
22141 _ACEOF
22142 rm -f conftest.$ac_objext conftest$ac_exeext
22143 if { (ac_try="$ac_link"
22144 case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22147 esac
22148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22149 (eval "$ac_link") 2>conftest.er1
22150 ac_status=$?
22151 grep -v '^ *+' conftest.er1 >conftest.err
22152 rm -f conftest.er1
22153 cat conftest.err >&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); } && {
22156 test -z "$ac_c_werror_flag" ||
22157 test ! -s conftest.err
22158 } && test -s conftest$ac_exeext &&
22159 $as_test_x conftest$ac_exeext; then
22160 ac_cv_var_daylight=yes
22161 else
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22165 ac_cv_var_daylight=no
22168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22169 conftest$ac_exeext conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
22172 echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
22173 if test $ac_cv_var_daylight = yes; then
22175 cat >>confdefs.h <<\_ACEOF
22176 #define HAVE_DAYLIGHT 1
22177 _ACEOF
22181 # Check whether --enable-largefile was given.
22182 if test "${enable_largefile+set}" = set; then
22183 enableval=$enable_largefile;
22186 if test "$enable_largefile" != no; then
22188 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22189 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
22190 if test "${ac_cv_sys_largefile_CC+set}" = set; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22192 else
22193 ac_cv_sys_largefile_CC=no
22194 if test "$GCC" != yes; then
22195 ac_save_CC=$CC
22196 while :; do
22197 # IRIX 6.2 and later do not support large files by default,
22198 # so use the C compiler's -n32 option if that helps.
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h. */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 #include <sys/types.h>
22206 /* Check that off_t can represent 2**63 - 1 correctly.
22207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22208 since some C++ compilers masquerading as C compilers
22209 incorrectly reject 9223372036854775807. */
22210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22212 && LARGE_OFF_T % 2147483647 == 1)
22213 ? 1 : -1];
22215 main ()
22219 return 0;
22221 _ACEOF
22222 rm -f conftest.$ac_objext
22223 if { (ac_try="$ac_compile"
22224 case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22227 esac
22228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229 (eval "$ac_compile") 2>conftest.er1
22230 ac_status=$?
22231 grep -v '^ *+' conftest.er1 >conftest.err
22232 rm -f conftest.er1
22233 cat conftest.err >&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); } && {
22236 test -z "$ac_c_werror_flag" ||
22237 test ! -s conftest.err
22238 } && test -s conftest.$ac_objext; then
22239 break
22240 else
22241 echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22247 rm -f core conftest.err conftest.$ac_objext
22248 CC="$CC -n32"
22249 rm -f conftest.$ac_objext
22250 if { (ac_try="$ac_compile"
22251 case "(($ac_try" in
22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22254 esac
22255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22256 (eval "$ac_compile") 2>conftest.er1
22257 ac_status=$?
22258 grep -v '^ *+' conftest.er1 >conftest.err
22259 rm -f conftest.er1
22260 cat conftest.err >&5
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } && {
22263 test -z "$ac_c_werror_flag" ||
22264 test ! -s conftest.err
22265 } && test -s conftest.$ac_objext; then
22266 ac_cv_sys_largefile_CC=' -n32'; break
22267 else
22268 echo "$as_me: failed program was:" >&5
22269 sed 's/^/| /' conftest.$ac_ext >&5
22274 rm -f core conftest.err conftest.$ac_objext
22275 break
22276 done
22277 CC=$ac_save_CC
22278 rm -f conftest.$ac_ext
22281 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22282 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
22283 if test "$ac_cv_sys_largefile_CC" != no; then
22284 CC=$CC$ac_cv_sys_largefile_CC
22287 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22288 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22289 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22291 else
22292 while :; do
22293 cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h. */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 #include <sys/types.h>
22300 /* Check that off_t can represent 2**63 - 1 correctly.
22301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22302 since some C++ compilers masquerading as C compilers
22303 incorrectly reject 9223372036854775807. */
22304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22306 && LARGE_OFF_T % 2147483647 == 1)
22307 ? 1 : -1];
22309 main ()
22313 return 0;
22315 _ACEOF
22316 rm -f conftest.$ac_objext
22317 if { (ac_try="$ac_compile"
22318 case "(($ac_try" in
22319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320 *) ac_try_echo=$ac_try;;
22321 esac
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323 (eval "$ac_compile") 2>conftest.er1
22324 ac_status=$?
22325 grep -v '^ *+' conftest.er1 >conftest.err
22326 rm -f conftest.er1
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } && {
22330 test -z "$ac_c_werror_flag" ||
22331 test ! -s conftest.err
22332 } && test -s conftest.$ac_objext; then
22333 ac_cv_sys_file_offset_bits=no; break
22334 else
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h. */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348 #define _FILE_OFFSET_BITS 64
22349 #include <sys/types.h>
22350 /* Check that off_t can represent 2**63 - 1 correctly.
22351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22352 since some C++ compilers masquerading as C compilers
22353 incorrectly reject 9223372036854775807. */
22354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22356 && LARGE_OFF_T % 2147483647 == 1)
22357 ? 1 : -1];
22359 main ()
22363 return 0;
22365 _ACEOF
22366 rm -f conftest.$ac_objext
22367 if { (ac_try="$ac_compile"
22368 case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22371 esac
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373 (eval "$ac_compile") 2>conftest.er1
22374 ac_status=$?
22375 grep -v '^ *+' conftest.er1 >conftest.err
22376 rm -f conftest.er1
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest.$ac_objext; then
22383 ac_cv_sys_file_offset_bits=64; break
22384 else
22385 echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 ac_cv_sys_file_offset_bits=unknown
22393 break
22394 done
22396 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22397 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22398 case $ac_cv_sys_file_offset_bits in #(
22399 no | unknown) ;;
22401 cat >>confdefs.h <<_ACEOF
22402 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22403 _ACEOF
22405 esac
22406 rm -f conftest*
22407 if test $ac_cv_sys_file_offset_bits = unknown; then
22408 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22409 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22410 if test "${ac_cv_sys_large_files+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22412 else
22413 while :; do
22414 cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h. */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 #include <sys/types.h>
22421 /* Check that off_t can represent 2**63 - 1 correctly.
22422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22423 since some C++ compilers masquerading as C compilers
22424 incorrectly reject 9223372036854775807. */
22425 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22427 && LARGE_OFF_T % 2147483647 == 1)
22428 ? 1 : -1];
22430 main ()
22434 return 0;
22436 _ACEOF
22437 rm -f conftest.$ac_objext
22438 if { (ac_try="$ac_compile"
22439 case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22442 esac
22443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444 (eval "$ac_compile") 2>conftest.er1
22445 ac_status=$?
22446 grep -v '^ *+' conftest.er1 >conftest.err
22447 rm -f conftest.er1
22448 cat conftest.err >&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } && {
22451 test -z "$ac_c_werror_flag" ||
22452 test ! -s conftest.err
22453 } && test -s conftest.$ac_objext; then
22454 ac_cv_sys_large_files=no; break
22455 else
22456 echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463 cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h. */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h. */
22469 #define _LARGE_FILES 1
22470 #include <sys/types.h>
22471 /* Check that off_t can represent 2**63 - 1 correctly.
22472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22473 since some C++ compilers masquerading as C compilers
22474 incorrectly reject 9223372036854775807. */
22475 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22477 && LARGE_OFF_T % 2147483647 == 1)
22478 ? 1 : -1];
22480 main ()
22484 return 0;
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_compile") 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest.$ac_objext; then
22504 ac_cv_sys_large_files=1; break
22505 else
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22513 ac_cv_sys_large_files=unknown
22514 break
22515 done
22517 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22518 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22519 case $ac_cv_sys_large_files in #(
22520 no | unknown) ;;
22522 cat >>confdefs.h <<_ACEOF
22523 #define _LARGE_FILES $ac_cv_sys_large_files
22524 _ACEOF
22526 esac
22527 rm -f conftest*
22531 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22532 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
22533 if test "${ac_cv_sys_largefile_source+set}" = set; then
22534 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 else
22536 while :; do
22537 cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h. */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543 #include <stdio.h>
22545 main ()
22547 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
22549 return 0;
22551 _ACEOF
22552 rm -f conftest.$ac_objext conftest$ac_exeext
22553 if { (ac_try="$ac_link"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557 esac
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_link") 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest$ac_exeext &&
22569 $as_test_x conftest$ac_exeext; then
22570 ac_cv_sys_largefile_source=no; break
22571 else
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22579 conftest$ac_exeext conftest.$ac_ext
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h. */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 #define _LARGEFILE_SOURCE 1
22587 #include <stdio.h>
22589 main ()
22591 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
22593 return 0;
22595 _ACEOF
22596 rm -f conftest.$ac_objext conftest$ac_exeext
22597 if { (ac_try="$ac_link"
22598 case "(($ac_try" in
22599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600 *) ac_try_echo=$ac_try;;
22601 esac
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603 (eval "$ac_link") 2>conftest.er1
22604 ac_status=$?
22605 grep -v '^ *+' conftest.er1 >conftest.err
22606 rm -f conftest.er1
22607 cat conftest.err >&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } && {
22610 test -z "$ac_c_werror_flag" ||
22611 test ! -s conftest.err
22612 } && test -s conftest$ac_exeext &&
22613 $as_test_x conftest$ac_exeext; then
22614 ac_cv_sys_largefile_source=1; break
22615 else
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22623 conftest$ac_exeext conftest.$ac_ext
22624 ac_cv_sys_largefile_source=unknown
22625 break
22626 done
22628 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22629 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22630 case $ac_cv_sys_largefile_source in #(
22631 no | unknown) ;;
22633 cat >>confdefs.h <<_ACEOF
22634 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22635 _ACEOF
22637 esac
22638 rm -f conftest*
22640 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22641 # in glibc 2.1.3, but that breaks too many other things.
22642 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22643 if test $ac_cv_sys_largefile_source != unknown; then
22645 cat >>confdefs.h <<\_ACEOF
22646 #define HAVE_FSEEKO 1
22647 _ACEOF
22651 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22652 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22653 if test "${ac_cv_type_mbstate_t+set}" = set; then
22654 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 else
22656 cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h. */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 $ac_includes_default
22663 # include <wchar.h>
22665 main ()
22667 mbstate_t x; return sizeof x;
22669 return 0;
22671 _ACEOF
22672 rm -f conftest.$ac_objext
22673 if { (ac_try="$ac_compile"
22674 case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22677 esac
22678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22680 ac_status=$?
22681 grep -v '^ *+' conftest.er1 >conftest.err
22682 rm -f conftest.er1
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.$ac_objext; then
22689 ac_cv_type_mbstate_t=yes
22690 else
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22694 ac_cv_type_mbstate_t=no
22697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22699 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22700 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22701 if test $ac_cv_type_mbstate_t = yes; then
22703 cat >>confdefs.h <<\_ACEOF
22704 #define HAVE_MBSTATE_T 1
22705 _ACEOF
22707 else
22709 cat >>confdefs.h <<\_ACEOF
22710 #define mbstate_t int
22711 _ACEOF
22715 { echo "$as_me:$LINENO: checking for struct option in getopt" >&5
22716 echo $ECHO_N "checking for struct option in getopt... $ECHO_C" >&6; }
22717 if test "${ac_cv_struct_option_getopt_h+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720 cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h. */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 #include <getopt.h>
22728 main ()
22730 struct option op; op.name;
22732 return 0;
22734 _ACEOF
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 ac_cv_struct_option_getopt_h=yes
22753 else
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22757 ac_cv_struct_option_getopt_h=no
22760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22762 { echo "$as_me:$LINENO: result: $ac_cv_struct_option_getopt_h" >&5
22763 echo "${ECHO_T}$ac_cv_struct_option_getopt_h" >&6; }
22764 if test "$ac_cv_struct_option_getopt_h" = yes; then
22766 cat >>confdefs.h <<\_ACEOF
22767 #define HAVE_STRUCT_OPTION 1
22768 _ACEOF
22773 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22774 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22775 if test "${ac_cv_type_uint8_t+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778 cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h. */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 $ac_includes_default
22785 typedef uint8_t ac__type_new_;
22787 main ()
22789 if ((ac__type_new_ *) 0)
22790 return 0;
22791 if (sizeof (ac__type_new_))
22792 return 0;
22794 return 0;
22796 _ACEOF
22797 rm -f conftest.$ac_objext
22798 if { (ac_try="$ac_compile"
22799 case "(($ac_try" in
22800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22801 *) ac_try_echo=$ac_try;;
22802 esac
22803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804 (eval "$ac_compile") 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } && {
22811 test -z "$ac_c_werror_flag" ||
22812 test ! -s conftest.err
22813 } && test -s conftest.$ac_objext; then
22814 ac_cv_type_uint8_t=yes
22815 else
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 ac_cv_type_uint8_t=no
22822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22824 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22825 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22826 if test $ac_cv_type_uint8_t = yes; then
22828 cat >>confdefs.h <<_ACEOF
22829 #define HAVE_UINT8_T 1
22830 _ACEOF
22834 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22835 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22836 if test "${ac_cv_type_uint16_t+set}" = set; then
22837 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 else
22839 cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h. */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h. */
22845 $ac_includes_default
22846 typedef uint16_t ac__type_new_;
22848 main ()
22850 if ((ac__type_new_ *) 0)
22851 return 0;
22852 if (sizeof (ac__type_new_))
22853 return 0;
22855 return 0;
22857 _ACEOF
22858 rm -f conftest.$ac_objext
22859 if { (ac_try="$ac_compile"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22863 esac
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_compile") 2>conftest.er1
22866 ac_status=$?
22867 grep -v '^ *+' conftest.er1 >conftest.err
22868 rm -f conftest.er1
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } && {
22872 test -z "$ac_c_werror_flag" ||
22873 test ! -s conftest.err
22874 } && test -s conftest.$ac_objext; then
22875 ac_cv_type_uint16_t=yes
22876 else
22877 echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22880 ac_cv_type_uint16_t=no
22883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22886 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22887 if test $ac_cv_type_uint16_t = yes; then
22889 cat >>confdefs.h <<_ACEOF
22890 #define HAVE_UINT16_T 1
22891 _ACEOF
22895 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22896 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22897 if test "${ac_cv_type_uint32_t+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h. */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 $ac_includes_default
22907 typedef uint32_t ac__type_new_;
22909 main ()
22911 if ((ac__type_new_ *) 0)
22912 return 0;
22913 if (sizeof (ac__type_new_))
22914 return 0;
22916 return 0;
22918 _ACEOF
22919 rm -f conftest.$ac_objext
22920 if { (ac_try="$ac_compile"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_compile") 2>conftest.er1
22927 ac_status=$?
22928 grep -v '^ *+' conftest.er1 >conftest.err
22929 rm -f conftest.er1
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } && {
22933 test -z "$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 } && test -s conftest.$ac_objext; then
22936 ac_cv_type_uint32_t=yes
22937 else
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_cv_type_uint32_t=no
22944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22946 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22947 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22948 if test $ac_cv_type_uint32_t = yes; then
22950 cat >>confdefs.h <<_ACEOF
22951 #define HAVE_UINT32_T 1
22952 _ACEOF
22956 { echo "$as_me:$LINENO: checking for int32_t" >&5
22957 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
22958 if test "${ac_cv_type_int32_t+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 else
22961 cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h. */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 $ac_includes_default
22968 typedef int32_t ac__type_new_;
22970 main ()
22972 if ((ac__type_new_ *) 0)
22973 return 0;
22974 if (sizeof (ac__type_new_))
22975 return 0;
22977 return 0;
22979 _ACEOF
22980 rm -f conftest.$ac_objext
22981 if { (ac_try="$ac_compile"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_compile") 2>conftest.er1
22988 ac_status=$?
22989 grep -v '^ *+' conftest.er1 >conftest.err
22990 rm -f conftest.er1
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest.$ac_objext; then
22997 ac_cv_type_int32_t=yes
22998 else
22999 echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 ac_cv_type_int32_t=no
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23008 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23009 if test $ac_cv_type_int32_t = yes; then
23011 cat >>confdefs.h <<_ACEOF
23012 #define HAVE_INT32_T 1
23013 _ACEOF
23017 { echo "$as_me:$LINENO: checking for uint64_t" >&5
23018 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
23019 if test "${ac_cv_type_uint64_t+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 else
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23029 typedef uint64_t ac__type_new_;
23031 main ()
23033 if ((ac__type_new_ *) 0)
23034 return 0;
23035 if (sizeof (ac__type_new_))
23036 return 0;
23038 return 0;
23040 _ACEOF
23041 rm -f conftest.$ac_objext
23042 if { (ac_try="$ac_compile"
23043 case "(($ac_try" in
23044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23046 esac
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_compile") 2>conftest.er1
23049 ac_status=$?
23050 grep -v '^ *+' conftest.er1 >conftest.err
23051 rm -f conftest.er1
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest.$ac_objext; then
23058 ac_cv_type_uint64_t=yes
23059 else
23060 echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23063 ac_cv_type_uint64_t=no
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23068 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23069 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
23070 if test $ac_cv_type_uint64_t = yes; then
23072 cat >>confdefs.h <<_ACEOF
23073 #define HAVE_UINT64_T 1
23074 _ACEOF
23078 { echo "$as_me:$LINENO: checking for int64_t" >&5
23079 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
23080 if test "${ac_cv_type_int64_t+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23082 else
23083 cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h. */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23090 typedef int64_t ac__type_new_;
23092 main ()
23094 if ((ac__type_new_ *) 0)
23095 return 0;
23096 if (sizeof (ac__type_new_))
23097 return 0;
23099 return 0;
23101 _ACEOF
23102 rm -f conftest.$ac_objext
23103 if { (ac_try="$ac_compile"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23107 esac
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_compile") 2>conftest.er1
23110 ac_status=$?
23111 grep -v '^ *+' conftest.er1 >conftest.err
23112 rm -f conftest.er1
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest.$ac_objext; then
23119 ac_cv_type_int64_t=yes
23120 else
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23124 ac_cv_type_int64_t=no
23127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23129 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23130 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
23131 if test $ac_cv_type_int64_t = yes; then
23133 cat >>confdefs.h <<_ACEOF
23134 #define HAVE_INT64_T 1
23135 _ACEOF
23140 { echo "$as_me:$LINENO: checking for long long" >&5
23141 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23142 if test "${ac_cv_type_long_long+set}" = set; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23144 else
23145 cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h. */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h. */
23151 $ac_includes_default
23152 typedef long long ac__type_new_;
23154 main ()
23156 if ((ac__type_new_ *) 0)
23157 return 0;
23158 if (sizeof (ac__type_new_))
23159 return 0;
23161 return 0;
23163 _ACEOF
23164 rm -f conftest.$ac_objext
23165 if { (ac_try="$ac_compile"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169 esac
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_compile") 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest.$ac_objext; then
23181 ac_cv_type_long_long=yes
23182 else
23183 echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23186 ac_cv_type_long_long=no
23189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23192 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23194 # The cast to long int works around a bug in the HP C Compiler
23195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23197 # This bug is HP SR number 8606223364.
23198 { echo "$as_me:$LINENO: checking size of long long" >&5
23199 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23200 if test "${ac_cv_sizeof_long_long+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202 else
23203 if test "$cross_compiling" = yes; then
23204 # Depending upon the size, compute the lo and hi bounds.
23205 cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h. */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 $ac_includes_default
23212 typedef long long ac__type_sizeof_;
23214 main ()
23216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23217 test_array [0] = 0
23220 return 0;
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23231 ac_status=$?
23232 grep -v '^ *+' conftest.er1 >conftest.err
23233 rm -f conftest.er1
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_lo=0 ac_mid=0
23241 while :; do
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h. */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 $ac_includes_default
23249 typedef long long ac__type_sizeof_;
23251 main ()
23253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23254 test_array [0] = 0
23257 return 0;
23259 _ACEOF
23260 rm -f conftest.$ac_objext
23261 if { (ac_try="$ac_compile"
23262 case "(($ac_try" in
23263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264 *) ac_try_echo=$ac_try;;
23265 esac
23266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23267 (eval "$ac_compile") 2>conftest.er1
23268 ac_status=$?
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } && {
23274 test -z "$ac_c_werror_flag" ||
23275 test ! -s conftest.err
23276 } && test -s conftest.$ac_objext; then
23277 ac_hi=$ac_mid; break
23278 else
23279 echo "$as_me: failed program was:" >&5
23280 sed 's/^/| /' conftest.$ac_ext >&5
23282 ac_lo=`expr $ac_mid + 1`
23283 if test $ac_lo -le $ac_mid; then
23284 ac_lo= ac_hi=
23285 break
23287 ac_mid=`expr 2 '*' $ac_mid + 1`
23290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23291 done
23292 else
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h. */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302 $ac_includes_default
23303 typedef long long ac__type_sizeof_;
23305 main ()
23307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23308 test_array [0] = 0
23311 return 0;
23313 _ACEOF
23314 rm -f conftest.$ac_objext
23315 if { (ac_try="$ac_compile"
23316 case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_compile") 2>conftest.er1
23322 ac_status=$?
23323 grep -v '^ *+' conftest.er1 >conftest.err
23324 rm -f conftest.er1
23325 cat conftest.err >&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } && {
23328 test -z "$ac_c_werror_flag" ||
23329 test ! -s conftest.err
23330 } && test -s conftest.$ac_objext; then
23331 ac_hi=-1 ac_mid=-1
23332 while :; do
23333 cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h. */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 $ac_includes_default
23340 typedef long long ac__type_sizeof_;
23342 main ()
23344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23345 test_array [0] = 0
23348 return 0;
23350 _ACEOF
23351 rm -f conftest.$ac_objext
23352 if { (ac_try="$ac_compile"
23353 case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_compile") 2>conftest.er1
23359 ac_status=$?
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } && {
23365 test -z "$ac_c_werror_flag" ||
23366 test ! -s conftest.err
23367 } && test -s conftest.$ac_objext; then
23368 ac_lo=$ac_mid; break
23369 else
23370 echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23373 ac_hi=`expr '(' $ac_mid ')' - 1`
23374 if test $ac_mid -le $ac_hi; then
23375 ac_lo= ac_hi=
23376 break
23378 ac_mid=`expr 2 '*' $ac_mid`
23381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23382 done
23383 else
23384 echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ac_lo= ac_hi=
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394 # Binary search between lo and hi bounds.
23395 while test "x$ac_lo" != "x$ac_hi"; do
23396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h. */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 $ac_includes_default
23404 typedef long long ac__type_sizeof_;
23406 main ()
23408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23409 test_array [0] = 0
23412 return 0;
23414 _ACEOF
23415 rm -f conftest.$ac_objext
23416 if { (ac_try="$ac_compile"
23417 case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23420 esac
23421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_compile") 2>conftest.er1
23423 ac_status=$?
23424 grep -v '^ *+' conftest.er1 >conftest.err
23425 rm -f conftest.er1
23426 cat conftest.err >&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } && {
23429 test -z "$ac_c_werror_flag" ||
23430 test ! -s conftest.err
23431 } && test -s conftest.$ac_objext; then
23432 ac_hi=$ac_mid
23433 else
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ac_lo=`expr '(' $ac_mid ')' + 1`
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441 done
23442 case $ac_lo in
23443 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23444 '') if test "$ac_cv_type_long_long" = yes; then
23445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23446 See \`config.log' for more details." >&5
23447 echo "$as_me: error: cannot compute sizeof (long long)
23448 See \`config.log' for more details." >&2;}
23449 { (exit 77); exit 77; }; }
23450 else
23451 ac_cv_sizeof_long_long=0
23452 fi ;;
23453 esac
23454 else
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h. */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23461 $ac_includes_default
23462 typedef long long ac__type_sizeof_;
23463 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23464 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23465 #include <stdio.h>
23466 #include <stdlib.h>
23468 main ()
23471 FILE *f = fopen ("conftest.val", "w");
23472 if (! f)
23473 return 1;
23474 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23476 long int i = longval ();
23477 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23478 return 1;
23479 fprintf (f, "%ld\n", i);
23481 else
23483 unsigned long int i = ulongval ();
23484 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23485 return 1;
23486 fprintf (f, "%lu\n", i);
23488 return ferror (f) || fclose (f) != 0;
23491 return 0;
23493 _ACEOF
23494 rm -f conftest$ac_exeext
23495 if { (ac_try="$ac_link"
23496 case "(($ac_try" in
23497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498 *) ac_try_echo=$ac_try;;
23499 esac
23500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501 (eval "$ac_link") 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23505 { (case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_try") 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514 ac_cv_sizeof_long_long=`cat conftest.val`
23515 else
23516 echo "$as_me: program exited with status $ac_status" >&5
23517 echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23520 ( exit $ac_status )
23521 if test "$ac_cv_type_long_long" = yes; then
23522 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23523 See \`config.log' for more details." >&5
23524 echo "$as_me: error: cannot compute sizeof (long long)
23525 See \`config.log' for more details." >&2;}
23526 { (exit 77); exit 77; }; }
23527 else
23528 ac_cv_sizeof_long_long=0
23531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23533 rm -f conftest.val
23535 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23536 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23540 cat >>confdefs.h <<_ACEOF
23541 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23542 _ACEOF
23548 { echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
23549 echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
23550 # Check whether --enable-warnings was given.
23551 if test "${enable_warnings+set}" = set; then
23552 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
23553 { echo "$as_me:$LINENO: result: no" >&5
23554 echo "${ECHO_T}no" >&6; }
23555 WARNINGS=
23556 else
23557 { echo "$as_me:$LINENO: result: yes" >&5
23558 echo "${ECHO_T}yes" >&6; }
23559 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23560 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23561 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23562 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23564 else
23566 if test "$GCC" = no; then
23567 WARNINGS=
23568 { echo "$as_me:$LINENO: result: no" >&5
23569 echo "${ECHO_T}no" >&6; }
23570 else
23571 { echo "$as_me:$LINENO: result: yes" >&5
23572 echo "${ECHO_T}yes" >&6; }
23573 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23574 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23575 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23576 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23591 for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
23593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599 cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h. */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23607 #define $ac_func innocuous_$ac_func
23609 /* System header to define __stub macros and hopefully few prototypes,
23610 which can conflict with char $ac_func (); below.
23611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23612 <limits.h> exists even on freestanding compilers. */
23614 #ifdef __STDC__
23615 # include <limits.h>
23616 #else
23617 # include <assert.h>
23618 #endif
23620 #undef $ac_func
23622 /* Override any GCC internal prototype to avoid an error.
23623 Use char because int might match the return type of a GCC
23624 builtin and then its argument prototype would still apply. */
23625 #ifdef __cplusplus
23626 extern "C"
23627 #endif
23628 char $ac_func ();
23629 /* The GNU C library defines this for functions which it implements
23630 to always fail with ENOSYS. Some functions are actually named
23631 something starting with __ and the normal name is an alias. */
23632 #if defined __stub_$ac_func || defined __stub___$ac_func
23633 choke me
23634 #endif
23637 main ()
23639 return $ac_func ();
23641 return 0;
23643 _ACEOF
23644 rm -f conftest.$ac_objext conftest$ac_exeext
23645 if { (ac_try="$ac_link"
23646 case "(($ac_try" in
23647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23648 *) ac_try_echo=$ac_try;;
23649 esac
23650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23651 (eval "$ac_link") 2>conftest.er1
23652 ac_status=$?
23653 grep -v '^ *+' conftest.er1 >conftest.err
23654 rm -f conftest.er1
23655 cat conftest.err >&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } && {
23658 test -z "$ac_c_werror_flag" ||
23659 test ! -s conftest.err
23660 } && test -s conftest$ac_exeext &&
23661 $as_test_x conftest$ac_exeext; then
23662 eval "$as_ac_var=yes"
23663 else
23664 echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23667 eval "$as_ac_var=no"
23670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23671 conftest$ac_exeext conftest.$ac_ext
23673 ac_res=`eval echo '${'$as_ac_var'}'`
23674 { echo "$as_me:$LINENO: result: $ac_res" >&5
23675 echo "${ECHO_T}$ac_res" >&6; }
23676 if test `eval echo '${'$as_ac_var'}'` = yes; then
23677 cat >>confdefs.h <<_ACEOF
23678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23679 _ACEOF
23682 done
23690 for ac_func in getopt_long asprintf vasprintf strlcpy strlcat
23692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23696 echo $ECHO_N "(cached) $ECHO_C" >&6
23697 else
23698 cat >conftest.$ac_ext <<_ACEOF
23699 /* confdefs.h. */
23700 _ACEOF
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h. */
23704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23706 #define $ac_func innocuous_$ac_func
23708 /* System header to define __stub macros and hopefully few prototypes,
23709 which can conflict with char $ac_func (); below.
23710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23711 <limits.h> exists even on freestanding compilers. */
23713 #ifdef __STDC__
23714 # include <limits.h>
23715 #else
23716 # include <assert.h>
23717 #endif
23719 #undef $ac_func
23721 /* Override any GCC internal prototype to avoid an error.
23722 Use char because int might match the return type of a GCC
23723 builtin and then its argument prototype would still apply. */
23724 #ifdef __cplusplus
23725 extern "C"
23726 #endif
23727 char $ac_func ();
23728 /* The GNU C library defines this for functions which it implements
23729 to always fail with ENOSYS. Some functions are actually named
23730 something starting with __ and the normal name is an alias. */
23731 #if defined __stub_$ac_func || defined __stub___$ac_func
23732 choke me
23733 #endif
23736 main ()
23738 return $ac_func ();
23740 return 0;
23742 _ACEOF
23743 rm -f conftest.$ac_objext conftest$ac_exeext
23744 if { (ac_try="$ac_link"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23748 esac
23749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_link") 2>conftest.er1
23751 ac_status=$?
23752 grep -v '^ *+' conftest.er1 >conftest.err
23753 rm -f conftest.er1
23754 cat conftest.err >&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); } && {
23757 test -z "$ac_c_werror_flag" ||
23758 test ! -s conftest.err
23759 } && test -s conftest$ac_exeext &&
23760 $as_test_x conftest$ac_exeext; then
23761 eval "$as_ac_var=yes"
23762 else
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766 eval "$as_ac_var=no"
23769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23770 conftest$ac_exeext conftest.$ac_ext
23772 ac_res=`eval echo '${'$as_ac_var'}'`
23773 { echo "$as_me:$LINENO: result: $ac_res" >&5
23774 echo "${ECHO_T}$ac_res" >&6; }
23775 if test `eval echo '${'$as_ac_var'}'` = yes; then
23776 cat >>confdefs.h <<_ACEOF
23777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23778 _ACEOF
23780 else
23781 case " $LIBOBJS " in
23782 *" $ac_func.$ac_objext "* ) ;;
23783 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23785 esac
23788 done
23793 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
23794 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
23795 if test "${ac_cv_lib_z_gzopen+set}" = set; then
23796 echo $ECHO_N "(cached) $ECHO_C" >&6
23797 else
23798 ac_check_lib_save_LIBS=$LIBS
23799 LIBS="-lz $LIBS"
23800 cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h. */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23807 /* Override any GCC internal prototype to avoid an error.
23808 Use char because int might match the return type of a GCC
23809 builtin and then its argument prototype would still apply. */
23810 #ifdef __cplusplus
23811 extern "C"
23812 #endif
23813 char gzopen ();
23815 main ()
23817 return gzopen ();
23819 return 0;
23821 _ACEOF
23822 rm -f conftest.$ac_objext conftest$ac_exeext
23823 if { (ac_try="$ac_link"
23824 case "(($ac_try" in
23825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23826 *) ac_try_echo=$ac_try;;
23827 esac
23828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829 (eval "$ac_link") 2>conftest.er1
23830 ac_status=$?
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && {
23836 test -z "$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23838 } && test -s conftest$ac_exeext &&
23839 $as_test_x conftest$ac_exeext; then
23840 ac_cv_lib_z_gzopen=yes
23841 else
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23845 ac_cv_lib_z_gzopen=no
23848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849 conftest$ac_exeext conftest.$ac_ext
23850 LIBS=$ac_check_lib_save_LIBS
23852 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
23853 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
23854 if test $ac_cv_lib_z_gzopen = yes; then
23855 cat >>confdefs.h <<_ACEOF
23856 #define HAVE_LIBZ 1
23857 _ACEOF
23859 LIBS="-lz $LIBS"
23864 if test "$cross_compiling" = yes; then
23865 IS_CROSS_COMPILE_TRUE=
23866 IS_CROSS_COMPILE_FALSE='#'
23867 else
23868 IS_CROSS_COMPILE_TRUE='#'
23869 IS_CROSS_COMPILE_FALSE=
23873 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
23875 cat >confcache <<\_ACEOF
23876 # This file is a shell script that caches the results of configure
23877 # tests run on this system so they can be shared between configure
23878 # scripts and configure runs, see configure's option --config-cache.
23879 # It is not useful on other systems. If it contains results you don't
23880 # want to keep, you may remove or edit it.
23882 # config.status only pays attention to the cache file if you give it
23883 # the --recheck option to rerun configure.
23885 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23886 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23887 # following values.
23889 _ACEOF
23891 # The following way of writing the cache mishandles newlines in values,
23892 # but we know of no workaround that is simple, portable, and efficient.
23893 # So, we kill variables containing newlines.
23894 # Ultrix sh set writes to stderr and can't be redirected directly,
23895 # and sets the high bit in the cache file unless we assign to the vars.
23897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23898 eval ac_val=\$$ac_var
23899 case $ac_val in #(
23900 *${as_nl}*)
23901 case $ac_var in #(
23902 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23903 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23904 esac
23905 case $ac_var in #(
23906 _ | IFS | as_nl) ;; #(
23907 *) $as_unset $ac_var ;;
23908 esac ;;
23909 esac
23910 done
23912 (set) 2>&1 |
23913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23914 *${as_nl}ac_space=\ *)
23915 # `set' does not quote correctly, so add quotes (double-quote
23916 # substitution turns \\\\ into \\, and sed turns \\ into \).
23917 sed -n \
23918 "s/'/'\\\\''/g;
23919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23920 ;; #(
23922 # `set' quotes correctly as required by POSIX, so do not add quotes.
23923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23925 esac |
23926 sort
23928 sed '
23929 /^ac_cv_env_/b end
23930 t clear
23931 :clear
23932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23933 t end
23934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23935 :end' >>confcache
23936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23937 if test -w "$cache_file"; then
23938 test "x$cache_file" != "x/dev/null" &&
23939 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23940 echo "$as_me: updating cache $cache_file" >&6;}
23941 cat confcache >$cache_file
23942 else
23943 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23944 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23947 rm -f confcache
23949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23950 # Let make expand exec_prefix.
23951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23953 DEFS=-DHAVE_CONFIG_H
23955 ac_libobjs=
23956 ac_ltlibobjs=
23957 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23958 # 1. Remove the extension, and $U if already installed.
23959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23960 ac_i=`echo "$ac_i" | sed "$ac_script"`
23961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23962 # will be set to the directory where LIBOBJS objects are built.
23963 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23964 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23965 done
23966 LIBOBJS=$ac_libobjs
23968 LTLIBOBJS=$ac_ltlibobjs
23971 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
23972 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
23973 Usually this means the macro was only invoked conditionally." >&5
23974 echo "$as_me: error: conditional \"FSECT5\" was never defined.
23975 Usually this means the macro was only invoked conditionally." >&2;}
23976 { (exit 1); exit 1; }; }
23978 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23979 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23980 Usually this means the macro was only invoked conditionally." >&5
23981 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23982 Usually this means the macro was only invoked conditionally." >&2;}
23983 { (exit 1); exit 1; }; }
23985 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23986 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23987 Usually this means the macro was only invoked conditionally." >&5
23988 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23989 Usually this means the macro was only invoked conditionally." >&2;}
23990 { (exit 1); exit 1; }; }
23992 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23993 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23994 Usually this means the macro was only invoked conditionally." >&5
23995 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23996 Usually this means the macro was only invoked conditionally." >&2;}
23997 { (exit 1); exit 1; }; }
23999 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
24000 { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
24001 Usually this means the macro was only invoked conditionally." >&5
24002 echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
24003 Usually this means the macro was only invoked conditionally." >&2;}
24004 { (exit 1); exit 1; }; }
24007 : ${CONFIG_STATUS=./config.status}
24008 ac_clean_files_save=$ac_clean_files
24009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24010 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24011 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24012 cat >$CONFIG_STATUS <<_ACEOF
24013 #! $SHELL
24014 # Generated by $as_me.
24015 # Run this file to recreate the current configuration.
24016 # Compiler output produced by configure, useful for debugging
24017 # configure, is in config.log if it exists.
24019 debug=false
24020 ac_cs_recheck=false
24021 ac_cs_silent=false
24022 SHELL=\${CONFIG_SHELL-$SHELL}
24023 _ACEOF
24025 cat >>$CONFIG_STATUS <<\_ACEOF
24026 ## --------------------- ##
24027 ## M4sh Initialization. ##
24028 ## --------------------- ##
24030 # Be more Bourne compatible
24031 DUALCASE=1; export DUALCASE # for MKS sh
24032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24033 emulate sh
24034 NULLCMD=:
24035 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24036 # is contrary to our usage. Disable this feature.
24037 alias -g '${1+"$@"}'='"$@"'
24038 setopt NO_GLOB_SUBST
24039 else
24040 case `(set -o) 2>/dev/null` in
24041 *posix*) set -o posix ;;
24042 esac
24049 # PATH needs CR
24050 # Avoid depending upon Character Ranges.
24051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24054 as_cr_digits='0123456789'
24055 as_cr_alnum=$as_cr_Letters$as_cr_digits
24057 # The user is always right.
24058 if test "${PATH_SEPARATOR+set}" != set; then
24059 echo "#! /bin/sh" >conf$$.sh
24060 echo "exit 0" >>conf$$.sh
24061 chmod +x conf$$.sh
24062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24063 PATH_SEPARATOR=';'
24064 else
24065 PATH_SEPARATOR=:
24067 rm -f conf$$.sh
24070 # Support unset when possible.
24071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24072 as_unset=unset
24073 else
24074 as_unset=false
24078 # IFS
24079 # We need space, tab and new line, in precisely that order. Quoting is
24080 # there to prevent editors from complaining about space-tab.
24081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24082 # splitting by setting IFS to empty value.)
24083 as_nl='
24085 IFS=" "" $as_nl"
24087 # Find who we are. Look in the path if we contain no directory separator.
24088 case $0 in
24089 *[\\/]* ) as_myself=$0 ;;
24090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24091 for as_dir in $PATH
24093 IFS=$as_save_IFS
24094 test -z "$as_dir" && as_dir=.
24095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24096 done
24097 IFS=$as_save_IFS
24100 esac
24101 # We did not find ourselves, most probably we were run as `sh COMMAND'
24102 # in which case we are not to be found in the path.
24103 if test "x$as_myself" = x; then
24104 as_myself=$0
24106 if test ! -f "$as_myself"; then
24107 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24108 { (exit 1); exit 1; }
24111 # Work around bugs in pre-3.0 UWIN ksh.
24112 for as_var in ENV MAIL MAILPATH
24113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24114 done
24115 PS1='$ '
24116 PS2='> '
24117 PS4='+ '
24119 # NLS nuisances.
24120 for as_var in \
24121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24123 LC_TELEPHONE LC_TIME
24125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24126 eval $as_var=C; export $as_var
24127 else
24128 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24130 done
24132 # Required to use basename.
24133 if expr a : '\(a\)' >/dev/null 2>&1 &&
24134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24135 as_expr=expr
24136 else
24137 as_expr=false
24140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24141 as_basename=basename
24142 else
24143 as_basename=false
24147 # Name of the executable.
24148 as_me=`$as_basename -- "$0" ||
24149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24150 X"$0" : 'X\(//\)$' \| \
24151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24152 echo X/"$0" |
24153 sed '/^.*\/\([^/][^/]*\)\/*$/{
24154 s//\1/
24157 /^X\/\(\/\/\)$/{
24158 s//\1/
24161 /^X\/\(\/\).*/{
24162 s//\1/
24165 s/.*/./; q'`
24167 # CDPATH.
24168 $as_unset CDPATH
24172 as_lineno_1=$LINENO
24173 as_lineno_2=$LINENO
24174 test "x$as_lineno_1" != "x$as_lineno_2" &&
24175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24178 # uniformly replaced by the line number. The first 'sed' inserts a
24179 # line-number line after each line using $LINENO; the second 'sed'
24180 # does the real work. The second script uses 'N' to pair each
24181 # line-number line with the line containing $LINENO, and appends
24182 # trailing '-' during substitution so that $LINENO is not a special
24183 # case at line end.
24184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24185 # scripts with optimization help from Paolo Bonzini. Blame Lee
24186 # E. McMahon (1931-1989) for sed's syntax. :-)
24187 sed -n '
24189 /[$]LINENO/=
24190 ' <$as_myself |
24191 sed '
24192 s/[$]LINENO.*/&-/
24193 t lineno
24195 :lineno
24197 :loop
24198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24199 t loop
24200 s/-\n.*//
24201 ' >$as_me.lineno &&
24202 chmod +x "$as_me.lineno" ||
24203 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24204 { (exit 1); exit 1; }; }
24206 # Don't try to exec as it changes $[0], causing all sort of problems
24207 # (the dirname of $[0] is not the place where we might find the
24208 # original and so on. Autoconf is especially sensitive to this).
24209 . "./$as_me.lineno"
24210 # Exit status is that of the last command.
24211 exit
24215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24216 as_dirname=dirname
24217 else
24218 as_dirname=false
24221 ECHO_C= ECHO_N= ECHO_T=
24222 case `echo -n x` in
24223 -n*)
24224 case `echo 'x\c'` in
24225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24226 *) ECHO_C='\c';;
24227 esac;;
24229 ECHO_N='-n';;
24230 esac
24232 if expr a : '\(a\)' >/dev/null 2>&1 &&
24233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24234 as_expr=expr
24235 else
24236 as_expr=false
24239 rm -f conf$$ conf$$.exe conf$$.file
24240 if test -d conf$$.dir; then
24241 rm -f conf$$.dir/conf$$.file
24242 else
24243 rm -f conf$$.dir
24244 mkdir conf$$.dir
24246 echo >conf$$.file
24247 if ln -s conf$$.file conf$$ 2>/dev/null; then
24248 as_ln_s='ln -s'
24249 # ... but there are two gotchas:
24250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24252 # In both cases, we have to default to `cp -p'.
24253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24254 as_ln_s='cp -p'
24255 elif ln conf$$.file conf$$ 2>/dev/null; then
24256 as_ln_s=ln
24257 else
24258 as_ln_s='cp -p'
24260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24261 rmdir conf$$.dir 2>/dev/null
24263 if mkdir -p . 2>/dev/null; then
24264 as_mkdir_p=:
24265 else
24266 test -d ./-p && rmdir ./-p
24267 as_mkdir_p=false
24270 if test -x / >/dev/null 2>&1; then
24271 as_test_x='test -x'
24272 else
24273 if ls -dL / >/dev/null 2>&1; then
24274 as_ls_L_option=L
24275 else
24276 as_ls_L_option=
24278 as_test_x='
24279 eval sh -c '\''
24280 if test -d "$1"; then
24281 test -d "$1/.";
24282 else
24283 case $1 in
24284 -*)set "./$1";;
24285 esac;
24286 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24287 ???[sx]*):;;*)false;;esac;fi
24288 '\'' sh
24291 as_executable_p=$as_test_x
24293 # Sed expression to map a string onto a valid CPP name.
24294 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24296 # Sed expression to map a string onto a valid variable name.
24297 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24300 exec 6>&1
24302 # Save the log message, to keep $[0] and so on meaningful, and to
24303 # report actual input values of CONFIG_FILES etc. instead of their
24304 # values after options handling.
24305 ac_log="
24306 This file was extended by file $as_me 5.03, which was
24307 generated by GNU Autoconf 2.61. Invocation command line was
24309 CONFIG_FILES = $CONFIG_FILES
24310 CONFIG_HEADERS = $CONFIG_HEADERS
24311 CONFIG_LINKS = $CONFIG_LINKS
24312 CONFIG_COMMANDS = $CONFIG_COMMANDS
24313 $ $0 $@
24315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24318 _ACEOF
24320 cat >>$CONFIG_STATUS <<_ACEOF
24321 # Files that config.status was made for.
24322 config_files="$ac_config_files"
24323 config_headers="$ac_config_headers"
24324 config_commands="$ac_config_commands"
24326 _ACEOF
24328 cat >>$CONFIG_STATUS <<\_ACEOF
24329 ac_cs_usage="\
24330 \`$as_me' instantiates files from templates according to the
24331 current configuration.
24333 Usage: $0 [OPTIONS] [FILE]...
24335 -h, --help print this help, then exit
24336 -V, --version print version number and configuration settings, then exit
24337 -q, --quiet do not print progress messages
24338 -d, --debug don't remove temporary files
24339 --recheck update $as_me by reconfiguring in the same conditions
24340 --file=FILE[:TEMPLATE]
24341 instantiate the configuration file FILE
24342 --header=FILE[:TEMPLATE]
24343 instantiate the configuration header FILE
24345 Configuration files:
24346 $config_files
24348 Configuration headers:
24349 $config_headers
24351 Configuration commands:
24352 $config_commands
24354 Report bugs to <bug-autoconf@gnu.org>."
24356 _ACEOF
24357 cat >>$CONFIG_STATUS <<_ACEOF
24358 ac_cs_version="\\
24359 file config.status 5.03
24360 configured by $0, generated by GNU Autoconf 2.61,
24361 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24363 Copyright (C) 2006 Free Software Foundation, Inc.
24364 This config.status script is free software; the Free Software Foundation
24365 gives unlimited permission to copy, distribute and modify it."
24367 ac_pwd='$ac_pwd'
24368 srcdir='$srcdir'
24369 INSTALL='$INSTALL'
24370 MKDIR_P='$MKDIR_P'
24371 _ACEOF
24373 cat >>$CONFIG_STATUS <<\_ACEOF
24374 # If no file are specified by the user, then we need to provide default
24375 # value. By we need to know if files were specified by the user.
24376 ac_need_defaults=:
24377 while test $# != 0
24379 case $1 in
24380 --*=*)
24381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24383 ac_shift=:
24386 ac_option=$1
24387 ac_optarg=$2
24388 ac_shift=shift
24390 esac
24392 case $ac_option in
24393 # Handling of the options.
24394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24395 ac_cs_recheck=: ;;
24396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24397 echo "$ac_cs_version"; exit ;;
24398 --debug | --debu | --deb | --de | --d | -d )
24399 debug=: ;;
24400 --file | --fil | --fi | --f )
24401 $ac_shift
24402 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24403 ac_need_defaults=false;;
24404 --header | --heade | --head | --hea )
24405 $ac_shift
24406 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24407 ac_need_defaults=false;;
24408 --he | --h)
24409 # Conflict between --help and --header
24410 { echo "$as_me: error: ambiguous option: $1
24411 Try \`$0 --help' for more information." >&2
24412 { (exit 1); exit 1; }; };;
24413 --help | --hel | -h )
24414 echo "$ac_cs_usage"; exit ;;
24415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24416 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24417 ac_cs_silent=: ;;
24419 # This is an error.
24420 -*) { echo "$as_me: error: unrecognized option: $1
24421 Try \`$0 --help' for more information." >&2
24422 { (exit 1); exit 1; }; } ;;
24424 *) ac_config_targets="$ac_config_targets $1"
24425 ac_need_defaults=false ;;
24427 esac
24428 shift
24429 done
24431 ac_configure_extra_args=
24433 if $ac_cs_silent; then
24434 exec 6>/dev/null
24435 ac_configure_extra_args="$ac_configure_extra_args --silent"
24438 _ACEOF
24439 cat >>$CONFIG_STATUS <<_ACEOF
24440 if \$ac_cs_recheck; then
24441 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24442 CONFIG_SHELL=$SHELL
24443 export CONFIG_SHELL
24444 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24447 _ACEOF
24448 cat >>$CONFIG_STATUS <<\_ACEOF
24449 exec 5>>config.log
24451 echo
24452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24453 ## Running $as_me. ##
24454 _ASBOX
24455 echo "$ac_log"
24456 } >&5
24458 _ACEOF
24459 cat >>$CONFIG_STATUS <<_ACEOF
24461 # INIT-COMMANDS
24463 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24465 _ACEOF
24467 cat >>$CONFIG_STATUS <<\_ACEOF
24469 # Handling of arguments.
24470 for ac_config_target in $ac_config_targets
24472 case $ac_config_target in
24473 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24474 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24475 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24476 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24477 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
24478 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24479 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24480 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
24482 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24483 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24484 { (exit 1); exit 1; }; };;
24485 esac
24486 done
24489 # If the user did not use the arguments to specify the items to instantiate,
24490 # then the envvar interface is used. Set only those that are not.
24491 # We use the long form for the default assignment because of an extremely
24492 # bizarre bug on SunOS 4.1.3.
24493 if $ac_need_defaults; then
24494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24499 # Have a temporary directory for convenience. Make it in the build tree
24500 # simply because there is no reason against having it here, and in addition,
24501 # creating and moving files from /tmp can sometimes cause problems.
24502 # Hook for its removal unless debugging.
24503 # Note that there is a small window in which the directory will not be cleaned:
24504 # after its creation but before its name has been assigned to `$tmp'.
24505 $debug ||
24507 tmp=
24508 trap 'exit_status=$?
24509 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24511 trap '{ (exit 1); exit 1; }' 1 2 13 15
24513 # Create a (secure) tmp directory for tmp files.
24516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24517 test -n "$tmp" && test -d "$tmp"
24518 } ||
24520 tmp=./conf$$-$RANDOM
24521 (umask 077 && mkdir "$tmp")
24522 } ||
24524 echo "$me: cannot create a temporary directory in ." >&2
24525 { (exit 1); exit 1; }
24529 # Set up the sed scripts for CONFIG_FILES section.
24532 # No need to generate the scripts if there are no CONFIG_FILES.
24533 # This happens for instance when ./config.status config.h
24534 if test -n "$CONFIG_FILES"; then
24536 _ACEOF
24540 ac_delim='%!_!# '
24541 for ac_last_try in false false false false false :; do
24542 cat >conf$$subs.sed <<_ACEOF
24543 SHELL!$SHELL$ac_delim
24544 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24545 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24546 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24547 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24548 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24549 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24550 exec_prefix!$exec_prefix$ac_delim
24551 prefix!$prefix$ac_delim
24552 program_transform_name!$program_transform_name$ac_delim
24553 bindir!$bindir$ac_delim
24554 sbindir!$sbindir$ac_delim
24555 libexecdir!$libexecdir$ac_delim
24556 datarootdir!$datarootdir$ac_delim
24557 datadir!$datadir$ac_delim
24558 sysconfdir!$sysconfdir$ac_delim
24559 sharedstatedir!$sharedstatedir$ac_delim
24560 localstatedir!$localstatedir$ac_delim
24561 includedir!$includedir$ac_delim
24562 oldincludedir!$oldincludedir$ac_delim
24563 docdir!$docdir$ac_delim
24564 infodir!$infodir$ac_delim
24565 htmldir!$htmldir$ac_delim
24566 dvidir!$dvidir$ac_delim
24567 pdfdir!$pdfdir$ac_delim
24568 psdir!$psdir$ac_delim
24569 libdir!$libdir$ac_delim
24570 localedir!$localedir$ac_delim
24571 mandir!$mandir$ac_delim
24572 DEFS!$DEFS$ac_delim
24573 ECHO_C!$ECHO_C$ac_delim
24574 ECHO_N!$ECHO_N$ac_delim
24575 ECHO_T!$ECHO_T$ac_delim
24576 LIBS!$LIBS$ac_delim
24577 build_alias!$build_alias$ac_delim
24578 host_alias!$host_alias$ac_delim
24579 target_alias!$target_alias$ac_delim
24580 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24581 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24582 INSTALL_DATA!$INSTALL_DATA$ac_delim
24583 am__isrc!$am__isrc$ac_delim
24584 CYGPATH_W!$CYGPATH_W$ac_delim
24585 PACKAGE!$PACKAGE$ac_delim
24586 VERSION!$VERSION$ac_delim
24587 ACLOCAL!$ACLOCAL$ac_delim
24588 AUTOCONF!$AUTOCONF$ac_delim
24589 AUTOMAKE!$AUTOMAKE$ac_delim
24590 AUTOHEADER!$AUTOHEADER$ac_delim
24591 MAKEINFO!$MAKEINFO$ac_delim
24592 install_sh!$install_sh$ac_delim
24593 STRIP!$STRIP$ac_delim
24594 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24595 mkdir_p!$mkdir_p$ac_delim
24596 AWK!$AWK$ac_delim
24597 SET_MAKE!$SET_MAKE$ac_delim
24598 am__leading_dot!$am__leading_dot$ac_delim
24599 AMTAR!$AMTAR$ac_delim
24600 am__tar!$am__tar$ac_delim
24601 am__untar!$am__untar$ac_delim
24602 pkgdatadir!$pkgdatadir$ac_delim
24603 fsect!$fsect$ac_delim
24604 FSECT5_TRUE!$FSECT5_TRUE$ac_delim
24605 FSECT5_FALSE!$FSECT5_FALSE$ac_delim
24606 WARNINGS!$WARNINGS$ac_delim
24607 CC!$CC$ac_delim
24608 CFLAGS!$CFLAGS$ac_delim
24609 LDFLAGS!$LDFLAGS$ac_delim
24610 CPPFLAGS!$CPPFLAGS$ac_delim
24611 ac_ct_CC!$ac_ct_CC$ac_delim
24612 EXEEXT!$EXEEXT$ac_delim
24613 OBJEXT!$OBJEXT$ac_delim
24614 DEPDIR!$DEPDIR$ac_delim
24615 am__include!$am__include$ac_delim
24616 am__quote!$am__quote$ac_delim
24617 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24618 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24619 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24620 CCDEPMODE!$CCDEPMODE$ac_delim
24621 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24622 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24623 LN_S!$LN_S$ac_delim
24624 build!$build$ac_delim
24625 build_cpu!$build_cpu$ac_delim
24626 build_vendor!$build_vendor$ac_delim
24627 build_os!$build_os$ac_delim
24628 host!$host$ac_delim
24629 host_cpu!$host_cpu$ac_delim
24630 host_vendor!$host_vendor$ac_delim
24631 host_os!$host_os$ac_delim
24632 SED!$SED$ac_delim
24633 GREP!$GREP$ac_delim
24634 EGREP!$EGREP$ac_delim
24635 ECHO!$ECHO$ac_delim
24636 AR!$AR$ac_delim
24637 RANLIB!$RANLIB$ac_delim
24638 DSYMUTIL!$DSYMUTIL$ac_delim
24639 NMEDIT!$NMEDIT$ac_delim
24640 _ACEOF
24642 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24643 break
24644 elif $ac_last_try; then
24645 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24646 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24647 { (exit 1); exit 1; }; }
24648 else
24649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24651 done
24653 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24654 if test -n "$ac_eof"; then
24655 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24656 ac_eof=`expr $ac_eof + 1`
24659 cat >>$CONFIG_STATUS <<_ACEOF
24660 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24662 _ACEOF
24663 sed '
24664 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24665 s/^/s,@/; s/!/@,|#_!!_#|/
24668 s/'"$ac_delim"'$/,g/; t
24669 s/$/\\/; p
24670 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24671 ' >>$CONFIG_STATUS <conf$$subs.sed
24672 rm -f conf$$subs.sed
24673 cat >>$CONFIG_STATUS <<_ACEOF
24674 CEOF$ac_eof
24675 _ACEOF
24678 ac_delim='%!_!# '
24679 for ac_last_try in false false false false false :; do
24680 cat >conf$$subs.sed <<_ACEOF
24681 CPP!$CPP$ac_delim
24682 CXX!$CXX$ac_delim
24683 CXXFLAGS!$CXXFLAGS$ac_delim
24684 ac_ct_CXX!$ac_ct_CXX$ac_delim
24685 CXXDEPMODE!$CXXDEPMODE$ac_delim
24686 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24687 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24688 CXXCPP!$CXXCPP$ac_delim
24689 F77!$F77$ac_delim
24690 FFLAGS!$FFLAGS$ac_delim
24691 ac_ct_F77!$ac_ct_F77$ac_delim
24692 LIBTOOL!$LIBTOOL$ac_delim
24693 LIBOBJS!$LIBOBJS$ac_delim
24694 IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
24695 IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
24696 LTLIBOBJS!$LTLIBOBJS$ac_delim
24697 _ACEOF
24699 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
24700 break
24701 elif $ac_last_try; then
24702 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24703 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24704 { (exit 1); exit 1; }; }
24705 else
24706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24708 done
24710 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24711 if test -n "$ac_eof"; then
24712 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24713 ac_eof=`expr $ac_eof + 1`
24716 cat >>$CONFIG_STATUS <<_ACEOF
24717 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24719 _ACEOF
24720 sed '
24721 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24722 s/^/s,@/; s/!/@,|#_!!_#|/
24725 s/'"$ac_delim"'$/,g/; t
24726 s/$/\\/; p
24727 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24728 ' >>$CONFIG_STATUS <conf$$subs.sed
24729 rm -f conf$$subs.sed
24730 cat >>$CONFIG_STATUS <<_ACEOF
24731 :end
24732 s/|#_!!_#|//g
24733 CEOF$ac_eof
24734 _ACEOF
24737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24739 # trailing colons and then remove the whole line if VPATH becomes empty
24740 # (actually we leave an empty line to preserve line numbers).
24741 if test "x$srcdir" = x.; then
24742 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24743 s/:*\$(srcdir):*/:/
24744 s/:*\${srcdir}:*/:/
24745 s/:*@srcdir@:*/:/
24746 s/^\([^=]*=[ ]*\):*/\1/
24747 s/:*$//
24748 s/^[^=]*=[ ]*$//
24752 cat >>$CONFIG_STATUS <<\_ACEOF
24753 fi # test -n "$CONFIG_FILES"
24756 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24758 case $ac_tag in
24759 :[FHLC]) ac_mode=$ac_tag; continue;;
24760 esac
24761 case $ac_mode$ac_tag in
24762 :[FHL]*:*);;
24763 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24764 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24765 { (exit 1); exit 1; }; };;
24766 :[FH]-) ac_tag=-:-;;
24767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24768 esac
24769 ac_save_IFS=$IFS
24770 IFS=:
24771 set x $ac_tag
24772 IFS=$ac_save_IFS
24773 shift
24774 ac_file=$1
24775 shift
24777 case $ac_mode in
24778 :L) ac_source=$1;;
24779 :[FH])
24780 ac_file_inputs=
24781 for ac_f
24783 case $ac_f in
24784 -) ac_f="$tmp/stdin";;
24785 *) # Look for the file first in the build tree, then in the source tree
24786 # (if the path is not absolute). The absolute path cannot be DOS-style,
24787 # because $ac_f cannot contain `:'.
24788 test -f "$ac_f" ||
24789 case $ac_f in
24790 [\\/$]*) false;;
24791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24792 esac ||
24793 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24794 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24795 { (exit 1); exit 1; }; };;
24796 esac
24797 ac_file_inputs="$ac_file_inputs $ac_f"
24798 done
24800 # Let's still pretend it is `configure' which instantiates (i.e., don't
24801 # use $as_me), people would be surprised to read:
24802 # /* config.h. Generated by config.status. */
24803 configure_input="Generated from "`IFS=:
24804 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24805 if test x"$ac_file" != x-; then
24806 configure_input="$ac_file. $configure_input"
24807 { echo "$as_me:$LINENO: creating $ac_file" >&5
24808 echo "$as_me: creating $ac_file" >&6;}
24811 case $ac_tag in
24812 *:-:* | *:-) cat >"$tmp/stdin";;
24813 esac
24815 esac
24817 ac_dir=`$as_dirname -- "$ac_file" ||
24818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24819 X"$ac_file" : 'X\(//\)[^/]' \| \
24820 X"$ac_file" : 'X\(//\)$' \| \
24821 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24822 echo X"$ac_file" |
24823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24824 s//\1/
24827 /^X\(\/\/\)[^/].*/{
24828 s//\1/
24831 /^X\(\/\/\)$/{
24832 s//\1/
24835 /^X\(\/\).*/{
24836 s//\1/
24839 s/.*/./; q'`
24840 { as_dir="$ac_dir"
24841 case $as_dir in #(
24842 -*) as_dir=./$as_dir;;
24843 esac
24844 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24845 as_dirs=
24846 while :; do
24847 case $as_dir in #(
24848 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24849 *) as_qdir=$as_dir;;
24850 esac
24851 as_dirs="'$as_qdir' $as_dirs"
24852 as_dir=`$as_dirname -- "$as_dir" ||
24853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24854 X"$as_dir" : 'X\(//\)[^/]' \| \
24855 X"$as_dir" : 'X\(//\)$' \| \
24856 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24857 echo X"$as_dir" |
24858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24859 s//\1/
24862 /^X\(\/\/\)[^/].*/{
24863 s//\1/
24866 /^X\(\/\/\)$/{
24867 s//\1/
24870 /^X\(\/\).*/{
24871 s//\1/
24874 s/.*/./; q'`
24875 test -d "$as_dir" && break
24876 done
24877 test -z "$as_dirs" || eval "mkdir $as_dirs"
24878 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24879 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24880 { (exit 1); exit 1; }; }; }
24881 ac_builddir=.
24883 case "$ac_dir" in
24884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24887 # A ".." for each directory in $ac_dir_suffix.
24888 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24889 case $ac_top_builddir_sub in
24890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24892 esac ;;
24893 esac
24894 ac_abs_top_builddir=$ac_pwd
24895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24896 # for backward compatibility:
24897 ac_top_builddir=$ac_top_build_prefix
24899 case $srcdir in
24900 .) # We are building in place.
24901 ac_srcdir=.
24902 ac_top_srcdir=$ac_top_builddir_sub
24903 ac_abs_top_srcdir=$ac_pwd ;;
24904 [\\/]* | ?:[\\/]* ) # Absolute name.
24905 ac_srcdir=$srcdir$ac_dir_suffix;
24906 ac_top_srcdir=$srcdir
24907 ac_abs_top_srcdir=$srcdir ;;
24908 *) # Relative name.
24909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24910 ac_top_srcdir=$ac_top_build_prefix$srcdir
24911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24912 esac
24913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24916 case $ac_mode in
24919 # CONFIG_FILE
24922 case $INSTALL in
24923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24924 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24925 esac
24926 ac_MKDIR_P=$MKDIR_P
24927 case $MKDIR_P in
24928 [\\/$]* | ?:[\\/]* ) ;;
24929 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24930 esac
24931 _ACEOF
24933 cat >>$CONFIG_STATUS <<\_ACEOF
24934 # If the template does not know about datarootdir, expand it.
24935 # FIXME: This hack should be removed a few years after 2.60.
24936 ac_datarootdir_hack=; ac_datarootdir_seen=
24938 case `sed -n '/datarootdir/ {
24942 /@datadir@/p
24943 /@docdir@/p
24944 /@infodir@/p
24945 /@localedir@/p
24946 /@mandir@/p
24947 ' $ac_file_inputs` in
24948 *datarootdir*) ac_datarootdir_seen=yes;;
24949 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24950 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24951 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24952 _ACEOF
24953 cat >>$CONFIG_STATUS <<_ACEOF
24954 ac_datarootdir_hack='
24955 s&@datadir@&$datadir&g
24956 s&@docdir@&$docdir&g
24957 s&@infodir@&$infodir&g
24958 s&@localedir@&$localedir&g
24959 s&@mandir@&$mandir&g
24960 s&\\\${datarootdir}&$datarootdir&g' ;;
24961 esac
24962 _ACEOF
24964 # Neutralize VPATH when `$srcdir' = `.'.
24965 # Shell code in configure.ac might set extrasub.
24966 # FIXME: do we really want to maintain this feature?
24967 cat >>$CONFIG_STATUS <<_ACEOF
24968 sed "$ac_vpsub
24969 $extrasub
24970 _ACEOF
24971 cat >>$CONFIG_STATUS <<\_ACEOF
24973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24974 s&@configure_input@&$configure_input&;t t
24975 s&@top_builddir@&$ac_top_builddir_sub&;t t
24976 s&@srcdir@&$ac_srcdir&;t t
24977 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24978 s&@top_srcdir@&$ac_top_srcdir&;t t
24979 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24980 s&@builddir@&$ac_builddir&;t t
24981 s&@abs_builddir@&$ac_abs_builddir&;t t
24982 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24983 s&@INSTALL@&$ac_INSTALL&;t t
24984 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24985 $ac_datarootdir_hack
24986 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24989 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24991 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24992 which seems to be undefined. Please make sure it is defined." >&5
24993 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24994 which seems to be undefined. Please make sure it is defined." >&2;}
24996 rm -f "$tmp/stdin"
24997 case $ac_file in
24998 -) cat "$tmp/out"; rm -f "$tmp/out";;
24999 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25000 esac
25004 # CONFIG_HEADER
25006 _ACEOF
25008 # Transform confdefs.h into a sed script `conftest.defines', that
25009 # substitutes the proper values into config.h.in to produce config.h.
25010 rm -f conftest.defines conftest.tail
25011 # First, append a space to every undef/define line, to ease matching.
25012 echo 's/$/ /' >conftest.defines
25013 # Then, protect against being on the right side of a sed subst, or in
25014 # an unquoted here document, in config.status. If some macros were
25015 # called several times there might be several #defines for the same
25016 # symbol, which is useless. But do not sort them, since the last
25017 # AC_DEFINE must be honored.
25018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25019 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25020 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25021 # PARAMS is the parameter list in the macro definition--in most cases, it's
25022 # just an empty string.
25023 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25024 ac_dB='\\)[ (].*,\\1define\\2'
25025 ac_dC=' '
25026 ac_dD=' ,'
25028 uniq confdefs.h |
25029 sed -n '
25030 t rset
25031 :rset
25032 s/^[ ]*#[ ]*define[ ][ ]*//
25033 t ok
25036 s/[\\&,]/\\&/g
25037 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25038 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25039 ' >>conftest.defines
25041 # Remove the space that was appended to ease matching.
25042 # Then replace #undef with comments. This is necessary, for
25043 # example, in the case of _POSIX_SOURCE, which is predefined and required
25044 # on some systems where configure will not decide to define it.
25045 # (The regexp can be short, since the line contains either #define or #undef.)
25046 echo 's/ $//
25047 s,^[ #]*u.*,/* & */,' >>conftest.defines
25049 # Break up conftest.defines:
25050 ac_max_sed_lines=50
25052 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25053 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25054 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25055 # et cetera.
25056 ac_in='$ac_file_inputs'
25057 ac_out='"$tmp/out1"'
25058 ac_nxt='"$tmp/out2"'
25060 while :
25062 # Write a here document:
25063 cat >>$CONFIG_STATUS <<_ACEOF
25064 # First, check the format of the line:
25065 cat >"\$tmp/defines.sed" <<\\CEOF
25066 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25067 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25069 :def
25070 _ACEOF
25071 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25072 echo 'CEOF
25073 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25074 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25075 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25076 grep . conftest.tail >/dev/null || break
25077 rm -f conftest.defines
25078 mv conftest.tail conftest.defines
25079 done
25080 rm -f conftest.defines conftest.tail
25082 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25083 cat >>$CONFIG_STATUS <<\_ACEOF
25084 if test x"$ac_file" != x-; then
25085 echo "/* $configure_input */" >"$tmp/config.h"
25086 cat "$ac_result" >>"$tmp/config.h"
25087 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25088 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25089 echo "$as_me: $ac_file is unchanged" >&6;}
25090 else
25091 rm -f $ac_file
25092 mv "$tmp/config.h" $ac_file
25094 else
25095 echo "/* $configure_input */"
25096 cat "$ac_result"
25098 rm -f "$tmp/out12"
25099 # Compute $ac_file's index in $config_headers.
25100 _am_stamp_count=1
25101 for _am_header in $config_headers :; do
25102 case $_am_header in
25103 $ac_file | $ac_file:* )
25104 break ;;
25106 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25107 esac
25108 done
25109 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25110 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25111 X$ac_file : 'X\(//\)[^/]' \| \
25112 X$ac_file : 'X\(//\)$' \| \
25113 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25114 echo X$ac_file |
25115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25116 s//\1/
25119 /^X\(\/\/\)[^/].*/{
25120 s//\1/
25123 /^X\(\/\/\)$/{
25124 s//\1/
25127 /^X\(\/\).*/{
25128 s//\1/
25131 s/.*/./; q'`/stamp-h$_am_stamp_count
25134 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25135 echo "$as_me: executing $ac_file commands" >&6;}
25137 esac
25140 case $ac_file$ac_mode in
25141 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25142 # Strip MF so we end up with the name of the file.
25143 mf=`echo "$mf" | sed -e 's/:.*$//'`
25144 # Check whether this is an Automake generated Makefile or not.
25145 # We used to match only the files named `Makefile.in', but
25146 # some people rename them; so instead we look at the file content.
25147 # Grep'ing the first line is not enough: some people post-process
25148 # each Makefile.in and add a new line on top of each file to say so.
25149 # Grep'ing the whole file is not good either: AIX grep has a line
25150 # limit of 2048, but all sed's we know have understand at least 4000.
25151 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25152 dirpart=`$as_dirname -- "$mf" ||
25153 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25154 X"$mf" : 'X\(//\)[^/]' \| \
25155 X"$mf" : 'X\(//\)$' \| \
25156 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25157 echo X"$mf" |
25158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25159 s//\1/
25162 /^X\(\/\/\)[^/].*/{
25163 s//\1/
25166 /^X\(\/\/\)$/{
25167 s//\1/
25170 /^X\(\/\).*/{
25171 s//\1/
25174 s/.*/./; q'`
25175 else
25176 continue
25178 # Extract the definition of DEPDIR, am__include, and am__quote
25179 # from the Makefile without running `make'.
25180 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25181 test -z "$DEPDIR" && continue
25182 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25183 test -z "am__include" && continue
25184 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25185 # When using ansi2knr, U may be empty or an underscore; expand it
25186 U=`sed -n 's/^U = //p' < "$mf"`
25187 # Find all dependency output files, they are included files with
25188 # $(DEPDIR) in their names. We invoke sed twice because it is the
25189 # simplest approach to changing $(DEPDIR) to its actual value in the
25190 # expansion.
25191 for file in `sed -n "
25192 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25193 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25194 # Make sure the directory exists.
25195 test -f "$dirpart/$file" && continue
25196 fdir=`$as_dirname -- "$file" ||
25197 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25198 X"$file" : 'X\(//\)[^/]' \| \
25199 X"$file" : 'X\(//\)$' \| \
25200 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25201 echo X"$file" |
25202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25203 s//\1/
25206 /^X\(\/\/\)[^/].*/{
25207 s//\1/
25210 /^X\(\/\/\)$/{
25211 s//\1/
25214 /^X\(\/\).*/{
25215 s//\1/
25218 s/.*/./; q'`
25219 { as_dir=$dirpart/$fdir
25220 case $as_dir in #(
25221 -*) as_dir=./$as_dir;;
25222 esac
25223 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25224 as_dirs=
25225 while :; do
25226 case $as_dir in #(
25227 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25228 *) as_qdir=$as_dir;;
25229 esac
25230 as_dirs="'$as_qdir' $as_dirs"
25231 as_dir=`$as_dirname -- "$as_dir" ||
25232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25233 X"$as_dir" : 'X\(//\)[^/]' \| \
25234 X"$as_dir" : 'X\(//\)$' \| \
25235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25236 echo X"$as_dir" |
25237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25238 s//\1/
25241 /^X\(\/\/\)[^/].*/{
25242 s//\1/
25245 /^X\(\/\/\)$/{
25246 s//\1/
25249 /^X\(\/\).*/{
25250 s//\1/
25253 s/.*/./; q'`
25254 test -d "$as_dir" && break
25255 done
25256 test -z "$as_dirs" || eval "mkdir $as_dirs"
25257 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25258 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25259 { (exit 1); exit 1; }; }; }
25260 # echo "creating $dirpart/$file"
25261 echo '# dummy' > "$dirpart/$file"
25262 done
25263 done
25266 esac
25267 done # for ac_tag
25270 { (exit 0); exit 0; }
25271 _ACEOF
25272 chmod +x $CONFIG_STATUS
25273 ac_clean_files=$ac_clean_files_save
25276 # configure is writing to config.log, and then calls config.status.
25277 # config.status does its own redirection, appending to config.log.
25278 # Unfortunately, on DOS this fails, as config.log is still kept open
25279 # by configure, so config.status won't be able to write to it; its
25280 # output is simply discarded. So we exec the FD to /dev/null,
25281 # effectively closing config.log, so it can be properly (re)opened and
25282 # appended to by config.status. When coming back to configure, we
25283 # need to make the FD available again.
25284 if test "$no_create" != yes; then
25285 ac_cs_success=:
25286 ac_config_status_args=
25287 test "$silent" = yes &&
25288 ac_config_status_args="$ac_config_status_args --quiet"
25289 exec 5>/dev/null
25290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25291 exec 5>>config.log
25292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25293 # would make configure fail if this is the last instruction.
25294 $ac_cs_success || { (exit 1); exit 1; }