2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for file 4.26.
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
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
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
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
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
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
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 () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
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
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
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}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
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!
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
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
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
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
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
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
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.
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
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
660 SHELL="$CONFIG_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"
669 # maybe with a smaller string...
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
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+"$@"}
685 # Oops. We lost completely, so just stick with 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.
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
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`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='file'
731 PACKAGE_VERSION='4.26'
732 PACKAGE_STRING='file 4.26'
733 PACKAGE_BUGREPORT='christos@astron.com'
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
822 INSTALL_STRIP_PROGRAM
877 IS_CROSS_COMPILE_TRUE
878 IS_CROSS_COMPILE_FALSE
881 ac_precious_vars='build_alias
898 # Initialize some variables set by options.
900 ac_init_version=false
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
910 program_transform_name=s,x,x,
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005 eval enable_$ac_feature=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=\$ac_optarg ;;
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 htmldir=$ac_optarg ;;
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1069 -libdir | --libdir | --libdi | --libd)
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1160 -psdir | --psdir | --psdi | --psd | --ps)
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 sbindir=$ac_optarg ;;
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 sharedstatedir=$ac_optarg ;;
1186 -site | --site | --sit)
1188 -site=* | --site=* | --sit=*)
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1215 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=no ;;
1233 # Obsolete; use --with-x.
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) { echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 # Be sure to have absolute directory names.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$0" ||
1335 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$0" : 'X\(//\)[^/]' \| \
1337 X"$0" : 'X\(//\)$' \| \
1338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures file 4.26 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of file 4.26:";;
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --disable-elf disable builtin ELF support
1476 --disable-elf-core disable ELF core file support
1477 --enable-fsect-man5 enable file formats in man section 5
1478 --disable-dependency-tracking speeds up one-time build
1479 --enable-dependency-tracking do not reject slow dependency extractors
1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --disable-largefile omit support for large files
1486 --disable-warnings disable compiler warnings
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-pic try to use only PIC/non-PIC objects [default=use
1494 --with-tags[=TAGS] include additional configurations [automatic]
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1514 Report bugs to <christos@astron.com>.
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" || continue
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1542 .) # We are building in place.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1566 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1576 generated by GNU Autoconf 2.61
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1589 It was created by file $as_me 4.26, which was
1590 generated by GNU Autoconf 2.61. Invocation command line was
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 echo "PATH: $as_dir"
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_must_keep_next=false
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679 -* ) ac_must_keep_next=true ;;
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1706 # The following way of writing the cache mishandles newlines in values,
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1713 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717 _ | IFS | as_nl) ;; #(
1718 *) $as_unset $ac_var ;;
1723 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1738 ## ----------------- ##
1739 ## Output variables. ##
1740 ## ----------------- ##
1743 for ac_var in $ac_subst_vars
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1753 if test -n "$ac_subst_files"; then
1755 ## ------------------- ##
1756 ## File substitutions. ##
1757 ## ------------------- ##
1760 for ac_var in $ac_subst_files
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 echo "$ac_var='\''$ac_val'\''"
1771 if test -s confdefs.h; then
1781 test "$ac_signal" != 0 &&
1782 echo "$as_me: caught signal $ac_signal"
1783 echo "$as_me: exit $exit_status"
1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1789 for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1794 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1795 rm -f -r conftest* confdefs.h
1797 # Predefined preprocessor variables.
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_NAME "$PACKAGE_NAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_STRING "$PACKAGE_STRING"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1824 # Let the site file select an alternate cache file if it wants to.
1825 # Prefer explicitly selected file to automatically selected ones.
1826 if test -n "$CONFIG_SITE"; then
1827 set x "$CONFIG_SITE"
1828 elif test "x$prefix" != xNONE; then
1829 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831 set x "$ac_default_prefix/share/config.site" \
1832 "$ac_default_prefix/etc/config.site"
1837 if test -r "$ac_site_file"; then
1838 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839 echo "$as_me: loading site script $ac_site_file" >&6;}
1840 sed 's/^/| /' "$ac_site_file" >&5
1845 if test -r "$cache_file"; then
1846 # Some versions of bash will fail to source /dev/null (special
1847 # files actually), so we avoid doing that.
1848 if test -f "$cache_file"; then
1849 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850 echo "$as_me: loading cache $cache_file" >&6;}
1852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853 *) . "./$cache_file";;
1857 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858 echo "$as_me: creating cache $cache_file" >&6;}
1862 # Check that the precious variables saved in the cache have kept the same
1864 ac_cache_corrupted=false
1865 for ac_var in $ac_precious_vars; do
1866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867 eval ac_new_set=\$ac_env_${ac_var}_set
1868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869 eval ac_new_val=\$ac_env_${ac_var}_value
1870 case $ac_old_set,$ac_new_set in
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1881 if test "x$ac_old_val" != "x$ac_new_val"; then
1882 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885 echo "$as_me: former value: $ac_old_val" >&2;}
1886 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887 echo "$as_me: current value: $ac_new_val" >&2;}
1888 ac_cache_corrupted=:
1891 # Pass precious variables to config.status.
1892 if test "$ac_new_set" = set; then
1894 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 *) ac_arg=$ac_var=$ac_new_val ;;
1897 case " $ac_configure_args " in
1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1903 if $ac_cache_corrupted; then
1904 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908 { (exit 1); exit 1; }; }
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 am__api_version='1.10'
1945 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1946 if test -f "$ac_dir/install-sh"; then
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 elif test -f "$ac_dir/install.sh"; then
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 elif test -f "$ac_dir/shtool"; then
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 if test -z "$ac_aux_dir"; then
1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 # Find a good install program. We prefer a C program (faster),
1976 # so one script is as good as another. But avoid the broken or
1977 # incompatible versions:
1978 # SysV /etc/install, /usr/sbin/install
1979 # SunOS /usr/etc/install
1980 # IRIX /sbin/install
1982 # AmigaOS /C/install, which installs bootblocks on floppy discs
1983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1986 # OS/2's system install, which has a completely different semantic
1987 # ./install, which can be erroneously created by make from ./install.sh.
1988 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1989 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1990 if test -z "$INSTALL"; then
1991 if test "${ac_cv_path_install+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 # Account for people who put trailing slashes in PATH elements.
2001 ./ | .// | /cC/* | \
2002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2003 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2006 # OSF1 and SCO ODT 3.0 have their own names for install.
2007 # Don't use installbsd from OSF since it installs stuff as root
2009 for ac_prog in ginstall scoinst install; do
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2012 if test $ac_prog = install &&
2013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2014 # AIX install. It has an incompatible calling convention.
2016 elif test $ac_prog = install &&
2017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # program-specific install script used by HP pwplus--don't use.
2021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2034 if test "${ac_cv_path_install+set}" = set; then
2035 INSTALL=$ac_cv_path_install
2037 # As a last resort, use the slow shell script. Don't cache a
2038 # value for INSTALL within a source directory, because that will
2039 # break other packages using the cache if that directory is
2040 # removed, or if the value is a relative name.
2041 INSTALL=$ac_install_sh
2044 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2045 echo "${ECHO_T}$INSTALL" >&6; }
2047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2048 # It thinks the first close brace ends the variable substitution.
2049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2056 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2059 echo timestamp > conftest.file
2060 # Do `set' in a subshell so we don't clobber the current shell's
2061 # arguments. Must try -L first in case configure is actually a
2062 # symlink; some systems play weird games with the mod time of symlinks
2063 # (eg FreeBSD returns the mod time of the symlink's containing
2066 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2067 if test "$*" = "X"; then
2069 set X `ls -t $srcdir/configure conftest.file`
2072 if test "$*" != "X $srcdir/configure conftest.file" \
2073 && test "$*" != "X conftest.file $srcdir/configure"; then
2075 # If neither matched, then we have a broken ls. This can happen
2076 # if, for instance, CONFIG_SHELL is bash and it inherits a
2077 # broken ls alias from the environment. This has actually
2078 # happened. Such a system could not be considered "sane".
2079 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2080 alias in your environment" >&5
2081 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2082 alias in your environment" >&2;}
2083 { (exit 1); exit 1; }; }
2086 test "$2" = conftest.file
2092 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2093 Check your system clock" >&5
2094 echo "$as_me: error: newly created file is older than distributed files!
2095 Check your system clock" >&2;}
2096 { (exit 1); exit 1; }; }
2098 { echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6; }
2100 test "$program_prefix" != NONE &&
2101 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2102 # Use a double $ so make ignores it.
2103 test "$program_suffix" != NONE &&
2104 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2105 # Double any \ or $. echo might interpret backslashes.
2106 # By default was `s,x,x', remove it if useless.
2107 cat <<\_ACEOF >conftest.sed
2108 s/[\\$]/&&/g;s/;s,x,x,$//
2110 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2113 # expand $ac_aux_dir to an absolute path
2114 am_aux_dir=`cd $ac_aux_dir && pwd`
2116 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2117 # Use eval to expand $SHELL
2118 if eval "$MISSING --run true"; then
2119 am_missing_run="$MISSING --run "
2122 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2123 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2126 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2127 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2128 if test -z "$MKDIR_P"; then
2129 if test "${ac_cv_path_mkdir+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2136 test -z "$as_dir" && as_dir=.
2137 for ac_prog in mkdir gmkdir; do
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2141 'mkdir (GNU coreutils) '* | \
2142 'mkdir (coreutils) '* | \
2143 'mkdir (fileutils) '4.1*)
2144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2154 if test "${ac_cv_path_mkdir+set}" = set; then
2155 MKDIR_P="$ac_cv_path_mkdir -p"
2157 # As a last resort, use the slow shell script. Don't cache a
2158 # value for MKDIR_P within a source directory, because that will
2159 # break other packages using the cache if that directory is
2160 # removed, or if the value is a relative name.
2161 test -d ./--version && rmdir ./--version
2162 MKDIR_P="$ac_install_sh -d"
2165 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2166 echo "${ECHO_T}$MKDIR_P" >&6; }
2170 [\\/$]* | ?:[\\/]*) ;;
2171 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2174 for ac_prog in gawk mawk nawk awk
2176 # Extract the first word of "$ac_prog", so it can be a program name with args.
2177 set dummy $ac_prog; ac_word=$2
2178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180 if test "${ac_cv_prog_AWK+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test -n "$AWK"; then
2184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_AWK="$ac_prog"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 if test -n "$AWK"; then
2205 { echo "$as_me:$LINENO: result: $AWK" >&5
2206 echo "${ECHO_T}$AWK" >&6; }
2208 { echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6; }
2213 test -n "$AWK" && break
2216 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2217 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2218 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2219 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 cat >conftest.make <<\_ACEOF
2225 @echo '@@@%%%=$(MAKE)=@@@%%%'
2227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2230 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 eval ac_cv_prog_make_${ac_make}_set=no;;
2236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2241 { echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6; }
2243 SET_MAKE="MAKE=${MAKE-make}"
2246 rm -rf .tst 2>/dev/null
2247 mkdir .tst 2>/dev/null
2248 if test -d .tst; then
2253 rmdir .tst 2>/dev/null
2255 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2256 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2257 # is not polluted with repeated "-I."
2258 am__isrc=' -I$(srcdir)'
2259 # test to see if srcdir already configured
2260 if test -f $srcdir/config.status; then
2261 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2262 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2263 { (exit 1); exit 1; }; }
2267 # test whether we have cygpath
2268 if test -z "$CYGPATH_W"; then
2269 if (cygpath --version) >/dev/null 2>/dev/null; then
2270 CYGPATH_W='cygpath -w'
2277 # Define the identity of the package.
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE "$PACKAGE"
2287 cat >>confdefs.h <<_ACEOF
2288 #define VERSION "$VERSION"
2291 # Some tools Automake needs.
2293 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2296 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2299 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2302 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2305 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2307 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2309 # Installed binaries are usually stripped using `strip' when the user
2310 # run `make install-strip'. However `strip' might not be the right
2311 # tool to use in cross-compilation environments, therefore Automake
2312 # will honor the `STRIP' environment variable to overrule this program.
2313 if test "$cross_compiling" != no; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}strip; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_STRIP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$STRIP"; then
2323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 STRIP=$ac_cv_prog_STRIP
2343 if test -n "$STRIP"; then
2344 { echo "$as_me:$LINENO: result: $STRIP" >&5
2345 echo "${ECHO_T}$STRIP" >&6; }
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2353 if test -z "$ac_cv_prog_STRIP"; then
2355 # Extract the first word of "strip", so it can be a program name with args.
2356 set dummy strip; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 if test -n "$ac_ct_STRIP"; then
2363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_STRIP="strip"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383 if test -n "$ac_ct_STRIP"; then
2384 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2385 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2391 if test "x$ac_ct_STRIP" = x; then
2394 case $cross_compiling:$ac_tool_warned in
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2407 STRIP="$ac_cv_prog_STRIP"
2411 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2413 # We need awk for the "check" target. The system "awk" is bad on
2415 # Always define AMTAR for backward compatibility.
2417 AMTAR=${AMTAR-"${am_missing_run}tar"}
2419 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2425 ac_config_headers="$ac_config_headers config.h"
2428 { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
2429 echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
2430 # Check whether --enable-elf was given.
2431 if test "${enable_elf+set}" = set; then
2432 enableval=$enable_elf; if test "${enableval}" = yes; then
2433 { echo "$as_me:$LINENO: result: yes" >&5
2434 echo "${ECHO_T}yes" >&6; }
2436 cat >>confdefs.h <<\_ACEOF
2437 #define BUILTIN_ELF 1
2441 { echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6; }
2447 { echo "$as_me:$LINENO: result: yes" >&5
2448 echo "${ECHO_T}yes" >&6; }
2450 cat >>confdefs.h <<\_ACEOF
2451 #define BUILTIN_ELF 1
2458 { echo "$as_me:$LINENO: checking for ELF core file support" >&5
2459 echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
2460 # Check whether --enable-elf-core was given.
2461 if test "${enable_elf_core+set}" = set; then
2462 enableval=$enable_elf_core; if test "${enableval}" = yes; then
2463 { echo "$as_me:$LINENO: result: yes" >&5
2464 echo "${ECHO_T}yes" >&6; }
2466 cat >>confdefs.h <<\_ACEOF
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2477 { echo "$as_me:$LINENO: result: yes" >&5
2478 echo "${ECHO_T}yes" >&6; }
2480 cat >>confdefs.h <<\_ACEOF
2488 { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
2489 echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
2490 # Check whether --enable-fsect-man5 was given.
2491 if test "${enable_fsect_man5+set}" = set; then
2492 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
2493 { echo "$as_me:$LINENO: result: yes" >&5
2494 echo "${ECHO_T}yes" >&6; }
2497 { echo "$as_me:$LINENO: result: no" >&5
2498 echo "${ECHO_T}no" >&6; }
2503 # disable by default
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2512 if test x$fsect = x5; then
2523 cat >>confdefs.h <<\_ACEOF
2524 #define _GNU_SOURCE 1
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534 if test -n "$ac_tool_prefix"; then
2535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2573 if test -z "$ac_cv_prog_CC"; then
2575 # Extract the first word of "gcc", so it can be a program name with args.
2576 set dummy gcc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_ac_ct_CC="gcc"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603 if test -n "$ac_ct_CC"; then
2604 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2605 echo "${ECHO_T}$ac_ct_CC" >&6; }
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2611 if test "x$ac_ct_CC" = x; then
2614 case $cross_compiling:$ac_tool_warned in
2616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2617 whose name does not start with the host triplet. If you think this
2618 configuration is useful to you, please write to autoconf@gnu.org." >&5
2619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2620 whose name does not start with the host triplet. If you think this
2621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2622 ac_tool_warned=yes ;;
2630 if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}cc; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="${ac_tool_prefix}cc"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2671 if test -z "$CC"; then
2672 # Extract the first word of "cc", so it can be a program name with args.
2673 set dummy cc; ac_word=$2
2674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691 ac_prog_rejected=yes
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 if test $ac_prog_rejected = yes; then
2703 # We found a bogon in the path, so make sure we never use it.
2704 set dummy $ac_cv_prog_CC
2706 if test $# != 0; then
2707 # We chose a different compiler from the bogus one.
2708 # However, it has the same basename, so the bogon will be chosen
2709 # first if we set CC to just the basename; use the full file name.
2711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2717 if test -n "$CC"; then
2718 { echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6; }
2721 { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2727 if test -z "$CC"; then
2728 if test -n "$ac_tool_prefix"; then
2729 for ac_prog in cl.exe
2731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 { echo "$as_me:$LINENO: result: $CC" >&5
2761 echo "${ECHO_T}$CC" >&6; }
2763 { echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6; }
2768 test -n "$CC" && break
2771 if test -z "$CC"; then
2773 for ac_prog in cl.exe
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$ac_ct_CC"; then
2783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_ac_ct_CC="$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803 if test -n "$ac_ct_CC"; then
2804 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2805 echo "${ECHO_T}$ac_ct_CC" >&6; }
2807 { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2812 test -n "$ac_ct_CC" && break
2815 if test "x$ac_ct_CC" = x; then
2818 case $cross_compiling:$ac_tool_warned in
2820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet. If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&5
2823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2824 whose name does not start with the host triplet. If you think this
2825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2826 ac_tool_warned=yes ;;
2835 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: no acceptable C compiler found in \$PATH
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2841 # Provide some information about the compiler.
2842 echo "$as_me:$LINENO: checking for C compiler version" >&5
2843 ac_compiler=`set X $ac_compile; echo $2`
2844 { (ac_try="$ac_compiler --version >&5"
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_compiler --version >&5") 2>&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2854 { (ac_try="$ac_compiler -v >&5"
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2860 (eval "$ac_compiler -v >&5") 2>&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }
2864 { (ac_try="$ac_compiler -V >&5"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compiler -V >&5") 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2875 cat >conftest.$ac_ext <<_ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2890 ac_clean_files_save=$ac_clean_files
2891 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2892 # Try to create an executable without -o first, disregard a.out.
2893 # It will help us diagnose broken compilers, and finding out an intuition
2895 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2896 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2897 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2899 # List of possible output files, starting from the most likely.
2900 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2901 # only as a last resort. b.out is created by i960 compilers.
2902 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2904 # The IRIX 6 linker writes into existing files which may not be
2905 # executable, retaining their permissions. Remove them first so a
2906 # subsequent execution test works.
2908 for ac_file in $ac_files
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2917 if { (ac_try="$ac_link_default"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_link_default") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; then
2927 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2928 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2929 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2930 # so that the user can short-circuit this test for compilers unknown to
2932 for ac_file in $ac_files ''
2934 test -f "$ac_file" || continue
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2939 # We found the default executable, but exeext='' is most
2943 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2945 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2947 # We set ac_cv_exeext here because the later test for it is not
2948 # safe: cross compilers may not add the suffix if given an `-o'
2949 # argument, so we may need to know it at that point already.
2950 # Even if this section looks crufty: it has the advantage of
2957 test "$ac_cv_exeext" = no && ac_cv_exeext=
2963 { echo "$as_me:$LINENO: result: $ac_file" >&5
2964 echo "${ECHO_T}$ac_file" >&6; }
2965 if test -z "$ac_file"; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: C compiler cannot create executables
2972 See \`config.log' for more details." >&2;}
2973 { (exit 77); exit 77; }; }
2976 ac_exeext=$ac_cv_exeext
2978 # Check that the compiler produces executables we can run. If not, either
2979 # the compiler is broken, or we cross compile.
2980 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2981 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2982 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2983 # If not cross compiling, check that we can run a simple program.
2984 if test "$cross_compiling" != yes; then
2985 if { ac_try='./$ac_file'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2997 if test "$cross_compiling" = maybe; then
3000 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3001 If you meant to cross compile, use \`--host'.
3002 See \`config.log' for more details." >&5
3003 echo "$as_me: error: cannot run C compiled programs.
3004 If you meant to cross compile, use \`--host'.
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3010 { echo "$as_me:$LINENO: result: yes" >&5
3011 echo "${ECHO_T}yes" >&6; }
3013 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3014 ac_clean_files=$ac_clean_files_save
3015 # Check that the compiler produces executables we can run. If not, either
3016 # the compiler is broken, or we cross compile.
3017 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3018 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3019 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3020 echo "${ECHO_T}$cross_compiling" >&6; }
3022 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3023 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3024 if { (ac_try="$ac_link"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_link") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; then
3034 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3035 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3036 # work properly (i.e., refer to `conftest.exe'), while it won't with
3038 for ac_file in conftest.exe conftest conftest.*; do
3039 test -f "$ac_file" || continue
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3049 See \`config.log' for more details." >&5
3050 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3051 See \`config.log' for more details." >&2;}
3052 { (exit 1); exit 1; }; }
3055 rm -f conftest$ac_cv_exeext
3056 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3057 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3059 rm -f conftest.$ac_ext
3060 EXEEXT=$ac_cv_exeext
3062 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3063 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3064 if test "${ac_cv_objext+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.o conftest.obj
3083 if { (ac_try="$ac_compile"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 for ac_file in conftest.o conftest.obj conftest.*; do
3094 test -f "$ac_file" || continue;
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3108 See \`config.log' for more details." >&2;}
3109 { (exit 1); exit 1; }; }
3112 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3114 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3115 echo "${ECHO_T}$ac_cv_objext" >&6; }
3116 OBJEXT=$ac_cv_objext
3118 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3119 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3120 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3150 grep -v '^ *+' conftest.er1 >conftest.err
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3171 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3172 GCC=`test $ac_compiler_gnu = yes && echo yes`
3173 ac_test_CFLAGS=${CFLAGS+set}
3174 ac_save_CFLAGS=$CFLAGS
3175 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3176 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3177 if test "${ac_cv_prog_cc_g+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 ac_save_c_werror_flag=$ac_c_werror_flag
3181 ac_c_werror_flag=yes
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3237 rm -f conftest.$ac_objext
3238 if { (ac_try="$ac_compile"
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3276 rm -f conftest.$ac_objext
3277 if { (ac_try="$ac_compile"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3285 grep -v '^ *+' conftest.er1 >conftest.err
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_c_werror_flag=$ac_save_c_werror_flag
3310 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3311 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3312 if test "$ac_test_CFLAGS" = set; then
3313 CFLAGS=$ac_save_CFLAGS
3314 elif test $ac_cv_prog_cc_g = yes; then
3315 if test "$GCC" = yes; then
3321 if test "$GCC" = yes; then
3327 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3328 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_cc_c89+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 ac_cv_prog_cc_c89=no
3334 cat >conftest.$ac_ext <<_ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3342 #include <sys/types.h>
3343 #include <sys/stat.h>
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3358 s = g (p, va_arg (v,int));
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394 CC="$ac_save_CC $ac_arg"
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_compile") 2>conftest.er1
3404 grep -v '^ *+' conftest.er1 >conftest.err
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
3412 ac_cv_prog_cc_c89=$ac_arg
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3420 rm -f core conftest.err conftest.$ac_objext
3421 test "x$ac_cv_prog_cc_c89" != "xno" && break
3423 rm -f conftest.$ac_ext
3428 case "x$ac_cv_prog_cc_c89" in
3430 { echo "$as_me:$LINENO: result: none needed" >&5
3431 echo "${ECHO_T}none needed" >&6; } ;;
3433 { echo "$as_me:$LINENO: result: unsupported" >&5
3434 echo "${ECHO_T}unsupported" >&6; } ;;
3436 CC="$CC $ac_cv_prog_cc_c89"
3437 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3438 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 DEPDIR="${am__leading_dot}deps"
3449 ac_config_commands="$ac_config_commands depfiles"
3452 am_make=${MAKE-make}
3453 cat > confinc << 'END'
3458 # If we don't find an include directive, just comment out the code.
3459 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3460 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3464 # First try GNU make style include.
3465 echo "include confinc" > confmf
3466 # We grep out `Entering directory' and `Leaving directory'
3467 # messages which can occur if `w' ends up in MAKEFLAGS.
3468 # In particular we don't look at `^make:' because GNU make might
3469 # be invoked under some other name (usually "gmake"), in which
3470 # case it prints its new name instead of `make'.
3471 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3476 # Now try BSD make style include.
3477 if test "$am__include" = "#"; then
3478 echo '.include "confinc"' > confmf
3479 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3480 am__include=.include
3487 { echo "$as_me:$LINENO: result: $_am_result" >&5
3488 echo "${ECHO_T}$_am_result" >&6; }
3489 rm -f confinc confmf
3491 # Check whether --enable-dependency-tracking was given.
3492 if test "${enable_dependency_tracking+set}" = set; then
3493 enableval=$enable_dependency_tracking;
3496 if test "x$enable_dependency_tracking" != xno; then
3497 am_depcomp="$ac_aux_dir/depcomp"
3500 if test "x$enable_dependency_tracking" != xno; then
3510 depcc="$CC" am_compiler_list=
3512 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3513 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3514 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3518 # We make a subdir and do the tests there. Otherwise we can end up
3519 # making bogus files that we don't know about and never remove. For
3520 # instance it was reported that on HP-UX the gcc test will end up
3521 # making a dummy file named `D' -- because `-MD' means `put the output
3524 # Copy depcomp to subdir because otherwise we won't find it if we're
3525 # using a relative directory.
3526 cp "$am_depcomp" conftest.dir
3528 # We will build objects and dependencies in a subdirectory because
3529 # it helps to detect inapplicable dependency modes. For instance
3530 # both Tru64's cc and ICC support -MD to output dependencies as a
3531 # side effect of compilation, but ICC will put the dependencies in
3532 # the current directory while Tru64 will put them in the object
3536 am_cv_CC_dependencies_compiler_type=none
3537 if test "$am_compiler_list" = ""; then
3538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3540 for depmode in $am_compiler_list; do
3541 # Setup a source with many dependencies, because some compilers
3542 # like to wrap large dependency lists on column 80 (with \), and
3543 # we should not choose a depcomp mode which is confused by this.
3545 # We need to recreate these files for each test, as the compiler may
3546 # overwrite some of them when testing with obscure command lines.
3547 # This happens at least with the AIX C compiler.
3549 for i in 1 2 3 4 5 6; do
3550 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3551 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3552 # Solaris 8's {/usr,}/bin/sh.
3553 touch sub/conftst$i.h
3555 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3559 # after this tag, mechanisms are not by side-effect, so they'll
3560 # only be used when explicitly requested
3561 if test "x$enable_dependency_tracking" = xyes; then
3569 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3570 # mode. It turns out that the SunPro C++ compiler does not properly
3571 # handle `-M -o', and we need to detect this.
3572 if depmode=$depmode \
3573 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3574 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3575 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3576 >/dev/null 2>conftest.err &&
3577 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3579 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3581 # icc doesn't choke on unknown options, it will just issue warnings
3582 # or remarks (even with -Werror). So we grep stderr for any message
3583 # that says an option was ignored or not supported.
3584 # When given -MP, icc 7.0 and 7.1 complain thusly:
3585 # icc: Command line warning: ignoring option '-M'; no argument required
3586 # The diagnosis changed in icc 8.0:
3587 # icc: Command line remark: option '-MP' not supported
3588 if (grep 'ignoring option' conftest.err ||
3589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3590 am_cv_CC_dependencies_compiler_type=$depmode
3599 am_cv_CC_dependencies_compiler_type=none
3603 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3604 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3605 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3608 test "x$enable_dependency_tracking" != xno \
3609 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3611 am__fastdepCC_FALSE='#'
3613 am__fastdepCC_TRUE='#'
3614 am__fastdepCC_FALSE=
3618 if test "x$CC" != xcc; then
3619 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3620 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3622 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3623 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3625 set dummy $CC; ac_cc=`echo $2 |
3626 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3627 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3645 # Make sure it works both with $CC and with simple cc.
3646 # We do the test twice because some compilers refuse to overwrite an
3647 # existing .o file with -o, though they will create one.
3648 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3650 if { (case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655 (eval "$ac_try") 2>&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_try") 2>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); };
3669 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3670 if test "x$CC" != xcc; then
3671 # Test first that cc exists at all.
3672 if { ac_try='cc -c conftest.$ac_ext >&5'
3673 { (case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_try") 2>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3684 if { (case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_try") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); };
3706 # cc exists but doesn't like -o.
3707 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3712 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3714 rm -f core conftest*
3717 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3718 { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3721 { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3724 cat >>confdefs.h <<\_ACEOF
3725 #define NO_MINUS_C_MINUS_O 1
3730 # FIXME: we rely on the cache variable name because
3731 # there is no other way.
3733 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3735 # Losing compiler, so override with the script.
3736 # FIXME: It is wrong to rewrite CC.
3737 # But if we don't then we get into trouble of one sort or another.
3738 # A longer-term fix would be to have automake use am__CC in this case,
3739 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3740 CC="$am_aux_dir/compile $CC"
3744 # Find a good install program. We prefer a C program (faster),
3745 # so one script is as good as another. But avoid the broken or
3746 # incompatible versions:
3747 # SysV /etc/install, /usr/sbin/install
3748 # SunOS /usr/etc/install
3749 # IRIX /sbin/install
3751 # AmigaOS /C/install, which installs bootblocks on floppy discs
3752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755 # OS/2's system install, which has a completely different semantic
3756 # ./install, which can be erroneously created by make from ./install.sh.
3757 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3758 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3759 if test -z "$INSTALL"; then
3760 if test "${ac_cv_path_install+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir=.
3768 # Account for people who put trailing slashes in PATH elements.
3770 ./ | .// | /cC/* | \
3771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3772 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3775 # OSF1 and SCO ODT 3.0 have their own names for install.
3776 # Don't use installbsd from OSF since it installs stuff as root
3778 for ac_prog in ginstall scoinst install; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3781 if test $ac_prog = install &&
3782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3783 # AIX install. It has an incompatible calling convention.
3785 elif test $ac_prog = install &&
3786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3787 # program-specific install script used by HP pwplus--don't use.
3790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3803 if test "${ac_cv_path_install+set}" = set; then
3804 INSTALL=$ac_cv_path_install
3806 # As a last resort, use the slow shell script. Don't cache a
3807 # value for INSTALL within a source directory, because that will
3808 # break other packages using the cache if that directory is
3809 # removed, or if the value is a relative name.
3810 INSTALL=$ac_install_sh
3813 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3814 echo "${ECHO_T}$INSTALL" >&6; }
3816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3817 # It thinks the first close brace ends the variable substitution.
3818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3822 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3824 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3825 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3827 if test "$LN_S" = "ln -s"; then
3828 { echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6; }
3831 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3832 echo "${ECHO_T}no, using $LN_S" >&6; }
3835 # Check whether --enable-shared was given.
3836 if test "${enable_shared+set}" = set; then
3837 enableval=$enable_shared; p=${PACKAGE-default}
3839 yes) enable_shared=yes ;;
3840 no) enable_shared=no ;;
3843 # Look at the argument we got. We use all the common list separators.
3844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3845 for pkg in $enableval; do
3847 if test "X$pkg" = "X$p"; then
3859 # Check whether --enable-static was given.
3860 if test "${enable_static+set}" = set; then
3861 enableval=$enable_static; p=${PACKAGE-default}
3863 yes) enable_static=yes ;;
3864 no) enable_static=no ;;
3867 # Look at the argument we got. We use all the common list separators.
3868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3869 for pkg in $enableval; do
3871 if test "X$pkg" = "X$p"; then
3883 # Check whether --enable-fast-install was given.
3884 if test "${enable_fast_install+set}" = set; then
3885 enableval=$enable_fast_install; p=${PACKAGE-default}
3887 yes) enable_fast_install=yes ;;
3888 no) enable_fast_install=no ;;
3890 enable_fast_install=no
3891 # Look at the argument we got. We use all the common list separators.
3892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3893 for pkg in $enableval; do
3895 if test "X$pkg" = "X$p"; then
3896 enable_fast_install=yes
3903 enable_fast_install=yes
3907 # Make sure we can run config.sub.
3908 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3909 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3910 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3911 { (exit 1); exit 1; }; }
3913 { echo "$as_me:$LINENO: checking build system type" >&5
3914 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3915 if test "${ac_cv_build+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_build_alias=$build_alias
3919 test "x$ac_build_alias" = x &&
3920 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3921 test "x$ac_build_alias" = x &&
3922 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3923 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3924 { (exit 1); exit 1; }; }
3925 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3926 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3927 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3928 { (exit 1); exit 1; }; }
3931 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3932 echo "${ECHO_T}$ac_cv_build" >&6; }
3933 case $ac_cv_build in
3935 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3936 echo "$as_me: error: invalid value of canonical build" >&2;}
3937 { (exit 1); exit 1; }; };;
3940 ac_save_IFS=$IFS; IFS='-'
3946 # Remember, the first character of IFS is used to create $*,
3947 # except with old shells:
3950 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3953 { echo "$as_me:$LINENO: checking host system type" >&5
3954 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3955 if test "${ac_cv_host+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test "x$host_alias" = x; then
3959 ac_cv_host=$ac_cv_build
3961 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3962 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3963 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3964 { (exit 1); exit 1; }; }
3968 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3969 echo "${ECHO_T}$ac_cv_host" >&6; }
3972 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3973 echo "$as_me: error: invalid value of canonical host" >&2;}
3974 { (exit 1); exit 1; }; };;
3977 ac_save_IFS=$IFS; IFS='-'
3983 # Remember, the first character of IFS is used to create $*,
3984 # except with old shells:
3987 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3990 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3991 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3992 if test "${lt_cv_path_SED+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 # Loop through the user's path and test for sed and gsed.
3996 # Then use that list of sed's as ones to test for truncation.
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir=.
4002 for lt_ac_prog in sed gsed; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4005 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4012 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4013 # along with /bin/sed that truncates output.
4014 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4015 test ! -f $lt_ac_sed && continue
4016 cat /dev/null > conftest.in
4018 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4019 # Check for GNU sed and select it if it is found.
4020 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4021 lt_cv_path_SED=$lt_ac_sed
4025 cat conftest.in conftest.in >conftest.tmp
4026 mv conftest.tmp conftest.in
4027 cp conftest.in conftest.nl
4029 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4030 cmp -s conftest.out conftest.nl || break
4031 # 10000 chars as input seems more than enough
4032 test $lt_ac_count -gt 10 && break
4033 lt_ac_count=`expr $lt_ac_count + 1`
4034 if test $lt_ac_count -gt $lt_ac_max; then
4035 lt_ac_max=$lt_ac_count
4036 lt_cv_path_SED=$lt_ac_sed
4044 { echo "$as_me:$LINENO: result: $SED" >&5
4045 echo "${ECHO_T}$SED" >&6; }
4047 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4048 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4049 if test "${ac_cv_path_GREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 # Extract the first word of "grep ggrep" to use in msg output
4053 if test -z "$GREP"; then
4054 set dummy grep ggrep; ac_prog_name=$2
4055 if test "${ac_cv_path_GREP+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 ac_path_GREP_found=false
4059 # Loop through the user's path and test for each of PROGNAME-LIST
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 test -z "$as_dir" && as_dir=.
4065 for ac_prog in grep ggrep; do
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4068 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4069 # Check for GNU ac_path_GREP and select it if it is found.
4070 # Check for GNU $ac_path_GREP
4071 case `"$ac_path_GREP" --version 2>&1` in
4073 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4076 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4079 cat "conftest.in" "conftest.in" >"conftest.tmp"
4080 mv "conftest.tmp" "conftest.in"
4081 cp "conftest.in" "conftest.nl"
4082 echo 'GREP' >> "conftest.nl"
4083 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085 ac_count=`expr $ac_count + 1`
4086 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4087 # Best one so far, save it but keep looking for a better one
4088 ac_cv_path_GREP="$ac_path_GREP"
4089 ac_path_GREP_max=$ac_count
4091 # 10*(2^10) chars as input seems more than enough
4092 test $ac_count -gt 10 && break
4094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 $ac_path_GREP_found && break 3
4108 GREP="$ac_cv_path_GREP"
4109 if test -z "$GREP"; then
4110 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4111 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4112 { (exit 1); exit 1; }; }
4116 ac_cv_path_GREP=$GREP
4121 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4122 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4123 GREP="$ac_cv_path_GREP"
4126 { echo "$as_me:$LINENO: checking for egrep" >&5
4127 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4128 if test "${ac_cv_path_EGREP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4132 then ac_cv_path_EGREP="$GREP -E"
4134 # Extract the first word of "egrep" to use in msg output
4135 if test -z "$EGREP"; then
4136 set dummy egrep; ac_prog_name=$2
4137 if test "${ac_cv_path_EGREP+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 ac_path_EGREP_found=false
4141 # Loop through the user's path and test for each of PROGNAME-LIST
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4146 test -z "$as_dir" && as_dir=.
4147 for ac_prog in egrep; do
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4150 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4151 # Check for GNU ac_path_EGREP and select it if it is found.
4152 # Check for GNU $ac_path_EGREP
4153 case `"$ac_path_EGREP" --version 2>&1` in
4155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4158 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4161 cat "conftest.in" "conftest.in" >"conftest.tmp"
4162 mv "conftest.tmp" "conftest.in"
4163 cp "conftest.in" "conftest.nl"
4164 echo 'EGREP' >> "conftest.nl"
4165 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4167 ac_count=`expr $ac_count + 1`
4168 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4169 # Best one so far, save it but keep looking for a better one
4170 ac_cv_path_EGREP="$ac_path_EGREP"
4171 ac_path_EGREP_max=$ac_count
4173 # 10*(2^10) chars as input seems more than enough
4174 test $ac_count -gt 10 && break
4176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4180 $ac_path_EGREP_found && break 3
4190 EGREP="$ac_cv_path_EGREP"
4191 if test -z "$EGREP"; then
4192 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4193 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4194 { (exit 1); exit 1; }; }
4198 ac_cv_path_EGREP=$EGREP
4204 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4205 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4206 EGREP="$ac_cv_path_EGREP"
4210 # Check whether --with-gnu-ld was given.
4211 if test "${with_gnu_ld+set}" = set; then
4212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4218 if test "$GCC" = yes; then
4219 # Check if gcc -print-prog-name=ld gives a path.
4220 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4221 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4224 # gcc leaves a trailing carriage return which upsets mingw
4225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4230 # Accept absolute paths.
4232 re_direlt='/[^/][^/]*/\.\./'
4233 # Canonicalize the pathname of ld
4234 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4235 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4236 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4238 test -z "$LD" && LD="$ac_prog"
4241 # If it fails, then pretend we aren't using GCC.
4245 # If it is relative, then search for the first ld in PATH.
4249 elif test "$with_gnu_ld" = yes; then
4250 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4251 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4253 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4254 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4256 if test "${lt_cv_path_LD+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 if test -z "$LD"; then
4260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4261 for ac_dir in $PATH; do
4263 test -z "$ac_dir" && ac_dir=.
4264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4265 lt_cv_path_LD="$ac_dir/$ac_prog"
4266 # Check to see if the program is GNU ld. I'd rather use --version,
4267 # but apparently some GNU ld's only accept -v.
4268 # Break only if it was the GNU/non-GNU ld that we prefer.
4269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4270 *GNU* | *'with BFD'*)
4271 test "$with_gnu_ld" != no && break
4274 test "$with_gnu_ld" != yes && break
4281 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4286 if test -n "$LD"; then
4287 { echo "$as_me:$LINENO: result: $LD" >&5
4288 echo "${ECHO_T}$LD" >&6; }
4290 { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4293 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4294 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4295 { (exit 1); exit 1; }; }
4296 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4297 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4298 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4302 case `$LD -v 2>&1 </dev/null` in
4303 *GNU* | *'with BFD'*)
4304 lt_cv_prog_gnu_ld=yes
4307 lt_cv_prog_gnu_ld=no
4311 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4312 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4313 with_gnu_ld=$lt_cv_prog_gnu_ld
4316 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4317 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4318 if test "${lt_cv_ld_reload_flag+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 lt_cv_ld_reload_flag='-r'
4323 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4324 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4325 reload_flag=$lt_cv_ld_reload_flag
4326 case $reload_flag in
4328 *) reload_flag=" $reload_flag" ;;
4330 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4333 if test "$GCC" = yes; then
4334 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4336 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4341 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4342 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4343 if test "${lt_cv_path_NM+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 if test -n "$NM"; then
4347 # Let the user override the test.
4350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4351 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4353 test -z "$ac_dir" && ac_dir=.
4354 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4355 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4356 # Check to see if the nm accepts a BSD-compat flag.
4357 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4358 # nm: unknown option "B" ignored
4359 # Tru64's nm complains that /dev/null is an invalid object file
4360 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4361 */dev/null* | *'Invalid file or object type'*)
4362 lt_cv_path_NM="$tmp_nm -B"
4366 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4368 lt_cv_path_NM="$tmp_nm -p"
4372 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4373 continue # so that we can try to find one that supports BSD flags
4380 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4383 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4384 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4387 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4388 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4389 if test "${lt_cv_deplibs_check_method+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 lt_cv_file_magic_cmd='$MAGIC_CMD'
4393 lt_cv_file_magic_test_file=
4394 lt_cv_deplibs_check_method='unknown'
4395 # Need to set the preceding variable on all platforms that support
4396 # interlibrary dependencies.
4397 # 'none' -- dependencies not supported.
4398 # `unknown' -- same as none, but documents that we really don't know.
4399 # 'pass_all' -- all dependencies passed with no checks.
4400 # 'test_compile' -- check by making test program.
4401 # 'file_magic [[regex]]' -- check by looking for files in library path
4402 # which responds to the $file_magic_cmd with a given extended regex.
4403 # If you have `file' or equivalent on your system and you're not sure
4404 # whether `pass_all' will *always* work, you probably want this one.
4408 lt_cv_deplibs_check_method=pass_all
4412 lt_cv_deplibs_check_method=pass_all
4416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4417 lt_cv_file_magic_cmd='/usr/bin/file -L'
4418 lt_cv_file_magic_test_file=/shlib/libc.so
4422 # func_win32_libid is a shell function defined in ltmain.sh
4423 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4424 lt_cv_file_magic_cmd='func_win32_libid'
4428 # Base MSYS/MinGW do not provide the 'file' command needed by
4429 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4430 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4431 lt_cv_file_magic_cmd='$OBJDUMP -f'
4434 darwin* | rhapsody*)
4435 lt_cv_deplibs_check_method=pass_all
4438 freebsd* | kfreebsd*-gnu | dragonfly*)
4439 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4442 # Not sure whether the presence of OpenBSD here was a mistake.
4443 # Let's accept both of them until this is cleared up.
4444 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4445 lt_cv_file_magic_cmd=/usr/bin/file
4446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4450 lt_cv_deplibs_check_method=pass_all
4455 lt_cv_deplibs_check_method=pass_all
4458 hpux10.20* | hpux11*)
4459 lt_cv_file_magic_cmd=/usr/bin/file
4462 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4463 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4466 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]'
4467 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4470 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4471 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4476 irix5* | irix6* | nonstopux*)
4478 *-32|*"-32 ") libmagic=32-bit;;
4479 *-n32|*"-n32 ") libmagic=N32;;
4480 *-64|*"-64 ") libmagic=64-bit;;
4481 *) libmagic=never-match;;
4483 lt_cv_deplibs_check_method=pass_all
4486 # This must be Linux ELF.
4488 lt_cv_deplibs_check_method=pass_all
4492 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4501 lt_cv_file_magic_cmd=/usr/bin/file
4502 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4506 lt_cv_deplibs_check_method=unknown
4510 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4517 osf3* | osf4* | osf5*)
4518 lt_cv_deplibs_check_method=pass_all
4522 lt_cv_deplibs_check_method=pass_all
4526 lt_cv_deplibs_check_method=pass_all
4529 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4530 case $host_vendor in
4532 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]'
4533 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4536 lt_cv_deplibs_check_method=pass_all
4539 lt_cv_file_magic_cmd='/bin/file'
4540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4543 lt_cv_file_magic_cmd='/bin/file'
4544 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4545 lt_cv_file_magic_test_file=/lib/libc.so
4548 lt_cv_deplibs_check_method=pass_all
4553 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4554 lt_cv_deplibs_check_method=pass_all
4559 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4560 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4561 file_magic_cmd=$lt_cv_file_magic_cmd
4562 deplibs_check_method=$lt_cv_deplibs_check_method
4563 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4568 # If no C compiler was specified, use CC.
4571 # Allow CC to be a program name with arguments.
4575 # Check whether --enable-libtool-lock was given.
4576 if test "${enable_libtool_lock+set}" = set; then
4577 enableval=$enable_libtool_lock;
4580 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4582 # Some flags need to be propagated to the compiler or linker for good
4586 # Find out which ABI we are using.
4587 echo 'int i;' > conftest.$ac_ext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; then
4593 case `/usr/bin/file conftest.$ac_objext` in
4605 # Find out which ABI we are using.
4606 echo '#line 4606 "configure"' > conftest.$ac_ext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; then
4612 if test "$lt_cv_prog_gnu_ld" = yes; then
4613 case `/usr/bin/file conftest.$ac_objext` in
4615 LD="${LD-ld} -melf32bsmip"
4618 LD="${LD-ld} -melf32bmipn32"
4621 LD="${LD-ld} -melf64bmip"
4625 case `/usr/bin/file conftest.$ac_objext` in
4641 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4642 # Find out which ABI we are using.
4643 echo 'int i;' > conftest.$ac_ext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645 (eval $ac_compile) 2>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; then
4649 case "`/usr/bin/file conftest.o`" in
4653 LD="${LD-ld} -m elf_i386"
4655 ppc64-*linux*|powerpc64-*linux*)
4656 LD="${LD-ld} -m elf32ppclinux"
4659 LD="${LD-ld} -m elf_s390"
4662 LD="${LD-ld} -m elf32_sparc"
4669 LD="${LD-ld} -m elf_x86_64"
4671 ppc*-*linux*|powerpc*-*linux*)
4672 LD="${LD-ld} -m elf64ppc"
4675 LD="${LD-ld} -m elf64_s390"
4678 LD="${LD-ld} -m elf64_sparc"
4688 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4689 SAVE_CFLAGS="$CFLAGS"
4690 CFLAGS="$CFLAGS -belf"
4691 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4692 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4693 if test "${lt_cv_cc_needs_belf+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_cpp='$CPP $CPPFLAGS'
4698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4717 rm -f conftest.$ac_objext conftest$ac_exeext
4718 if { (ac_try="$ac_link"
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_link") 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } && {
4731 test -z "$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4733 } && test -s conftest$ac_exeext &&
4734 $as_test_x conftest$ac_exeext; then
4735 lt_cv_cc_needs_belf=yes
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 lt_cv_cc_needs_belf=no
4743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4744 conftest$ac_exeext conftest.$ac_ext
4746 ac_cpp='$CPP $CPPFLAGS'
4747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4753 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4754 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4755 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4756 CFLAGS="$SAVE_CFLAGS"
4762 need_locks="$enable_libtool_lock"
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4771 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4772 # On Suns, sometimes $CPP names a directory.
4773 if test -n "$CPP" && test -d "$CPP"; then
4776 if test -z "$CPP"; then
4777 if test "${ac_cv_prog_CPP+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 # Double quotes because CPP needs to be expanded
4781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4784 for ac_c_preproc_warn_flag in '' yes
4786 # Use a header file that comes with gcc, so configuring glibc
4787 # with a fresh cross-compiler works.
4788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4789 # <limits.h> exists even on freestanding compilers.
4790 # On the NeXT, cc -E runs the code through the compiler's parser,
4791 # not just through cpp. "Syntax error" is here to catch this case.
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4799 # include <limits.h>
4801 # include <assert.h>
4805 if { (ac_try="$ac_cpp conftest.$ac_ext"
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4813 grep -v '^ *+' conftest.er1 >conftest.err
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } >/dev/null && {
4818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 # Broken: fails on valid input.
4830 rm -f conftest.err conftest.$ac_ext
4832 # OK, works on sane cases. Now check whether nonexistent headers
4833 # can be detected and how.
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 #include <ac_nonexistent.h>
4842 if { (ac_try="$ac_cpp conftest.$ac_ext"
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null && {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4858 # Broken: success on invalid input.
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 # Passes both tests.
4869 rm -f conftest.err conftest.$ac_ext
4872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873 rm -f conftest.err conftest.$ac_ext
4874 if $ac_preproc_ok; then
4886 { echo "$as_me:$LINENO: result: $CPP" >&5
4887 echo "${ECHO_T}$CPP" >&6; }
4889 for ac_c_preproc_warn_flag in '' yes
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat >conftest.$ac_ext <<_ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4904 # include <limits.h>
4906 # include <assert.h>
4910 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } >/dev/null && {
4923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4928 echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 # Broken: fails on valid input.
4935 rm -f conftest.err conftest.$ac_ext
4937 # OK, works on sane cases. Now check whether nonexistent headers
4938 # can be detected and how.
4939 cat >conftest.$ac_ext <<_ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 #include <ac_nonexistent.h>
4947 if { (ac_try="$ac_cpp conftest.$ac_ext"
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4955 grep -v '^ *+' conftest.er1 >conftest.err
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null && {
4960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4963 # Broken: success on invalid input.
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4969 # Passes both tests.
4974 rm -f conftest.err conftest.$ac_ext
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.err conftest.$ac_ext
4979 if $ac_preproc_ok; then
4982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4983 See \`config.log' for more details." >&5
4984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4985 See \`config.log' for more details." >&2;}
4986 { (exit 1); exit 1; }; }
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4997 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4998 if test "${ac_cv_header_stdc+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5037 ac_cv_header_stdc=yes
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 ac_cv_header_stdc=no
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 if test $ac_cv_header_stdc = yes; then
5048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5059 $EGREP "memchr" >/dev/null 2>&1; then
5062 ac_cv_header_stdc=no
5068 if test $ac_cv_header_stdc = yes; then
5069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080 $EGREP "free" >/dev/null 2>&1; then
5083 ac_cv_header_stdc=no
5089 if test $ac_cv_header_stdc = yes; then
5090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5091 if test "$cross_compiling" = yes; then
5094 cat >conftest.$ac_ext <<_ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5102 #if ((' ' & 0x0FF) == 0x020)
5103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5106 # define ISLOWER(c) \
5107 (('a' <= (c) && (c) <= 'i') \
5108 || ('j' <= (c) && (c) <= 'r') \
5109 || ('s' <= (c) && (c) <= 'z'))
5110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5118 for (i = 0; i < 256; i++)
5119 if (XOR (islower (i), ISLOWER (i))
5120 || toupper (i) != TOUPPER (i))
5125 rm -f conftest$ac_exeext
5126 if { (ac_try="$ac_link"
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_link") 2>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5136 { (case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_try") 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5147 echo "$as_me: program exited with status $ac_status" >&5
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5152 ac_cv_header_stdc=no
5154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5160 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5161 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5162 if test $ac_cv_header_stdc = yes; then
5164 cat >>confdefs.h <<\_ACEOF
5165 #define STDC_HEADERS 1
5170 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5180 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5181 inttypes.h stdint.h unistd.h
5183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 cat >conftest.$ac_ext <<_ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 $ac_includes_default
5197 #include <$ac_header>
5199 rm -f conftest.$ac_objext
5200 if { (ac_try="$ac_compile"
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_compile") 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest.$ac_objext; then
5216 eval "$as_ac_Header=yes"
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 eval "$as_ac_Header=no"
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_res=`eval echo '${'$as_ac_Header'}'`
5227 { echo "$as_me:$LINENO: result: $ac_res" >&5
5228 echo "${ECHO_T}$ac_res" >&6; }
5229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5230 cat >>confdefs.h <<_ACEOF
5231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 for ac_header in dlfcn.h
5242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 ac_res=`eval echo '${'$as_ac_Header'}'`
5250 { echo "$as_me:$LINENO: result: $ac_res" >&5
5251 echo "${ECHO_T}$ac_res" >&6; }
5253 # Is the header compilable?
5254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 $ac_includes_default
5263 #include <$ac_header>
5265 rm -f conftest.$ac_objext
5266 if { (ac_try="$ac_compile"
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_compile") 2>conftest.er1
5274 grep -v '^ *+' conftest.er1 >conftest.err
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
5282 ac_header_compiler=yes
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 ac_header_compiler=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292 echo "${ECHO_T}$ac_header_compiler" >&6; }
5294 # Is the header present?
5295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <$ac_header>
5305 if { (ac_try="$ac_cpp conftest.$ac_ext"
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313 grep -v '^ *+' conftest.er1 >conftest.err
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } >/dev/null && {
5318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5321 ac_header_preproc=yes
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_header_preproc=no
5329 rm -f conftest.err conftest.$ac_ext
5330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331 echo "${ECHO_T}$ac_header_preproc" >&6; }
5333 # So? What about this header?
5334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5340 ac_header_preproc=yes
5343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5356 ## ---------------------------------- ##
5357 ## Report this to christos@astron.com ##
5358 ## ---------------------------------- ##
5360 ) | sed "s/^/$as_me: WARNING: /" >&2
5363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 eval "$as_ac_Header=\$ac_header_preproc"
5370 ac_res=`eval echo '${'$as_ac_Header'}'`
5371 { echo "$as_me:$LINENO: result: $ac_res" >&5
5372 echo "${ECHO_T}$ac_res" >&6; }
5375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5376 cat >>confdefs.h <<_ACEOF
5377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5385 ac_cpp='$CXXCPP $CPPFLAGS'
5386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5389 if test -z "$CXX"; then
5390 if test -n "$CCC"; then
5393 if test -n "$ac_tool_prefix"; then
5394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5400 if test "${ac_cv_prog_CXX+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 if test -n "$CXX"; then
5404 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 if test -n "$CXX"; then
5425 { echo "$as_me:$LINENO: result: $CXX" >&5
5426 echo "${ECHO_T}$CXX" >&6; }
5428 { echo "$as_me:$LINENO: result: no" >&5
5429 echo "${ECHO_T}no" >&6; }
5433 test -n "$CXX" && break
5436 if test -z "$CXX"; then
5438 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5440 # Extract the first word of "$ac_prog", so it can be a program name with args.
5441 set dummy $ac_prog; ac_word=$2
5442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 if test -n "$ac_ct_CXX"; then
5448 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_prog_ac_ct_CXX="$ac_prog"
5458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5468 if test -n "$ac_ct_CXX"; then
5469 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5470 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5472 { echo "$as_me:$LINENO: result: no" >&5
5473 echo "${ECHO_T}no" >&6; }
5477 test -n "$ac_ct_CXX" && break
5480 if test "x$ac_ct_CXX" = x; then
5483 case $cross_compiling:$ac_tool_warned in
5485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5486 whose name does not start with the host triplet. If you think this
5487 configuration is useful to you, please write to autoconf@gnu.org." >&5
5488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5489 whose name does not start with the host triplet. If you think this
5490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5491 ac_tool_warned=yes ;;
5499 # Provide some information about the compiler.
5500 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5501 ac_compiler=`set X $ac_compile; echo $2`
5502 { (ac_try="$ac_compiler --version >&5"
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compiler --version >&5") 2>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }
5512 { (ac_try="$ac_compiler -v >&5"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compiler -v >&5") 2>&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }
5522 { (ac_try="$ac_compiler -V >&5"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compiler -V >&5") 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }
5533 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5534 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5535 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5556 rm -f conftest.$ac_objext
5557 if { (ac_try="$ac_compile"
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compile") 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_cxx_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest.$ac_objext; then
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5585 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5586 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5587 GXX=`test $ac_compiler_gnu = yes && echo yes`
5588 ac_test_CXXFLAGS=${CXXFLAGS+set}
5589 ac_save_CXXFLAGS=$CXXFLAGS
5590 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5591 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5592 if test "${ac_cv_prog_cxx_g+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5596 ac_cxx_werror_flag=yes
5599 cat >conftest.$ac_ext <<_ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1 >conftest.err
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_cxx_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_prog_cxx_g=yes
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_cxx_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5700 grep -v '^ *+' conftest.er1 >conftest.err
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_cxx_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 ac_cv_prog_cxx_g=yes
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5725 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5726 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5727 if test "$ac_test_CXXFLAGS" = set; then
5728 CXXFLAGS=$ac_save_CXXFLAGS
5729 elif test $ac_cv_prog_cxx_g = yes; then
5730 if test "$GXX" = yes; then
5736 if test "$GXX" = yes; then
5743 ac_cpp='$CXXCPP $CPPFLAGS'
5744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748 depcc="$CXX" am_compiler_list=
5750 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5751 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5752 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5756 # We make a subdir and do the tests there. Otherwise we can end up
5757 # making bogus files that we don't know about and never remove. For
5758 # instance it was reported that on HP-UX the gcc test will end up
5759 # making a dummy file named `D' -- because `-MD' means `put the output
5762 # Copy depcomp to subdir because otherwise we won't find it if we're
5763 # using a relative directory.
5764 cp "$am_depcomp" conftest.dir
5766 # We will build objects and dependencies in a subdirectory because
5767 # it helps to detect inapplicable dependency modes. For instance
5768 # both Tru64's cc and ICC support -MD to output dependencies as a
5769 # side effect of compilation, but ICC will put the dependencies in
5770 # the current directory while Tru64 will put them in the object
5774 am_cv_CXX_dependencies_compiler_type=none
5775 if test "$am_compiler_list" = ""; then
5776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5778 for depmode in $am_compiler_list; do
5779 # Setup a source with many dependencies, because some compilers
5780 # like to wrap large dependency lists on column 80 (with \), and
5781 # we should not choose a depcomp mode which is confused by this.
5783 # We need to recreate these files for each test, as the compiler may
5784 # overwrite some of them when testing with obscure command lines.
5785 # This happens at least with the AIX C compiler.
5787 for i in 1 2 3 4 5 6; do
5788 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5789 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5790 # Solaris 8's {/usr,}/bin/sh.
5791 touch sub/conftst$i.h
5793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5797 # after this tag, mechanisms are not by side-effect, so they'll
5798 # only be used when explicitly requested
5799 if test "x$enable_dependency_tracking" = xyes; then
5807 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5808 # mode. It turns out that the SunPro C++ compiler does not properly
5809 # handle `-M -o', and we need to detect this.
5810 if depmode=$depmode \
5811 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5812 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5813 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5814 >/dev/null 2>conftest.err &&
5815 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5816 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5817 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5818 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5819 # icc doesn't choke on unknown options, it will just issue warnings
5820 # or remarks (even with -Werror). So we grep stderr for any message
5821 # that says an option was ignored or not supported.
5822 # When given -MP, icc 7.0 and 7.1 complain thusly:
5823 # icc: Command line warning: ignoring option '-M'; no argument required
5824 # The diagnosis changed in icc 8.0:
5825 # icc: Command line remark: option '-MP' not supported
5826 if (grep 'ignoring option' conftest.err ||
5827 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5828 am_cv_CXX_dependencies_compiler_type=$depmode
5837 am_cv_CXX_dependencies_compiler_type=none
5841 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5842 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5843 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5846 test "x$enable_dependency_tracking" != xno \
5847 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5848 am__fastdepCXX_TRUE=
5849 am__fastdepCXX_FALSE='#'
5851 am__fastdepCXX_TRUE='#'
5852 am__fastdepCXX_FALSE=
5858 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5859 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5860 (test "X$CXX" != "Xg++"))) ; then
5862 ac_cpp='$CXXCPP $CPPFLAGS'
5863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5866 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5867 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5868 if test -z "$CXXCPP"; then
5869 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 # Double quotes because CXXCPP needs to be expanded
5873 for CXXCPP in "$CXX -E" "/lib/cpp"
5876 for ac_cxx_preproc_warn_flag in '' yes
5878 # Use a header file that comes with gcc, so configuring glibc
5879 # with a fresh cross-compiler works.
5880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5881 # <limits.h> exists even on freestanding compilers.
5882 # On the NeXT, cc -E runs the code through the compiler's parser,
5883 # not just through cpp. "Syntax error" is here to catch this case.
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5891 # include <limits.h>
5893 # include <assert.h>
5897 if { (ac_try="$ac_cpp conftest.$ac_ext"
5899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900 *) ac_try_echo=$ac_try;;
5902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5905 grep -v '^ *+' conftest.er1 >conftest.err
5907 cat conftest.err >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } >/dev/null && {
5910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5911 test ! -s conftest.err
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5918 # Broken: fails on valid input.
5922 rm -f conftest.err conftest.$ac_ext
5924 # OK, works on sane cases. Now check whether nonexistent headers
5925 # can be detected and how.
5926 cat >conftest.$ac_ext <<_ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5932 #include <ac_nonexistent.h>
5934 if { (ac_try="$ac_cpp conftest.$ac_ext"
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } >/dev/null && {
5947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5948 test ! -s conftest.err
5950 # Broken: success on invalid input.
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 # Passes both tests.
5961 rm -f conftest.err conftest.$ac_ext
5964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5965 rm -f conftest.err conftest.$ac_ext
5966 if $ac_preproc_ok; then
5971 ac_cv_prog_CXXCPP=$CXXCPP
5974 CXXCPP=$ac_cv_prog_CXXCPP
5976 ac_cv_prog_CXXCPP=$CXXCPP
5978 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5979 echo "${ECHO_T}$CXXCPP" >&6; }
5981 for ac_cxx_preproc_warn_flag in '' yes
5983 # Use a header file that comes with gcc, so configuring glibc
5984 # with a fresh cross-compiler works.
5985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5986 # <limits.h> exists even on freestanding compilers.
5987 # On the NeXT, cc -E runs the code through the compiler's parser,
5988 # not just through cpp. "Syntax error" is here to catch this case.
5989 cat >conftest.$ac_ext <<_ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5996 # include <limits.h>
5998 # include <assert.h>
6002 if { (ac_try="$ac_cpp conftest.$ac_ext"
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev/null && {
6015 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6016 test ! -s conftest.err
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023 # Broken: fails on valid input.
6027 rm -f conftest.err conftest.$ac_ext
6029 # OK, works on sane cases. Now check whether nonexistent headers
6030 # can be detected and how.
6031 cat >conftest.$ac_ext <<_ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <ac_nonexistent.h>
6039 if { (ac_try="$ac_cpp conftest.$ac_ext"
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6047 grep -v '^ *+' conftest.er1 >conftest.err
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null && {
6052 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6053 test ! -s conftest.err
6055 # Broken: success on invalid input.
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 # Passes both tests.
6066 rm -f conftest.err conftest.$ac_ext
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.err conftest.$ac_ext
6071 if $ac_preproc_ok; then
6074 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6075 See \`config.log' for more details." >&5
6076 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6077 See \`config.log' for more details." >&2;}
6078 { (exit 1); exit 1; }; }
6082 ac_cpp='$CXXCPP $CPPFLAGS'
6083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6091 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6092 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6094 if test -n "$ac_tool_prefix"; then
6095 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
6097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6101 if test "${ac_cv_prog_F77+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 if test -n "$F77"; then
6105 ac_cv_prog_F77="$F77" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 if test -n "$F77"; then
6126 { echo "$as_me:$LINENO: result: $F77" >&5
6127 echo "${ECHO_T}$F77" >&6; }
6129 { echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6; }
6134 test -n "$F77" && break
6137 if test -z "$F77"; then
6139 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
6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
6142 set dummy $ac_prog; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 if test -n "$ac_ct_F77"; then
6149 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_F77="$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6169 if test -n "$ac_ct_F77"; then
6170 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6171 echo "${ECHO_T}$ac_ct_F77" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6178 test -n "$ac_ct_F77" && break
6181 if test "x$ac_ct_F77" = x; then
6184 case $cross_compiling:$ac_tool_warned in
6186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6187 whose name does not start with the host triplet. If you think this
6188 configuration is useful to you, please write to autoconf@gnu.org." >&5
6189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6190 whose name does not start with the host triplet. If you think this
6191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6192 ac_tool_warned=yes ;;
6199 # Provide some information about the compiler.
6200 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6201 ac_compiler=`set X $ac_compile; echo $2`
6202 { (ac_try="$ac_compiler --version >&5"
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compiler --version >&5") 2>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }
6212 { (ac_try="$ac_compiler -v >&5"
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218 (eval "$ac_compiler -v >&5") 2>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }
6222 { (ac_try="$ac_compiler -V >&5"
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_compiler -V >&5") 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }
6234 # If we don't use `.F' as extension, the preprocessor is not run on the
6235 # input file. (Note that this only needs to work for GNU compilers.)
6238 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6239 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6240 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 cat >conftest.$ac_ext <<_ACEOF
6251 rm -f conftest.$ac_objext
6252 if { (ac_try="$ac_compile"
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6260 grep -v '^ *+' conftest.er1 >conftest.err
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_f77_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest.$ac_objext; then
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6280 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6281 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6283 ac_test_FFLAGS=${FFLAGS+set}
6284 ac_save_FFLAGS=$FFLAGS
6286 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6287 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6288 if test "${ac_cv_prog_f77_g+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (ac_try="$ac_compile"
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_f77_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
6314 ac_cv_prog_f77_g=yes
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6326 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6327 if test "$ac_test_FFLAGS" = set; then
6328 FFLAGS=$ac_save_FFLAGS
6329 elif test $ac_cv_prog_f77_g = yes; then
6330 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6343 G77=`test $ac_compiler_gnu = yes && echo yes`
6345 ac_cpp='$CPP $CPPFLAGS'
6346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6354 # find the maximum length of command line arguments
6355 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6356 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6357 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 # On DJGPP, this test can blow up pretty badly due to problems in libc
6366 # (any single argument exceeding 2000 bytes causes a buffer overrun
6367 # during glob expansion). Even if it were fixed, the result of this
6368 # check would be larger than it should be.
6369 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6373 # Under GNU Hurd, this test is not required because there is
6374 # no limit to the length of command line arguments.
6375 # Libtool will interpret -1 as no limit whatsoever
6376 lt_cv_sys_max_cmd_len=-1;
6380 # On Win9x/ME, this test blows up -- it succeeds, but takes
6381 # about 5 minutes as the teststring grows exponentially.
6382 # Worse, since 9x/ME are not pre-emptively multitasking,
6383 # you end up with a "frozen" computer, even though with patience
6384 # the test eventually succeeds (with a max line length of 256k).
6385 # Instead, let's just punt: use the minimum linelength reported by
6386 # all of the supported platforms: 8192 (on NT/2K/XP).
6387 lt_cv_sys_max_cmd_len=8192;
6391 # On AmigaOS with pdksh, this test takes hours, literally.
6392 # So we just punt and use a minimum line length of 8192.
6393 lt_cv_sys_max_cmd_len=8192;
6396 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6397 # This has been around since 386BSD, at least. Likely further.
6398 if test -x /sbin/sysctl; then
6399 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6400 elif test -x /usr/sbin/sysctl; then
6401 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6403 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6405 # And add a safety zone
6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6412 # nice to cause kernel panics so lets avoid the loop below.
6413 # First set a reasonable default.
6414 lt_cv_sys_max_cmd_len=16384
6416 if test -x /sbin/sysconfig; then
6417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6418 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6423 # If test is not a shell built-in, we'll probably end up computing a
6424 # maximum length that is only half of the actual maximum length, but
6426 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6427 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6428 = "XX$teststring") >/dev/null 2>&1 &&
6429 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6430 lt_cv_sys_max_cmd_len=$new_result &&
6431 test $i != 17 # 1/2 MB should be enough
6434 teststring=$teststring$teststring
6437 # Add a significant safety factor because C++ compilers can tack on massive
6438 # amounts of additional arguments before passing them to the linker.
6439 # It appears as though 1/2 is a usable value.
6440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6446 if test -n $lt_cv_sys_max_cmd_len ; then
6447 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6448 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6450 { echo "$as_me:$LINENO: result: none" >&5
6451 echo "${ECHO_T}none" >&6; }
6457 # Check for command to grab the raw symbol name followed by C symbol from nm.
6458 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6459 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6460 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 # These are sane defaults that work on at least a few old systems.
6465 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6467 # Character class describing NM global symbol codes.
6468 symcode='[BCDEGRST]'
6470 # Regexp to match symbols that can be accessed directly from C.
6471 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6473 # Transform an extracted symbol line into a proper C declaration
6474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6476 # Transform an extracted symbol line into symbol name and symbol address
6477 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'"
6479 # Define system-specific variables.
6484 cygwin* | mingw* | pw32*)
6485 symcode='[ABCDGISTW]'
6487 hpux*) # Its linker distinguishes data from code symbols
6488 if test "$host_cpu" = ia64; then
6489 symcode='[ABCDEGRST]'
6491 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6492 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'"
6495 if test "$host_cpu" = ia64; then
6496 symcode='[ABCDGIRSTW]'
6497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6498 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'"
6502 symcode='[BCDEGRST]'
6505 symcode='[BCDEGQRST]'
6515 # Handle CRLF in mingw tool chain
6519 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6523 # If we're using GNU nm, then use its standard symbol codes.
6524 case `$NM -V 2>&1` in
6525 *GNU* | *'with BFD'*)
6526 symcode='[ABCDGIRSTW]' ;;
6529 # Try without a prefix undercore, then with it.
6530 for ac_symprfx in "" "_"; do
6532 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6533 symxfrm="\\1 $ac_symprfx\\2 \\2"
6535 # Write the raw and C identifiers.
6536 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6538 # Check to see that the pipe works correctly.
6542 cat > conftest.$ac_ext <<EOF
6547 void nm_test_func(){}
6551 int main(){nm_test_var='a';nm_test_func();return(0);}
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; then
6559 # Now try to grab the symbols.
6561 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6562 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && test -s "$nlist"; then
6566 # Try sorting and uniquifying the output.
6567 if sort "$nlist" | uniq > "$nlist"T; then
6568 mv -f "$nlist"T "$nlist"
6573 # Make sure that we snagged all the symbols we need.
6574 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6575 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6576 cat <<EOF > conftest.$ac_ext
6582 # Now generate the symbol file.
6583 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6585 cat <<EOF >> conftest.$ac_ext
6586 #if defined (__STDC__) && __STDC__
6587 # define lt_ptr_t void *
6589 # define lt_ptr_t char *
6593 /* The mapping between symbol names and symbols. */
6598 lt_preloaded_symbols[] =
6601 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6602 cat <<\EOF >> conftest.$ac_ext
6610 # Now try linking the two files.
6611 mv conftest.$ac_objext conftstm.$ac_objext
6612 lt_save_LIBS="$LIBS"
6613 lt_save_CFLAGS="$CFLAGS"
6614 LIBS="conftstm.$ac_objext"
6615 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6617 (eval $ac_link) 2>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6623 LIBS="$lt_save_LIBS"
6624 CFLAGS="$lt_save_CFLAGS"
6626 echo "cannot find nm_test_func in $nlist" >&5
6629 echo "cannot find nm_test_var in $nlist" >&5
6632 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6635 echo "$progname: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 rm -f conftest* conftst*
6640 # Do not use the global_symbol_pipe unless it works.
6641 if test "$pipe_works" = yes; then
6644 lt_cv_sys_global_symbol_pipe=
6650 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6651 lt_cv_sys_global_symbol_to_cdecl=
6653 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6654 { echo "$as_me:$LINENO: result: failed" >&5
6655 echo "${ECHO_T}failed" >&6; }
6657 { echo "$as_me:$LINENO: result: ok" >&5
6658 echo "${ECHO_T}ok" >&6; }
6661 { echo "$as_me:$LINENO: checking for objdir" >&5
6662 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6663 if test "${lt_cv_objdir+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 rm -f .libs 2>/dev/null
6667 mkdir .libs 2>/dev/null
6668 if test -d .libs; then
6671 # MS-DOS does not allow filenames that begin with a dot.
6674 rmdir .libs 2>/dev/null
6676 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6677 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6678 objdir=$lt_cv_objdir
6686 # AIX sometimes has problems with the GCC collect2 program. For some
6687 # reason, if we set the COLLECT_NAMES environment variable, the problems
6688 # vanish in a puff of smoke.
6689 if test "X${COLLECT_NAMES+set}" != Xset; then
6691 export COLLECT_NAMES
6696 # Sed substitution that helps us do robust quoting. It backslashifies
6697 # metacharacters that are still active within double-quoted strings.
6698 Xsed='sed -e 1s/^X//'
6699 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6701 # Same as above, but do not quote variable references.
6702 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6704 # Sed substitution to delay expansion of an escaped shell variable in a
6705 # double_quote_subst'ed string.
6706 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6708 # Sed substitution to avoid accidental globbing in evaled expressions
6709 no_glob_subst='s/\*/\\\*/g'
6715 default_ofile=libtool
6716 can_build_shared=yes
6718 # All known linkers require a `.a' archive for static linking (except M$VC,
6719 # which needs '.lib').
6721 ltmain="$ac_aux_dir/ltmain.sh"
6722 ofile="$default_ofile"
6723 with_gnu_ld="$lt_cv_prog_gnu_ld"
6725 if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}ar; ac_word=$2
6728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730 if test "${ac_cv_prog_AR+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 if test -n "$AR"; then
6734 ac_cv_prog_AR="$AR" # Let the user override the test.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_AR="${ac_tool_prefix}ar"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 if test -n "$AR"; then
6755 { echo "$as_me:$LINENO: result: $AR" >&5
6756 echo "${ECHO_T}$AR" >&6; }
6758 { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6764 if test -z "$ac_cv_prog_AR"; then
6766 # Extract the first word of "ar", so it can be a program name with args.
6767 set dummy ar; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 if test -n "$ac_ct_AR"; then
6774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_prog_ac_ct_AR="ar"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6794 if test -n "$ac_ct_AR"; then
6795 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6796 echo "${ECHO_T}$ac_ct_AR" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6802 if test "x$ac_ct_AR" = x; then
6805 case $cross_compiling:$ac_tool_warned in
6807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6808 whose name does not start with the host triplet. If you think this
6809 configuration is useful to you, please write to autoconf@gnu.org." >&5
6810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet. If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6813 ac_tool_warned=yes ;;
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_prog_RANLIB+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 if test -n "$RANLIB"; then
6830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 RANLIB=$ac_cv_prog_RANLIB
6850 if test -n "$RANLIB"; then
6851 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6852 echo "${ECHO_T}$RANLIB" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6860 if test -z "$ac_cv_prog_RANLIB"; then
6861 ac_ct_RANLIB=$RANLIB
6862 # Extract the first word of "ranlib", so it can be a program name with args.
6863 set dummy ranlib; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 if test -n "$ac_ct_RANLIB"; then
6870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_RANLIB="ranlib"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6890 if test -n "$ac_ct_RANLIB"; then
6891 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6892 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6898 if test "x$ac_ct_RANLIB" = x; then
6901 case $cross_compiling:$ac_tool_warned in
6903 { echo "$as_me:$LINENO: 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." >&5
6906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6907 whose name does not start with the host triplet. If you think this
6908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6909 ac_tool_warned=yes ;;
6911 RANLIB=$ac_ct_RANLIB
6914 RANLIB="$ac_cv_prog_RANLIB"
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}strip; ac_word=$2
6920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6922 if test "${ac_cv_prog_STRIP+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 if test -n "$STRIP"; then
6926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 STRIP=$ac_cv_prog_STRIP
6946 if test -n "$STRIP"; then
6947 { echo "$as_me:$LINENO: result: $STRIP" >&5
6948 echo "${ECHO_T}$STRIP" >&6; }
6950 { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6956 if test -z "$ac_cv_prog_STRIP"; then
6958 # Extract the first word of "strip", so it can be a program name with args.
6959 set dummy strip; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 if test -n "$ac_ct_STRIP"; then
6966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_prog_ac_ct_STRIP="strip"
6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6986 if test -n "$ac_ct_STRIP"; then
6987 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6988 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6990 { echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6; }
6994 if test "x$ac_ct_STRIP" = x; then
6997 case $cross_compiling:$ac_tool_warned in
6999 { echo "$as_me:$LINENO: 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." >&5
7002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7003 whose name does not start with the host triplet. If you think this
7004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7005 ac_tool_warned=yes ;;
7010 STRIP="$ac_cv_prog_STRIP"
7015 old_CFLAGS="$CFLAGS"
7017 # Set sane defaults for various variables
7018 test -z "$AR" && AR=ar
7019 test -z "$AR_FLAGS" && AR_FLAGS=cru
7020 test -z "$AS" && AS=as
7021 test -z "$CC" && CC=cc
7022 test -z "$LTCC" && LTCC=$CC
7023 test -z "$DLLTOOL" && DLLTOOL=dlltool
7024 test -z "$LD" && LD=ld
7025 test -z "$LN_S" && LN_S="ln -s"
7026 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7027 test -z "$NM" && NM=nm
7028 test -z "$SED" && SED=sed
7029 test -z "$OBJDUMP" && OBJDUMP=objdump
7030 test -z "$RANLIB" && RANLIB=:
7031 test -z "$STRIP" && STRIP=:
7032 test -z "$ac_objext" && ac_objext=o
7034 # Determine commands to create old-style static archives.
7035 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7036 old_postinstall_cmds='chmod 644 $oldlib'
7037 old_postuninstall_cmds=
7039 if test -n "$RANLIB"; then
7042 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7045 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7048 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7051 for cc_temp in $compiler""; do
7053 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7054 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7059 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7062 # Only perform the check for file, if the check method requires it
7063 case $deplibs_check_method in
7065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7066 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7067 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7068 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7076 lt_save_MAGIC_CMD="$MAGIC_CMD"
7077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7079 for ac_dir in $ac_dummy; do
7081 test -z "$ac_dir" && ac_dir=.
7082 if test -f $ac_dir/${ac_tool_prefix}file; then
7083 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7084 if test -n "$file_magic_test_file"; then
7085 case $deplibs_check_method in
7087 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7090 $EGREP "$file_magic_regex" > /dev/null; then
7095 *** Warning: the command libtool uses to detect shared libraries,
7096 *** $file_magic_cmd, produces output that libtool cannot recognize.
7097 *** The result is that libtool may fail to recognize shared libraries
7098 *** as such. This will affect the creation of libtool libraries that
7099 *** depend on shared libraries, but programs linked with such libtool
7100 *** libraries will work regardless of this problem. Nevertheless, you
7101 *** may want to report the problem to your system manager and/or to
7102 *** bug-libtool@gnu.org
7112 MAGIC_CMD="$lt_save_MAGIC_CMD"
7117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7118 if test -n "$MAGIC_CMD"; then
7119 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7120 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7122 { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7126 if test -z "$lt_cv_path_MAGIC_CMD"; then
7127 if test -n "$ac_tool_prefix"; then
7128 { echo "$as_me:$LINENO: checking for file" >&5
7129 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7130 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7138 lt_save_MAGIC_CMD="$MAGIC_CMD"
7139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7141 for ac_dir in $ac_dummy; do
7143 test -z "$ac_dir" && ac_dir=.
7144 if test -f $ac_dir/file; then
7145 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7146 if test -n "$file_magic_test_file"; then
7147 case $deplibs_check_method in
7149 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7152 $EGREP "$file_magic_regex" > /dev/null; then
7157 *** Warning: the command libtool uses to detect shared libraries,
7158 *** $file_magic_cmd, produces output that libtool cannot recognize.
7159 *** The result is that libtool may fail to recognize shared libraries
7160 *** as such. This will affect the creation of libtool libraries that
7161 *** depend on shared libraries, but programs linked with such libtool
7162 *** libraries will work regardless of this problem. Nevertheless, you
7163 *** may want to report the problem to your system manager and/or to
7164 *** bug-libtool@gnu.org
7174 MAGIC_CMD="$lt_save_MAGIC_CMD"
7179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180 if test -n "$MAGIC_CMD"; then
7181 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7182 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7200 # Check whether --enable-libtool-lock was given.
7201 if test "${enable_libtool_lock+set}" = set; then
7202 enableval=$enable_libtool_lock;
7205 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7208 # Check whether --with-pic was given.
7209 if test "${with_pic+set}" = set; then
7210 withval=$with_pic; pic_mode="$withval"
7215 test -z "$pic_mode" && pic_mode=default
7217 # Use C for the default configuration in the libtool script
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7227 # Source file extension for C test sources.
7230 # Object file extension for compiled C test sources.
7234 # Code to be used in simple compile tests
7235 lt_simple_compile_test_code="int some_variable = 0;\n"
7237 # Code to be used in simple link tests
7238 lt_simple_link_test_code='int main(){return(0);}\n'
7241 # If no C compiler was specified, use CC.
7244 # Allow CC to be a program name with arguments.
7248 # save warnings/boilerplate of simple test code
7249 ac_outfile=conftest.$ac_objext
7250 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7251 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7252 _lt_compiler_boilerplate=`cat conftest.err`
7255 ac_outfile=conftest.$ac_objext
7256 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7257 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7258 _lt_linker_boilerplate=`cat conftest.err`
7263 # Check for any special shared library compilation flags.
7266 if test "$GCC" = no; then
7269 lt_prog_cc_shlib='-belf'
7273 if test -n "$lt_prog_cc_shlib"; then
7274 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7275 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7276 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7278 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7279 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7280 lt_cv_prog_cc_can_build_shared=no
7286 # Check to make sure the static flag actually works.
7288 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7289 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7290 if test "${lt_prog_compiler_static_works+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 lt_prog_compiler_static_works=no
7294 save_LDFLAGS="$LDFLAGS"
7295 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7296 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7298 # The compiler can only warn and ignore the option if not recognized
7299 # So say no if there are warnings
7300 if test -s conftest.err; then
7301 # Append any errors to the config.log.
7302 cat conftest.err 1>&5
7303 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7304 $SED '/^$/d' conftest.err >conftest.er2
7305 if diff conftest.exp conftest.er2 >/dev/null; then
7306 lt_prog_compiler_static_works=yes
7309 lt_prog_compiler_static_works=yes
7313 LDFLAGS="$save_LDFLAGS"
7316 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7317 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7319 if test x"$lt_prog_compiler_static_works" = xyes; then
7322 lt_prog_compiler_static=
7328 lt_prog_compiler_no_builtin_flag=
7330 if test "$GCC" = yes; then
7331 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7334 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7335 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7336 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 lt_cv_prog_compiler_rtti_exceptions=no
7340 ac_outfile=conftest.$ac_objext
7341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7342 lt_compiler_flag="-fno-rtti -fno-exceptions"
7343 # Insert the option either (1) after the last *FLAGS variable, or
7344 # (2) before a word containing "conftest.", or (3) at the end.
7345 # Note that $ac_compile itself does not contain backslashes and begins
7346 # with a dollar sign (not a hyphen), so the echo should work correctly.
7347 # The option is referenced via a variable to avoid confusing sed.
7348 lt_compile=`echo "$ac_compile" | $SED \
7349 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7351 -e 's:$: $lt_compiler_flag:'`
7352 (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
7353 (eval "$lt_compile" 2>conftest.err)
7355 cat conftest.err >&5
7356 echo "$as_me:7356: \$? = $ac_status" >&5
7357 if (exit $ac_status) && test -s "$ac_outfile"; then
7358 # The compiler can only warn and ignore the option if not recognized
7359 # So say no if there are warnings other than the usual output.
7360 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7361 $SED '/^$/d' conftest.err >conftest.er2
7362 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7363 lt_cv_prog_compiler_rtti_exceptions=yes
7369 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7370 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7372 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7373 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7380 lt_prog_compiler_wl=
7381 lt_prog_compiler_pic=
7382 lt_prog_compiler_static=
7384 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7387 if test "$GCC" = yes; then
7388 lt_prog_compiler_wl='-Wl,'
7389 lt_prog_compiler_static='-static'
7393 # All AIX code is PIC.
7394 if test "$host_cpu" = ia64; then
7395 # AIX 5 now supports IA64 processor
7396 lt_prog_compiler_static='-Bstatic'
7401 # FIXME: we need at least 68020 code to build shared libraries, but
7402 # adding the `-m68020' flag to GCC prevents building anything better,
7404 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7407 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7408 # PIC is the default for these OSes.
7411 mingw* | pw32* | os2*)
7412 # This hack is so that the source file can tell whether it is being
7413 # built for inclusion in a dll (and should export symbols for example).
7414 lt_prog_compiler_pic='-DDLL_EXPORT'
7417 darwin* | rhapsody*)
7418 # PIC is the default on this platform
7419 # Common symbols not allowed in MH_DYLIB files
7420 lt_prog_compiler_pic='-fno-common'
7424 # Just because we use GCC doesn't mean we suddenly get shared libraries
7425 # on systems that don't support them.
7426 lt_prog_compiler_can_build_shared=no
7431 if test -d /usr/nec; then
7432 lt_prog_compiler_pic=-Kconform_pic
7437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7444 lt_prog_compiler_pic='-fPIC'
7450 lt_prog_compiler_pic='-fPIC'
7454 # PORTME Check for flag to pass linker flags through the system compiler.
7457 lt_prog_compiler_wl='-Wl,'
7458 if test "$host_cpu" = ia64; then
7459 # AIX 5 now supports IA64 processor
7460 lt_prog_compiler_static='-Bstatic'
7462 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7466 # PIC is the default on this platform
7467 # Common symbols not allowed in MH_DYLIB files
7468 case $cc_basename in
7470 lt_prog_compiler_pic='-qnocommon'
7471 lt_prog_compiler_wl='-Wl,'
7476 mingw* | pw32* | os2*)
7477 # This hack is so that the source file can tell whether it is being
7478 # built for inclusion in a dll (and should export symbols for example).
7479 lt_prog_compiler_pic='-DDLL_EXPORT'
7482 hpux9* | hpux10* | hpux11*)
7483 lt_prog_compiler_wl='-Wl,'
7484 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7491 lt_prog_compiler_pic='+Z'
7494 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7495 lt_prog_compiler_static='${wl}-a ${wl}archive'
7498 irix5* | irix6* | nonstopux*)
7499 lt_prog_compiler_wl='-Wl,'
7500 # PIC (with -KPIC) is the default.
7501 lt_prog_compiler_static='-non_shared'
7505 lt_prog_compiler_pic='-KPIC'
7506 lt_prog_compiler_static='-Bstatic'
7510 case $cc_basename in
7512 lt_prog_compiler_wl='-Wl,'
7513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-static'
7516 pgcc* | pgf77* | pgf90*)
7517 # Portland Group compilers (*not* the Pentium gcc compiler,
7518 # which looks to be a dead project)
7519 lt_prog_compiler_wl='-Wl,'
7520 lt_prog_compiler_pic='-fpic'
7521 lt_prog_compiler_static='-static'
7524 lt_prog_compiler_wl='-Wl,'
7525 # All Alpha code is PIC.
7526 lt_prog_compiler_static='-non_shared'
7531 osf3* | osf4* | osf5*)
7532 lt_prog_compiler_wl='-Wl,'
7533 # All OSF/1 code is PIC.
7534 lt_prog_compiler_static='-non_shared'
7538 lt_prog_compiler_pic='-Kpic'
7539 lt_prog_compiler_static='-dn'
7543 lt_prog_compiler_pic='-KPIC'
7544 lt_prog_compiler_static='-Bstatic'
7545 case $cc_basename in
7547 lt_prog_compiler_wl='-Qoption ld ';;
7549 lt_prog_compiler_wl='-Wl,';;
7554 lt_prog_compiler_wl='-Qoption ld '
7555 lt_prog_compiler_pic='-PIC'
7556 lt_prog_compiler_static='-Bstatic'
7559 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7560 lt_prog_compiler_wl='-Wl,'
7561 lt_prog_compiler_pic='-KPIC'
7562 lt_prog_compiler_static='-Bstatic'
7566 if test -d /usr/nec ;then
7567 lt_prog_compiler_pic='-Kconform_pic'
7568 lt_prog_compiler_static='-Bstatic'
7573 lt_prog_compiler_wl='-Wl,'
7574 lt_prog_compiler_can_build_shared=no
7578 lt_prog_compiler_pic='-pic'
7579 lt_prog_compiler_static='-Bstatic'
7583 lt_prog_compiler_can_build_shared=no
7588 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7589 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7592 # Check to make sure the PIC flag actually works.
7594 if test -n "$lt_prog_compiler_pic"; then
7596 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7597 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7598 if test "${lt_prog_compiler_pic_works+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 lt_prog_compiler_pic_works=no
7602 ac_outfile=conftest.$ac_objext
7603 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7604 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7605 # Insert the option either (1) after the last *FLAGS variable, or
7606 # (2) before a word containing "conftest.", or (3) at the end.
7607 # Note that $ac_compile itself does not contain backslashes and begins
7608 # with a dollar sign (not a hyphen), so the echo should work correctly.
7609 # The option is referenced via a variable to avoid confusing sed.
7610 lt_compile=`echo "$ac_compile" | $SED \
7611 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7613 -e 's:$: $lt_compiler_flag:'`
7614 (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
7615 (eval "$lt_compile" 2>conftest.err)
7617 cat conftest.err >&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 if (exit $ac_status) && test -s "$ac_outfile"; then
7620 # The compiler can only warn and ignore the option if not recognized
7621 # So say no if there are warnings other than the usual output.
7622 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7623 $SED '/^$/d' conftest.err >conftest.er2
7624 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7625 lt_prog_compiler_pic_works=yes
7631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7632 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7634 if test x"$lt_prog_compiler_pic_works" = xyes; then
7635 case $lt_prog_compiler_pic in
7637 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7640 lt_prog_compiler_pic=
7641 lt_prog_compiler_can_build_shared=no
7646 # For platforms which do not support PIC, -DPIC is meaningless:
7648 lt_prog_compiler_pic=
7651 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7655 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7656 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7657 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 lt_cv_prog_compiler_c_o=no
7661 $rm -r conftest 2>/dev/null
7665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7667 lt_compiler_flag="-o out/conftest2.$ac_objext"
7668 # Insert the option either (1) after the last *FLAGS variable, or
7669 # (2) before a word containing "conftest.", or (3) at the end.
7670 # Note that $ac_compile itself does not contain backslashes and begins
7671 # with a dollar sign (not a hyphen), so the echo should work correctly.
7672 lt_compile=`echo "$ac_compile" | $SED \
7673 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7675 -e 's:$: $lt_compiler_flag:'`
7676 (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
7677 (eval "$lt_compile" 2>out/conftest.err)
7679 cat out/conftest.err >&5
7680 echo "$as_me:7680: \$? = $ac_status" >&5
7681 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7683 # The compiler can only warn and ignore the option if not recognized
7684 # So say no if there are warnings
7685 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7686 $SED '/^$/d' out/conftest.err >out/conftest.er2
7687 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7688 lt_cv_prog_compiler_c_o=yes
7693 # SGI C++ compiler will create directory out/ii_files/ for
7694 # template instantiation
7695 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7696 $rm out/* && rmdir out
7702 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7703 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7706 hard_links="nottested"
7707 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7708 # do not overwrite the value of need_locks provided by the user
7709 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7710 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7715 ln conftest.a conftest.b 2>&5 || hard_links=no
7716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7717 { echo "$as_me:$LINENO: result: $hard_links" >&5
7718 echo "${ECHO_T}$hard_links" >&6; }
7719 if test "$hard_links" = no; then
7720 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7721 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7728 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7729 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7732 allow_undefined_flag=
7733 enable_shared_with_static_runtimes=no
7735 archive_expsym_cmds=
7736 old_archive_From_new_cmds=
7737 old_archive_from_expsyms_cmds=
7738 export_dynamic_flag_spec=
7739 whole_archive_flag_spec=
7740 thread_safe_flag_spec=
7741 hardcode_libdir_flag_spec=
7742 hardcode_libdir_flag_spec_ld=
7743 hardcode_libdir_separator=
7746 hardcode_shlibpath_var=unsupported
7747 link_all_deplibs=unknown
7748 hardcode_automatic=no
7751 always_export_symbols=no
7752 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7753 # include_expsyms should be a list of space-separated symbols to be *always*
7754 # included in the symbol list
7756 # exclude_expsyms can be an extended regexp of symbols to exclude
7757 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7758 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7759 # as well as any symbol that contains `d'.
7760 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7761 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7762 # platforms (ab)use it in PIC code, but their linkers get confused if
7763 # the symbol is explicitly referenced. Since portable code cannot
7764 # rely on this symbol name, it's probably fine to never include it in
7765 # preloaded symbol tables.
7766 extract_expsyms_cmds=
7767 # Just being paranoid about ensuring that cc_basename is set.
7768 for cc_temp in $compiler""; do
7770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7776 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7779 cygwin* | mingw* | pw32*)
7780 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7781 # When not using gcc, we currently assume that we are using
7782 # Microsoft Visual C++.
7783 if test "$GCC" != yes; then
7793 if test "$with_gnu_ld" = yes; then
7794 # If archive_cmds runs LD, not CC, wlarc should be empty
7797 # Set some defaults for GNU ld with shared library support. These
7798 # are reset later if shared libraries are not supported. Putting them
7799 # here allows them to be overridden if necessary.
7800 runpath_var=LD_RUN_PATH
7801 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7802 export_dynamic_flag_spec='${wl}--export-dynamic'
7803 # ancient GNU ld didn't support --whole-archive et. al.
7804 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7805 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7807 whole_archive_flag_spec=
7809 supports_anon_versioning=no
7810 case `$LD -v 2>/dev/null` in
7811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7814 *\ 2.11.*) ;; # other 2.11 versions
7815 *) supports_anon_versioning=yes ;;
7818 # See if GNU ld supports shared libraries.
7820 aix3* | aix4* | aix5*)
7821 # On AIX/PPC, the GNU linker is very broken
7822 if test "$host_cpu" != ia64; then
7826 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7827 *** to be unable to reliably create shared libraries on AIX.
7828 *** Therefore, libtool is disabling shared libraries support. If you
7829 *** really care for shared libraries, you may want to modify your PATH
7830 *** so that a non-GNU linker is found, and then restart.
7837 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)'
7838 hardcode_libdir_flag_spec='-L$libdir'
7839 hardcode_minus_L=yes
7841 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7842 # that the semantics of dynamic libraries on AmigaOS, at least up
7843 # to version 4, is to share data among multiple programs linked
7844 # with the same dynamic library. Since this doesn't match the
7845 # behavior of shared libraries on other platforms, we can't use
7851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7852 allow_undefined_flag=unsupported
7853 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7854 # support --undefined. This deserves some investigation. FIXME
7855 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7861 cygwin* | mingw* | pw32*)
7862 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7863 # as there is no search path for DLLs.
7864 hardcode_libdir_flag_spec='-L$libdir'
7865 allow_undefined_flag=unsupported
7866 always_export_symbols=no
7867 enable_shared_with_static_runtimes=yes
7868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7870 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7872 # If the export-symbols file already is a .def file (1st line
7873 # is EXPORTS), use it as is; otherwise, prepend...
7874 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7875 cp $export_symbols $output_objdir/$soname.def;
7877 echo EXPORTS > $output_objdir/$soname.def;
7878 cat $export_symbols >> $output_objdir/$soname.def;
7880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7887 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7889 case $cc_basename,$host_cpu in
7890 pgcc*) # Portland Group C compiler
7891 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'
7892 tmp_addflag=' $pic_flag'
7894 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7895 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'
7896 tmp_addflag=' $pic_flag -Mnomain' ;;
7897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7898 tmp_addflag=' -i_dynamic' ;;
7899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7900 tmp_addflag=' -i_dynamic -nofor_main' ;;
7901 ifc* | ifort*) # Intel Fortran compiler
7902 tmp_addflag=' -nofor_main' ;;
7904 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906 if test $supports_anon_versioning = yes; then
7907 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7908 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7909 $echo "local: *; };" >> $output_objdir/$libname.ver~
7910 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7919 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7928 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7933 *** create shared libraries on Solaris systems. Therefore, libtool
7934 *** is disabling shared libraries support. We urge you to upgrade GNU
7935 *** binutils to release 2.9.1 or newer. Another option is to modify
7936 *** your PATH or compiler configuration so that the native linker is
7937 *** used, and then restart.
7940 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7949 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7952 hardcode_shlibpath_var=no
7956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7965 if test "$ld_shlibs" = no; then
7967 hardcode_libdir_flag_spec=
7968 export_dynamic_flag_spec=
7969 whole_archive_flag_spec=
7972 # PORTME fill in a description of your system's linker (not GNU ld)
7975 allow_undefined_flag=unsupported
7976 always_export_symbols=yes
7977 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'
7978 # Note: this linker hardcodes the directories in LIBPATH if there
7979 # are no directories specified by -L.
7980 hardcode_minus_L=yes
7981 if test "$GCC" = yes && test -z "$link_static_flag"; then
7982 # Neither direct hardcoding nor static linking is supported with a
7984 hardcode_direct=unsupported
7989 if test "$host_cpu" = ia64; then
7990 # On IA64, the linker does run time linking by default, so we don't
7991 # have to do anything special.
7992 aix_use_runtimelinking=no
7993 exp_sym_flag='-Bexport'
7996 # If we're using GNU nm, then we don't want the "-C" option.
7997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7999 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'
8001 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'
8003 aix_use_runtimelinking=no
8005 # Test if we are trying to use run time linking or normal
8006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8007 # need to do runtime linking.
8008 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8009 for ld_flag in $LDFLAGS; do
8010 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8011 aix_use_runtimelinking=yes
8017 exp_sym_flag='-bexport'
8018 no_entry_flag='-bnoentry'
8021 # When large executables or shared objects are built, AIX ld can
8022 # have problems creating the table of contents. If linking a library
8023 # or program results in "error TOC overflow" add -mminimal-toc to
8024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8029 hardcode_libdir_separator=':'
8030 link_all_deplibs=yes
8032 if test "$GCC" = yes; then
8033 case $host_os in aix4.[012]|aix4.[012].*)
8034 # We only want to do this on AIX 4.2 and lower, the check
8035 # below for broken collect2 doesn't work under 4.3+
8036 collect2name=`${CC} -print-prog-name=collect2`
8037 if test -f "$collect2name" && \
8038 strings "$collect2name" | grep resolve_lib_name >/dev/null
8040 # We have reworked collect2
8043 # We have old collect2
8044 hardcode_direct=unsupported
8045 # It fails to find uninstalled libraries when the uninstalled
8046 # path is not listed in the libpath. Setting hardcode_minus_L
8047 # to unsupported forces relinking
8048 hardcode_minus_L=yes
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_libdir_separator=
8053 shared_flag='-shared'
8054 if test "$aix_use_runtimelinking" = yes; then
8055 shared_flag="$shared_flag "'${wl}-G'
8059 if test "$host_cpu" = ia64; then
8060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8061 # chokes on -Wl,-G. The following line is correct:
8064 if test "$aix_use_runtimelinking" = yes; then
8065 shared_flag='${wl}-G'
8067 shared_flag='${wl}-bM:SRE'
8072 # It seems that -bexpall does not export symbols beginning with
8073 # underscore (_), so it is better to generate a list of symbols to export.
8074 always_export_symbols=yes
8075 if test "$aix_use_runtimelinking" = yes; then
8076 # Warning - without using the other runtime loading flags (-brtl),
8077 # -berok will link without error, but may produce a broken library.
8078 allow_undefined_flag='-berok'
8079 # Determine the default libpath from the value encoded in an empty executable.
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (ac_try="$ac_link"
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_link") 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest$ac_exeext &&
8112 $as_test_x conftest$ac_exeext; then
8114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8116 # Check for a 64-bit object if we didn't find anything.
8117 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8127 conftest$ac_exeext conftest.$ac_ext
8128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8130 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8131 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8133 if test "$host_cpu" = ia64; then
8134 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8135 allow_undefined_flag="-z nodefs"
8136 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8138 # Determine the default libpath from the value encoded in an empty executable.
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>conftest.er1
8163 grep -v '^ *+' conftest.er1 >conftest.err
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest$ac_exeext &&
8171 $as_test_x conftest$ac_exeext; then
8173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8175 # Check for a 64-bit object if we didn't find anything.
8176 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8186 conftest$ac_exeext conftest.$ac_ext
8187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8190 # Warning - without using the other run time loading flags,
8191 # -berok will link without error, but may produce a broken library.
8192 no_undefined_flag=' ${wl}-bernotok'
8193 allow_undefined_flag=' ${wl}-berok'
8194 # -bexpall does not export symbols beginning with underscore (_)
8195 always_export_symbols=yes
8196 # Exported symbols can be pulled into shared objects from archives
8197 whole_archive_flag_spec=' '
8198 archive_cmds_need_lc=yes
8199 # This is similar to how AIX traditionally builds it's shared libraries.
8200 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8206 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)'
8207 hardcode_libdir_flag_spec='-L$libdir'
8208 hardcode_minus_L=yes
8209 # see comment about different semantics on the GNU ld section
8214 export_dynamic_flag_spec=-rdynamic
8217 cygwin* | mingw* | pw32*)
8218 # When not using gcc, we currently assume that we are using
8219 # Microsoft Visual C++.
8220 # hardcode_libdir_flag_spec is actually meaningless, as there is
8221 # no search path for DLLs.
8222 hardcode_libdir_flag_spec=' '
8223 allow_undefined_flag=unsupported
8224 # Tell ltmain to make .lib files, not .a files.
8226 # Tell ltmain to make .dll files, not .so files.
8228 # FIXME: Setting linknames here is a bad hack.
8229 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8230 # The linker will automatically build a .lib file if we build a DLL.
8231 old_archive_From_new_cmds='true'
8232 # FIXME: Should let the user specify the lib program.
8233 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8234 fix_srcfile_path='`cygpath -w "$srcfile"`'
8235 enable_shared_with_static_runtimes=yes
8238 darwin* | rhapsody*)
8240 rhapsody* | darwin1.[012])
8241 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8244 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8245 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8247 case ${MACOSX_DEPLOYMENT_TARGET} in
8249 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8252 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8258 archive_cmds_need_lc=no
8260 hardcode_automatic=yes
8261 hardcode_shlibpath_var=unsupported
8262 whole_archive_flag_spec=''
8263 link_all_deplibs=yes
8264 if test "$GCC" = yes ; then
8265 output_verbose_link_cmd='echo'
8266 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8267 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8269 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8270 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}'
8272 case $cc_basename in
8274 output_verbose_link_cmd='echo'
8275 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8276 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8278 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8279 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}'
8289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8290 hardcode_libdir_flag_spec='-L$libdir'
8291 hardcode_shlibpath_var=no
8298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8299 # support. Future versions do this automatically, but an explicit c++rt0.o
8300 # does not break anything, and helps significantly (at the cost of a little
8303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8304 hardcode_libdir_flag_spec='-R$libdir'
8306 hardcode_shlibpath_var=no
8309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8313 hardcode_minus_L=yes
8314 hardcode_shlibpath_var=no
8317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8318 freebsd* | kfreebsd*-gnu | dragonfly*)
8319 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8320 hardcode_libdir_flag_spec='-R$libdir'
8322 hardcode_shlibpath_var=no
8326 if test "$GCC" = yes; then
8327 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'
8329 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'
8331 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8332 hardcode_libdir_separator=:
8335 # hardcode_minus_L: Not really in the search PATH,
8336 # but as the default location of the library.
8337 hardcode_minus_L=yes
8338 export_dynamic_flag_spec='${wl}-E'
8342 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8345 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8354 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8361 if test "$with_gnu_ld" = no; then
8364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8365 hardcode_libdir_flag_spec_ld='+b $libdir'
8366 hardcode_libdir_separator=:
8368 hardcode_shlibpath_var=no
8371 hardcode_libdir_flag_spec='-L$libdir'
8373 hardcode_shlibpath_var=no
8375 # hardcode_minus_L: Not really in the search PATH,
8376 # but as the default location of the library.
8377 hardcode_minus_L=yes
8380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8381 hardcode_libdir_separator=:
8383 export_dynamic_flag_spec='${wl}-E'
8385 # hardcode_minus_L: Not really in the search PATH,
8386 # but as the default location of the library.
8387 hardcode_minus_L=yes
8393 irix5* | irix6* | nonstopux*)
8394 if test "$GCC" = yes; then
8395 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'
8397 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'
8398 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8401 hardcode_libdir_separator=:
8402 link_all_deplibs=yes
8406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8409 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8411 hardcode_libdir_flag_spec='-R$libdir'
8413 hardcode_shlibpath_var=no
8417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8420 hardcode_libdir_separator=:
8421 hardcode_shlibpath_var=no
8426 hardcode_shlibpath_var=no
8427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8428 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8431 export_dynamic_flag_spec='${wl}-E'
8434 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8436 hardcode_libdir_flag_spec='-R$libdir'
8439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_minus_L=yes
8449 allow_undefined_flag=unsupported
8450 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'
8451 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8455 if test "$GCC" = yes; then
8456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8457 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'
8459 allow_undefined_flag=' -expect_unresolved \*'
8460 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'
8462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8463 hardcode_libdir_separator=:
8466 osf4* | osf5*) # as osf3* with the addition of -msym flag
8467 if test "$GCC" = yes; then
8468 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8469 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'
8470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8472 allow_undefined_flag=' -expect_unresolved \*'
8473 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'
8474 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8475 $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'
8477 # Both c and cxx compiler support -rpath directly
8478 hardcode_libdir_flag_spec='-rpath $libdir'
8480 hardcode_libdir_separator=:
8484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 hardcode_shlibpath_var=no
8486 export_dynamic_flag_spec='${wl}-Bexport'
8487 runpath_var=LD_RUN_PATH
8488 hardcode_runpath_var=yes
8492 no_undefined_flag=' -z text'
8493 if test "$GCC" = yes; then
8495 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8497 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8500 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8504 hardcode_libdir_flag_spec='-R$libdir'
8505 hardcode_shlibpath_var=no
8507 solaris2.[0-5] | solaris2.[0-5].*) ;;
8509 # The compiler driver will combine linker options so we
8510 # cannot just pass the convience library names through
8511 # without $wl, iff we do not link with $LD.
8512 # Luckily, gcc supports the same syntax we need for Sun Studio.
8513 # Supported since Solaris 2.6 (maybe 2.5.1?)
8516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8518 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8521 link_all_deplibs=yes
8525 if test "x$host_vendor" = xsequent; then
8526 # Use $CC to link under sequent, because it throws in some extra .o
8527 # files that make .init and .fini sections work.
8528 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8530 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8532 hardcode_libdir_flag_spec='-L$libdir'
8534 hardcode_minus_L=yes
8535 hardcode_shlibpath_var=no
8539 case $host_vendor in
8541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542 hardcode_direct=yes # is this really true???
8545 ## LD is ld it makes a PLAMLIB
8546 ## CC just makes a GrossModule.
8547 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8548 reload_cmds='$CC -r -o $output$reload_objs'
8552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8553 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8556 runpath_var='LD_RUN_PATH'
8557 hardcode_shlibpath_var=no
8561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562 hardcode_shlibpath_var=no
8563 export_dynamic_flag_spec='-Bexport'
8567 if test -d /usr/nec; then
8568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8569 hardcode_shlibpath_var=no
8570 runpath_var=LD_RUN_PATH
8571 hardcode_runpath_var=yes
8577 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8580 hardcode_shlibpath_var=no
8581 hardcode_runpath_var=yes
8582 runpath_var=LD_RUN_PATH
8585 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8586 no_undefined_flag='${wl}-z ${wl}text'
8587 if test "$GCC" = yes; then
8588 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8590 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8592 runpath_var='LD_RUN_PATH'
8593 hardcode_shlibpath_var=no
8597 no_undefined_flag=' -z text'
8598 # $CC -shared without GNU ld will not create a library from C++
8599 # object files and a static libstdc++, better avoid it by now
8600 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8602 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8603 hardcode_libdir_flag_spec=
8604 hardcode_shlibpath_var=no
8605 runpath_var='LD_RUN_PATH'
8609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8610 hardcode_libdir_flag_spec='-L$libdir'
8611 hardcode_shlibpath_var=no
8620 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8621 echo "${ECHO_T}$ld_shlibs" >&6; }
8622 test "$ld_shlibs" = no && can_build_shared=no
8624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8625 if test "$GCC" = yes; then
8626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8630 # Do we need to explicitly link libc?
8632 case "x$archive_cmds_need_lc" in
8634 # Assume -lc should be added
8635 archive_cmds_need_lc=yes
8637 if test "$enable_shared" = yes && test "$GCC" = yes; then
8638 case $archive_cmds in
8640 # FIXME: we may have to deal with multi-command sequences.
8643 # Test whether the compiler implicitly links with -lc since on some
8644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8645 # to ld, don't add -lc before -lgcc.
8646 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } 2>conftest.err; then
8658 libobjs=conftest.$ac_objext
8660 wl=$lt_prog_compiler_wl
8666 lt_save_allow_undefined_flag=$allow_undefined_flag
8667 allow_undefined_flag=
8668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8669 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }
8674 archive_cmds_need_lc=no
8676 archive_cmds_need_lc=yes
8678 allow_undefined_flag=$lt_save_allow_undefined_flag
8680 cat conftest.err 1>&5
8683 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8684 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8691 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8692 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8694 libname_spec='lib$name'
8702 shlibpath_overrides_runpath=unknown
8704 dynamic_linker="$host_os ld.so"
8705 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8706 if test "$GCC" = yes; then
8707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8709 # if the path contains ";" then we assume it to be the separator
8710 # otherwise default to the standard path separator (i.e. ":") - it is
8711 # assumed that no part of a normal pathname contains ";" but that should
8712 # okay in the real world where ";" in dirpaths is itself problematic.
8713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8720 need_lib_prefix=unknown
8721 hardcode_into_libs=no
8723 # when you set need_version to no, make sure it does not cause -set_version
8724 # flags to be left without arguments
8725 need_version=unknown
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8731 shlibpath_var=LIBPATH
8733 # AIX 3 has no versioning support, so we append a major version to the name.
8734 soname_spec='${libname}${release}${shared_ext}$major'
8741 hardcode_into_libs=yes
8742 if test "$host_cpu" = ia64; then
8743 # AIX 5 supports IA64
8744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8745 shlibpath_var=LD_LIBRARY_PATH
8747 # With GCC up to 2.95.x, collect2 would create an import file
8748 # for dependence libraries. The import file would start with
8749 # the line `#! .'. This would cause the generated library to
8750 # depend on `.', always an invalid library. This was fixed in
8751 # development snapshots of GCC prior to 3.0.
8753 aix4 | aix4.[01] | aix4.[01].*)
8754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8764 # soname into executable. Probably we can add versioning support to
8765 # collect2, so additional links can be useful in future.
8766 if test "$aix_use_runtimelinking" = yes; then
8767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8768 # instead of lib<name>.a to let people know that these are not
8769 # typical AIX shared libraries.
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772 # We preserve .a as extension for shared libraries through AIX4.2
8773 # and later when we are not doing run time linking.
8774 library_names_spec='${libname}${release}.a $libname.a'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8777 shlibpath_var=LIBPATH
8782 library_names_spec='$libname.ixlibrary $libname.a'
8783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8784 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'
8788 library_names_spec='${libname}${shared_ext}'
8789 dynamic_linker="$host_os ld.so"
8790 shlibpath_var=LIBRARY_PATH
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8802 # the default ld.so.conf also contains /usr/contrib/lib and
8803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8804 # libtool to hard-code these into programs
8807 cygwin* | mingw* | pw32*)
8808 version_type=windows
8813 case $GCC,$host_os in
8814 yes,cygwin* | yes,mingw* | yes,pw32*)
8815 library_names_spec='$libname.dll.a'
8816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8817 postinstall_cmds='base_file=`basename \${file}`~
8818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8819 dldir=$destdir/`dirname \$dlpath`~
8820 test -d \$dldir || mkdir -p \$dldir~
8821 $install_prog $dir/$dlname \$dldir/$dlname'
8822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8823 dlpath=$dir/\$dldll~
8825 shlibpath_overrides_runpath=yes
8829 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8830 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8831 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8834 # MinGW DLLs use traditional 'lib' prefix
8835 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8837 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8838 # It is most probably a Windows format PATH printed by
8839 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8840 # path with ; separators, and with drive letters. We can handle the
8841 # drive letters (cygwin fileutils understands them), so leave them,
8842 # especially as we might pass files found there to a mingw objdump,
8843 # which wouldn't understand a cygwinified path. Ahh.
8844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8850 # pw32 DLLs use 'pw' prefix rather than 'lib'
8851 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8860 dynamic_linker='Win32 ld.exe'
8861 # FIXME: first we should search . and the directory the executable is in
8865 darwin* | rhapsody*)
8866 dynamic_linker="$host_os dyld"
8870 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8871 soname_spec='${libname}${release}${major}$shared_ext'
8872 shlibpath_overrides_runpath=yes
8873 shlibpath_var=DYLD_LIBRARY_PATH
8874 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8875 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8876 if test "$GCC" = yes; then
8877 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8879 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8889 soname_spec='${libname}${release}${shared_ext}$major'
8890 shlibpath_var=LD_LIBRARY_PATH
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 shlibpath_var=LD_LIBRARY_PATH
8904 shlibpath_overrides_runpath=no
8905 hardcode_into_libs=yes
8906 dynamic_linker='GNU ld.so'
8909 freebsd* | dragonfly*)
8910 # DragonFly does not have aout. When/if they implement a new
8911 # versioning mechanism, adjust this.
8912 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8913 version_type=freebsd-$objformat
8914 case $version_type in
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8925 shlibpath_var=LD_LIBRARY_PATH
8928 shlibpath_overrides_runpath=yes
8930 freebsd3.[01]* | freebsdelf3.[01]*)
8931 shlibpath_overrides_runpath=yes
8932 hardcode_into_libs=yes
8935 shlibpath_overrides_runpath=no
8936 hardcode_into_libs=yes
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 hardcode_into_libs=yes
8951 hpux9* | hpux10* | hpux11*)
8952 # Give a soname corresponding to the major version so that dld.sl refuses to
8953 # link against other versions.
8960 hardcode_into_libs=yes
8961 dynamic_linker="$host_os dld.so"
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 if test "X$HPUX_IA64_MODE" = X32; then
8967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8969 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8975 hardcode_into_libs=yes
8976 dynamic_linker="$host_os dld.sl"
8977 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8986 dynamic_linker="$host_os dld.sl"
8987 shlibpath_var=SHLIB_PATH
8988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8993 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8994 postinstall_cmds='chmod 555 $lib'
8997 irix5* | irix6* | nonstopux*)
8999 nonstopux*) version_type=nonstopux ;;
9001 if test "$lt_cv_prog_gnu_ld" = yes; then
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9012 irix5* | nonstopux*)
9016 case $LD in # libtool.m4 will add one of these switches to LD
9017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9018 libsuff= shlibsuff= libmagic=32-bit;;
9019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9020 libsuff=32 shlibsuff=N32 libmagic=N32;;
9021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9022 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9023 *) libsuff= shlibsuff= libmagic=never-match;;
9027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9028 shlibpath_overrides_runpath=no
9029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9031 hardcode_into_libs=yes
9034 # No shared lib support for Linux oldld, aout, or coff.
9035 linux*oldld* | linux*aout* | linux*coff*)
9039 # This must be Linux ELF.
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=no
9049 # This implies no fast_install, which is unacceptable.
9050 # Some rework will be needed to allow for fast_install
9051 # before this can be enabled.
9052 hardcode_into_libs=yes
9054 # Append ld.so.conf contents to the search path
9055 if test -f /etc/ld.so.conf; then
9056 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9057 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9060 # We used to test for /lib/ld.so.1 and disable shared libraries on
9061 # powerpc, because MkLinux only supported shared libraries with the
9062 # GNU dynamic linker. Since this was broken with cross compilers,
9063 # most powerpc-linux boxes support dynamic linking these days and
9064 # people can always --disable-shared, the test was removed, and we
9065 # assume the GNU/Linux dynamic linker is in use.
9066 dynamic_linker='GNU/Linux ld.so'
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=no
9077 hardcode_into_libs=yes
9078 dynamic_linker='GNU ld.so'
9085 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9088 dynamic_linker='NetBSD (a.out) ld.so'
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 dynamic_linker='NetBSD ld.elf_so'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=yes
9096 hardcode_into_libs=yes
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 shlibpath_overrides_runpath=yes
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=yes
9119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9121 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9122 *) need_version=no ;;
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9129 openbsd2.[89] | openbsd2.[89].*)
9130 shlibpath_overrides_runpath=no
9133 shlibpath_overrides_runpath=yes
9137 shlibpath_overrides_runpath=yes
9142 libname_spec='$name'
9145 library_names_spec='$libname${shared_ext} $libname.a'
9146 dynamic_linker='OS/2 ld.exe'
9147 shlibpath_var=LIBPATH
9150 osf3* | osf4* | osf5*)
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 shlibpath_var=LD_LIBRARY_PATH
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 shlibpath_overrides_runpath=yes
9176 hardcode_into_libs=yes
9177 # ldd complains unless libraries are executable
9178 postinstall_cmds='chmod +x $lib'
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9184 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=yes
9187 if test "$with_gnu_ld" = yes; then
9193 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 case $host_vendor in
9200 shlibpath_overrides_runpath=no
9202 export_dynamic_flag_spec='${wl}-Blargedynsym'
9203 runpath_var=LD_RUN_PATH
9211 shlibpath_overrides_runpath=no
9212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9218 if test -d /usr/nec ;then
9220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9221 soname_spec='$libname${shared_ext}.$major'
9222 shlibpath_var=LD_LIBRARY_PATH
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 shlibpath_var=LD_LIBRARY_PATH
9237 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9238 echo "${ECHO_T}$dynamic_linker" >&6; }
9239 test "$dynamic_linker" = no && can_build_shared=no
9241 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9242 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9244 if test -n "$hardcode_libdir_flag_spec" || \
9245 test -n "$runpath_var" || \
9246 test "X$hardcode_automatic" = "Xyes" ; then
9248 # We can hardcode non-existant directories.
9249 if test "$hardcode_direct" != no &&
9250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9251 # have to relink, otherwise we might link with an installed library
9252 # when we should be linking with a yet-to-be-installed one
9253 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9254 test "$hardcode_minus_L" != no; then
9255 # Linking always hardcodes the temporary library directory.
9256 hardcode_action=relink
9258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9259 hardcode_action=immediate
9262 # We cannot hardcode anything, or else we can only hardcode existing
9264 hardcode_action=unsupported
9266 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9267 echo "${ECHO_T}$hardcode_action" >&6; }
9269 if test "$hardcode_action" = relink; then
9270 # Fast installation is not supported
9271 enable_fast_install=no
9272 elif test "$shlibpath_overrides_runpath" = yes ||
9273 test "$enable_shared" = no; then
9274 # Fast installation is not necessary
9275 enable_fast_install=needless
9280 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9281 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9282 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9284 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9285 { echo "$as_me:$LINENO: result: yes" >&5
9286 echo "${ECHO_T}yes" >&6; }
9288 # FIXME - insert some real tests, host_os isn't really good enough
9291 if test -n "$STRIP" ; then
9292 striplib="$STRIP -x"
9293 { echo "$as_me:$LINENO: result: yes" >&5
9294 echo "${ECHO_T}yes" >&6; }
9296 { echo "$as_me:$LINENO: result: no" >&5
9297 echo "${ECHO_T}no" >&6; }
9301 { echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6; }
9307 if test "x$enable_dlopen" != xyes; then
9308 enable_dlopen=unknown
9309 enable_dlopen_self=unknown
9310 enable_dlopen_self_static=unknown
9317 lt_cv_dlopen="load_add_on"
9319 lt_cv_dlopen_self=yes
9323 lt_cv_dlopen="LoadLibrary"
9328 lt_cv_dlopen="dlopen"
9333 # if libdl is installed we need to link against it
9334 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9335 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9336 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 ac_check_lib_save_LIBS=$LIBS
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9348 /* Override any GCC internal prototype to avoid an error.
9349 Use char because int might match the return type of a GCC
9350 builtin and then its argument prototype would still apply. */
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (ac_try="$ac_link"
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_link") 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest$ac_exeext &&
9380 $as_test_x conftest$ac_exeext; then
9381 ac_cv_lib_dl_dlopen=yes
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_cv_lib_dl_dlopen=no
9389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9390 conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9393 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9394 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9395 if test $ac_cv_lib_dl_dlopen = yes; then
9396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9401 lt_cv_dlopen_self=yes
9408 { echo "$as_me:$LINENO: checking for shl_load" >&5
9409 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9410 if test "${ac_cv_func_shl_load+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9421 #define shl_load innocuous_shl_load
9423 /* System header to define __stub macros and hopefully few prototypes,
9424 which can conflict with char shl_load (); below.
9425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9426 <limits.h> exists even on freestanding compilers. */
9429 # include <limits.h>
9431 # include <assert.h>
9436 /* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
9443 /* The GNU C library defines this for functions which it implements
9444 to always fail with ENOSYS. Some functions are actually named
9445 something starting with __ and the normal name is an alias. */
9446 #if defined __stub_shl_load || defined __stub___shl_load
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462 *) ac_try_echo=$ac_try;;
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465 (eval "$ac_link") 2>conftest.er1
9467 grep -v '^ *+' conftest.er1 >conftest.err
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } && {
9472 test -z "$ac_c_werror_flag" ||
9473 test ! -s conftest.err
9474 } && test -s conftest$ac_exeext &&
9475 $as_test_x conftest$ac_exeext; then
9476 ac_cv_func_shl_load=yes
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9481 ac_cv_func_shl_load=no
9484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485 conftest$ac_exeext conftest.$ac_ext
9487 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9488 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9489 if test $ac_cv_func_shl_load = yes; then
9490 lt_cv_dlopen="shl_load"
9492 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9493 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9494 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 ac_check_lib_save_LIBS=$LIBS
9499 cat >conftest.$ac_ext <<_ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9506 /* Override any GCC internal prototype to avoid an error.
9507 Use char because int might match the return type of a GCC
9508 builtin and then its argument prototype would still apply. */
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (ac_try="$ac_link"
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_link") 2>conftest.er1
9530 grep -v '^ *+' conftest.er1 >conftest.err
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && {
9535 test -z "$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 } && test -s conftest$ac_exeext &&
9538 $as_test_x conftest$ac_exeext; then
9539 ac_cv_lib_dld_shl_load=yes
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 ac_cv_lib_dld_shl_load=no
9547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9548 conftest$ac_exeext conftest.$ac_ext
9549 LIBS=$ac_check_lib_save_LIBS
9551 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9552 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9553 if test $ac_cv_lib_dld_shl_load = yes; then
9554 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9556 { echo "$as_me:$LINENO: checking for dlopen" >&5
9557 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9558 if test "${ac_cv_func_dlopen+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9569 #define dlopen innocuous_dlopen
9571 /* System header to define __stub macros and hopefully few prototypes,
9572 which can conflict with char dlopen (); below.
9573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9574 <limits.h> exists even on freestanding compilers. */
9577 # include <limits.h>
9579 # include <assert.h>
9584 /* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
9591 /* The GNU C library defines this for functions which it implements
9592 to always fail with ENOSYS. Some functions are actually named
9593 something starting with __ and the normal name is an alias. */
9594 #if defined __stub_dlopen || defined __stub___dlopen
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_link") 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest$ac_exeext &&
9623 $as_test_x conftest$ac_exeext; then
9624 ac_cv_func_dlopen=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_func_dlopen=no
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633 conftest$ac_exeext conftest.$ac_ext
9635 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9636 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9637 if test $ac_cv_func_dlopen = yes; then
9638 lt_cv_dlopen="dlopen"
9640 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9641 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 ac_check_lib_save_LIBS=$LIBS
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9669 rm -f conftest.$ac_objext conftest$ac_exeext
9670 if { (ac_try="$ac_link"
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_link") 2>conftest.er1
9678 grep -v '^ *+' conftest.er1 >conftest.err
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_c_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest$ac_exeext &&
9686 $as_test_x conftest$ac_exeext; then
9687 ac_cv_lib_dl_dlopen=yes
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ac_cv_lib_dl_dlopen=no
9695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9699 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9700 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9701 if test $ac_cv_lib_dl_dlopen = yes; then
9702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9704 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9705 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9706 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 ac_check_lib_save_LIBS=$LIBS
9711 cat >conftest.$ac_ext <<_ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9718 /* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext &&
9750 $as_test_x conftest$ac_exeext; then
9751 ac_cv_lib_svld_dlopen=yes
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_cv_lib_svld_dlopen=no
9759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9760 conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9763 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9764 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9765 if test $ac_cv_lib_svld_dlopen = yes; then
9766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9769 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9770 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 ac_check_lib_save_LIBS=$LIBS
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
9815 ac_cv_lib_dld_dld_link=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_lib_dld_dld_link=no
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9829 if test $ac_cv_lib_dld_dld_link = yes; then
9830 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9851 if test "x$lt_cv_dlopen" != xno; then
9857 case $lt_cv_dlopen in
9859 save_CPPFLAGS="$CPPFLAGS"
9860 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9862 save_LDFLAGS="$LDFLAGS"
9863 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9866 LIBS="$lt_cv_dlopen_libs $LIBS"
9868 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9869 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9870 if test "${lt_cv_dlopen_self+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 if test "$cross_compiling" = yes; then :
9874 lt_cv_dlopen_self=cross
9876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9877 lt_status=$lt_dlunknown
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9879 "configure"
9880 #include "confdefs.h"
9889 # define LT_DLGLOBAL RTLD_GLOBAL
9892 # define LT_DLGLOBAL DL_GLOBAL
9894 # define LT_DLGLOBAL 0
9898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9899 find out it does not work in some platform. */
9900 #ifndef LT_DLLAZY_OR_NOW
9902 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9905 # define LT_DLLAZY_OR_NOW DL_LAZY
9908 # define LT_DLLAZY_OR_NOW RTLD_NOW
9911 # define LT_DLLAZY_OR_NOW DL_NOW
9913 # define LT_DLLAZY_OR_NOW 0
9921 extern "C" void exit (int);
9924 void fnord() { int i=42;}
9927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9928 int status = $lt_dlunknown;
9932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9933 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9934 /* dlclose (self); */
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9945 (./conftest; exit; ) 2>/dev/null
9948 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9949 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9950 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9953 # compilation failed
9954 lt_cv_dlopen_self=no
9961 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9962 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9964 if test "x$lt_cv_dlopen_self" = xyes; then
9965 LDFLAGS="$LDFLAGS $link_static_flag"
9966 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9967 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9968 if test "${lt_cv_dlopen_self_static+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 if test "$cross_compiling" = yes; then :
9972 lt_cv_dlopen_self_static=cross
9974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9975 lt_status=$lt_dlunknown
9976 cat > conftest.$ac_ext <<EOF
9977 #line 9977 "configure"
9978 #include "confdefs.h"
9987 # define LT_DLGLOBAL RTLD_GLOBAL
9990 # define LT_DLGLOBAL DL_GLOBAL
9992 # define LT_DLGLOBAL 0
9996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9997 find out it does not work in some platform. */
9998 #ifndef LT_DLLAZY_OR_NOW
10000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10003 # define LT_DLLAZY_OR_NOW DL_LAZY
10006 # define LT_DLLAZY_OR_NOW RTLD_NOW
10009 # define LT_DLLAZY_OR_NOW DL_NOW
10011 # define LT_DLLAZY_OR_NOW 0
10019 extern "C" void exit (int);
10022 void fnord() { int i=42;}
10025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10026 int status = $lt_dlunknown;
10030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10031 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10032 /* dlclose (self); */
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10043 (./conftest; exit; ) 2>/dev/null
10045 case x$lt_status in
10046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10048 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10051 # compilation failed
10052 lt_cv_dlopen_self_static=no
10059 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10060 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10063 CPPFLAGS="$save_CPPFLAGS"
10064 LDFLAGS="$save_LDFLAGS"
10069 case $lt_cv_dlopen_self in
10070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10071 *) enable_dlopen_self=unknown ;;
10074 case $lt_cv_dlopen_self_static in
10075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10076 *) enable_dlopen_self_static=unknown ;;
10081 # Report which librarie types wil actually be built
10082 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10083 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10084 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10085 echo "${ECHO_T}$can_build_shared" >&6; }
10087 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10088 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10089 test "$can_build_shared" = "no" && enable_shared=no
10091 # On AIX, shared libraries and static libraries use the same namespace, and
10092 # are all built from PIC.
10095 test "$enable_shared" = yes && enable_static=no
10096 if test -n "$RANLIB"; then
10097 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10098 postinstall_cmds='$RANLIB $lib'
10103 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10104 test "$enable_shared" = yes && enable_static=no
10108 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10109 echo "${ECHO_T}$enable_shared" >&6; }
10111 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10112 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10113 # Make sure either enable_shared or enable_static is yes.
10114 test "$enable_shared" = yes || enable_static=yes
10115 { echo "$as_me:$LINENO: result: $enable_static" >&5
10116 echo "${ECHO_T}$enable_static" >&6; }
10118 # The else clause should only fire when bootstrapping the
10119 # libtool distribution, otherwise you forgot to ship ltmain.sh
10120 # with your package, and you will get complaints that there are
10121 # no rules to generate ltmain.sh.
10122 if test -f "$ltmain"; then
10123 # See if we are running on zsh, and set the options which allow our commands through
10124 # without removal of \ escapes.
10125 if test -n "${ZSH_VERSION+set}" ; then
10126 setopt NO_GLOB_SUBST
10128 # Now quote all the things that may contain metacharacters while being
10129 # careful not to overquote the AC_SUBSTed values. We take copies of the
10130 # variables and quote the copies for generation of the libtool script.
10131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10135 deplibs_check_method reload_flag reload_cmds need_locks \
10136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10137 lt_cv_sys_global_symbol_to_c_name_address \
10138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10139 old_postinstall_cmds old_postuninstall_cmds \
10143 lt_prog_compiler_wl \
10144 lt_prog_compiler_pic \
10145 lt_prog_compiler_static \
10146 lt_prog_compiler_no_builtin_flag \
10147 export_dynamic_flag_spec \
10148 thread_safe_flag_spec \
10149 whole_archive_flag_spec \
10150 enable_shared_with_static_runtimes \
10152 old_archive_from_new_cmds \
10157 compiler_lib_search_path \
10159 archive_expsym_cmds \
10161 postuninstall_cmds \
10162 old_archive_from_expsyms_cmds \
10163 allow_undefined_flag \
10164 no_undefined_flag \
10165 export_symbols_cmds \
10166 hardcode_libdir_flag_spec \
10167 hardcode_libdir_flag_spec_ld \
10168 hardcode_libdir_separator \
10169 hardcode_automatic \
10171 module_expsym_cmds \
10172 lt_cv_prog_compiler_c_o \
10174 include_expsyms; do
10177 old_archive_cmds | \
10178 old_archive_from_new_cmds | \
10180 archive_expsym_cmds | \
10182 module_expsym_cmds | \
10183 old_archive_from_expsyms_cmds | \
10184 export_symbols_cmds | \
10185 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10186 postinstall_cmds | postuninstall_cmds | \
10187 old_postinstall_cmds | old_postuninstall_cmds | \
10188 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10189 # Double-quote double-evaled strings.
10190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10199 *'\$0 --fallback-echo"')
10200 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10204 cfgfile="${ofile}T"
10205 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10207 { echo "$as_me:$LINENO: creating $ofile" >&5
10208 echo "$as_me: creating $ofile" >&6;}
10210 cat <<__EOF__ >> "$cfgfile"
10213 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10214 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10215 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10217 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10218 # Free Software Foundation, Inc.
10220 # This file is part of GNU Libtool:
10221 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10223 # This program is free software; you can redistribute it and/or modify
10224 # it under the terms of the GNU General Public License as published by
10225 # the Free Software Foundation; either version 2 of the License, or
10226 # (at your option) any later version.
10228 # This program is distributed in the hope that it will be useful, but
10229 # WITHOUT ANY WARRANTY; without even the implied warranty of
10230 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10231 # General Public License for more details.
10233 # You should have received a copy of the GNU General Public License
10234 # along with this program; if not, write to the Free Software
10235 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10237 # As a special exception to the GNU General Public License, if you
10238 # distribute this file as part of a program that contains a
10239 # configuration script generated by Autoconf, you may include it under
10240 # the same distribution terms that you use for the rest of that program.
10242 # A sed program that does not truncate output.
10245 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10246 Xsed="$SED -e 1s/^X//"
10248 # The HP-UX ksh and POSIX shell print the target directory to stdout
10249 # if CDPATH is set.
10250 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10252 # The names of the tagged configurations supported by this script.
10255 # ### BEGIN LIBTOOL CONFIG
10257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10259 # Shell to use when invoking shell scripts.
10262 # Whether or not to build shared libraries.
10263 build_libtool_libs=$enable_shared
10265 # Whether or not to build static libraries.
10266 build_old_libs=$enable_static
10268 # Whether or not to add -lc for building shared libraries.
10269 build_libtool_need_lc=$archive_cmds_need_lc
10271 # Whether or not to disallow shared libs when runtime libs are static
10272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10274 # Whether or not to optimize for fast installation.
10275 fast_install=$enable_fast_install
10278 host_alias=$host_alias
10282 # The build system.
10283 build_alias=$build_alias
10287 # An echo program that does not interpret backslashes.
10292 AR_FLAGS=$lt_AR_FLAGS
10297 # A language-specific compiler.
10300 # Is the compiler the GNU C compiler?
10306 # The linker used to build libraries.
10309 # Whether we need hard or soft links.
10312 # A BSD-compatible nm program.
10315 # A symbol stripping program
10318 # Used to examine libraries when file_magic_cmd begins "file"
10319 MAGIC_CMD=$MAGIC_CMD
10321 # Used on cygwin: DLL creation program.
10324 # Used on cygwin: object dumper.
10327 # Used on cygwin: assembler.
10330 # The name of the directory that contains temporary libtool files.
10333 # How to create reloadable object files.
10334 reload_flag=$lt_reload_flag
10335 reload_cmds=$lt_reload_cmds
10337 # How to pass a linker flag through the compiler.
10338 wl=$lt_lt_prog_compiler_wl
10340 # Object file suffix (normally "o").
10341 objext="$ac_objext"
10343 # Old archive suffix (normally "a").
10346 # Shared library suffix (normally ".so").
10347 shrext_cmds='$shrext_cmds'
10349 # Executable file suffix (normally "").
10352 # Additional compiler flags for building library objects.
10353 pic_flag=$lt_lt_prog_compiler_pic
10356 # What is the maximum length of a command?
10357 max_cmd_len=$lt_cv_sys_max_cmd_len
10359 # Does compiler simultaneously support -c and -o options?
10360 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10362 # Must we lock files when doing compilation?
10363 need_locks=$lt_need_locks
10365 # Do we need the lib prefix for modules?
10366 need_lib_prefix=$need_lib_prefix
10368 # Do we need a version for libraries?
10369 need_version=$need_version
10371 # Whether dlopen is supported.
10372 dlopen_support=$enable_dlopen
10374 # Whether dlopen of programs is supported.
10375 dlopen_self=$enable_dlopen_self
10377 # Whether dlopen of statically linked programs is supported.
10378 dlopen_self_static=$enable_dlopen_self_static
10380 # Compiler flag to prevent dynamic linking.
10381 link_static_flag=$lt_lt_prog_compiler_static
10383 # Compiler flag to turn off builtin functions.
10384 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10386 # Compiler flag to allow reflexive dlopens.
10387 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10389 # Compiler flag to generate shared objects directly from archives.
10390 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10392 # Compiler flag to generate thread-safe objects.
10393 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10395 # Library versioning type.
10396 version_type=$version_type
10398 # Format of library name prefix.
10399 libname_spec=$lt_libname_spec
10401 # List of archive names. First name is the real one, the rest are links.
10402 # The last name is the one that the linker finds with -lNAME.
10403 library_names_spec=$lt_library_names_spec
10405 # The coded name of the library, if different from the real name.
10406 soname_spec=$lt_soname_spec
10408 # Commands used to build and install an old-style archive.
10410 old_archive_cmds=$lt_old_archive_cmds
10411 old_postinstall_cmds=$lt_old_postinstall_cmds
10412 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10414 # Create an old-style archive from a shared archive.
10415 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10417 # Create a temporary old-style archive to link instead of a shared archive.
10418 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10420 # Commands used to build and install a shared archive.
10421 archive_cmds=$lt_archive_cmds
10422 archive_expsym_cmds=$lt_archive_expsym_cmds
10423 postinstall_cmds=$lt_postinstall_cmds
10424 postuninstall_cmds=$lt_postuninstall_cmds
10426 # Commands used to build a loadable module (assumed same as above if empty)
10427 module_cmds=$lt_module_cmds
10428 module_expsym_cmds=$lt_module_expsym_cmds
10430 # Commands to strip libraries.
10431 old_striplib=$lt_old_striplib
10432 striplib=$lt_striplib
10434 # Dependencies to place before the objects being linked to create a
10436 predep_objects=$lt_predep_objects
10438 # Dependencies to place after the objects being linked to create a
10440 postdep_objects=$lt_postdep_objects
10442 # Dependencies to place before the objects being linked to create a
10444 predeps=$lt_predeps
10446 # Dependencies to place after the objects being linked to create a
10448 postdeps=$lt_postdeps
10450 # The library search path used internally by the compiler when linking
10451 # a shared library.
10452 compiler_lib_search_path=$lt_compiler_lib_search_path
10454 # Method to check whether dependent libraries are shared objects.
10455 deplibs_check_method=$lt_deplibs_check_method
10457 # Command to use when deplibs_check_method == file_magic.
10458 file_magic_cmd=$lt_file_magic_cmd
10460 # Flag that allows shared libraries with undefined symbols to be built.
10461 allow_undefined_flag=$lt_allow_undefined_flag
10463 # Flag that forces no undefined symbols.
10464 no_undefined_flag=$lt_no_undefined_flag
10466 # Commands used to finish a libtool library installation in a directory.
10467 finish_cmds=$lt_finish_cmds
10469 # Same as above, but a single script fragment to be evaled but not shown.
10470 finish_eval=$lt_finish_eval
10472 # Take the output of nm and produce a listing of raw symbols and C names.
10473 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10475 # Transform the output of nm in a proper C declaration
10476 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10478 # Transform the output of nm in a C name address pair
10479 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10481 # This is the shared library runtime path variable.
10482 runpath_var=$runpath_var
10484 # This is the shared library path variable.
10485 shlibpath_var=$shlibpath_var
10487 # Is shlibpath searched before the hard-coded library search path?
10488 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10490 # How to hardcode a shared library path into an executable.
10491 hardcode_action=$hardcode_action
10493 # Whether we should hardcode library paths into libraries.
10494 hardcode_into_libs=$hardcode_into_libs
10496 # Flag to hardcode \$libdir into a binary during linking.
10497 # This must work even if \$libdir does not exist.
10498 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10500 # If ld is used when linking, flag to hardcode \$libdir into
10501 # a binary during linking. This must work even if \$libdir does
10503 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10505 # Whether we need a single -rpath flag with a separated argument.
10506 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10508 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10509 # resulting binary.
10510 hardcode_direct=$hardcode_direct
10512 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10513 # resulting binary.
10514 hardcode_minus_L=$hardcode_minus_L
10516 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10517 # the resulting binary.
10518 hardcode_shlibpath_var=$hardcode_shlibpath_var
10520 # Set to yes if building a shared library automatically hardcodes DIR into the library
10521 # and all subsequent libraries and executables linked against it.
10522 hardcode_automatic=$hardcode_automatic
10524 # Variables whose values should be saved in libtool wrapper scripts and
10525 # restored at relink time.
10526 variables_saved_for_relink="$variables_saved_for_relink"
10528 # Whether libtool must link a program against all its dependency libraries.
10529 link_all_deplibs=$link_all_deplibs
10531 # Compile-time system search path for libraries
10532 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10534 # Run-time system search path for libraries
10535 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10537 # Fix the shell variable \$srcfile for the compiler.
10538 fix_srcfile_path="$fix_srcfile_path"
10540 # Set to yes if exported symbols are required.
10541 always_export_symbols=$always_export_symbols
10543 # The commands to list exported symbols.
10544 export_symbols_cmds=$lt_export_symbols_cmds
10546 # The commands to extract the exported symbol list from a shared archive.
10547 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10549 # Symbols that should not be listed in the preloaded symbols.
10550 exclude_expsyms=$lt_exclude_expsyms
10552 # Symbols that must always be exported.
10553 include_expsyms=$lt_include_expsyms
10555 # ### END LIBTOOL CONFIG
10562 cat <<\EOF >> "$cfgfile"
10564 # AIX sometimes has problems with the GCC collect2 program. For some
10565 # reason, if we set the COLLECT_NAMES environment variable, the problems
10566 # vanish in a puff of smoke.
10567 if test "X${COLLECT_NAMES+set}" != Xset; then
10569 export COLLECT_NAMES
10575 # We use sed instead of cat because bash on DJGPP gets confused if
10576 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10577 # text mode, it properly converts lines to CR/LF. This bash problem
10578 # is reportedly fixed, but why not run on old versions too?
10579 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10581 mv -f "$cfgfile" "$ofile" || \
10582 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10586 # If there is no Makefile yet, we rely on a make rule to execute
10587 # `config.status --recheck' to rerun these tests and create the
10588 # libtool script then.
10589 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10590 if test -f "$ltmain_in"; then
10591 test -f Makefile && make "$ltmain"
10597 ac_cpp='$CPP $CPPFLAGS'
10598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10605 # Check whether --with-tags was given.
10606 if test "${with_tags+set}" = set; then
10607 withval=$with_tags; tagnames="$withval"
10611 if test -f "$ltmain" && test -n "$tagnames"; then
10612 if test ! -f "${ofile}"; then
10613 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10614 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10617 if test -z "$LTCC"; then
10618 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10619 if test -z "$LTCC"; then
10620 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10621 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10624 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10628 # Extract list of available tagged configurations in $ofile.
10629 # Note that this assumes the entire list is on one line.
10630 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10633 for tagname in $tagnames; do
10635 # Check whether tagname contains only valid characters
10636 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10638 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10639 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10640 { (exit 1); exit 1; }; }
10644 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10646 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10647 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10648 { (exit 1); exit 1; }; }
10651 # Update the list of available tags.
10652 if test -n "$tagname"; then
10653 echo appending configuration tag \"$tagname\" to $ofile
10657 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10658 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10659 (test "X$CXX" != "Xg++"))) ; then
10661 ac_cpp='$CXXCPP $CPPFLAGS'
10662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10669 archive_cmds_need_lc_CXX=no
10670 allow_undefined_flag_CXX=
10671 always_export_symbols_CXX=no
10672 archive_expsym_cmds_CXX=
10673 export_dynamic_flag_spec_CXX=
10674 hardcode_direct_CXX=no
10675 hardcode_libdir_flag_spec_CXX=
10676 hardcode_libdir_flag_spec_ld_CXX=
10677 hardcode_libdir_separator_CXX=
10678 hardcode_minus_L_CXX=no
10679 hardcode_automatic_CXX=no
10681 module_expsym_cmds_CXX=
10682 link_all_deplibs_CXX=unknown
10683 old_archive_cmds_CXX=$old_archive_cmds
10684 no_undefined_flag_CXX=
10685 whole_archive_flag_spec_CXX=
10686 enable_shared_with_static_runtimes_CXX=no
10688 # Dependencies to place before and after the object being linked:
10689 predep_objects_CXX=
10690 postdep_objects_CXX=
10693 compiler_lib_search_path_CXX=
10695 # Source file extension for C++ test sources.
10698 # Object file extension for compiled C++ test sources.
10702 # Code to be used in simple compile tests
10703 lt_simple_compile_test_code="int some_variable = 0;\n"
10705 # Code to be used in simple link tests
10706 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10710 # If no C compiler was specified, use CC.
10713 # Allow CC to be a program name with arguments.
10717 # save warnings/boilerplate of simple test code
10718 ac_outfile=conftest.$ac_objext
10719 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10721 _lt_compiler_boilerplate=`cat conftest.err`
10724 ac_outfile=conftest.$ac_objext
10725 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10727 _lt_linker_boilerplate=`cat conftest.err`
10731 # Allow CC to be a program name with arguments.
10736 lt_save_with_gnu_ld=$with_gnu_ld
10737 lt_save_path_LD=$lt_cv_path_LD
10738 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10739 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10741 unset lt_cv_prog_gnu_ld
10743 if test -n "${lt_cv_path_LDCXX+set}"; then
10744 lt_cv_path_LD=$lt_cv_path_LDCXX
10746 unset lt_cv_path_LD
10748 test -z "${LDCXX+set}" || LD=$LDCXX
10752 for cc_temp in $compiler""; do
10754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10760 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10763 # We don't want -fno-exception wen compiling C++ code, so set the
10764 # no_builtin_flag separately
10765 if test "$GXX" = yes; then
10766 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10768 lt_prog_compiler_no_builtin_flag_CXX=
10771 if test "$GXX" = yes; then
10772 # Set up default GNU C++ configuration
10775 # Check whether --with-gnu-ld was given.
10776 if test "${with_gnu_ld+set}" = set; then
10777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10783 if test "$GCC" = yes; then
10784 # Check if gcc -print-prog-name=ld gives a path.
10785 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10786 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10789 # gcc leaves a trailing carriage return which upsets mingw
10790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10795 # Accept absolute paths.
10797 re_direlt='/[^/][^/]*/\.\./'
10798 # Canonicalize the pathname of ld
10799 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10800 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10801 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10803 test -z "$LD" && LD="$ac_prog"
10806 # If it fails, then pretend we aren't using GCC.
10810 # If it is relative, then search for the first ld in PATH.
10811 with_gnu_ld=unknown
10814 elif test "$with_gnu_ld" = yes; then
10815 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10816 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10818 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10819 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10821 if test "${lt_cv_path_LD+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 if test -z "$LD"; then
10825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10826 for ac_dir in $PATH; do
10828 test -z "$ac_dir" && ac_dir=.
10829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10830 lt_cv_path_LD="$ac_dir/$ac_prog"
10831 # Check to see if the program is GNU ld. I'd rather use --version,
10832 # but apparently some GNU ld's only accept -v.
10833 # Break only if it was the GNU/non-GNU ld that we prefer.
10834 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10835 *GNU* | *'with BFD'*)
10836 test "$with_gnu_ld" != no && break
10839 test "$with_gnu_ld" != yes && break
10846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10850 LD="$lt_cv_path_LD"
10851 if test -n "$LD"; then
10852 { echo "$as_me:$LINENO: result: $LD" >&5
10853 echo "${ECHO_T}$LD" >&6; }
10855 { echo "$as_me:$LINENO: result: no" >&5
10856 echo "${ECHO_T}no" >&6; }
10858 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10859 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10860 { (exit 1); exit 1; }; }
10861 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10862 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10863 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10867 case `$LD -v 2>&1 </dev/null` in
10868 *GNU* | *'with BFD'*)
10869 lt_cv_prog_gnu_ld=yes
10872 lt_cv_prog_gnu_ld=no
10876 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10877 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10878 with_gnu_ld=$lt_cv_prog_gnu_ld
10882 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10883 # archiving commands below assume that GNU ld is being used.
10884 if test "$with_gnu_ld" = yes; then
10885 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10886 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'
10888 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10891 # If archive_cmds runs LD, not CC, wlarc should be empty
10892 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10893 # investigate it a little bit more. (MM)
10896 # ancient GNU ld didn't support --whole-archive et. al.
10897 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10898 grep 'no-whole-archive' > /dev/null; then
10899 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10901 whole_archive_flag_spec_CXX=
10907 # A generic and very simple default shared library creation
10908 # command for GNU C++ for the case where it uses the native
10909 # linker, instead of GNU ld. If possible, this setting should
10910 # overridden to take advantage of the native linker features on
10911 # the platform it is being used on.
10912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10915 # Commands to make compiler produce verbose output that lists
10916 # what "hidden" libraries, object files and flags are used when
10917 # linking a shared library.
10918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10926 # PORTME: fill in a description of your system's C++ link characteristics
10927 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10928 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10932 # FIXME: insert proper C++ library support
10936 if test "$host_cpu" = ia64; then
10937 # On IA64, the linker does run time linking by default, so we don't
10938 # have to do anything special.
10939 aix_use_runtimelinking=no
10940 exp_sym_flag='-Bexport'
10943 aix_use_runtimelinking=no
10945 # Test if we are trying to use run time linking or normal
10946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10947 # need to do runtime linking.
10948 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10949 for ld_flag in $LDFLAGS; do
10952 aix_use_runtimelinking=yes
10959 exp_sym_flag='-bexport'
10960 no_entry_flag='-bnoentry'
10963 # When large executables or shared objects are built, AIX ld can
10964 # have problems creating the table of contents. If linking a library
10965 # or program results in "error TOC overflow" add -mminimal-toc to
10966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10969 archive_cmds_CXX=''
10970 hardcode_direct_CXX=yes
10971 hardcode_libdir_separator_CXX=':'
10972 link_all_deplibs_CXX=yes
10974 if test "$GXX" = yes; then
10975 case $host_os in aix4.[012]|aix4.[012].*)
10976 # We only want to do this on AIX 4.2 and lower, the check
10977 # below for broken collect2 doesn't work under 4.3+
10978 collect2name=`${CC} -print-prog-name=collect2`
10979 if test -f "$collect2name" && \
10980 strings "$collect2name" | grep resolve_lib_name >/dev/null
10982 # We have reworked collect2
10983 hardcode_direct_CXX=yes
10985 # We have old collect2
10986 hardcode_direct_CXX=unsupported
10987 # It fails to find uninstalled libraries when the uninstalled
10988 # path is not listed in the libpath. Setting hardcode_minus_L
10989 # to unsupported forces relinking
10990 hardcode_minus_L_CXX=yes
10991 hardcode_libdir_flag_spec_CXX='-L$libdir'
10992 hardcode_libdir_separator_CXX=
10995 shared_flag='-shared'
10996 if test "$aix_use_runtimelinking" = yes; then
10997 shared_flag="$shared_flag "'${wl}-G'
11001 if test "$host_cpu" = ia64; then
11002 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11003 # chokes on -Wl,-G. The following line is correct:
11006 if test "$aix_use_runtimelinking" = yes; then
11007 shared_flag='${wl}-G'
11009 shared_flag='${wl}-bM:SRE'
11014 # It seems that -bexpall does not export symbols beginning with
11015 # underscore (_), so it is better to generate a list of symbols to export.
11016 always_export_symbols_CXX=yes
11017 if test "$aix_use_runtimelinking" = yes; then
11018 # Warning - without using the other runtime loading flags (-brtl),
11019 # -berok will link without error, but may produce a broken library.
11020 allow_undefined_flag_CXX='-berok'
11021 # Determine the default libpath from the value encoded in an empty executable.
11022 cat >conftest.$ac_ext <<_ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_cxx_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext &&
11054 $as_test_x conftest$ac_exeext; then
11056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11058 # Check for a 64-bit object if we didn't find anything.
11059 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11072 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11074 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11076 if test "$host_cpu" = ia64; then
11077 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11078 allow_undefined_flag_CXX="-z nodefs"
11079 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11081 # Determine the default libpath from the value encoded in an empty executable.
11082 cat >conftest.$ac_ext <<_ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11097 rm -f conftest.$ac_objext conftest$ac_exeext
11098 if { (ac_try="$ac_link"
11099 case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104 (eval "$ac_link") 2>conftest.er1
11106 grep -v '^ *+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_cxx_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest$ac_exeext &&
11114 $as_test_x conftest$ac_exeext; then
11116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11118 # Check for a 64-bit object if we didn't find anything.
11119 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11129 conftest$ac_exeext conftest.$ac_ext
11130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11132 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11133 # Warning - without using the other run time loading flags,
11134 # -berok will link without error, but may produce a broken library.
11135 no_undefined_flag_CXX=' ${wl}-bernotok'
11136 allow_undefined_flag_CXX=' ${wl}-berok'
11137 # -bexpall does not export symbols beginning with underscore (_)
11138 always_export_symbols_CXX=yes
11139 # Exported symbols can be pulled into shared objects from archives
11140 whole_archive_flag_spec_CXX=' '
11141 archive_cmds_need_lc_CXX=yes
11142 # This is similar to how AIX traditionally builds it's shared libraries.
11143 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11148 case $cc_basename in
11150 # FIXME: insert proper C++ library support
11157 cygwin* | mingw* | pw32*)
11158 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11159 # as there is no search path for DLLs.
11160 hardcode_libdir_flag_spec_CXX='-L$libdir'
11161 allow_undefined_flag_CXX=unsupported
11162 always_export_symbols_CXX=no
11163 enable_shared_with_static_runtimes_CXX=yes
11165 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11166 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11167 # If the export-symbols file already is a .def file (1st line
11168 # is EXPORTS), use it as is; otherwise, prepend...
11169 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11170 cp $export_symbols $output_objdir/$soname.def;
11172 echo EXPORTS > $output_objdir/$soname.def;
11173 cat $export_symbols >> $output_objdir/$soname.def;
11175 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11180 darwin* | rhapsody*)
11182 rhapsody* | darwin1.[012])
11183 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11186 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11187 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11189 case ${MACOSX_DEPLOYMENT_TARGET} in
11191 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11194 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11200 archive_cmds_need_lc_CXX=no
11201 hardcode_direct_CXX=no
11202 hardcode_automatic_CXX=yes
11203 hardcode_shlibpath_var_CXX=unsupported
11204 whole_archive_flag_spec_CXX=''
11205 link_all_deplibs_CXX=yes
11207 if test "$GXX" = yes ; then
11208 lt_int_apple_cc_single_mod=no
11209 output_verbose_link_cmd='echo'
11210 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11211 lt_int_apple_cc_single_mod=yes
11213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11214 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11216 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'
11218 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11220 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11221 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11223 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11225 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}'
11227 case $cc_basename in
11229 output_verbose_link_cmd='echo'
11230 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11231 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11233 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11234 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}'
11244 case $cc_basename in
11246 # FIXME: insert proper C++ library support
11250 # Green Hills C++ Compiler
11251 # FIXME: insert proper C++ library support
11255 # FIXME: insert proper C++ library support
11261 # C++ shared libraries reported to be fairly broken before switch to ELF
11265 archive_cmds_need_lc_CXX=no
11267 freebsd* | kfreebsd*-gnu | dragonfly*)
11268 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11275 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11276 hardcode_libdir_separator_CXX=:
11277 export_dynamic_flag_spec_CXX='${wl}-E'
11278 hardcode_direct_CXX=yes
11279 hardcode_minus_L_CXX=yes # Not in the search PATH,
11280 # but as the default
11281 # location of the library.
11283 case $cc_basename in
11285 # FIXME: insert proper C++ library support
11289 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'
11290 # Commands to make compiler produce verbose output that lists
11291 # what "hidden" libraries, object files and flags are used when
11292 # linking a shared library.
11294 # There doesn't appear to be a way to prevent this compiler from
11295 # explicitly linking system object files so we need to strip them
11296 # from the output so that they don't get included in the library
11298 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'
11301 if test "$GXX" = yes; then
11302 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'
11304 # FIXME: insert proper C++ library support
11311 if test $with_gnu_ld = no; then
11312 case "$host_cpu" in
11314 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11315 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11316 hardcode_libdir_separator_CXX=:
11319 hardcode_libdir_flag_spec_CXX='-L$libdir'
11322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11323 hardcode_libdir_separator_CXX=:
11324 export_dynamic_flag_spec_CXX='${wl}-E'
11328 case "$host_cpu" in
11330 hardcode_direct_CXX=no
11331 hardcode_shlibpath_var_CXX=no
11334 hardcode_direct_CXX=no
11335 hardcode_shlibpath_var_CXX=no
11336 hardcode_minus_L_CXX=yes # Not in the search PATH,
11337 # but as the default
11338 # location of the library.
11341 hardcode_direct_CXX=yes
11342 hardcode_minus_L_CXX=yes # Not in the search PATH,
11343 # but as the default
11344 # location of the library.
11348 case $cc_basename in
11350 # FIXME: insert proper C++ library support
11354 case "$host_cpu" in
11356 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11359 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11362 # Commands to make compiler produce verbose output that lists
11363 # what "hidden" libraries, object files and flags are used when
11364 # linking a shared library.
11366 # There doesn't appear to be a way to prevent this compiler from
11367 # explicitly linking system object files so we need to strip them
11368 # from the output so that they don't get included in the library
11370 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'
11373 if test "$GXX" = yes; then
11374 if test $with_gnu_ld = no; then
11375 case "$host_cpu" in
11377 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11380 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'
11385 # FIXME: insert proper C++ library support
11392 case $cc_basename in
11395 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'
11397 # Archives containing C++ object files must be created using
11398 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11399 # necessary to make sure instantiated templates are included
11401 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11404 if test "$GXX" = yes; then
11405 if test "$with_gnu_ld" = no; then
11406 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'
11408 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'
11411 link_all_deplibs_CXX=yes
11414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11415 hardcode_libdir_separator_CXX=:
11418 case $cc_basename in
11420 # Kuck and Associates, Inc. (KAI) C++ Compiler
11422 # KCC will only create a shared library if the output file
11423 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11424 # to its proper name (with version) after linking.
11425 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'
11426 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'
11427 # Commands to make compiler produce verbose output that lists
11428 # what "hidden" libraries, object files and flags are used when
11429 # linking a shared library.
11431 # There doesn't appear to be a way to prevent this compiler from
11432 # explicitly linking system object files so we need to strip them
11433 # from the output so that they don't get included in the library
11435 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'
11437 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11440 # Archives containing C++ object files must be created using
11441 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11442 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11447 # version 8.0 and above of icpc choke on multiply defined symbols
11448 # if we add $predep_objects and $postdep_objects, however 7.1 and
11449 # earlier do not add the objects themselves.
11450 case `$CC -V 2>&1` in
11452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11453 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'
11455 *) # Version 8.0 or newer
11458 ia64*) tmp_idyn=' -i_dynamic';;
11460 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461 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'
11464 archive_cmds_need_lc_CXX=no
11465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11467 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11470 # Portland Group C++ compiler
11471 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11472 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'
11474 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11476 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'
11480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11481 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'
11483 runpath_var=LD_RUN_PATH
11484 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11485 hardcode_libdir_separator_CXX=:
11487 # Commands to make compiler produce verbose output that lists
11488 # what "hidden" libraries, object files and flags are used when
11489 # linking a shared library.
11491 # There doesn't appear to be a way to prevent this compiler from
11492 # explicitly linking system object files so we need to strip them
11493 # from the output so that they don't get included in the library
11495 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'
11500 # FIXME: insert proper C++ library support
11504 # FIXME: insert proper C++ library support
11508 case $cc_basename in
11510 # FIXME: insert proper C++ library support
11514 # FIXME: insert proper C++ library support
11520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11521 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11523 hardcode_libdir_flag_spec_CXX='-R$libdir'
11524 hardcode_direct_CXX=yes
11525 hardcode_shlibpath_var_CXX=no
11527 # Workaround some broken pre-1.5 toolchains
11528 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11531 # C++ shared libraries are fairly broken
11535 hardcode_direct_CXX=yes
11536 hardcode_shlibpath_var_CXX=no
11537 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11538 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11540 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11541 export_dynamic_flag_spec_CXX='${wl}-E'
11542 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11544 output_verbose_link_cmd='echo'
11547 case $cc_basename in
11549 # Kuck and Associates, Inc. (KAI) C++ Compiler
11551 # KCC will only create a shared library if the output file
11552 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11553 # to its proper name (with version) after linking.
11554 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'
11556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11557 hardcode_libdir_separator_CXX=:
11559 # Archives containing C++ object files must be created using
11560 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11561 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11565 # Rational C++ 2.4.1
11566 # FIXME: insert proper C++ library support
11570 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11571 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'
11573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11574 hardcode_libdir_separator_CXX=:
11576 # Commands to make compiler produce verbose output that lists
11577 # what "hidden" libraries, object files and flags are used when
11578 # linking a shared library.
11580 # There doesn't appear to be a way to prevent this compiler from
11581 # explicitly linking system object files so we need to strip them
11582 # from the output so that they don't get included in the library
11584 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'
11587 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11588 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11589 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'
11591 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11592 hardcode_libdir_separator_CXX=:
11594 # Commands to make compiler produce verbose output that lists
11595 # what "hidden" libraries, object files and flags are used when
11596 # linking a shared library.
11597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11600 # FIXME: insert proper C++ library support
11607 case $cc_basename in
11609 # Kuck and Associates, Inc. (KAI) C++ Compiler
11611 # KCC will only create a shared library if the output file
11612 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11613 # to its proper name (with version) after linking.
11614 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'
11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11617 hardcode_libdir_separator_CXX=:
11619 # Archives containing C++ object files must be created using
11620 # the KAI C++ compiler.
11621 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11624 # Rational C++ 2.4.1
11625 # FIXME: insert proper C++ library support
11629 allow_undefined_flag_CXX=' -expect_unresolved \*'
11630 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'
11631 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11632 echo "-hidden">> $lib.exp~
11633 $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~
11636 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11637 hardcode_libdir_separator_CXX=:
11639 # Commands to make compiler produce verbose output that lists
11640 # what "hidden" libraries, object files and flags are used when
11641 # linking a shared library.
11643 # There doesn't appear to be a way to prevent this compiler from
11644 # explicitly linking system object files so we need to strip them
11645 # from the output so that they don't get included in the library
11647 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'
11650 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11651 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11652 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'
11654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11655 hardcode_libdir_separator_CXX=:
11657 # Commands to make compiler produce verbose output that lists
11658 # what "hidden" libraries, object files and flags are used when
11659 # linking a shared library.
11660 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11663 # FIXME: insert proper C++ library support
11670 # FIXME: insert proper C++ library support
11674 archive_cmds_need_lc_CXX=no
11675 case $cc_basename in
11677 # FIXME: insert proper C++ library support
11681 # FIXME: insert proper C++ library support
11687 case $cc_basename in
11690 # FIXME: insert proper C++ library support
11695 # FIXME: insert proper C++ library support
11699 # FIXME: insert proper C++ library support
11705 case $cc_basename in
11707 # Sun C++ 4.2, 5.x and Centerline C++
11708 no_undefined_flag_CXX=' -zdefs'
11709 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11710 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11711 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11713 hardcode_libdir_flag_spec_CXX='-R$libdir'
11714 hardcode_shlibpath_var_CXX=no
11716 solaris2.[0-5] | solaris2.[0-5].*) ;;
11718 # The C++ compiler is used as linker so we must use $wl
11719 # flag to pass the commands to the underlying system
11720 # linker. We must also pass each convience library through
11721 # to the system linker between allextract/defaultextract.
11722 # The C++ compiler will combine linker options so we
11723 # cannot just pass the convience library names through
11725 # Supported since Solaris 2.6 (maybe 2.5.1?)
11726 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11729 link_all_deplibs_CXX=yes
11731 # Commands to make compiler produce verbose output that lists
11732 # what "hidden" libraries, object files and flags are used when
11733 # linking a shared library.
11735 # There doesn't appear to be a way to prevent this compiler from
11736 # explicitly linking system object files so we need to strip them
11737 # from the output so that they don't get included in the library
11739 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11741 # Archives containing C++ object files must be created using
11742 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11743 # necessary to make sure instantiated templates are included
11745 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11748 # Green Hills C++ Compiler
11749 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11751 # The C++ compiler must be used to create the archive.
11752 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11755 # GNU C++ compiler with Solaris linker
11756 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11757 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11758 if $CC --version | grep -v '^2\.7' > /dev/null; then
11759 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11760 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11761 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11763 # Commands to make compiler produce verbose output that lists
11764 # what "hidden" libraries, object files and flags are used when
11765 # linking a shared library.
11766 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11768 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11770 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11771 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11772 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11774 # Commands to make compiler produce verbose output that lists
11775 # what "hidden" libraries, object files and flags are used when
11776 # linking a shared library.
11777 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11780 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11785 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11786 archive_cmds_need_lc_CXX=no
11789 case $cc_basename in
11791 # NonStop-UX NCC 3.20
11792 # FIXME: insert proper C++ library support
11796 # FIXME: insert proper C++ library support
11802 # FIXME: insert proper C++ library support
11806 # FIXME: insert proper C++ library support
11810 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11811 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11812 test "$ld_shlibs_CXX" = no && can_build_shared=no
11818 cat > conftest.$ac_ext <<EOF
11822 Foo (void) { a = 0; }
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; then
11833 # Parse the compiler output and extract the necessary
11834 # objects, libraries and library flags.
11836 # Sentinel used to keep track of whether or not we are before
11837 # the conftest object file.
11838 pre_test_object_deps_done=no
11840 # The `*' in the case matches for architectures that use `case' in
11841 # $output_verbose_cmd can trigger glob expansion during the loop
11842 # eval without this substitution.
11843 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11845 for p in `eval $output_verbose_link_cmd`; do
11849 # Some compilers place space between "-{L,R}" and the path.
11850 # Remove the space.
11851 if test $p = "-L" \
11852 || test $p = "-R"; then
11859 if test "$pre_test_object_deps_done" = no; then
11862 # Internal compiler library paths should come after those
11863 # provided the user. The postdeps already come after the
11864 # user supplied libs so there is no need to process them.
11865 if test -z "$compiler_lib_search_path_CXX"; then
11866 compiler_lib_search_path_CXX="${prev}${p}"
11868 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11871 # The "-l" case would never come before the object being
11872 # linked, so don't bother handling this case.
11875 if test -z "$postdeps_CXX"; then
11876 postdeps_CXX="${prev}${p}"
11878 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11884 # This assumes that the test object file only shows up
11885 # once in the compiler output.
11886 if test "$p" = "conftest.$objext"; then
11887 pre_test_object_deps_done=yes
11891 if test "$pre_test_object_deps_done" = no; then
11892 if test -z "$predep_objects_CXX"; then
11893 predep_objects_CXX="$p"
11895 predep_objects_CXX="$predep_objects_CXX $p"
11898 if test -z "$postdep_objects_CXX"; then
11899 postdep_objects_CXX="$p"
11901 postdep_objects_CXX="$postdep_objects_CXX $p"
11906 *) ;; # Ignore the rest.
11914 echo "libtool.m4: error: problem compiling CXX test program"
11917 $rm -f confest.$objext
11919 case " $postdeps_CXX " in
11920 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11923 lt_prog_compiler_wl_CXX=
11924 lt_prog_compiler_pic_CXX=
11925 lt_prog_compiler_static_CXX=
11927 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11928 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11930 # C++ specific cases for pic, static, wl, etc.
11931 if test "$GXX" = yes; then
11932 lt_prog_compiler_wl_CXX='-Wl,'
11933 lt_prog_compiler_static_CXX='-static'
11937 # All AIX code is PIC.
11938 if test "$host_cpu" = ia64; then
11939 # AIX 5 now supports IA64 processor
11940 lt_prog_compiler_static_CXX='-Bstatic'
11944 # FIXME: we need at least 68020 code to build shared libraries, but
11945 # adding the `-m68020' flag to GCC prevents building anything better,
11947 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11949 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11950 # PIC is the default for these OSes.
11952 mingw* | os2* | pw32*)
11953 # This hack is so that the source file can tell whether it is being
11954 # built for inclusion in a dll (and should export symbols for example).
11955 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11957 darwin* | rhapsody*)
11958 # PIC is the default on this platform
11959 # Common symbols not allowed in MH_DYLIB files
11960 lt_prog_compiler_pic_CXX='-fno-common'
11963 # DJGPP does not support shared libraries at all
11964 lt_prog_compiler_pic_CXX=
11967 if test -d /usr/nec; then
11968 lt_prog_compiler_pic_CXX=-Kconform_pic
11972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11973 # not for PA HP-UX.
11974 case "$host_cpu" in
11978 lt_prog_compiler_pic_CXX='-fPIC'
11983 lt_prog_compiler_pic_CXX='-fPIC'
11989 # All AIX code is PIC.
11990 if test "$host_cpu" = ia64; then
11991 # AIX 5 now supports IA64 processor
11992 lt_prog_compiler_static_CXX='-Bstatic'
11994 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11998 case $cc_basename in
12000 # Green Hills C++ Compiler
12001 # _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"
12006 # PIC is the default on this platform
12007 # Common symbols not allowed in MH_DYLIB files
12008 case $cc_basename in
12010 lt_prog_compiler_pic_CXX='-qnocommon'
12011 lt_prog_compiler_wl_CXX='-Wl,'
12016 case $cc_basename in
12018 lt_prog_compiler_pic_CXX='-KPIC'
12021 # Green Hills C++ Compiler
12022 lt_prog_compiler_pic_CXX='-pic'
12028 freebsd* | kfreebsd*-gnu | dragonfly*)
12029 # FreeBSD uses GNU C++
12031 hpux9* | hpux10* | hpux11*)
12032 case $cc_basename in
12034 lt_prog_compiler_wl_CXX='-Wl,'
12035 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12036 if test "$host_cpu" != ia64; then
12037 lt_prog_compiler_pic_CXX='+Z'
12041 lt_prog_compiler_wl_CXX='-Wl,'
12042 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12043 case "$host_cpu" in
12048 lt_prog_compiler_pic_CXX='+Z'
12056 irix5* | irix6* | nonstopux*)
12057 case $cc_basename in
12059 lt_prog_compiler_wl_CXX='-Wl,'
12060 lt_prog_compiler_static_CXX='-non_shared'
12061 # CC pic flag -KPIC is the default.
12068 case $cc_basename in
12071 lt_prog_compiler_wl_CXX='--backend -Wl,'
12072 lt_prog_compiler_pic_CXX='-fPIC'
12076 lt_prog_compiler_wl_CXX='-Wl,'
12077 lt_prog_compiler_pic_CXX='-KPIC'
12078 lt_prog_compiler_static_CXX='-static'
12081 # Portland Group C++ compiler.
12082 lt_prog_compiler_wl_CXX='-Wl,'
12083 lt_prog_compiler_pic_CXX='-fpic'
12084 lt_prog_compiler_static_CXX='-static'
12088 # Make sure the PIC flag is empty. It appears that all Alpha
12089 # Linux and Compaq Tru64 Unix objects are PIC.
12090 lt_prog_compiler_pic_CXX=
12091 lt_prog_compiler_static_CXX='-non_shared'
12102 case $cc_basename in
12104 lt_prog_compiler_pic_CXX='-W c,exportall'
12112 osf3* | osf4* | osf5*)
12113 case $cc_basename in
12115 lt_prog_compiler_wl_CXX='--backend -Wl,'
12118 # Rational C++ 2.4.1
12119 lt_prog_compiler_pic_CXX='-pic'
12122 # Digital/Compaq C++
12123 lt_prog_compiler_wl_CXX='-Wl,'
12124 # Make sure the PIC flag is empty. It appears that all Alpha
12125 # Linux and Compaq Tru64 Unix objects are PIC.
12126 lt_prog_compiler_pic_CXX=
12127 lt_prog_compiler_static_CXX='-non_shared'
12136 case $cc_basename in
12138 lt_prog_compiler_pic_CXX='-fPIC'
12145 case $cc_basename in
12147 # Sun C++ 4.2, 5.x and Centerline C++
12148 lt_prog_compiler_pic_CXX='-KPIC'
12149 lt_prog_compiler_static_CXX='-Bstatic'
12150 lt_prog_compiler_wl_CXX='-Qoption ld '
12153 # Green Hills C++ Compiler
12154 lt_prog_compiler_pic_CXX='-PIC'
12161 case $cc_basename in
12164 lt_prog_compiler_pic_CXX='-pic'
12165 lt_prog_compiler_static_CXX='-Bstatic'
12169 lt_prog_compiler_pic_CXX='-pic'
12176 case $cc_basename in
12178 # NonStop-UX NCC 3.20
12179 lt_prog_compiler_pic_CXX='-KPIC'
12190 lt_prog_compiler_can_build_shared_CXX=no
12195 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12196 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12199 # Check to make sure the PIC flag actually works.
12201 if test -n "$lt_prog_compiler_pic_CXX"; then
12203 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12204 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12205 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 lt_prog_compiler_pic_works_CXX=no
12209 ac_outfile=conftest.$ac_objext
12210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12211 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12212 # Insert the option either (1) after the last *FLAGS variable, or
12213 # (2) before a word containing "conftest.", or (3) at the end.
12214 # Note that $ac_compile itself does not contain backslashes and begins
12215 # with a dollar sign (not a hyphen), so the echo should work correctly.
12216 # The option is referenced via a variable to avoid confusing sed.
12217 lt_compile=`echo "$ac_compile" | $SED \
12218 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12220 -e 's:$: $lt_compiler_flag:'`
12221 (eval echo "\"\$as_me:12221: $lt_compile\"" >&5)
12222 (eval "$lt_compile" 2>conftest.err)
12224 cat conftest.err >&5
12225 echo "$as_me:12225: \$? = $ac_status" >&5
12226 if (exit $ac_status) && test -s "$ac_outfile"; then
12227 # The compiler can only warn and ignore the option if not recognized
12228 # So say no if there are warnings other than the usual output.
12229 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12230 $SED '/^$/d' conftest.err >conftest.er2
12231 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12232 lt_prog_compiler_pic_works_CXX=yes
12238 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12239 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12241 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12242 case $lt_prog_compiler_pic_CXX in
12244 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12247 lt_prog_compiler_pic_CXX=
12248 lt_prog_compiler_can_build_shared_CXX=no
12253 # For platforms which do not support PIC, -DPIC is meaningless:
12255 lt_prog_compiler_pic_CXX=
12258 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12262 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12263 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12264 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 lt_cv_prog_compiler_c_o_CXX=no
12268 $rm -r conftest 2>/dev/null
12272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12274 lt_compiler_flag="-o out/conftest2.$ac_objext"
12275 # Insert the option either (1) after the last *FLAGS variable, or
12276 # (2) before a word containing "conftest.", or (3) at the end.
12277 # Note that $ac_compile itself does not contain backslashes and begins
12278 # with a dollar sign (not a hyphen), so the echo should work correctly.
12279 lt_compile=`echo "$ac_compile" | $SED \
12280 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12282 -e 's:$: $lt_compiler_flag:'`
12283 (eval echo "\"\$as_me:12283: $lt_compile\"" >&5)
12284 (eval "$lt_compile" 2>out/conftest.err)
12286 cat out/conftest.err >&5
12287 echo "$as_me:12287: \$? = $ac_status" >&5
12288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12290 # The compiler can only warn and ignore the option if not recognized
12291 # So say no if there are warnings
12292 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12293 $SED '/^$/d' out/conftest.err >out/conftest.er2
12294 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12295 lt_cv_prog_compiler_c_o_CXX=yes
12300 # SGI C++ compiler will create directory out/ii_files/ for
12301 # template instantiation
12302 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12303 $rm out/* && rmdir out
12309 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12310 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12313 hard_links="nottested"
12314 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12315 # do not overwrite the value of need_locks provided by the user
12316 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12317 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12322 ln conftest.a conftest.b 2>&5 || hard_links=no
12323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12324 { echo "$as_me:$LINENO: result: $hard_links" >&5
12325 echo "${ECHO_T}$hard_links" >&6; }
12326 if test "$hard_links" = no; then
12327 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12328 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12335 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12336 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12338 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12341 # If we're using GNU nm, then we don't want the "-C" option.
12342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12344 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'
12346 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'
12350 export_symbols_cmds_CXX="$ltdll_cmds"
12353 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'
12356 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12360 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12361 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12362 test "$ld_shlibs_CXX" = no && can_build_shared=no
12364 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12365 if test "$GCC" = yes; then
12366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12370 # Do we need to explicitly link libc?
12372 case "x$archive_cmds_need_lc_CXX" in
12374 # Assume -lc should be added
12375 archive_cmds_need_lc_CXX=yes
12377 if test "$enable_shared" = yes && test "$GCC" = yes; then
12378 case $archive_cmds_CXX in
12380 # FIXME: we may have to deal with multi-command sequences.
12383 # Test whether the compiler implicitly links with -lc since on some
12384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12385 # to ld, don't add -lc before -lgcc.
12386 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12387 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } 2>conftest.err; then
12398 libobjs=conftest.$ac_objext
12400 wl=$lt_prog_compiler_wl_CXX
12406 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12407 allow_undefined_flag_CXX=
12408 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12409 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }
12414 archive_cmds_need_lc_CXX=no
12416 archive_cmds_need_lc_CXX=yes
12418 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12420 cat conftest.err 1>&5
12423 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12424 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12431 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12432 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12433 library_names_spec=
12434 libname_spec='lib$name'
12438 postuninstall_cmds=
12442 shlibpath_overrides_runpath=unknown
12444 dynamic_linker="$host_os ld.so"
12445 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12446 if test "$GCC" = yes; then
12447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12448 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12449 # if the path contains ";" then we assume it to be the separator
12450 # otherwise default to the standard path separator (i.e. ":") - it is
12451 # assumed that no part of a normal pathname contains ";" but that should
12452 # okay in the real world where ";" in dirpaths is itself problematic.
12453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12458 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12460 need_lib_prefix=unknown
12461 hardcode_into_libs=no
12463 # when you set need_version to no, make sure it does not cause -set_version
12464 # flags to be left without arguments
12465 need_version=unknown
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12471 shlibpath_var=LIBPATH
12473 # AIX 3 has no versioning support, so we append a major version to the name.
12474 soname_spec='${libname}${release}${shared_ext}$major'
12481 hardcode_into_libs=yes
12482 if test "$host_cpu" = ia64; then
12483 # AIX 5 supports IA64
12484 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12485 shlibpath_var=LD_LIBRARY_PATH
12487 # With GCC up to 2.95.x, collect2 would create an import file
12488 # for dependence libraries. The import file would start with
12489 # the line `#! .'. This would cause the generated library to
12490 # depend on `.', always an invalid library. This was fixed in
12491 # development snapshots of GCC prior to 3.0.
12493 aix4 | aix4.[01] | aix4.[01].*)
12494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12496 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12499 can_build_shared=no
12503 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12504 # soname into executable. Probably we can add versioning support to
12505 # collect2, so additional links can be useful in future.
12506 if test "$aix_use_runtimelinking" = yes; then
12507 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12508 # instead of lib<name>.a to let people know that these are not
12509 # typical AIX shared libraries.
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 # We preserve .a as extension for shared libraries through AIX4.2
12513 # and later when we are not doing run time linking.
12514 library_names_spec='${libname}${release}.a $libname.a'
12515 soname_spec='${libname}${release}${shared_ext}$major'
12517 shlibpath_var=LIBPATH
12522 library_names_spec='$libname.ixlibrary $libname.a'
12523 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12524 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'
12528 library_names_spec='${libname}${shared_ext}'
12529 dynamic_linker="$host_os ld.so"
12530 shlibpath_var=LIBRARY_PATH
12536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537 soname_spec='${libname}${release}${shared_ext}$major'
12538 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12541 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12542 # the default ld.so.conf also contains /usr/contrib/lib and
12543 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12544 # libtool to hard-code these into programs
12547 cygwin* | mingw* | pw32*)
12548 version_type=windows
12553 case $GCC,$host_os in
12554 yes,cygwin* | yes,mingw* | yes,pw32*)
12555 library_names_spec='$libname.dll.a'
12556 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12557 postinstall_cmds='base_file=`basename \${file}`~
12558 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12559 dldir=$destdir/`dirname \$dlpath`~
12560 test -d \$dldir || mkdir -p \$dldir~
12561 $install_prog $dir/$dlname \$dldir/$dlname'
12562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12563 dlpath=$dir/\$dldll~
12565 shlibpath_overrides_runpath=yes
12569 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12570 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12571 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12574 # MinGW DLLs use traditional 'lib' prefix
12575 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12577 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12578 # It is most probably a Windows format PATH printed by
12579 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12580 # path with ; separators, and with drive letters. We can handle the
12581 # drive letters (cygwin fileutils understands them), so leave them,
12582 # especially as we might pass files found there to a mingw objdump,
12583 # which wouldn't understand a cygwinified path. Ahh.
12584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12590 # pw32 DLLs use 'pw' prefix rather than 'lib'
12591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12597 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12600 dynamic_linker='Win32 ld.exe'
12601 # FIXME: first we should search . and the directory the executable is in
12605 darwin* | rhapsody*)
12606 dynamic_linker="$host_os dyld"
12607 version_type=darwin
12610 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12611 soname_spec='${libname}${release}${major}$shared_ext'
12612 shlibpath_overrides_runpath=yes
12613 shlibpath_var=DYLD_LIBRARY_PATH
12614 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12615 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12616 if test "$GCC" = yes; then
12617 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12619 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12621 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12629 soname_spec='${libname}${release}${shared_ext}$major'
12630 shlibpath_var=LD_LIBRARY_PATH
12641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12642 soname_spec='${libname}${release}${shared_ext}$major'
12643 shlibpath_var=LD_LIBRARY_PATH
12644 shlibpath_overrides_runpath=no
12645 hardcode_into_libs=yes
12646 dynamic_linker='GNU ld.so'
12649 freebsd* | dragonfly*)
12650 # DragonFly does not have aout. When/if they implement a new
12651 # versioning mechanism, adjust this.
12652 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12653 version_type=freebsd-$objformat
12654 case $version_type in
12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12665 shlibpath_var=LD_LIBRARY_PATH
12668 shlibpath_overrides_runpath=yes
12670 freebsd3.[01]* | freebsdelf3.[01]*)
12671 shlibpath_overrides_runpath=yes
12672 hardcode_into_libs=yes
12675 shlibpath_overrides_runpath=no
12676 hardcode_into_libs=yes
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12686 soname_spec='${libname}${release}${shared_ext}$major'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 hardcode_into_libs=yes
12691 hpux9* | hpux10* | hpux11*)
12692 # Give a soname corresponding to the major version so that dld.sl refuses to
12693 # link against other versions.
12697 case "$host_cpu" in
12700 hardcode_into_libs=yes
12701 dynamic_linker="$host_os dld.so"
12702 shlibpath_var=LD_LIBRARY_PATH
12703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12705 soname_spec='${libname}${release}${shared_ext}$major'
12706 if test "X$HPUX_IA64_MODE" = X32; then
12707 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12709 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12715 hardcode_into_libs=yes
12716 dynamic_linker="$host_os dld.sl"
12717 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12720 soname_spec='${libname}${release}${shared_ext}$major'
12721 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12726 dynamic_linker="$host_os dld.sl"
12727 shlibpath_var=SHLIB_PATH
12728 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730 soname_spec='${libname}${release}${shared_ext}$major'
12733 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12734 postinstall_cmds='chmod 555 $lib'
12737 irix5* | irix6* | nonstopux*)
12739 nonstopux*) version_type=nonstopux ;;
12741 if test "$lt_cv_prog_gnu_ld" = yes; then
12749 soname_spec='${libname}${release}${shared_ext}$major'
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12752 irix5* | nonstopux*)
12753 libsuff= shlibsuff=
12756 case $LD in # libtool.m4 will add one of these switches to LD
12757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12758 libsuff= shlibsuff= libmagic=32-bit;;
12759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12760 libsuff=32 shlibsuff=N32 libmagic=N32;;
12761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12763 *) libsuff= shlibsuff= libmagic=never-match;;
12767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12768 shlibpath_overrides_runpath=no
12769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12771 hardcode_into_libs=yes
12774 # No shared lib support for Linux oldld, aout, or coff.
12775 linux*oldld* | linux*aout* | linux*coff*)
12779 # This must be Linux ELF.
12784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12785 soname_spec='${libname}${release}${shared_ext}$major'
12786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12787 shlibpath_var=LD_LIBRARY_PATH
12788 shlibpath_overrides_runpath=no
12789 # This implies no fast_install, which is unacceptable.
12790 # Some rework will be needed to allow for fast_install
12791 # before this can be enabled.
12792 hardcode_into_libs=yes
12794 # Append ld.so.conf contents to the search path
12795 if test -f /etc/ld.so.conf; then
12796 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12800 # We used to test for /lib/ld.so.1 and disable shared libraries on
12801 # powerpc, because MkLinux only supported shared libraries with the
12802 # GNU dynamic linker. Since this was broken with cross compilers,
12803 # most powerpc-linux boxes support dynamic linking these days and
12804 # people can always --disable-shared, the test was removed, and we
12805 # assume the GNU/Linux dynamic linker is in use.
12806 dynamic_linker='GNU/Linux ld.so'
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 shlibpath_overrides_runpath=no
12817 hardcode_into_libs=yes
12818 dynamic_linker='GNU ld.so'
12825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12828 dynamic_linker='NetBSD (a.out) ld.so'
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 dynamic_linker='NetBSD ld.elf_so'
12834 shlibpath_var=LD_LIBRARY_PATH
12835 shlibpath_overrides_runpath=yes
12836 hardcode_into_libs=yes
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 shlibpath_var=LD_LIBRARY_PATH
12843 shlibpath_overrides_runpath=yes
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851 soname_spec='${libname}${release}${shared_ext}$major'
12852 shlibpath_var=LD_LIBRARY_PATH
12853 shlibpath_overrides_runpath=yes
12859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12862 *) need_version=no ;;
12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12866 shlibpath_var=LD_LIBRARY_PATH
12867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12869 openbsd2.[89] | openbsd2.[89].*)
12870 shlibpath_overrides_runpath=no
12873 shlibpath_overrides_runpath=yes
12877 shlibpath_overrides_runpath=yes
12882 libname_spec='$name'
12885 library_names_spec='$libname${shared_ext} $libname.a'
12886 dynamic_linker='OS/2 ld.exe'
12887 shlibpath_var=LIBPATH
12890 osf3* | osf4* | osf5*)
12894 soname_spec='${libname}${release}${shared_ext}$major'
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12905 shlibpath_var=LD_LIBRARY_PATH
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12913 soname_spec='${libname}${release}${shared_ext}$major'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=yes
12916 hardcode_into_libs=yes
12917 # ldd complains unless libraries are executable
12918 postinstall_cmds='chmod +x $lib'
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath=yes
12927 if test "$with_gnu_ld" = yes; then
12933 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 soname_spec='${libname}${release}${shared_ext}$major'
12937 shlibpath_var=LD_LIBRARY_PATH
12938 case $host_vendor in
12940 shlibpath_overrides_runpath=no
12942 export_dynamic_flag_spec='${wl}-Blargedynsym'
12943 runpath_var=LD_RUN_PATH
12951 shlibpath_overrides_runpath=no
12952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12958 if test -d /usr/nec ;then
12960 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12961 soname_spec='$libname${shared_ext}.$major'
12962 shlibpath_var=LD_LIBRARY_PATH
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 shlibpath_var=LD_LIBRARY_PATH
12977 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12978 echo "${ECHO_T}$dynamic_linker" >&6; }
12979 test "$dynamic_linker" = no && can_build_shared=no
12981 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12983 hardcode_action_CXX=
12984 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12985 test -n "$runpath_var_CXX" || \
12986 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12988 # We can hardcode non-existant directories.
12989 if test "$hardcode_direct_CXX" != no &&
12990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12991 # have to relink, otherwise we might link with an installed library
12992 # when we should be linking with a yet-to-be-installed one
12993 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12994 test "$hardcode_minus_L_CXX" != no; then
12995 # Linking always hardcodes the temporary library directory.
12996 hardcode_action_CXX=relink
12998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12999 hardcode_action_CXX=immediate
13002 # We cannot hardcode anything, or else we can only hardcode existing
13004 hardcode_action_CXX=unsupported
13006 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13007 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13009 if test "$hardcode_action_CXX" = relink; then
13010 # Fast installation is not supported
13011 enable_fast_install=no
13012 elif test "$shlibpath_overrides_runpath" = yes ||
13013 test "$enable_shared" = no; then
13014 # Fast installation is not necessary
13015 enable_fast_install=needless
13020 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13021 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
13022 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13023 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13024 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13025 { echo "$as_me:$LINENO: result: yes" >&5
13026 echo "${ECHO_T}yes" >&6; }
13028 # FIXME - insert some real tests, host_os isn't really good enough
13031 if test -n "$STRIP" ; then
13032 striplib="$STRIP -x"
13033 { echo "$as_me:$LINENO: result: yes" >&5
13034 echo "${ECHO_T}yes" >&6; }
13036 { echo "$as_me:$LINENO: result: no" >&5
13037 echo "${ECHO_T}no" >&6; }
13041 { echo "$as_me:$LINENO: result: no" >&5
13042 echo "${ECHO_T}no" >&6; }
13047 if test "x$enable_dlopen" != xyes; then
13048 enable_dlopen=unknown
13049 enable_dlopen_self=unknown
13050 enable_dlopen_self_static=unknown
13057 lt_cv_dlopen="load_add_on"
13059 lt_cv_dlopen_self=yes
13063 lt_cv_dlopen="LoadLibrary"
13068 lt_cv_dlopen="dlopen"
13073 # if libdl is installed we need to link against it
13074 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13075 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13076 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 ac_check_lib_save_LIBS=$LIBS
13081 cat >conftest.$ac_ext <<_ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13103 rm -f conftest.$ac_objext conftest$ac_exeext
13104 if { (ac_try="$ac_link"
13105 case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_link") 2>conftest.er1
13112 grep -v '^ *+' conftest.er1 >conftest.err
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } && {
13117 test -z "$ac_cxx_werror_flag" ||
13118 test ! -s conftest.err
13119 } && test -s conftest$ac_exeext &&
13120 $as_test_x conftest$ac_exeext; then
13121 ac_cv_lib_dl_dlopen=yes
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ac_cv_lib_dl_dlopen=no
13129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13130 conftest$ac_exeext conftest.$ac_ext
13131 LIBS=$ac_check_lib_save_LIBS
13133 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13134 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13135 if test $ac_cv_lib_dl_dlopen = yes; then
13136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13139 lt_cv_dlopen="dyld"
13141 lt_cv_dlopen_self=yes
13148 { echo "$as_me:$LINENO: checking for shl_load" >&5
13149 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13150 if test "${ac_cv_func_shl_load+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13153 cat >conftest.$ac_ext <<_ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13161 #define shl_load innocuous_shl_load
13163 /* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char shl_load (); below.
13165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13166 <limits.h> exists even on freestanding compilers. */
13169 # include <limits.h>
13171 # include <assert.h>
13176 /* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13183 /* The GNU C library defines this for functions which it implements
13184 to always fail with ENOSYS. Some functions are actually named
13185 something starting with __ and the normal name is an alias. */
13186 #if defined __stub_shl_load || defined __stub___shl_load
13193 return shl_load ();
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (ac_try="$ac_link"
13200 case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_cxx_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest$ac_exeext &&
13215 $as_test_x conftest$ac_exeext; then
13216 ac_cv_func_shl_load=yes
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_cv_func_shl_load=no
13224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13225 conftest$ac_exeext conftest.$ac_ext
13227 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13228 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13229 if test $ac_cv_func_shl_load = yes; then
13230 lt_cv_dlopen="shl_load"
13232 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13233 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13234 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 ac_check_lib_save_LIBS=$LIBS
13239 cat >conftest.$ac_ext <<_ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13256 return shl_load ();
13261 rm -f conftest.$ac_objext conftest$ac_exeext
13262 if { (ac_try="$ac_link"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_link") 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_cxx_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest$ac_exeext &&
13278 $as_test_x conftest$ac_exeext; then
13279 ac_cv_lib_dld_shl_load=yes
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_cv_lib_dld_shl_load=no
13287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13288 conftest$ac_exeext conftest.$ac_ext
13289 LIBS=$ac_check_lib_save_LIBS
13291 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13292 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13293 if test $ac_cv_lib_dld_shl_load = yes; then
13294 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13296 { echo "$as_me:$LINENO: checking for dlopen" >&5
13297 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13298 if test "${ac_cv_func_dlopen+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 cat >conftest.$ac_ext <<_ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13309 #define dlopen innocuous_dlopen
13311 /* System header to define __stub macros and hopefully few prototypes,
13312 which can conflict with char dlopen (); below.
13313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13314 <limits.h> exists even on freestanding compilers. */
13317 # include <limits.h>
13319 # include <assert.h>
13324 /* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13331 /* The GNU C library defines this for functions which it implements
13332 to always fail with ENOSYS. Some functions are actually named
13333 something starting with __ and the normal name is an alias. */
13334 #if defined __stub_dlopen || defined __stub___dlopen
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_link") 2>conftest.er1
13355 grep -v '^ *+' conftest.er1 >conftest.err
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && {
13360 test -z "$ac_cxx_werror_flag" ||
13361 test ! -s conftest.err
13362 } && test -s conftest$ac_exeext &&
13363 $as_test_x conftest$ac_exeext; then
13364 ac_cv_func_dlopen=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 ac_cv_func_dlopen=no
13372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13373 conftest$ac_exeext conftest.$ac_ext
13375 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13376 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13377 if test $ac_cv_func_dlopen = yes; then
13378 lt_cv_dlopen="dlopen"
13380 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13381 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13382 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 ac_check_lib_save_LIBS=$LIBS
13387 cat >conftest.$ac_ext <<_ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13394 /* Override any GCC internal prototype to avoid an error.
13395 Use char because int might match the return type of a GCC
13396 builtin and then its argument prototype would still apply. */
13409 rm -f conftest.$ac_objext conftest$ac_exeext
13410 if { (ac_try="$ac_link"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_link") 2>conftest.er1
13418 grep -v '^ *+' conftest.er1 >conftest.err
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_cxx_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest$ac_exeext &&
13426 $as_test_x conftest$ac_exeext; then
13427 ac_cv_lib_dl_dlopen=yes
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13432 ac_cv_lib_dl_dlopen=no
13435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13436 conftest$ac_exeext conftest.$ac_ext
13437 LIBS=$ac_check_lib_save_LIBS
13439 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13440 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13441 if test $ac_cv_lib_dl_dlopen = yes; then
13442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13444 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13445 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13446 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13447 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 ac_check_lib_save_LIBS=$LIBS
13450 LIBS="-lsvld $LIBS"
13451 cat >conftest.$ac_ext <<_ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13473 rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (ac_try="$ac_link"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_link") 2>conftest.er1
13482 grep -v '^ *+' conftest.er1 >conftest.err
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } && {
13487 test -z "$ac_cxx_werror_flag" ||
13488 test ! -s conftest.err
13489 } && test -s conftest$ac_exeext &&
13490 $as_test_x conftest$ac_exeext; then
13491 ac_cv_lib_svld_dlopen=yes
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 ac_cv_lib_svld_dlopen=no
13499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13500 conftest$ac_exeext conftest.$ac_ext
13501 LIBS=$ac_check_lib_save_LIBS
13503 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13504 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13505 if test $ac_cv_lib_svld_dlopen = yes; then
13506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13508 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13509 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13510 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 ac_check_lib_save_LIBS=$LIBS
13515 cat >conftest.$ac_ext <<_ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13522 /* Override any GCC internal prototype to avoid an error.
13523 Use char because int might match the return type of a GCC
13524 builtin and then its argument prototype would still apply. */
13532 return dld_link ();
13537 rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (ac_try="$ac_link"
13539 case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_link") 2>conftest.er1
13546 grep -v '^ *+' conftest.er1 >conftest.err
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } && {
13551 test -z "$ac_cxx_werror_flag" ||
13552 test ! -s conftest.err
13553 } && test -s conftest$ac_exeext &&
13554 $as_test_x conftest$ac_exeext; then
13555 ac_cv_lib_dld_dld_link=yes
13557 echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13560 ac_cv_lib_dld_dld_link=no
13563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13564 conftest$ac_exeext conftest.$ac_ext
13565 LIBS=$ac_check_lib_save_LIBS
13567 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13568 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13569 if test $ac_cv_lib_dld_dld_link = yes; then
13570 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13591 if test "x$lt_cv_dlopen" != xno; then
13597 case $lt_cv_dlopen in
13599 save_CPPFLAGS="$CPPFLAGS"
13600 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13602 save_LDFLAGS="$LDFLAGS"
13603 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13606 LIBS="$lt_cv_dlopen_libs $LIBS"
13608 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13609 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13610 if test "${lt_cv_dlopen_self+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 if test "$cross_compiling" = yes; then :
13614 lt_cv_dlopen_self=cross
13616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13617 lt_status=$lt_dlunknown
13618 cat > conftest.$ac_ext <<EOF
13619 #line 13619 "configure"
13620 #include "confdefs.h"
13629 # define LT_DLGLOBAL RTLD_GLOBAL
13632 # define LT_DLGLOBAL DL_GLOBAL
13634 # define LT_DLGLOBAL 0
13638 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13639 find out it does not work in some platform. */
13640 #ifndef LT_DLLAZY_OR_NOW
13642 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13645 # define LT_DLLAZY_OR_NOW DL_LAZY
13648 # define LT_DLLAZY_OR_NOW RTLD_NOW
13651 # define LT_DLLAZY_OR_NOW DL_NOW
13653 # define LT_DLLAZY_OR_NOW 0
13661 extern "C" void exit (int);
13664 void fnord() { int i=42;}
13667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13668 int status = $lt_dlunknown;
13672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13673 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13674 /* dlclose (self); */
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13685 (./conftest; exit; ) 2>/dev/null
13687 case x$lt_status in
13688 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13689 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13690 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13693 # compilation failed
13694 lt_cv_dlopen_self=no
13701 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13702 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13704 if test "x$lt_cv_dlopen_self" = xyes; then
13705 LDFLAGS="$LDFLAGS $link_static_flag"
13706 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13707 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13708 if test "${lt_cv_dlopen_self_static+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 if test "$cross_compiling" = yes; then :
13712 lt_cv_dlopen_self_static=cross
13714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13715 lt_status=$lt_dlunknown
13716 cat > conftest.$ac_ext <<EOF
13717 #line 13717 "configure"
13718 #include "confdefs.h"
13727 # define LT_DLGLOBAL RTLD_GLOBAL
13730 # define LT_DLGLOBAL DL_GLOBAL
13732 # define LT_DLGLOBAL 0
13736 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13737 find out it does not work in some platform. */
13738 #ifndef LT_DLLAZY_OR_NOW
13740 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13743 # define LT_DLLAZY_OR_NOW DL_LAZY
13746 # define LT_DLLAZY_OR_NOW RTLD_NOW
13749 # define LT_DLLAZY_OR_NOW DL_NOW
13751 # define LT_DLLAZY_OR_NOW 0
13759 extern "C" void exit (int);
13762 void fnord() { int i=42;}
13765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13766 int status = $lt_dlunknown;
13770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13771 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13772 /* dlclose (self); */
13778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779 (eval $ac_link) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13783 (./conftest; exit; ) 2>/dev/null
13785 case x$lt_status in
13786 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13787 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13788 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13791 # compilation failed
13792 lt_cv_dlopen_self_static=no
13799 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13800 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13803 CPPFLAGS="$save_CPPFLAGS"
13804 LDFLAGS="$save_LDFLAGS"
13809 case $lt_cv_dlopen_self in
13810 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13811 *) enable_dlopen_self=unknown ;;
13814 case $lt_cv_dlopen_self_static in
13815 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13816 *) enable_dlopen_self_static=unknown ;;
13821 # The else clause should only fire when bootstrapping the
13822 # libtool distribution, otherwise you forgot to ship ltmain.sh
13823 # with your package, and you will get complaints that there are
13824 # no rules to generate ltmain.sh.
13825 if test -f "$ltmain"; then
13826 # See if we are running on zsh, and set the options which allow our commands through
13827 # without removal of \ escapes.
13828 if test -n "${ZSH_VERSION+set}" ; then
13829 setopt NO_GLOB_SUBST
13831 # Now quote all the things that may contain metacharacters while being
13832 # careful not to overquote the AC_SUBSTed values. We take copies of the
13833 # variables and quote the copies for generation of the libtool script.
13834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13838 deplibs_check_method reload_flag reload_cmds need_locks \
13839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13840 lt_cv_sys_global_symbol_to_c_name_address \
13841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13842 old_postinstall_cmds old_postuninstall_cmds \
13846 lt_prog_compiler_wl_CXX \
13847 lt_prog_compiler_pic_CXX \
13848 lt_prog_compiler_static_CXX \
13849 lt_prog_compiler_no_builtin_flag_CXX \
13850 export_dynamic_flag_spec_CXX \
13851 thread_safe_flag_spec_CXX \
13852 whole_archive_flag_spec_CXX \
13853 enable_shared_with_static_runtimes_CXX \
13854 old_archive_cmds_CXX \
13855 old_archive_from_new_cmds_CXX \
13856 predep_objects_CXX \
13857 postdep_objects_CXX \
13860 compiler_lib_search_path_CXX \
13862 archive_expsym_cmds_CXX \
13863 postinstall_cmds_CXX \
13864 postuninstall_cmds_CXX \
13865 old_archive_from_expsyms_cmds_CXX \
13866 allow_undefined_flag_CXX \
13867 no_undefined_flag_CXX \
13868 export_symbols_cmds_CXX \
13869 hardcode_libdir_flag_spec_CXX \
13870 hardcode_libdir_flag_spec_ld_CXX \
13871 hardcode_libdir_separator_CXX \
13872 hardcode_automatic_CXX \
13874 module_expsym_cmds_CXX \
13875 lt_cv_prog_compiler_c_o_CXX \
13876 exclude_expsyms_CXX \
13877 include_expsyms_CXX; do
13880 old_archive_cmds_CXX | \
13881 old_archive_from_new_cmds_CXX | \
13882 archive_cmds_CXX | \
13883 archive_expsym_cmds_CXX | \
13884 module_cmds_CXX | \
13885 module_expsym_cmds_CXX | \
13886 old_archive_from_expsyms_cmds_CXX | \
13887 export_symbols_cmds_CXX | \
13888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13889 postinstall_cmds | postuninstall_cmds | \
13890 old_postinstall_cmds | old_postuninstall_cmds | \
13891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13892 # Double-quote double-evaled strings.
13893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13902 *'\$0 --fallback-echo"')
13903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13909 cat <<__EOF__ >> "$cfgfile"
13910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13914 # Shell to use when invoking shell scripts.
13917 # Whether or not to build shared libraries.
13918 build_libtool_libs=$enable_shared
13920 # Whether or not to build static libraries.
13921 build_old_libs=$enable_static
13923 # Whether or not to add -lc for building shared libraries.
13924 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13926 # Whether or not to disallow shared libs when runtime libs are static
13927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13929 # Whether or not to optimize for fast installation.
13930 fast_install=$enable_fast_install
13933 host_alias=$host_alias
13937 # The build system.
13938 build_alias=$build_alias
13942 # An echo program that does not interpret backslashes.
13947 AR_FLAGS=$lt_AR_FLAGS
13952 # A language-specific compiler.
13953 CC=$lt_compiler_CXX
13955 # Is the compiler the GNU C compiler?
13961 # The linker used to build libraries.
13964 # Whether we need hard or soft links.
13967 # A BSD-compatible nm program.
13970 # A symbol stripping program
13973 # Used to examine libraries when file_magic_cmd begins "file"
13974 MAGIC_CMD=$MAGIC_CMD
13976 # Used on cygwin: DLL creation program.
13979 # Used on cygwin: object dumper.
13982 # Used on cygwin: assembler.
13985 # The name of the directory that contains temporary libtool files.
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").
14001 # Shared library suffix (normally ".so").
14002 shrext_cmds='$shrext_cmds'
14004 # Executable file suffix (normally "").
14007 # Additional compiler flags for building library objects.
14008 pic_flag=$lt_lt_prog_compiler_pic_CXX
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.
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
14091 predep_objects=$lt_predep_objects_CXX
14093 # Dependencies to place after the objects being linked to create a
14095 postdep_objects=$lt_postdep_objects_CXX
14097 # Dependencies to place before the objects being linked to create a
14099 predeps=$lt_predeps_CXX
14101 # Dependencies to place after the objects being linked to create a
14103 postdeps=$lt_postdeps_CXX
14105 # The library search path used internally by the compiler when linking
14106 # a shared library.
14107 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14109 # Method to check whether dependent libraries are shared objects.
14110 deplibs_check_method=$lt_deplibs_check_method
14112 # Command to use when deplibs_check_method == file_magic.
14113 file_magic_cmd=$lt_file_magic_cmd
14115 # Flag that allows shared libraries with undefined symbols to be built.
14116 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14118 # Flag that forces no undefined symbols.
14119 no_undefined_flag=$lt_no_undefined_flag_CXX
14121 # Commands used to finish a libtool library installation in a directory.
14122 finish_cmds=$lt_finish_cmds
14124 # Same as above, but a single script fragment to be evaled but not shown.
14125 finish_eval=$lt_finish_eval
14127 # Take the output of nm and produce a listing of raw symbols and C names.
14128 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14130 # Transform the output of nm in a proper C declaration
14131 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14133 # Transform the output of nm in a C name address pair
14134 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14136 # This is the shared library runtime path variable.
14137 runpath_var=$runpath_var
14139 # This is the shared library path variable.
14140 shlibpath_var=$shlibpath_var
14142 # Is shlibpath searched before the hard-coded library search path?
14143 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14145 # How to hardcode a shared library path into an executable.
14146 hardcode_action=$hardcode_action_CXX
14148 # Whether we should hardcode library paths into libraries.
14149 hardcode_into_libs=$hardcode_into_libs
14151 # Flag to hardcode \$libdir into a binary during linking.
14152 # This must work even if \$libdir does not exist.
14153 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14155 # If ld is used when linking, flag to hardcode \$libdir into
14156 # a binary during linking. This must work even if \$libdir does
14158 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14160 # Whether we need a single -rpath flag with a separated argument.
14161 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14163 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14164 # resulting binary.
14165 hardcode_direct=$hardcode_direct_CXX
14167 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14168 # resulting binary.
14169 hardcode_minus_L=$hardcode_minus_L_CXX
14171 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14172 # the resulting binary.
14173 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14175 # Set to yes if building a shared library automatically hardcodes DIR into the library
14176 # and all subsequent libraries and executables linked against it.
14177 hardcode_automatic=$hardcode_automatic_CXX
14179 # Variables whose values should be saved in libtool wrapper scripts and
14180 # restored at relink time.
14181 variables_saved_for_relink="$variables_saved_for_relink"
14183 # Whether libtool must link a program against all its dependency libraries.
14184 link_all_deplibs=$link_all_deplibs_CXX
14186 # Compile-time system search path for libraries
14187 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14189 # Run-time system search path for libraries
14190 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14192 # Fix the shell variable \$srcfile for the compiler.
14193 fix_srcfile_path="$fix_srcfile_path_CXX"
14195 # Set to yes if exported symbols are required.
14196 always_export_symbols=$always_export_symbols_CXX
14198 # The commands to list exported symbols.
14199 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14201 # The commands to extract the exported symbol list from a shared archive.
14202 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14204 # Symbols that should not be listed in the preloaded symbols.
14205 exclude_expsyms=$lt_exclude_expsyms_CXX
14207 # Symbols that must always be exported.
14208 include_expsyms=$lt_include_expsyms_CXX
14210 # ### END LIBTOOL TAG CONFIG: $tagname
14216 # If there is no Makefile yet, we rely on a make rule to execute
14217 # `config.status --recheck' to rerun these tests and create the
14218 # libtool script then.
14219 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14220 if test -f "$ltmain_in"; then
14221 test -f Makefile && make "$ltmain"
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14236 with_gnu_ldcxx=$with_gnu_ld
14237 with_gnu_ld=$lt_save_with_gnu_ld
14238 lt_cv_path_LDCXX=$lt_cv_path_LD
14239 lt_cv_path_LD=$lt_save_path_LD
14240 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14241 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14249 if test -n "$F77" && test "X$F77" != "Xno"; then
14252 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14253 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14257 archive_cmds_need_lc_F77=no
14258 allow_undefined_flag_F77=
14259 always_export_symbols_F77=no
14260 archive_expsym_cmds_F77=
14261 export_dynamic_flag_spec_F77=
14262 hardcode_direct_F77=no
14263 hardcode_libdir_flag_spec_F77=
14264 hardcode_libdir_flag_spec_ld_F77=
14265 hardcode_libdir_separator_F77=
14266 hardcode_minus_L_F77=no
14267 hardcode_automatic_F77=no
14269 module_expsym_cmds_F77=
14270 link_all_deplibs_F77=unknown
14271 old_archive_cmds_F77=$old_archive_cmds
14272 no_undefined_flag_F77=
14273 whole_archive_flag_spec_F77=
14274 enable_shared_with_static_runtimes_F77=no
14276 # Source file extension for f77 test sources.
14279 # Object file extension for compiled f77 test sources.
14283 # Code to be used in simple compile tests
14284 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14286 # Code to be used in simple link tests
14287 lt_simple_link_test_code=" program t\n end\n"
14289 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14291 # If no C compiler was specified, use CC.
14294 # Allow CC to be a program name with arguments.
14298 # save warnings/boilerplate of simple test code
14299 ac_outfile=conftest.$ac_objext
14300 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14301 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14302 _lt_compiler_boilerplate=`cat conftest.err`
14305 ac_outfile=conftest.$ac_objext
14306 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14307 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14308 _lt_linker_boilerplate=`cat conftest.err`
14312 # Allow CC to be a program name with arguments.
14317 for cc_temp in $compiler""; do
14319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14328 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14329 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14330 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14331 echo "${ECHO_T}$can_build_shared" >&6; }
14333 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14334 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14335 test "$can_build_shared" = "no" && enable_shared=no
14337 # On AIX, shared libraries and static libraries use the same namespace, and
14338 # are all built from PIC.
14341 test "$enable_shared" = yes && enable_static=no
14342 if test -n "$RANLIB"; then
14343 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14344 postinstall_cmds='$RANLIB $lib'
14348 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14349 test "$enable_shared" = yes && enable_static=no
14353 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14354 echo "${ECHO_T}$enable_shared" >&6; }
14356 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14357 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14358 # Make sure either enable_shared or enable_static is yes.
14359 test "$enable_shared" = yes || enable_static=yes
14360 { echo "$as_me:$LINENO: result: $enable_static" >&5
14361 echo "${ECHO_T}$enable_static" >&6; }
14363 test "$ld_shlibs_F77" = no && can_build_shared=no
14368 lt_prog_compiler_wl_F77=
14369 lt_prog_compiler_pic_F77=
14370 lt_prog_compiler_static_F77=
14372 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14373 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14375 if test "$GCC" = yes; then
14376 lt_prog_compiler_wl_F77='-Wl,'
14377 lt_prog_compiler_static_F77='-static'
14381 # All AIX code is PIC.
14382 if test "$host_cpu" = ia64; then
14383 # AIX 5 now supports IA64 processor
14384 lt_prog_compiler_static_F77='-Bstatic'
14389 # FIXME: we need at least 68020 code to build shared libraries, but
14390 # adding the `-m68020' flag to GCC prevents building anything better,
14392 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14395 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14396 # PIC is the default for these OSes.
14399 mingw* | pw32* | os2*)
14400 # This hack is so that the source file can tell whether it is being
14401 # built for inclusion in a dll (and should export symbols for example).
14402 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14405 darwin* | rhapsody*)
14406 # PIC is the default on this platform
14407 # Common symbols not allowed in MH_DYLIB files
14408 lt_prog_compiler_pic_F77='-fno-common'
14412 # Just because we use GCC doesn't mean we suddenly get shared libraries
14413 # on systems that don't support them.
14414 lt_prog_compiler_can_build_shared_F77=no
14419 if test -d /usr/nec; then
14420 lt_prog_compiler_pic_F77=-Kconform_pic
14425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14426 # not for PA HP-UX.
14427 case "$host_cpu" in
14432 lt_prog_compiler_pic_F77='-fPIC'
14438 lt_prog_compiler_pic_F77='-fPIC'
14442 # PORTME Check for flag to pass linker flags through the system compiler.
14445 lt_prog_compiler_wl_F77='-Wl,'
14446 if test "$host_cpu" = ia64; then
14447 # AIX 5 now supports IA64 processor
14448 lt_prog_compiler_static_F77='-Bstatic'
14450 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14454 # PIC is the default on this platform
14455 # Common symbols not allowed in MH_DYLIB files
14456 case $cc_basename in
14458 lt_prog_compiler_pic_F77='-qnocommon'
14459 lt_prog_compiler_wl_F77='-Wl,'
14464 mingw* | pw32* | os2*)
14465 # This hack is so that the source file can tell whether it is being
14466 # built for inclusion in a dll (and should export symbols for example).
14467 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14470 hpux9* | hpux10* | hpux11*)
14471 lt_prog_compiler_wl_F77='-Wl,'
14472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14473 # not for PA HP-UX.
14474 case "$host_cpu" in
14479 lt_prog_compiler_pic_F77='+Z'
14482 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14483 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14486 irix5* | irix6* | nonstopux*)
14487 lt_prog_compiler_wl_F77='-Wl,'
14488 # PIC (with -KPIC) is the default.
14489 lt_prog_compiler_static_F77='-non_shared'
14493 lt_prog_compiler_pic_F77='-KPIC'
14494 lt_prog_compiler_static_F77='-Bstatic'
14498 case $cc_basename in
14500 lt_prog_compiler_wl_F77='-Wl,'
14501 lt_prog_compiler_pic_F77='-KPIC'
14502 lt_prog_compiler_static_F77='-static'
14504 pgcc* | pgf77* | pgf90*)
14505 # Portland Group compilers (*not* the Pentium gcc compiler,
14506 # which looks to be a dead project)
14507 lt_prog_compiler_wl_F77='-Wl,'
14508 lt_prog_compiler_pic_F77='-fpic'
14509 lt_prog_compiler_static_F77='-static'
14512 lt_prog_compiler_wl_F77='-Wl,'
14513 # All Alpha code is PIC.
14514 lt_prog_compiler_static_F77='-non_shared'
14519 osf3* | osf4* | osf5*)
14520 lt_prog_compiler_wl_F77='-Wl,'
14521 # All OSF/1 code is PIC.
14522 lt_prog_compiler_static_F77='-non_shared'
14526 lt_prog_compiler_pic_F77='-Kpic'
14527 lt_prog_compiler_static_F77='-dn'
14531 lt_prog_compiler_pic_F77='-KPIC'
14532 lt_prog_compiler_static_F77='-Bstatic'
14533 case $cc_basename in
14534 f77* | f90* | f95*)
14535 lt_prog_compiler_wl_F77='-Qoption ld ';;
14537 lt_prog_compiler_wl_F77='-Wl,';;
14542 lt_prog_compiler_wl_F77='-Qoption ld '
14543 lt_prog_compiler_pic_F77='-PIC'
14544 lt_prog_compiler_static_F77='-Bstatic'
14547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14548 lt_prog_compiler_wl_F77='-Wl,'
14549 lt_prog_compiler_pic_F77='-KPIC'
14550 lt_prog_compiler_static_F77='-Bstatic'
14554 if test -d /usr/nec ;then
14555 lt_prog_compiler_pic_F77='-Kconform_pic'
14556 lt_prog_compiler_static_F77='-Bstatic'
14561 lt_prog_compiler_wl_F77='-Wl,'
14562 lt_prog_compiler_can_build_shared_F77=no
14566 lt_prog_compiler_pic_F77='-pic'
14567 lt_prog_compiler_static_F77='-Bstatic'
14571 lt_prog_compiler_can_build_shared_F77=no
14576 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14577 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14580 # Check to make sure the PIC flag actually works.
14582 if test -n "$lt_prog_compiler_pic_F77"; then
14584 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14585 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14586 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 lt_prog_compiler_pic_works_F77=no
14590 ac_outfile=conftest.$ac_objext
14591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14592 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14593 # Insert the option either (1) after the last *FLAGS variable, or
14594 # (2) before a word containing "conftest.", or (3) at the end.
14595 # Note that $ac_compile itself does not contain backslashes and begins
14596 # with a dollar sign (not a hyphen), so the echo should work correctly.
14597 # The option is referenced via a variable to avoid confusing sed.
14598 lt_compile=`echo "$ac_compile" | $SED \
14599 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14601 -e 's:$: $lt_compiler_flag:'`
14602 (eval echo "\"\$as_me:14602: $lt_compile\"" >&5)
14603 (eval "$lt_compile" 2>conftest.err)
14605 cat conftest.err >&5
14606 echo "$as_me:14606: \$? = $ac_status" >&5
14607 if (exit $ac_status) && test -s "$ac_outfile"; then
14608 # The compiler can only warn and ignore the option if not recognized
14609 # So say no if there are warnings other than the usual output.
14610 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14611 $SED '/^$/d' conftest.err >conftest.er2
14612 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14613 lt_prog_compiler_pic_works_F77=yes
14619 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14620 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14622 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14623 case $lt_prog_compiler_pic_F77 in
14625 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14628 lt_prog_compiler_pic_F77=
14629 lt_prog_compiler_can_build_shared_F77=no
14634 # For platforms which do not support PIC, -DPIC is meaningless:
14636 lt_prog_compiler_pic_F77=
14639 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14643 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14644 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14645 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 lt_cv_prog_compiler_c_o_F77=no
14649 $rm -r conftest 2>/dev/null
14653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14655 lt_compiler_flag="-o out/conftest2.$ac_objext"
14656 # Insert the option either (1) after the last *FLAGS variable, or
14657 # (2) before a word containing "conftest.", or (3) at the end.
14658 # Note that $ac_compile itself does not contain backslashes and begins
14659 # with a dollar sign (not a hyphen), so the echo should work correctly.
14660 lt_compile=`echo "$ac_compile" | $SED \
14661 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14663 -e 's:$: $lt_compiler_flag:'`
14664 (eval echo "\"\$as_me:14664: $lt_compile\"" >&5)
14665 (eval "$lt_compile" 2>out/conftest.err)
14667 cat out/conftest.err >&5
14668 echo "$as_me:14668: \$? = $ac_status" >&5
14669 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14671 # The compiler can only warn and ignore the option if not recognized
14672 # So say no if there are warnings
14673 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14674 $SED '/^$/d' out/conftest.err >out/conftest.er2
14675 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14676 lt_cv_prog_compiler_c_o_F77=yes
14681 # SGI C++ compiler will create directory out/ii_files/ for
14682 # template instantiation
14683 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14684 $rm out/* && rmdir out
14690 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14691 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14694 hard_links="nottested"
14695 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14696 # do not overwrite the value of need_locks provided by the user
14697 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14698 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14703 ln conftest.a conftest.b 2>&5 || hard_links=no
14704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14705 { echo "$as_me:$LINENO: result: $hard_links" >&5
14706 echo "${ECHO_T}$hard_links" >&6; }
14707 if test "$hard_links" = no; then
14708 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14709 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14716 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14717 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14720 allow_undefined_flag_F77=
14721 enable_shared_with_static_runtimes_F77=no
14723 archive_expsym_cmds_F77=
14724 old_archive_From_new_cmds_F77=
14725 old_archive_from_expsyms_cmds_F77=
14726 export_dynamic_flag_spec_F77=
14727 whole_archive_flag_spec_F77=
14728 thread_safe_flag_spec_F77=
14729 hardcode_libdir_flag_spec_F77=
14730 hardcode_libdir_flag_spec_ld_F77=
14731 hardcode_libdir_separator_F77=
14732 hardcode_direct_F77=no
14733 hardcode_minus_L_F77=no
14734 hardcode_shlibpath_var_F77=unsupported
14735 link_all_deplibs_F77=unknown
14736 hardcode_automatic_F77=no
14738 module_expsym_cmds_F77=
14739 always_export_symbols_F77=no
14740 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14741 # include_expsyms should be a list of space-separated symbols to be *always*
14742 # included in the symbol list
14743 include_expsyms_F77=
14744 # exclude_expsyms can be an extended regexp of symbols to exclude
14745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14747 # as well as any symbol that contains `d'.
14748 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14750 # platforms (ab)use it in PIC code, but their linkers get confused if
14751 # the symbol is explicitly referenced. Since portable code cannot
14752 # rely on this symbol name, it's probably fine to never include it in
14753 # preloaded symbol tables.
14754 extract_expsyms_cmds=
14755 # Just being paranoid about ensuring that cc_basename is set.
14756 for cc_temp in $compiler""; do
14758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14767 cygwin* | mingw* | pw32*)
14768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14769 # When not using gcc, we currently assume that we are using
14770 # Microsoft Visual C++.
14771 if test "$GCC" != yes; then
14781 if test "$with_gnu_ld" = yes; then
14782 # If archive_cmds runs LD, not CC, wlarc should be empty
14785 # Set some defaults for GNU ld with shared library support. These
14786 # are reset later if shared libraries are not supported. Putting them
14787 # here allows them to be overridden if necessary.
14788 runpath_var=LD_RUN_PATH
14789 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14790 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14791 # ancient GNU ld didn't support --whole-archive et. al.
14792 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14793 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14795 whole_archive_flag_spec_F77=
14797 supports_anon_versioning=no
14798 case `$LD -v 2>/dev/null` in
14799 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14800 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14801 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14802 *\ 2.11.*) ;; # other 2.11 versions
14803 *) supports_anon_versioning=yes ;;
14806 # See if GNU ld supports shared libraries.
14808 aix3* | aix4* | aix5*)
14809 # On AIX/PPC, the GNU linker is very broken
14810 if test "$host_cpu" != ia64; then
14814 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14815 *** to be unable to reliably create shared libraries on AIX.
14816 *** Therefore, libtool is disabling shared libraries support. If you
14817 *** really care for shared libraries, you may want to modify your PATH
14818 *** so that a non-GNU linker is found, and then restart.
14825 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)'
14826 hardcode_libdir_flag_spec_F77='-L$libdir'
14827 hardcode_minus_L_F77=yes
14829 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14830 # that the semantics of dynamic libraries on AmigaOS, at least up
14831 # to version 4, is to share data among multiple programs linked
14832 # with the same dynamic library. Since this doesn't match the
14833 # behavior of shared libraries on other platforms, we can't use
14839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14840 allow_undefined_flag_F77=unsupported
14841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14842 # support --undefined. This deserves some investigation. FIXME
14843 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849 cygwin* | mingw* | pw32*)
14850 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14851 # as there is no search path for DLLs.
14852 hardcode_libdir_flag_spec_F77='-L$libdir'
14853 allow_undefined_flag_F77=unsupported
14854 always_export_symbols_F77=no
14855 enable_shared_with_static_runtimes_F77=yes
14856 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14858 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14859 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14860 # If the export-symbols file already is a .def file (1st line
14861 # is EXPORTS), use it as is; otherwise, prepend...
14862 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14863 cp $export_symbols $output_objdir/$soname.def;
14865 echo EXPORTS > $output_objdir/$soname.def;
14866 cat $export_symbols >> $output_objdir/$soname.def;
14868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14877 case $cc_basename,$host_cpu in
14878 pgcc*) # Portland Group C compiler
14879 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'
14880 tmp_addflag=' $pic_flag'
14882 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14883 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'
14884 tmp_addflag=' $pic_flag -Mnomain' ;;
14885 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14886 tmp_addflag=' -i_dynamic' ;;
14887 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14888 tmp_addflag=' -i_dynamic -nofor_main' ;;
14889 ifc* | ifort*) # Intel Fortran compiler
14890 tmp_addflag=' -nofor_main' ;;
14892 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894 if test $supports_anon_versioning = yes; then
14895 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14897 $echo "local: *; };" >> $output_objdir/$libname.ver~
14898 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14907 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14911 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14916 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14921 *** create shared libraries on Solaris systems. Therefore, libtool
14922 *** is disabling shared libraries support. We urge you to upgrade GNU
14923 *** binutils to release 2.9.1 or newer. Another option is to modify
14924 *** your PATH or compiler configuration so that the native linker is
14925 *** used, and then restart.
14928 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14937 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14939 hardcode_direct_F77=yes
14940 hardcode_shlibpath_var_F77=no
14944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14953 if test "$ld_shlibs_F77" = no; then
14955 hardcode_libdir_flag_spec_F77=
14956 export_dynamic_flag_spec_F77=
14957 whole_archive_flag_spec_F77=
14960 # PORTME fill in a description of your system's linker (not GNU ld)
14963 allow_undefined_flag_F77=unsupported
14964 always_export_symbols_F77=yes
14965 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'
14966 # Note: this linker hardcodes the directories in LIBPATH if there
14967 # are no directories specified by -L.
14968 hardcode_minus_L_F77=yes
14969 if test "$GCC" = yes && test -z "$link_static_flag"; then
14970 # Neither direct hardcoding nor static linking is supported with a
14972 hardcode_direct_F77=unsupported
14977 if test "$host_cpu" = ia64; then
14978 # On IA64, the linker does run time linking by default, so we don't
14979 # have to do anything special.
14980 aix_use_runtimelinking=no
14981 exp_sym_flag='-Bexport'
14984 # If we're using GNU nm, then we don't want the "-C" option.
14985 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14986 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14987 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'
14989 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'
14991 aix_use_runtimelinking=no
14993 # Test if we are trying to use run time linking or normal
14994 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14995 # need to do runtime linking.
14996 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14997 for ld_flag in $LDFLAGS; do
14998 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14999 aix_use_runtimelinking=yes
15005 exp_sym_flag='-bexport'
15006 no_entry_flag='-bnoentry'
15009 # When large executables or shared objects are built, AIX ld can
15010 # have problems creating the table of contents. If linking a library
15011 # or program results in "error TOC overflow" add -mminimal-toc to
15012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15015 archive_cmds_F77=''
15016 hardcode_direct_F77=yes
15017 hardcode_libdir_separator_F77=':'
15018 link_all_deplibs_F77=yes
15020 if test "$GCC" = yes; then
15021 case $host_os in aix4.[012]|aix4.[012].*)
15022 # We only want to do this on AIX 4.2 and lower, the check
15023 # below for broken collect2 doesn't work under 4.3+
15024 collect2name=`${CC} -print-prog-name=collect2`
15025 if test -f "$collect2name" && \
15026 strings "$collect2name" | grep resolve_lib_name >/dev/null
15028 # We have reworked collect2
15029 hardcode_direct_F77=yes
15031 # We have old collect2
15032 hardcode_direct_F77=unsupported
15033 # It fails to find uninstalled libraries when the uninstalled
15034 # path is not listed in the libpath. Setting hardcode_minus_L
15035 # to unsupported forces relinking
15036 hardcode_minus_L_F77=yes
15037 hardcode_libdir_flag_spec_F77='-L$libdir'
15038 hardcode_libdir_separator_F77=
15041 shared_flag='-shared'
15042 if test "$aix_use_runtimelinking" = yes; then
15043 shared_flag="$shared_flag "'${wl}-G'
15047 if test "$host_cpu" = ia64; then
15048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15049 # chokes on -Wl,-G. The following line is correct:
15052 if test "$aix_use_runtimelinking" = yes; then
15053 shared_flag='${wl}-G'
15055 shared_flag='${wl}-bM:SRE'
15060 # It seems that -bexpall does not export symbols beginning with
15061 # underscore (_), so it is better to generate a list of symbols to export.
15062 always_export_symbols_F77=yes
15063 if test "$aix_use_runtimelinking" = yes; then
15064 # Warning - without using the other runtime loading flags (-brtl),
15065 # -berok will link without error, but may produce a broken library.
15066 allow_undefined_flag_F77='-berok'
15067 # Determine the default libpath from the value encoded in an empty executable.
15068 cat >conftest.$ac_ext <<_ACEOF
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (ac_try="$ac_link"
15075 case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_link") 2>conftest.er1
15082 grep -v '^ *+' conftest.er1 >conftest.err
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } && {
15087 test -z "$ac_f77_werror_flag" ||
15088 test ! -s conftest.err
15089 } && test -s conftest$ac_exeext &&
15090 $as_test_x conftest$ac_exeext; then
15092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15094 # Check for a 64-bit object if we didn't find anything.
15095 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15105 conftest$ac_exeext conftest.$ac_ext
15106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15108 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15109 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15111 if test "$host_cpu" = ia64; then
15112 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15113 allow_undefined_flag_F77="-z nodefs"
15114 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15116 # Determine the default libpath from the value encoded in an empty executable.
15117 cat >conftest.$ac_ext <<_ACEOF
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (ac_try="$ac_link"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_link") 2>conftest.er1
15131 grep -v '^ *+' conftest.er1 >conftest.err
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && {
15136 test -z "$ac_f77_werror_flag" ||
15137 test ! -s conftest.err
15138 } && test -s conftest$ac_exeext &&
15139 $as_test_x conftest$ac_exeext; then
15141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15143 # Check for a 64-bit object if we didn't find anything.
15144 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15147 echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15154 conftest$ac_exeext conftest.$ac_ext
15155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15157 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15158 # Warning - without using the other run time loading flags,
15159 # -berok will link without error, but may produce a broken library.
15160 no_undefined_flag_F77=' ${wl}-bernotok'
15161 allow_undefined_flag_F77=' ${wl}-berok'
15162 # -bexpall does not export symbols beginning with underscore (_)
15163 always_export_symbols_F77=yes
15164 # Exported symbols can be pulled into shared objects from archives
15165 whole_archive_flag_spec_F77=' '
15166 archive_cmds_need_lc_F77=yes
15167 # This is similar to how AIX traditionally builds it's shared libraries.
15168 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15174 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)'
15175 hardcode_libdir_flag_spec_F77='-L$libdir'
15176 hardcode_minus_L_F77=yes
15177 # see comment about different semantics on the GNU ld section
15182 export_dynamic_flag_spec_F77=-rdynamic
15185 cygwin* | mingw* | pw32*)
15186 # When not using gcc, we currently assume that we are using
15187 # Microsoft Visual C++.
15188 # hardcode_libdir_flag_spec is actually meaningless, as there is
15189 # no search path for DLLs.
15190 hardcode_libdir_flag_spec_F77=' '
15191 allow_undefined_flag_F77=unsupported
15192 # Tell ltmain to make .lib files, not .a files.
15194 # Tell ltmain to make .dll files, not .so files.
15196 # FIXME: Setting linknames here is a bad hack.
15197 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15198 # The linker will automatically build a .lib file if we build a DLL.
15199 old_archive_From_new_cmds_F77='true'
15200 # FIXME: Should let the user specify the lib program.
15201 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15202 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15203 enable_shared_with_static_runtimes_F77=yes
15206 darwin* | rhapsody*)
15208 rhapsody* | darwin1.[012])
15209 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15212 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15213 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15215 case ${MACOSX_DEPLOYMENT_TARGET} in
15217 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15220 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15226 archive_cmds_need_lc_F77=no
15227 hardcode_direct_F77=no
15228 hardcode_automatic_F77=yes
15229 hardcode_shlibpath_var_F77=unsupported
15230 whole_archive_flag_spec_F77=''
15231 link_all_deplibs_F77=yes
15232 if test "$GCC" = yes ; then
15233 output_verbose_link_cmd='echo'
15234 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15235 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15236 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15237 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15238 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}'
15240 case $cc_basename in
15242 output_verbose_link_cmd='echo'
15243 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15244 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15246 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15247 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}'
15257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15258 hardcode_libdir_flag_spec_F77='-L$libdir'
15259 hardcode_shlibpath_var_F77=no
15266 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15267 # support. Future versions do this automatically, but an explicit c++rt0.o
15268 # does not break anything, and helps significantly (at the cost of a little
15271 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15272 hardcode_libdir_flag_spec_F77='-R$libdir'
15273 hardcode_direct_F77=yes
15274 hardcode_shlibpath_var_F77=no
15277 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15279 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15280 hardcode_direct_F77=yes
15281 hardcode_minus_L_F77=yes
15282 hardcode_shlibpath_var_F77=no
15285 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15286 freebsd* | kfreebsd*-gnu | dragonfly*)
15287 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15288 hardcode_libdir_flag_spec_F77='-R$libdir'
15289 hardcode_direct_F77=yes
15290 hardcode_shlibpath_var_F77=no
15294 if test "$GCC" = yes; then
15295 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'
15297 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'
15299 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15300 hardcode_libdir_separator_F77=:
15301 hardcode_direct_F77=yes
15303 # hardcode_minus_L: Not really in the search PATH,
15304 # but as the default location of the library.
15305 hardcode_minus_L_F77=yes
15306 export_dynamic_flag_spec_F77='${wl}-E'
15310 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15311 case "$host_cpu" in
15313 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15316 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15320 case "$host_cpu" in
15322 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15325 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15329 if test "$with_gnu_ld" = no; then
15330 case "$host_cpu" in
15332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15333 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15334 hardcode_libdir_separator_F77=:
15335 hardcode_direct_F77=no
15336 hardcode_shlibpath_var_F77=no
15339 hardcode_libdir_flag_spec_F77='-L$libdir'
15340 hardcode_direct_F77=no
15341 hardcode_shlibpath_var_F77=no
15343 # hardcode_minus_L: Not really in the search PATH,
15344 # but as the default location of the library.
15345 hardcode_minus_L_F77=yes
15348 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15349 hardcode_libdir_separator_F77=:
15350 hardcode_direct_F77=yes
15351 export_dynamic_flag_spec_F77='${wl}-E'
15353 # hardcode_minus_L: Not really in the search PATH,
15354 # but as the default location of the library.
15355 hardcode_minus_L_F77=yes
15361 irix5* | irix6* | nonstopux*)
15362 if test "$GCC" = yes; then
15363 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'
15365 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'
15366 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15368 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15369 hardcode_libdir_separator_F77=:
15370 link_all_deplibs_F77=yes
15374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15377 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15379 hardcode_libdir_flag_spec_F77='-R$libdir'
15380 hardcode_direct_F77=yes
15381 hardcode_shlibpath_var_F77=no
15385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386 hardcode_direct_F77=yes
15387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15388 hardcode_libdir_separator_F77=:
15389 hardcode_shlibpath_var_F77=no
15393 hardcode_direct_F77=yes
15394 hardcode_shlibpath_var_F77=no
15395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15396 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15397 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15398 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15399 export_dynamic_flag_spec_F77='${wl}-E'
15402 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15403 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15404 hardcode_libdir_flag_spec_F77='-R$libdir'
15407 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15408 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15415 hardcode_libdir_flag_spec_F77='-L$libdir'
15416 hardcode_minus_L_F77=yes
15417 allow_undefined_flag_F77=unsupported
15418 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'
15419 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15423 if test "$GCC" = yes; then
15424 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15425 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'
15427 allow_undefined_flag_F77=' -expect_unresolved \*'
15428 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'
15430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15431 hardcode_libdir_separator_F77=:
15434 osf4* | osf5*) # as osf3* with the addition of -msym flag
15435 if test "$GCC" = yes; then
15436 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15437 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'
15438 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15440 allow_undefined_flag_F77=' -expect_unresolved \*'
15441 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'
15442 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~
15443 $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'
15445 # Both c and cxx compiler support -rpath directly
15446 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15448 hardcode_libdir_separator_F77=:
15452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_shlibpath_var_F77=no
15454 export_dynamic_flag_spec_F77='${wl}-Bexport'
15455 runpath_var=LD_RUN_PATH
15456 hardcode_runpath_var=yes
15460 no_undefined_flag_F77=' -z text'
15461 if test "$GCC" = yes; then
15463 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15464 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15465 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15468 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15470 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15472 hardcode_libdir_flag_spec_F77='-R$libdir'
15473 hardcode_shlibpath_var_F77=no
15475 solaris2.[0-5] | solaris2.[0-5].*) ;;
15477 # The compiler driver will combine linker options so we
15478 # cannot just pass the convience library names through
15479 # without $wl, iff we do not link with $LD.
15480 # Luckily, gcc supports the same syntax we need for Sun Studio.
15481 # Supported since Solaris 2.6 (maybe 2.5.1?)
15484 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15486 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15489 link_all_deplibs_F77=yes
15493 if test "x$host_vendor" = xsequent; then
15494 # Use $CC to link under sequent, because it throws in some extra .o
15495 # files that make .init and .fini sections work.
15496 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15498 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15500 hardcode_libdir_flag_spec_F77='-L$libdir'
15501 hardcode_direct_F77=yes
15502 hardcode_minus_L_F77=yes
15503 hardcode_shlibpath_var_F77=no
15507 case $host_vendor in
15509 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15510 hardcode_direct_F77=yes # is this really true???
15513 ## LD is ld it makes a PLAMLIB
15514 ## CC just makes a GrossModule.
15515 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15516 reload_cmds_F77='$CC -r -o $output$reload_objs'
15517 hardcode_direct_F77=no
15520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15524 runpath_var='LD_RUN_PATH'
15525 hardcode_shlibpath_var_F77=no
15529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_shlibpath_var_F77=no
15531 export_dynamic_flag_spec_F77='-Bexport'
15535 if test -d /usr/nec; then
15536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_shlibpath_var_F77=no
15538 runpath_var=LD_RUN_PATH
15539 hardcode_runpath_var=yes
15545 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_direct_F77=yes
15547 hardcode_minus_L_F77=no
15548 hardcode_shlibpath_var_F77=no
15549 hardcode_runpath_var=yes
15550 runpath_var=LD_RUN_PATH
15553 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15554 no_undefined_flag_F77='${wl}-z ${wl}text'
15555 if test "$GCC" = yes; then
15556 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15560 runpath_var='LD_RUN_PATH'
15561 hardcode_shlibpath_var_F77=no
15565 no_undefined_flag_F77=' -z text'
15566 # $CC -shared without GNU ld will not create a library from C++
15567 # object files and a static libstdc++, better avoid it by now
15568 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15571 hardcode_libdir_flag_spec_F77=
15572 hardcode_shlibpath_var_F77=no
15573 runpath_var='LD_RUN_PATH'
15577 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578 hardcode_libdir_flag_spec_F77='-L$libdir'
15579 hardcode_shlibpath_var_F77=no
15588 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15589 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15590 test "$ld_shlibs_F77" = no && can_build_shared=no
15592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15593 if test "$GCC" = yes; then
15594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15598 # Do we need to explicitly link libc?
15600 case "x$archive_cmds_need_lc_F77" in
15602 # Assume -lc should be added
15603 archive_cmds_need_lc_F77=yes
15605 if test "$enable_shared" = yes && test "$GCC" = yes; then
15606 case $archive_cmds_F77 in
15608 # FIXME: we may have to deal with multi-command sequences.
15611 # Test whether the compiler implicitly links with -lc since on some
15612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15613 # to ld, don't add -lc before -lgcc.
15614 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15615 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } 2>conftest.err; then
15626 libobjs=conftest.$ac_objext
15628 wl=$lt_prog_compiler_wl_F77
15634 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15635 allow_undefined_flag_F77=
15636 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15637 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }
15642 archive_cmds_need_lc_F77=no
15644 archive_cmds_need_lc_F77=yes
15646 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15648 cat conftest.err 1>&5
15651 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15652 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15659 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15660 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15661 library_names_spec=
15662 libname_spec='lib$name'
15666 postuninstall_cmds=
15670 shlibpath_overrides_runpath=unknown
15672 dynamic_linker="$host_os ld.so"
15673 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15674 if test "$GCC" = yes; then
15675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15676 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15677 # if the path contains ";" then we assume it to be the separator
15678 # otherwise default to the standard path separator (i.e. ":") - it is
15679 # assumed that no part of a normal pathname contains ";" but that should
15680 # okay in the real world where ";" in dirpaths is itself problematic.
15681 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15686 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15688 need_lib_prefix=unknown
15689 hardcode_into_libs=no
15691 # when you set need_version to no, make sure it does not cause -set_version
15692 # flags to be left without arguments
15693 need_version=unknown
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15699 shlibpath_var=LIBPATH
15701 # AIX 3 has no versioning support, so we append a major version to the name.
15702 soname_spec='${libname}${release}${shared_ext}$major'
15709 hardcode_into_libs=yes
15710 if test "$host_cpu" = ia64; then
15711 # AIX 5 supports IA64
15712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15713 shlibpath_var=LD_LIBRARY_PATH
15715 # With GCC up to 2.95.x, collect2 would create an import file
15716 # for dependence libraries. The import file would start with
15717 # the line `#! .'. This would cause the generated library to
15718 # depend on `.', always an invalid library. This was fixed in
15719 # development snapshots of GCC prior to 3.0.
15721 aix4 | aix4.[01] | aix4.[01].*)
15722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15724 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15727 can_build_shared=no
15731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15732 # soname into executable. Probably we can add versioning support to
15733 # collect2, so additional links can be useful in future.
15734 if test "$aix_use_runtimelinking" = yes; then
15735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15736 # instead of lib<name>.a to let people know that these are not
15737 # typical AIX shared libraries.
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15740 # We preserve .a as extension for shared libraries through AIX4.2
15741 # and later when we are not doing run time linking.
15742 library_names_spec='${libname}${release}.a $libname.a'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15745 shlibpath_var=LIBPATH
15750 library_names_spec='$libname.ixlibrary $libname.a'
15751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15752 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'
15756 library_names_spec='${libname}${shared_ext}'
15757 dynamic_linker="$host_os ld.so"
15758 shlibpath_var=LIBRARY_PATH
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15767 shlibpath_var=LD_LIBRARY_PATH
15768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15770 # the default ld.so.conf also contains /usr/contrib/lib and
15771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15772 # libtool to hard-code these into programs
15775 cygwin* | mingw* | pw32*)
15776 version_type=windows
15781 case $GCC,$host_os in
15782 yes,cygwin* | yes,mingw* | yes,pw32*)
15783 library_names_spec='$libname.dll.a'
15784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15785 postinstall_cmds='base_file=`basename \${file}`~
15786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15787 dldir=$destdir/`dirname \$dlpath`~
15788 test -d \$dldir || mkdir -p \$dldir~
15789 $install_prog $dir/$dlname \$dldir/$dlname'
15790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15791 dlpath=$dir/\$dldll~
15793 shlibpath_overrides_runpath=yes
15797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15799 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15802 # MinGW DLLs use traditional 'lib' prefix
15803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15805 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15806 # It is most probably a Windows format PATH printed by
15807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15808 # path with ; separators, and with drive letters. We can handle the
15809 # drive letters (cygwin fileutils understands them), so leave them,
15810 # especially as we might pass files found there to a mingw objdump,
15811 # which wouldn't understand a cygwinified path. Ahh.
15812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15818 # pw32 DLLs use 'pw' prefix rather than 'lib'
15819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15825 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15828 dynamic_linker='Win32 ld.exe'
15829 # FIXME: first we should search . and the directory the executable is in
15833 darwin* | rhapsody*)
15834 dynamic_linker="$host_os dyld"
15835 version_type=darwin
15838 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15839 soname_spec='${libname}${release}${major}$shared_ext'
15840 shlibpath_overrides_runpath=yes
15841 shlibpath_var=DYLD_LIBRARY_PATH
15842 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15843 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15844 if test "$GCC" = yes; then
15845 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15847 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 shlibpath_var=LD_LIBRARY_PATH
15872 shlibpath_overrides_runpath=no
15873 hardcode_into_libs=yes
15874 dynamic_linker='GNU ld.so'
15877 freebsd* | dragonfly*)
15878 # DragonFly does not have aout. When/if they implement a new
15879 # versioning mechanism, adjust this.
15880 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15881 version_type=freebsd-$objformat
15882 case $version_type in
15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15893 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes
15898 freebsd3.[01]* | freebsdelf3.[01]*)
15899 shlibpath_overrides_runpath=yes
15900 hardcode_into_libs=yes
15903 shlibpath_overrides_runpath=no
15904 hardcode_into_libs=yes
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 hardcode_into_libs=yes
15919 hpux9* | hpux10* | hpux11*)
15920 # Give a soname corresponding to the major version so that dld.sl refuses to
15921 # link against other versions.
15925 case "$host_cpu" in
15928 hardcode_into_libs=yes
15929 dynamic_linker="$host_os dld.so"
15930 shlibpath_var=LD_LIBRARY_PATH
15931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15934 if test "X$HPUX_IA64_MODE" = X32; then
15935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15943 hardcode_into_libs=yes
15944 dynamic_linker="$host_os dld.sl"
15945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15954 dynamic_linker="$host_os dld.sl"
15955 shlibpath_var=SHLIB_PATH
15956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15958 soname_spec='${libname}${release}${shared_ext}$major'
15961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15962 postinstall_cmds='chmod 555 $lib'
15965 irix5* | irix6* | nonstopux*)
15967 nonstopux*) version_type=nonstopux ;;
15969 if test "$lt_cv_prog_gnu_ld" = yes; then
15977 soname_spec='${libname}${release}${shared_ext}$major'
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15980 irix5* | nonstopux*)
15981 libsuff= shlibsuff=
15984 case $LD in # libtool.m4 will add one of these switches to LD
15985 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15986 libsuff= shlibsuff= libmagic=32-bit;;
15987 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15988 libsuff=32 shlibsuff=N32 libmagic=N32;;
15989 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15990 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15991 *) libsuff= shlibsuff= libmagic=never-match;;
15995 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15996 shlibpath_overrides_runpath=no
15997 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15998 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15999 hardcode_into_libs=yes
16002 # No shared lib support for Linux oldld, aout, or coff.
16003 linux*oldld* | linux*aout* | linux*coff*)
16007 # This must be Linux ELF.
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013 soname_spec='${libname}${release}${shared_ext}$major'
16014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16015 shlibpath_var=LD_LIBRARY_PATH
16016 shlibpath_overrides_runpath=no
16017 # This implies no fast_install, which is unacceptable.
16018 # Some rework will be needed to allow for fast_install
16019 # before this can be enabled.
16020 hardcode_into_libs=yes
16022 # Append ld.so.conf contents to the search path
16023 if test -f /etc/ld.so.conf; then
16024 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16025 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16028 # We used to test for /lib/ld.so.1 and disable shared libraries on
16029 # powerpc, because MkLinux only supported shared libraries with the
16030 # GNU dynamic linker. Since this was broken with cross compilers,
16031 # most powerpc-linux boxes support dynamic linking these days and
16032 # people can always --disable-shared, the test was removed, and we
16033 # assume the GNU/Linux dynamic linker is in use.
16034 dynamic_linker='GNU/Linux ld.so'
16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16042 soname_spec='${libname}${release}${shared_ext}$major'
16043 shlibpath_var=LD_LIBRARY_PATH
16044 shlibpath_overrides_runpath=no
16045 hardcode_into_libs=yes
16046 dynamic_linker='GNU ld.so'
16053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16056 dynamic_linker='NetBSD (a.out) ld.so'
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 dynamic_linker='NetBSD ld.elf_so'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 shlibpath_overrides_runpath=yes
16064 hardcode_into_libs=yes
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070 shlibpath_var=LD_LIBRARY_PATH
16071 shlibpath_overrides_runpath=yes
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 shlibpath_overrides_runpath=yes
16087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16090 *) need_version=no ;;
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16097 openbsd2.[89] | openbsd2.[89].*)
16098 shlibpath_overrides_runpath=no
16101 shlibpath_overrides_runpath=yes
16105 shlibpath_overrides_runpath=yes
16110 libname_spec='$name'
16113 library_names_spec='$libname${shared_ext} $libname.a'
16114 dynamic_linker='OS/2 ld.exe'
16115 shlibpath_var=LIBPATH
16118 osf3* | osf4* | osf5*)
16122 soname_spec='${libname}${release}${shared_ext}$major'
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124 shlibpath_var=LD_LIBRARY_PATH
16125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133 shlibpath_var=LD_LIBRARY_PATH
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 shlibpath_var=LD_LIBRARY_PATH
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16145 # ldd complains unless libraries are executable
16146 postinstall_cmds='chmod +x $lib'
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 shlibpath_overrides_runpath=yes
16155 if test "$with_gnu_ld" = yes; then
16161 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 shlibpath_var=LD_LIBRARY_PATH
16166 case $host_vendor in
16168 shlibpath_overrides_runpath=no
16170 export_dynamic_flag_spec='${wl}-Blargedynsym'
16171 runpath_var=LD_RUN_PATH
16179 shlibpath_overrides_runpath=no
16180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16186 if test -d /usr/nec ;then
16188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16189 soname_spec='$libname${shared_ext}.$major'
16190 shlibpath_var=LD_LIBRARY_PATH
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197 soname_spec='${libname}${release}${shared_ext}$major'
16198 shlibpath_var=LD_LIBRARY_PATH
16205 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16206 echo "${ECHO_T}$dynamic_linker" >&6; }
16207 test "$dynamic_linker" = no && can_build_shared=no
16209 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16210 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16211 hardcode_action_F77=
16212 if test -n "$hardcode_libdir_flag_spec_F77" || \
16213 test -n "$runpath_var_F77" || \
16214 test "X$hardcode_automatic_F77" = "Xyes" ; then
16216 # We can hardcode non-existant directories.
16217 if test "$hardcode_direct_F77" != no &&
16218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16219 # have to relink, otherwise we might link with an installed library
16220 # when we should be linking with a yet-to-be-installed one
16221 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16222 test "$hardcode_minus_L_F77" != no; then
16223 # Linking always hardcodes the temporary library directory.
16224 hardcode_action_F77=relink
16226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16227 hardcode_action_F77=immediate
16230 # We cannot hardcode anything, or else we can only hardcode existing
16232 hardcode_action_F77=unsupported
16234 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16235 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16237 if test "$hardcode_action_F77" = relink; then
16238 # Fast installation is not supported
16239 enable_fast_install=no
16240 elif test "$shlibpath_overrides_runpath" = yes ||
16241 test "$enable_shared" = no; then
16242 # Fast installation is not necessary
16243 enable_fast_install=needless
16248 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16249 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16250 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16253 { echo "$as_me:$LINENO: result: yes" >&5
16254 echo "${ECHO_T}yes" >&6; }
16256 # FIXME - insert some real tests, host_os isn't really good enough
16259 if test -n "$STRIP" ; then
16260 striplib="$STRIP -x"
16261 { echo "$as_me:$LINENO: result: yes" >&5
16262 echo "${ECHO_T}yes" >&6; }
16264 { echo "$as_me:$LINENO: result: no" >&5
16265 echo "${ECHO_T}no" >&6; }
16269 { echo "$as_me:$LINENO: result: no" >&5
16270 echo "${ECHO_T}no" >&6; }
16277 # The else clause should only fire when bootstrapping the
16278 # libtool distribution, otherwise you forgot to ship ltmain.sh
16279 # with your package, and you will get complaints that there are
16280 # no rules to generate ltmain.sh.
16281 if test -f "$ltmain"; then
16282 # See if we are running on zsh, and set the options which allow our commands through
16283 # without removal of \ escapes.
16284 if test -n "${ZSH_VERSION+set}" ; then
16285 setopt NO_GLOB_SUBST
16287 # Now quote all the things that may contain metacharacters while being
16288 # careful not to overquote the AC_SUBSTed values. We take copies of the
16289 # variables and quote the copies for generation of the libtool script.
16290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16294 deplibs_check_method reload_flag reload_cmds need_locks \
16295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16296 lt_cv_sys_global_symbol_to_c_name_address \
16297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16298 old_postinstall_cmds old_postuninstall_cmds \
16302 lt_prog_compiler_wl_F77 \
16303 lt_prog_compiler_pic_F77 \
16304 lt_prog_compiler_static_F77 \
16305 lt_prog_compiler_no_builtin_flag_F77 \
16306 export_dynamic_flag_spec_F77 \
16307 thread_safe_flag_spec_F77 \
16308 whole_archive_flag_spec_F77 \
16309 enable_shared_with_static_runtimes_F77 \
16310 old_archive_cmds_F77 \
16311 old_archive_from_new_cmds_F77 \
16312 predep_objects_F77 \
16313 postdep_objects_F77 \
16316 compiler_lib_search_path_F77 \
16318 archive_expsym_cmds_F77 \
16319 postinstall_cmds_F77 \
16320 postuninstall_cmds_F77 \
16321 old_archive_from_expsyms_cmds_F77 \
16322 allow_undefined_flag_F77 \
16323 no_undefined_flag_F77 \
16324 export_symbols_cmds_F77 \
16325 hardcode_libdir_flag_spec_F77 \
16326 hardcode_libdir_flag_spec_ld_F77 \
16327 hardcode_libdir_separator_F77 \
16328 hardcode_automatic_F77 \
16330 module_expsym_cmds_F77 \
16331 lt_cv_prog_compiler_c_o_F77 \
16332 exclude_expsyms_F77 \
16333 include_expsyms_F77; do
16336 old_archive_cmds_F77 | \
16337 old_archive_from_new_cmds_F77 | \
16338 archive_cmds_F77 | \
16339 archive_expsym_cmds_F77 | \
16340 module_cmds_F77 | \
16341 module_expsym_cmds_F77 | \
16342 old_archive_from_expsyms_cmds_F77 | \
16343 export_symbols_cmds_F77 | \
16344 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16345 postinstall_cmds | postuninstall_cmds | \
16346 old_postinstall_cmds | old_postuninstall_cmds | \
16347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16348 # Double-quote double-evaled strings.
16349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16358 *'\$0 --fallback-echo"')
16359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16365 cat <<__EOF__ >> "$cfgfile"
16366 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16368 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16370 # Shell to use when invoking shell scripts.
16373 # Whether or not to build shared libraries.
16374 build_libtool_libs=$enable_shared
16376 # Whether or not to build static libraries.
16377 build_old_libs=$enable_static
16379 # Whether or not to add -lc for building shared libraries.
16380 build_libtool_need_lc=$archive_cmds_need_lc_F77
16382 # Whether or not to disallow shared libs when runtime libs are static
16383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16385 # Whether or not to optimize for fast installation.
16386 fast_install=$enable_fast_install
16389 host_alias=$host_alias
16393 # The build system.
16394 build_alias=$build_alias
16398 # An echo program that does not interpret backslashes.
16403 AR_FLAGS=$lt_AR_FLAGS
16408 # A language-specific compiler.
16409 CC=$lt_compiler_F77
16411 # Is the compiler the GNU C compiler?
16417 # The linker used to build libraries.
16420 # Whether we need hard or soft links.
16423 # A BSD-compatible nm program.
16426 # A symbol stripping program
16429 # Used to examine libraries when file_magic_cmd begins "file"
16430 MAGIC_CMD=$MAGIC_CMD
16432 # Used on cygwin: DLL creation program.
16435 # Used on cygwin: object dumper.
16438 # Used on cygwin: assembler.
16441 # The name of the directory that contains temporary libtool files.
16444 # How to create reloadable object files.
16445 reload_flag=$lt_reload_flag
16446 reload_cmds=$lt_reload_cmds
16448 # How to pass a linker flag through the compiler.
16449 wl=$lt_lt_prog_compiler_wl_F77
16451 # Object file suffix (normally "o").
16452 objext="$ac_objext"
16454 # Old archive suffix (normally "a").
16457 # Shared library suffix (normally ".so").
16458 shrext_cmds='$shrext_cmds'
16460 # Executable file suffix (normally "").
16463 # Additional compiler flags for building library objects.
16464 pic_flag=$lt_lt_prog_compiler_pic_F77
16467 # What is the maximum length of a command?
16468 max_cmd_len=$lt_cv_sys_max_cmd_len
16470 # Does compiler simultaneously support -c and -o options?
16471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16473 # Must we lock files when doing compilation?
16474 need_locks=$lt_need_locks
16476 # Do we need the lib prefix for modules?
16477 need_lib_prefix=$need_lib_prefix
16479 # Do we need a version for libraries?
16480 need_version=$need_version
16482 # Whether dlopen is supported.
16483 dlopen_support=$enable_dlopen
16485 # Whether dlopen of programs is supported.
16486 dlopen_self=$enable_dlopen_self
16488 # Whether dlopen of statically linked programs is supported.
16489 dlopen_self_static=$enable_dlopen_self_static
16491 # Compiler flag to prevent dynamic linking.
16492 link_static_flag=$lt_lt_prog_compiler_static_F77
16494 # Compiler flag to turn off builtin functions.
16495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16497 # Compiler flag to allow reflexive dlopens.
16498 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16500 # Compiler flag to generate shared objects directly from archives.
16501 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16503 # Compiler flag to generate thread-safe objects.
16504 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16506 # Library versioning type.
16507 version_type=$version_type
16509 # Format of library name prefix.
16510 libname_spec=$lt_libname_spec
16512 # List of archive names. First name is the real one, the rest are links.
16513 # The last name is the one that the linker finds with -lNAME.
16514 library_names_spec=$lt_library_names_spec
16516 # The coded name of the library, if different from the real name.
16517 soname_spec=$lt_soname_spec
16519 # Commands used to build and install an old-style archive.
16521 old_archive_cmds=$lt_old_archive_cmds_F77
16522 old_postinstall_cmds=$lt_old_postinstall_cmds
16523 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16525 # Create an old-style archive from a shared archive.
16526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16528 # Create a temporary old-style archive to link instead of a shared archive.
16529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16531 # Commands used to build and install a shared archive.
16532 archive_cmds=$lt_archive_cmds_F77
16533 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16534 postinstall_cmds=$lt_postinstall_cmds
16535 postuninstall_cmds=$lt_postuninstall_cmds
16537 # Commands used to build a loadable module (assumed same as above if empty)
16538 module_cmds=$lt_module_cmds_F77
16539 module_expsym_cmds=$lt_module_expsym_cmds_F77
16541 # Commands to strip libraries.
16542 old_striplib=$lt_old_striplib
16543 striplib=$lt_striplib
16545 # Dependencies to place before the objects being linked to create a
16547 predep_objects=$lt_predep_objects_F77
16549 # Dependencies to place after the objects being linked to create a
16551 postdep_objects=$lt_postdep_objects_F77
16553 # Dependencies to place before the objects being linked to create a
16555 predeps=$lt_predeps_F77
16557 # Dependencies to place after the objects being linked to create a
16559 postdeps=$lt_postdeps_F77
16561 # The library search path used internally by the compiler when linking
16562 # a shared library.
16563 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16565 # Method to check whether dependent libraries are shared objects.
16566 deplibs_check_method=$lt_deplibs_check_method
16568 # Command to use when deplibs_check_method == file_magic.
16569 file_magic_cmd=$lt_file_magic_cmd
16571 # Flag that allows shared libraries with undefined symbols to be built.
16572 allow_undefined_flag=$lt_allow_undefined_flag_F77
16574 # Flag that forces no undefined symbols.
16575 no_undefined_flag=$lt_no_undefined_flag_F77
16577 # Commands used to finish a libtool library installation in a directory.
16578 finish_cmds=$lt_finish_cmds
16580 # Same as above, but a single script fragment to be evaled but not shown.
16581 finish_eval=$lt_finish_eval
16583 # Take the output of nm and produce a listing of raw symbols and C names.
16584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16586 # Transform the output of nm in a proper C declaration
16587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16589 # Transform the output of nm in a C name address pair
16590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16592 # This is the shared library runtime path variable.
16593 runpath_var=$runpath_var
16595 # This is the shared library path variable.
16596 shlibpath_var=$shlibpath_var
16598 # Is shlibpath searched before the hard-coded library search path?
16599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16601 # How to hardcode a shared library path into an executable.
16602 hardcode_action=$hardcode_action_F77
16604 # Whether we should hardcode library paths into libraries.
16605 hardcode_into_libs=$hardcode_into_libs
16607 # Flag to hardcode \$libdir into a binary during linking.
16608 # This must work even if \$libdir does not exist.
16609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16611 # If ld is used when linking, flag to hardcode \$libdir into
16612 # a binary during linking. This must work even if \$libdir does
16614 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16616 # Whether we need a single -rpath flag with a separated argument.
16617 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16620 # resulting binary.
16621 hardcode_direct=$hardcode_direct_F77
16623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16624 # resulting binary.
16625 hardcode_minus_L=$hardcode_minus_L_F77
16627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16628 # the resulting binary.
16629 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16631 # Set to yes if building a shared library automatically hardcodes DIR into the library
16632 # and all subsequent libraries and executables linked against it.
16633 hardcode_automatic=$hardcode_automatic_F77
16635 # Variables whose values should be saved in libtool wrapper scripts and
16636 # restored at relink time.
16637 variables_saved_for_relink="$variables_saved_for_relink"
16639 # Whether libtool must link a program against all its dependency libraries.
16640 link_all_deplibs=$link_all_deplibs_F77
16642 # Compile-time system search path for libraries
16643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16645 # Run-time system search path for libraries
16646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16648 # Fix the shell variable \$srcfile for the compiler.
16649 fix_srcfile_path="$fix_srcfile_path_F77"
16651 # Set to yes if exported symbols are required.
16652 always_export_symbols=$always_export_symbols_F77
16654 # The commands to list exported symbols.
16655 export_symbols_cmds=$lt_export_symbols_cmds_F77
16657 # The commands to extract the exported symbol list from a shared archive.
16658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16660 # Symbols that should not be listed in the preloaded symbols.
16661 exclude_expsyms=$lt_exclude_expsyms_F77
16663 # Symbols that must always be exported.
16664 include_expsyms=$lt_include_expsyms_F77
16666 # ### END LIBTOOL TAG CONFIG: $tagname
16672 # If there is no Makefile yet, we rely on a make rule to execute
16673 # `config.status --recheck' to rerun these tests and create the
16674 # libtool script then.
16675 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16676 if test -f "$ltmain_in"; then
16677 test -f Makefile && make "$ltmain"
16683 ac_cpp='$CPP $CPPFLAGS'
16684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16696 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16699 # Source file extension for Java test sources.
16702 # Object file extension for compiled Java test sources.
16706 # Code to be used in simple compile tests
16707 lt_simple_compile_test_code="class foo {}\n"
16709 # Code to be used in simple link tests
16710 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16714 # If no C compiler was specified, use CC.
16717 # Allow CC to be a program name with arguments.
16721 # save warnings/boilerplate of simple test code
16722 ac_outfile=conftest.$ac_objext
16723 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16725 _lt_compiler_boilerplate=`cat conftest.err`
16728 ac_outfile=conftest.$ac_objext
16729 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16731 _lt_linker_boilerplate=`cat conftest.err`
16735 # Allow CC to be a program name with arguments.
16740 for cc_temp in $compiler""; do
16742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16748 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16751 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16752 archive_cmds_need_lc_GCJ=no
16754 old_archive_cmds_GCJ=$old_archive_cmds
16757 lt_prog_compiler_no_builtin_flag_GCJ=
16759 if test "$GCC" = yes; then
16760 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16763 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16764 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16765 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 lt_cv_prog_compiler_rtti_exceptions=no
16769 ac_outfile=conftest.$ac_objext
16770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16771 lt_compiler_flag="-fno-rtti -fno-exceptions"
16772 # Insert the option either (1) after the last *FLAGS variable, or
16773 # (2) before a word containing "conftest.", or (3) at the end.
16774 # Note that $ac_compile itself does not contain backslashes and begins
16775 # with a dollar sign (not a hyphen), so the echo should work correctly.
16776 # The option is referenced via a variable to avoid confusing sed.
16777 lt_compile=`echo "$ac_compile" | $SED \
16778 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16780 -e 's:$: $lt_compiler_flag:'`
16781 (eval echo "\"\$as_me:16781: $lt_compile\"" >&5)
16782 (eval "$lt_compile" 2>conftest.err)
16784 cat conftest.err >&5
16785 echo "$as_me:16785: \$? = $ac_status" >&5
16786 if (exit $ac_status) && test -s "$ac_outfile"; then
16787 # The compiler can only warn and ignore the option if not recognized
16788 # So say no if there are warnings other than the usual output.
16789 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16790 $SED '/^$/d' conftest.err >conftest.er2
16791 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16792 lt_cv_prog_compiler_rtti_exceptions=yes
16798 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16799 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16801 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16802 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16809 lt_prog_compiler_wl_GCJ=
16810 lt_prog_compiler_pic_GCJ=
16811 lt_prog_compiler_static_GCJ=
16813 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16814 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16816 if test "$GCC" = yes; then
16817 lt_prog_compiler_wl_GCJ='-Wl,'
16818 lt_prog_compiler_static_GCJ='-static'
16822 # All AIX code is PIC.
16823 if test "$host_cpu" = ia64; then
16824 # AIX 5 now supports IA64 processor
16825 lt_prog_compiler_static_GCJ='-Bstatic'
16830 # FIXME: we need at least 68020 code to build shared libraries, but
16831 # adding the `-m68020' flag to GCC prevents building anything better,
16833 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16836 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16837 # PIC is the default for these OSes.
16840 mingw* | pw32* | os2*)
16841 # This hack is so that the source file can tell whether it is being
16842 # built for inclusion in a dll (and should export symbols for example).
16843 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16846 darwin* | rhapsody*)
16847 # PIC is the default on this platform
16848 # Common symbols not allowed in MH_DYLIB files
16849 lt_prog_compiler_pic_GCJ='-fno-common'
16853 # Just because we use GCC doesn't mean we suddenly get shared libraries
16854 # on systems that don't support them.
16855 lt_prog_compiler_can_build_shared_GCJ=no
16860 if test -d /usr/nec; then
16861 lt_prog_compiler_pic_GCJ=-Kconform_pic
16866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16867 # not for PA HP-UX.
16868 case "$host_cpu" in
16873 lt_prog_compiler_pic_GCJ='-fPIC'
16879 lt_prog_compiler_pic_GCJ='-fPIC'
16883 # PORTME Check for flag to pass linker flags through the system compiler.
16886 lt_prog_compiler_wl_GCJ='-Wl,'
16887 if test "$host_cpu" = ia64; then
16888 # AIX 5 now supports IA64 processor
16889 lt_prog_compiler_static_GCJ='-Bstatic'
16891 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16895 # PIC is the default on this platform
16896 # Common symbols not allowed in MH_DYLIB files
16897 case $cc_basename in
16899 lt_prog_compiler_pic_GCJ='-qnocommon'
16900 lt_prog_compiler_wl_GCJ='-Wl,'
16905 mingw* | pw32* | os2*)
16906 # This hack is so that the source file can tell whether it is being
16907 # built for inclusion in a dll (and should export symbols for example).
16908 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16911 hpux9* | hpux10* | hpux11*)
16912 lt_prog_compiler_wl_GCJ='-Wl,'
16913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16914 # not for PA HP-UX.
16915 case "$host_cpu" in
16920 lt_prog_compiler_pic_GCJ='+Z'
16923 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16924 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16927 irix5* | irix6* | nonstopux*)
16928 lt_prog_compiler_wl_GCJ='-Wl,'
16929 # PIC (with -KPIC) is the default.
16930 lt_prog_compiler_static_GCJ='-non_shared'
16934 lt_prog_compiler_pic_GCJ='-KPIC'
16935 lt_prog_compiler_static_GCJ='-Bstatic'
16939 case $cc_basename in
16941 lt_prog_compiler_wl_GCJ='-Wl,'
16942 lt_prog_compiler_pic_GCJ='-KPIC'
16943 lt_prog_compiler_static_GCJ='-static'
16945 pgcc* | pgf77* | pgf90*)
16946 # Portland Group compilers (*not* the Pentium gcc compiler,
16947 # which looks to be a dead project)
16948 lt_prog_compiler_wl_GCJ='-Wl,'
16949 lt_prog_compiler_pic_GCJ='-fpic'
16950 lt_prog_compiler_static_GCJ='-static'
16953 lt_prog_compiler_wl_GCJ='-Wl,'
16954 # All Alpha code is PIC.
16955 lt_prog_compiler_static_GCJ='-non_shared'
16960 osf3* | osf4* | osf5*)
16961 lt_prog_compiler_wl_GCJ='-Wl,'
16962 # All OSF/1 code is PIC.
16963 lt_prog_compiler_static_GCJ='-non_shared'
16967 lt_prog_compiler_pic_GCJ='-Kpic'
16968 lt_prog_compiler_static_GCJ='-dn'
16972 lt_prog_compiler_pic_GCJ='-KPIC'
16973 lt_prog_compiler_static_GCJ='-Bstatic'
16974 case $cc_basename in
16975 f77* | f90* | f95*)
16976 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16978 lt_prog_compiler_wl_GCJ='-Wl,';;
16983 lt_prog_compiler_wl_GCJ='-Qoption ld '
16984 lt_prog_compiler_pic_GCJ='-PIC'
16985 lt_prog_compiler_static_GCJ='-Bstatic'
16988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16989 lt_prog_compiler_wl_GCJ='-Wl,'
16990 lt_prog_compiler_pic_GCJ='-KPIC'
16991 lt_prog_compiler_static_GCJ='-Bstatic'
16995 if test -d /usr/nec ;then
16996 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16997 lt_prog_compiler_static_GCJ='-Bstatic'
17002 lt_prog_compiler_wl_GCJ='-Wl,'
17003 lt_prog_compiler_can_build_shared_GCJ=no
17007 lt_prog_compiler_pic_GCJ='-pic'
17008 lt_prog_compiler_static_GCJ='-Bstatic'
17012 lt_prog_compiler_can_build_shared_GCJ=no
17017 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17018 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17021 # Check to make sure the PIC flag actually works.
17023 if test -n "$lt_prog_compiler_pic_GCJ"; then
17025 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17026 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17027 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 lt_prog_compiler_pic_works_GCJ=no
17031 ac_outfile=conftest.$ac_objext
17032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17033 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17034 # Insert the option either (1) after the last *FLAGS variable, or
17035 # (2) before a word containing "conftest.", or (3) at the end.
17036 # Note that $ac_compile itself does not contain backslashes and begins
17037 # with a dollar sign (not a hyphen), so the echo should work correctly.
17038 # The option is referenced via a variable to avoid confusing sed.
17039 lt_compile=`echo "$ac_compile" | $SED \
17040 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17042 -e 's:$: $lt_compiler_flag:'`
17043 (eval echo "\"\$as_me:17043: $lt_compile\"" >&5)
17044 (eval "$lt_compile" 2>conftest.err)
17046 cat conftest.err >&5
17047 echo "$as_me:17047: \$? = $ac_status" >&5
17048 if (exit $ac_status) && test -s "$ac_outfile"; then
17049 # The compiler can only warn and ignore the option if not recognized
17050 # So say no if there are warnings other than the usual output.
17051 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17052 $SED '/^$/d' conftest.err >conftest.er2
17053 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17054 lt_prog_compiler_pic_works_GCJ=yes
17060 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17061 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17063 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17064 case $lt_prog_compiler_pic_GCJ in
17066 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17069 lt_prog_compiler_pic_GCJ=
17070 lt_prog_compiler_can_build_shared_GCJ=no
17075 # For platforms which do not support PIC, -DPIC is meaningless:
17077 lt_prog_compiler_pic_GCJ=
17080 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17084 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17085 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17086 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 lt_cv_prog_compiler_c_o_GCJ=no
17090 $rm -r conftest 2>/dev/null
17094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17096 lt_compiler_flag="-o out/conftest2.$ac_objext"
17097 # Insert the option either (1) after the last *FLAGS variable, or
17098 # (2) before a word containing "conftest.", or (3) at the end.
17099 # Note that $ac_compile itself does not contain backslashes and begins
17100 # with a dollar sign (not a hyphen), so the echo should work correctly.
17101 lt_compile=`echo "$ac_compile" | $SED \
17102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17104 -e 's:$: $lt_compiler_flag:'`
17105 (eval echo "\"\$as_me:17105: $lt_compile\"" >&5)
17106 (eval "$lt_compile" 2>out/conftest.err)
17108 cat out/conftest.err >&5
17109 echo "$as_me:17109: \$? = $ac_status" >&5
17110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17112 # The compiler can only warn and ignore the option if not recognized
17113 # So say no if there are warnings
17114 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17115 $SED '/^$/d' out/conftest.err >out/conftest.er2
17116 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17117 lt_cv_prog_compiler_c_o_GCJ=yes
17122 # SGI C++ compiler will create directory out/ii_files/ for
17123 # template instantiation
17124 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17125 $rm out/* && rmdir out
17131 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17132 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17135 hard_links="nottested"
17136 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17137 # do not overwrite the value of need_locks provided by the user
17138 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17139 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17144 ln conftest.a conftest.b 2>&5 || hard_links=no
17145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17146 { echo "$as_me:$LINENO: result: $hard_links" >&5
17147 echo "${ECHO_T}$hard_links" >&6; }
17148 if test "$hard_links" = no; then
17149 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17150 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17157 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17158 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17161 allow_undefined_flag_GCJ=
17162 enable_shared_with_static_runtimes_GCJ=no
17164 archive_expsym_cmds_GCJ=
17165 old_archive_From_new_cmds_GCJ=
17166 old_archive_from_expsyms_cmds_GCJ=
17167 export_dynamic_flag_spec_GCJ=
17168 whole_archive_flag_spec_GCJ=
17169 thread_safe_flag_spec_GCJ=
17170 hardcode_libdir_flag_spec_GCJ=
17171 hardcode_libdir_flag_spec_ld_GCJ=
17172 hardcode_libdir_separator_GCJ=
17173 hardcode_direct_GCJ=no
17174 hardcode_minus_L_GCJ=no
17175 hardcode_shlibpath_var_GCJ=unsupported
17176 link_all_deplibs_GCJ=unknown
17177 hardcode_automatic_GCJ=no
17179 module_expsym_cmds_GCJ=
17180 always_export_symbols_GCJ=no
17181 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17182 # include_expsyms should be a list of space-separated symbols to be *always*
17183 # included in the symbol list
17184 include_expsyms_GCJ=
17185 # exclude_expsyms can be an extended regexp of symbols to exclude
17186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17188 # as well as any symbol that contains `d'.
17189 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17191 # platforms (ab)use it in PIC code, but their linkers get confused if
17192 # the symbol is explicitly referenced. Since portable code cannot
17193 # rely on this symbol name, it's probably fine to never include it in
17194 # preloaded symbol tables.
17195 extract_expsyms_cmds=
17196 # Just being paranoid about ensuring that cc_basename is set.
17197 for cc_temp in $compiler""; do
17199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17205 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17208 cygwin* | mingw* | pw32*)
17209 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17210 # When not using gcc, we currently assume that we are using
17211 # Microsoft Visual C++.
17212 if test "$GCC" != yes; then
17222 if test "$with_gnu_ld" = yes; then
17223 # If archive_cmds runs LD, not CC, wlarc should be empty
17226 # Set some defaults for GNU ld with shared library support. These
17227 # are reset later if shared libraries are not supported. Putting them
17228 # here allows them to be overridden if necessary.
17229 runpath_var=LD_RUN_PATH
17230 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17231 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17232 # ancient GNU ld didn't support --whole-archive et. al.
17233 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17234 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17236 whole_archive_flag_spec_GCJ=
17238 supports_anon_versioning=no
17239 case `$LD -v 2>/dev/null` in
17240 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17243 *\ 2.11.*) ;; # other 2.11 versions
17244 *) supports_anon_versioning=yes ;;
17247 # See if GNU ld supports shared libraries.
17249 aix3* | aix4* | aix5*)
17250 # On AIX/PPC, the GNU linker is very broken
17251 if test "$host_cpu" != ia64; then
17255 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17256 *** to be unable to reliably create shared libraries on AIX.
17257 *** Therefore, libtool is disabling shared libraries support. If you
17258 *** really care for shared libraries, you may want to modify your PATH
17259 *** so that a non-GNU linker is found, and then restart.
17266 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)'
17267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17268 hardcode_minus_L_GCJ=yes
17270 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17271 # that the semantics of dynamic libraries on AmigaOS, at least up
17272 # to version 4, is to share data among multiple programs linked
17273 # with the same dynamic library. Since this doesn't match the
17274 # behavior of shared libraries on other platforms, we can't use
17280 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17281 allow_undefined_flag_GCJ=unsupported
17282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17283 # support --undefined. This deserves some investigation. FIXME
17284 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17290 cygwin* | mingw* | pw32*)
17291 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17292 # as there is no search path for DLLs.
17293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17294 allow_undefined_flag_GCJ=unsupported
17295 always_export_symbols_GCJ=no
17296 enable_shared_with_static_runtimes_GCJ=yes
17297 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17299 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17300 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17301 # If the export-symbols file already is a .def file (1st line
17302 # is EXPORTS), use it as is; otherwise, prepend...
17303 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17304 cp $export_symbols $output_objdir/$soname.def;
17306 echo EXPORTS > $output_objdir/$soname.def;
17307 cat $export_symbols >> $output_objdir/$soname.def;
17309 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17318 case $cc_basename,$host_cpu in
17319 pgcc*) # Portland Group C compiler
17320 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'
17321 tmp_addflag=' $pic_flag'
17323 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
17324 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'
17325 tmp_addflag=' $pic_flag -Mnomain' ;;
17326 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17327 tmp_addflag=' -i_dynamic' ;;
17328 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17329 tmp_addflag=' -i_dynamic -nofor_main' ;;
17330 ifc* | ifort*) # Intel Fortran compiler
17331 tmp_addflag=' -nofor_main' ;;
17333 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17335 if test $supports_anon_versioning = yes; then
17336 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17338 $echo "local: *; };" >> $output_objdir/$libname.ver~
17339 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17348 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17351 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17352 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17357 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17362 *** create shared libraries on Solaris systems. Therefore, libtool
17363 *** is disabling shared libraries support. We urge you to upgrade GNU
17364 *** binutils to release 2.9.1 or newer. Another option is to modify
17365 *** your PATH or compiler configuration so that the native linker is
17366 *** used, and then restart.
17369 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17371 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17378 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17380 hardcode_direct_GCJ=yes
17381 hardcode_shlibpath_var_GCJ=no
17385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17386 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17387 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17394 if test "$ld_shlibs_GCJ" = no; then
17396 hardcode_libdir_flag_spec_GCJ=
17397 export_dynamic_flag_spec_GCJ=
17398 whole_archive_flag_spec_GCJ=
17401 # PORTME fill in a description of your system's linker (not GNU ld)
17404 allow_undefined_flag_GCJ=unsupported
17405 always_export_symbols_GCJ=yes
17406 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'
17407 # Note: this linker hardcodes the directories in LIBPATH if there
17408 # are no directories specified by -L.
17409 hardcode_minus_L_GCJ=yes
17410 if test "$GCC" = yes && test -z "$link_static_flag"; then
17411 # Neither direct hardcoding nor static linking is supported with a
17413 hardcode_direct_GCJ=unsupported
17418 if test "$host_cpu" = ia64; then
17419 # On IA64, the linker does run time linking by default, so we don't
17420 # have to do anything special.
17421 aix_use_runtimelinking=no
17422 exp_sym_flag='-Bexport'
17425 # If we're using GNU nm, then we don't want the "-C" option.
17426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17428 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'
17430 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'
17432 aix_use_runtimelinking=no
17434 # Test if we are trying to use run time linking or normal
17435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17436 # need to do runtime linking.
17437 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17438 for ld_flag in $LDFLAGS; do
17439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17440 aix_use_runtimelinking=yes
17446 exp_sym_flag='-bexport'
17447 no_entry_flag='-bnoentry'
17450 # When large executables or shared objects are built, AIX ld can
17451 # have problems creating the table of contents. If linking a library
17452 # or program results in "error TOC overflow" add -mminimal-toc to
17453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17456 archive_cmds_GCJ=''
17457 hardcode_direct_GCJ=yes
17458 hardcode_libdir_separator_GCJ=':'
17459 link_all_deplibs_GCJ=yes
17461 if test "$GCC" = yes; then
17462 case $host_os in aix4.[012]|aix4.[012].*)
17463 # We only want to do this on AIX 4.2 and lower, the check
17464 # below for broken collect2 doesn't work under 4.3+
17465 collect2name=`${CC} -print-prog-name=collect2`
17466 if test -f "$collect2name" && \
17467 strings "$collect2name" | grep resolve_lib_name >/dev/null
17469 # We have reworked collect2
17470 hardcode_direct_GCJ=yes
17472 # We have old collect2
17473 hardcode_direct_GCJ=unsupported
17474 # It fails to find uninstalled libraries when the uninstalled
17475 # path is not listed in the libpath. Setting hardcode_minus_L
17476 # to unsupported forces relinking
17477 hardcode_minus_L_GCJ=yes
17478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17479 hardcode_libdir_separator_GCJ=
17482 shared_flag='-shared'
17483 if test "$aix_use_runtimelinking" = yes; then
17484 shared_flag="$shared_flag "'${wl}-G'
17488 if test "$host_cpu" = ia64; then
17489 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17490 # chokes on -Wl,-G. The following line is correct:
17493 if test "$aix_use_runtimelinking" = yes; then
17494 shared_flag='${wl}-G'
17496 shared_flag='${wl}-bM:SRE'
17501 # It seems that -bexpall does not export symbols beginning with
17502 # underscore (_), so it is better to generate a list of symbols to export.
17503 always_export_symbols_GCJ=yes
17504 if test "$aix_use_runtimelinking" = yes; then
17505 # Warning - without using the other runtime loading flags (-brtl),
17506 # -berok will link without error, but may produce a broken library.
17507 allow_undefined_flag_GCJ='-berok'
17508 # Determine the default libpath from the value encoded in an empty executable.
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (ac_try="$ac_link"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_link") 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest$ac_exeext &&
17541 $as_test_x conftest$ac_exeext; then
17543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17545 # Check for a 64-bit object if we didn't find anything.
17546 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556 conftest$ac_exeext conftest.$ac_ext
17557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17559 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17560 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17562 if test "$host_cpu" = ia64; then
17563 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17564 allow_undefined_flag_GCJ="-z nodefs"
17565 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17567 # Determine the default libpath from the value encoded in an empty executable.
17568 cat >conftest.$ac_ext <<_ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (ac_try="$ac_link"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17592 grep -v '^ *+' conftest.er1 >conftest.err
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } && {
17597 test -z "$ac_c_werror_flag" ||
17598 test ! -s conftest.err
17599 } && test -s conftest$ac_exeext &&
17600 $as_test_x conftest$ac_exeext; then
17602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17604 # Check for a 64-bit object if we didn't find anything.
17605 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17615 conftest$ac_exeext conftest.$ac_ext
17616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17618 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17619 # Warning - without using the other run time loading flags,
17620 # -berok will link without error, but may produce a broken library.
17621 no_undefined_flag_GCJ=' ${wl}-bernotok'
17622 allow_undefined_flag_GCJ=' ${wl}-berok'
17623 # -bexpall does not export symbols beginning with underscore (_)
17624 always_export_symbols_GCJ=yes
17625 # Exported symbols can be pulled into shared objects from archives
17626 whole_archive_flag_spec_GCJ=' '
17627 archive_cmds_need_lc_GCJ=yes
17628 # This is similar to how AIX traditionally builds it's shared libraries.
17629 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17635 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)'
17636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637 hardcode_minus_L_GCJ=yes
17638 # see comment about different semantics on the GNU ld section
17643 export_dynamic_flag_spec_GCJ=-rdynamic
17646 cygwin* | mingw* | pw32*)
17647 # When not using gcc, we currently assume that we are using
17648 # Microsoft Visual C++.
17649 # hardcode_libdir_flag_spec is actually meaningless, as there is
17650 # no search path for DLLs.
17651 hardcode_libdir_flag_spec_GCJ=' '
17652 allow_undefined_flag_GCJ=unsupported
17653 # Tell ltmain to make .lib files, not .a files.
17655 # Tell ltmain to make .dll files, not .so files.
17657 # FIXME: Setting linknames here is a bad hack.
17658 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17659 # The linker will automatically build a .lib file if we build a DLL.
17660 old_archive_From_new_cmds_GCJ='true'
17661 # FIXME: Should let the user specify the lib program.
17662 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17663 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17664 enable_shared_with_static_runtimes_GCJ=yes
17667 darwin* | rhapsody*)
17669 rhapsody* | darwin1.[012])
17670 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17673 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17674 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17676 case ${MACOSX_DEPLOYMENT_TARGET} in
17678 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17681 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17687 archive_cmds_need_lc_GCJ=no
17688 hardcode_direct_GCJ=no
17689 hardcode_automatic_GCJ=yes
17690 hardcode_shlibpath_var_GCJ=unsupported
17691 whole_archive_flag_spec_GCJ=''
17692 link_all_deplibs_GCJ=yes
17693 if test "$GCC" = yes ; then
17694 output_verbose_link_cmd='echo'
17695 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17696 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17698 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17699 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}'
17701 case $cc_basename in
17703 output_verbose_link_cmd='echo'
17704 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17705 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17706 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17707 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17708 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}'
17718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17720 hardcode_shlibpath_var_GCJ=no
17727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17728 # support. Future versions do this automatically, but an explicit c++rt0.o
17729 # does not break anything, and helps significantly (at the cost of a little
17732 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17733 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17734 hardcode_direct_GCJ=yes
17735 hardcode_shlibpath_var_GCJ=no
17738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17740 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_direct_GCJ=yes
17742 hardcode_minus_L_GCJ=yes
17743 hardcode_shlibpath_var_GCJ=no
17746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17747 freebsd* | kfreebsd*-gnu | dragonfly*)
17748 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17749 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17750 hardcode_direct_GCJ=yes
17751 hardcode_shlibpath_var_GCJ=no
17755 if test "$GCC" = yes; then
17756 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'
17758 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'
17760 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17761 hardcode_libdir_separator_GCJ=:
17762 hardcode_direct_GCJ=yes
17764 # hardcode_minus_L: Not really in the search PATH,
17765 # but as the default location of the library.
17766 hardcode_minus_L_GCJ=yes
17767 export_dynamic_flag_spec_GCJ='${wl}-E'
17771 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17772 case "$host_cpu" in
17774 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17777 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17781 case "$host_cpu" in
17783 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17786 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17790 if test "$with_gnu_ld" = no; then
17791 case "$host_cpu" in
17793 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17794 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17795 hardcode_libdir_separator_GCJ=:
17796 hardcode_direct_GCJ=no
17797 hardcode_shlibpath_var_GCJ=no
17800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17801 hardcode_direct_GCJ=no
17802 hardcode_shlibpath_var_GCJ=no
17804 # hardcode_minus_L: Not really in the search PATH,
17805 # but as the default location of the library.
17806 hardcode_minus_L_GCJ=yes
17809 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17810 hardcode_libdir_separator_GCJ=:
17811 hardcode_direct_GCJ=yes
17812 export_dynamic_flag_spec_GCJ='${wl}-E'
17814 # hardcode_minus_L: Not really in the search PATH,
17815 # but as the default location of the library.
17816 hardcode_minus_L_GCJ=yes
17822 irix5* | irix6* | nonstopux*)
17823 if test "$GCC" = yes; then
17824 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'
17826 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'
17827 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17829 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17830 hardcode_libdir_separator_GCJ=:
17831 link_all_deplibs_GCJ=yes
17835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17836 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17838 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17840 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17841 hardcode_direct_GCJ=yes
17842 hardcode_shlibpath_var_GCJ=no
17846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17847 hardcode_direct_GCJ=yes
17848 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17849 hardcode_libdir_separator_GCJ=:
17850 hardcode_shlibpath_var_GCJ=no
17854 hardcode_direct_GCJ=yes
17855 hardcode_shlibpath_var_GCJ=no
17856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17857 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17858 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17859 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17860 export_dynamic_flag_spec_GCJ='${wl}-E'
17863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17865 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17868 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17869 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877 hardcode_minus_L_GCJ=yes
17878 allow_undefined_flag_GCJ=unsupported
17879 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'
17880 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17884 if test "$GCC" = yes; then
17885 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17886 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'
17888 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17889 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'
17891 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17892 hardcode_libdir_separator_GCJ=:
17895 osf4* | osf5*) # as osf3* with the addition of -msym flag
17896 if test "$GCC" = yes; then
17897 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17898 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'
17899 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17901 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17902 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'
17903 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~
17904 $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'
17906 # Both c and cxx compiler support -rpath directly
17907 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17909 hardcode_libdir_separator_GCJ=:
17913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17914 hardcode_shlibpath_var_GCJ=no
17915 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17916 runpath_var=LD_RUN_PATH
17917 hardcode_runpath_var=yes
17921 no_undefined_flag_GCJ=' -z text'
17922 if test "$GCC" = yes; then
17924 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17925 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17926 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17929 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17930 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17931 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17933 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17934 hardcode_shlibpath_var_GCJ=no
17936 solaris2.[0-5] | solaris2.[0-5].*) ;;
17938 # The compiler driver will combine linker options so we
17939 # cannot just pass the convience library names through
17940 # without $wl, iff we do not link with $LD.
17941 # Luckily, gcc supports the same syntax we need for Sun Studio.
17942 # Supported since Solaris 2.6 (maybe 2.5.1?)
17945 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17947 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17950 link_all_deplibs_GCJ=yes
17954 if test "x$host_vendor" = xsequent; then
17955 # Use $CC to link under sequent, because it throws in some extra .o
17956 # files that make .init and .fini sections work.
17957 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17959 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17962 hardcode_direct_GCJ=yes
17963 hardcode_minus_L_GCJ=yes
17964 hardcode_shlibpath_var_GCJ=no
17968 case $host_vendor in
17970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17971 hardcode_direct_GCJ=yes # is this really true???
17974 ## LD is ld it makes a PLAMLIB
17975 ## CC just makes a GrossModule.
17976 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17977 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17978 hardcode_direct_GCJ=no
17981 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17982 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17985 runpath_var='LD_RUN_PATH'
17986 hardcode_shlibpath_var_GCJ=no
17990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17991 hardcode_shlibpath_var_GCJ=no
17992 export_dynamic_flag_spec_GCJ='-Bexport'
17996 if test -d /usr/nec; then
17997 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17998 hardcode_shlibpath_var_GCJ=no
17999 runpath_var=LD_RUN_PATH
18000 hardcode_runpath_var=yes
18006 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18007 hardcode_direct_GCJ=yes
18008 hardcode_minus_L_GCJ=no
18009 hardcode_shlibpath_var_GCJ=no
18010 hardcode_runpath_var=yes
18011 runpath_var=LD_RUN_PATH
18014 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18015 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18016 if test "$GCC" = yes; then
18017 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18019 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18021 runpath_var='LD_RUN_PATH'
18022 hardcode_shlibpath_var_GCJ=no
18026 no_undefined_flag_GCJ=' -z text'
18027 # $CC -shared without GNU ld will not create a library from C++
18028 # object files and a static libstdc++, better avoid it by now
18029 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18032 hardcode_libdir_flag_spec_GCJ=
18033 hardcode_shlibpath_var_GCJ=no
18034 runpath_var='LD_RUN_PATH'
18038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18040 hardcode_shlibpath_var_GCJ=no
18049 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18050 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18051 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18054 if test "$GCC" = yes; then
18055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18059 # Do we need to explicitly link libc?
18061 case "x$archive_cmds_need_lc_GCJ" in
18063 # Assume -lc should be added
18064 archive_cmds_need_lc_GCJ=yes
18066 if test "$enable_shared" = yes && test "$GCC" = yes; then
18067 case $archive_cmds_GCJ in
18069 # FIXME: we may have to deal with multi-command sequences.
18072 # Test whether the compiler implicitly links with -lc since on some
18073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18074 # to ld, don't add -lc before -lgcc.
18075 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18076 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } 2>conftest.err; then
18087 libobjs=conftest.$ac_objext
18089 wl=$lt_prog_compiler_wl_GCJ
18095 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18096 allow_undefined_flag_GCJ=
18097 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18098 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }
18103 archive_cmds_need_lc_GCJ=no
18105 archive_cmds_need_lc_GCJ=yes
18107 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18109 cat conftest.err 1>&5
18112 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18113 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18120 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18121 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18122 library_names_spec=
18123 libname_spec='lib$name'
18127 postuninstall_cmds=
18131 shlibpath_overrides_runpath=unknown
18133 dynamic_linker="$host_os ld.so"
18134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18135 if test "$GCC" = yes; then
18136 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18137 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18138 # if the path contains ";" then we assume it to be the separator
18139 # otherwise default to the standard path separator (i.e. ":") - it is
18140 # assumed that no part of a normal pathname contains ";" but that should
18141 # okay in the real world where ";" in dirpaths is itself problematic.
18142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18147 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18149 need_lib_prefix=unknown
18150 hardcode_into_libs=no
18152 # when you set need_version to no, make sure it does not cause -set_version
18153 # flags to be left without arguments
18154 need_version=unknown
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18160 shlibpath_var=LIBPATH
18162 # AIX 3 has no versioning support, so we append a major version to the name.
18163 soname_spec='${libname}${release}${shared_ext}$major'
18170 hardcode_into_libs=yes
18171 if test "$host_cpu" = ia64; then
18172 # AIX 5 supports IA64
18173 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18174 shlibpath_var=LD_LIBRARY_PATH
18176 # With GCC up to 2.95.x, collect2 would create an import file
18177 # for dependence libraries. The import file would start with
18178 # the line `#! .'. This would cause the generated library to
18179 # depend on `.', always an invalid library. This was fixed in
18180 # development snapshots of GCC prior to 3.0.
18182 aix4 | aix4.[01] | aix4.[01].*)
18183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18185 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18188 can_build_shared=no
18192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18193 # soname into executable. Probably we can add versioning support to
18194 # collect2, so additional links can be useful in future.
18195 if test "$aix_use_runtimelinking" = yes; then
18196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18197 # instead of lib<name>.a to let people know that these are not
18198 # typical AIX shared libraries.
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201 # We preserve .a as extension for shared libraries through AIX4.2
18202 # and later when we are not doing run time linking.
18203 library_names_spec='${libname}${release}.a $libname.a'
18204 soname_spec='${libname}${release}${shared_ext}$major'
18206 shlibpath_var=LIBPATH
18211 library_names_spec='$libname.ixlibrary $libname.a'
18212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18213 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'
18217 library_names_spec='${libname}${shared_ext}'
18218 dynamic_linker="$host_os ld.so"
18219 shlibpath_var=LIBRARY_PATH
18225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18226 soname_spec='${libname}${release}${shared_ext}$major'
18227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18228 shlibpath_var=LD_LIBRARY_PATH
18229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18231 # the default ld.so.conf also contains /usr/contrib/lib and
18232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18233 # libtool to hard-code these into programs
18236 cygwin* | mingw* | pw32*)
18237 version_type=windows
18242 case $GCC,$host_os in
18243 yes,cygwin* | yes,mingw* | yes,pw32*)
18244 library_names_spec='$libname.dll.a'
18245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18246 postinstall_cmds='base_file=`basename \${file}`~
18247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18248 dldir=$destdir/`dirname \$dlpath`~
18249 test -d \$dldir || mkdir -p \$dldir~
18250 $install_prog $dir/$dlname \$dldir/$dlname'
18251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18252 dlpath=$dir/\$dldll~
18254 shlibpath_overrides_runpath=yes
18258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18259 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18263 # MinGW DLLs use traditional 'lib' prefix
18264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18267 # It is most probably a Windows format PATH printed by
18268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18269 # path with ; separators, and with drive letters. We can handle the
18270 # drive letters (cygwin fileutils understands them), so leave them,
18271 # especially as we might pass files found there to a mingw objdump,
18272 # which wouldn't understand a cygwinified path. Ahh.
18273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18279 # pw32 DLLs use 'pw' prefix rather than 'lib'
18280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18289 dynamic_linker='Win32 ld.exe'
18290 # FIXME: first we should search . and the directory the executable is in
18294 darwin* | rhapsody*)
18295 dynamic_linker="$host_os dyld"
18296 version_type=darwin
18299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18300 soname_spec='${libname}${release}${major}$shared_ext'
18301 shlibpath_overrides_runpath=yes
18302 shlibpath_var=DYLD_LIBRARY_PATH
18303 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18304 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18305 if test "$GCC" = yes; then
18306 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18308 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18318 soname_spec='${libname}${release}${shared_ext}$major'
18319 shlibpath_var=LD_LIBRARY_PATH
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=no
18334 hardcode_into_libs=yes
18335 dynamic_linker='GNU ld.so'
18338 freebsd* | dragonfly*)
18339 # DragonFly does not have aout. When/if they implement a new
18340 # versioning mechanism, adjust this.
18341 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18342 version_type=freebsd-$objformat
18343 case $version_type in
18345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18354 shlibpath_var=LD_LIBRARY_PATH
18357 shlibpath_overrides_runpath=yes
18359 freebsd3.[01]* | freebsdelf3.[01]*)
18360 shlibpath_overrides_runpath=yes
18361 hardcode_into_libs=yes
18364 shlibpath_overrides_runpath=no
18365 hardcode_into_libs=yes
18374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18375 soname_spec='${libname}${release}${shared_ext}$major'
18376 shlibpath_var=LD_LIBRARY_PATH
18377 hardcode_into_libs=yes
18380 hpux9* | hpux10* | hpux11*)
18381 # Give a soname corresponding to the major version so that dld.sl refuses to
18382 # link against other versions.
18386 case "$host_cpu" in
18389 hardcode_into_libs=yes
18390 dynamic_linker="$host_os dld.so"
18391 shlibpath_var=LD_LIBRARY_PATH
18392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394 soname_spec='${libname}${release}${shared_ext}$major'
18395 if test "X$HPUX_IA64_MODE" = X32; then
18396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18404 hardcode_into_libs=yes
18405 dynamic_linker="$host_os dld.sl"
18406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18415 dynamic_linker="$host_os dld.sl"
18416 shlibpath_var=SHLIB_PATH
18417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18419 soname_spec='${libname}${release}${shared_ext}$major'
18422 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18423 postinstall_cmds='chmod 555 $lib'
18426 irix5* | irix6* | nonstopux*)
18428 nonstopux*) version_type=nonstopux ;;
18430 if test "$lt_cv_prog_gnu_ld" = yes; then
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18441 irix5* | nonstopux*)
18442 libsuff= shlibsuff=
18445 case $LD in # libtool.m4 will add one of these switches to LD
18446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18447 libsuff= shlibsuff= libmagic=32-bit;;
18448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18449 libsuff=32 shlibsuff=N32 libmagic=N32;;
18450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18452 *) libsuff= shlibsuff= libmagic=never-match;;
18456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18457 shlibpath_overrides_runpath=no
18458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18460 hardcode_into_libs=yes
18463 # No shared lib support for Linux oldld, aout, or coff.
18464 linux*oldld* | linux*aout* | linux*coff*)
18468 # This must be Linux ELF.
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474 soname_spec='${libname}${release}${shared_ext}$major'
18475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18476 shlibpath_var=LD_LIBRARY_PATH
18477 shlibpath_overrides_runpath=no
18478 # This implies no fast_install, which is unacceptable.
18479 # Some rework will be needed to allow for fast_install
18480 # before this can be enabled.
18481 hardcode_into_libs=yes
18483 # Append ld.so.conf contents to the search path
18484 if test -f /etc/ld.so.conf; then
18485 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18489 # We used to test for /lib/ld.so.1 and disable shared libraries on
18490 # powerpc, because MkLinux only supported shared libraries with the
18491 # GNU dynamic linker. Since this was broken with cross compilers,
18492 # most powerpc-linux boxes support dynamic linking these days and
18493 # people can always --disable-shared, the test was removed, and we
18494 # assume the GNU/Linux dynamic linker is in use.
18495 dynamic_linker='GNU/Linux ld.so'
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18503 soname_spec='${libname}${release}${shared_ext}$major'
18504 shlibpath_var=LD_LIBRARY_PATH
18505 shlibpath_overrides_runpath=no
18506 hardcode_into_libs=yes
18507 dynamic_linker='GNU ld.so'
18514 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18517 dynamic_linker='NetBSD (a.out) ld.so'
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18520 soname_spec='${libname}${release}${shared_ext}$major'
18521 dynamic_linker='NetBSD ld.elf_so'
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 shlibpath_overrides_runpath=yes
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 shlibpath_overrides_runpath=yes
18548 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18550 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18551 *) need_version=no ;;
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18555 shlibpath_var=LD_LIBRARY_PATH
18556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18558 openbsd2.[89] | openbsd2.[89].*)
18559 shlibpath_overrides_runpath=no
18562 shlibpath_overrides_runpath=yes
18566 shlibpath_overrides_runpath=yes
18571 libname_spec='$name'
18574 library_names_spec='$libname${shared_ext} $libname.a'
18575 dynamic_linker='OS/2 ld.exe'
18576 shlibpath_var=LIBPATH
18579 osf3* | osf4* | osf5*)
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585 shlibpath_var=LD_LIBRARY_PATH
18586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18587 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 shlibpath_var=LD_LIBRARY_PATH
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=yes
18605 hardcode_into_libs=yes
18606 # ldd complains unless libraries are executable
18607 postinstall_cmds='chmod +x $lib'
18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 shlibpath_overrides_runpath=yes
18616 if test "$with_gnu_ld" = yes; then
18622 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 shlibpath_var=LD_LIBRARY_PATH
18627 case $host_vendor in
18629 shlibpath_overrides_runpath=no
18631 export_dynamic_flag_spec='${wl}-Blargedynsym'
18632 runpath_var=LD_RUN_PATH
18640 shlibpath_overrides_runpath=no
18641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18647 if test -d /usr/nec ;then
18649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18650 soname_spec='$libname${shared_ext}.$major'
18651 shlibpath_var=LD_LIBRARY_PATH
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 shlibpath_var=LD_LIBRARY_PATH
18666 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18667 echo "${ECHO_T}$dynamic_linker" >&6; }
18668 test "$dynamic_linker" = no && can_build_shared=no
18670 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18671 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18672 hardcode_action_GCJ=
18673 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18674 test -n "$runpath_var_GCJ" || \
18675 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18677 # We can hardcode non-existant directories.
18678 if test "$hardcode_direct_GCJ" != no &&
18679 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18680 # have to relink, otherwise we might link with an installed library
18681 # when we should be linking with a yet-to-be-installed one
18682 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18683 test "$hardcode_minus_L_GCJ" != no; then
18684 # Linking always hardcodes the temporary library directory.
18685 hardcode_action_GCJ=relink
18687 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18688 hardcode_action_GCJ=immediate
18691 # We cannot hardcode anything, or else we can only hardcode existing
18693 hardcode_action_GCJ=unsupported
18695 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18696 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18698 if test "$hardcode_action_GCJ" = relink; then
18699 # Fast installation is not supported
18700 enable_fast_install=no
18701 elif test "$shlibpath_overrides_runpath" = yes ||
18702 test "$enable_shared" = no; then
18703 # Fast installation is not necessary
18704 enable_fast_install=needless
18709 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18710 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18711 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18712 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18713 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18714 { echo "$as_me:$LINENO: result: yes" >&5
18715 echo "${ECHO_T}yes" >&6; }
18717 # FIXME - insert some real tests, host_os isn't really good enough
18720 if test -n "$STRIP" ; then
18721 striplib="$STRIP -x"
18722 { echo "$as_me:$LINENO: result: yes" >&5
18723 echo "${ECHO_T}yes" >&6; }
18725 { echo "$as_me:$LINENO: result: no" >&5
18726 echo "${ECHO_T}no" >&6; }
18730 { echo "$as_me:$LINENO: result: no" >&5
18731 echo "${ECHO_T}no" >&6; }
18736 if test "x$enable_dlopen" != xyes; then
18737 enable_dlopen=unknown
18738 enable_dlopen_self=unknown
18739 enable_dlopen_self_static=unknown
18746 lt_cv_dlopen="load_add_on"
18748 lt_cv_dlopen_self=yes
18752 lt_cv_dlopen="LoadLibrary"
18757 lt_cv_dlopen="dlopen"
18762 # if libdl is installed we need to link against it
18763 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18764 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 ac_check_lib_save_LIBS=$LIBS
18770 cat >conftest.$ac_ext <<_ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18777 /* Override any GCC internal prototype to avoid an error.
18778 Use char because int might match the return type of a GCC
18779 builtin and then its argument prototype would still apply. */
18792 rm -f conftest.$ac_objext conftest$ac_exeext
18793 if { (ac_try="$ac_link"
18794 case "(($ac_try" in
18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_link") 2>conftest.er1
18801 grep -v '^ *+' conftest.er1 >conftest.err
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && {
18806 test -z "$ac_c_werror_flag" ||
18807 test ! -s conftest.err
18808 } && test -s conftest$ac_exeext &&
18809 $as_test_x conftest$ac_exeext; then
18810 ac_cv_lib_dl_dlopen=yes
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ac_cv_lib_dl_dlopen=no
18818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18819 conftest$ac_exeext conftest.$ac_ext
18820 LIBS=$ac_check_lib_save_LIBS
18822 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18823 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18824 if test $ac_cv_lib_dl_dlopen = yes; then
18825 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18828 lt_cv_dlopen="dyld"
18830 lt_cv_dlopen_self=yes
18837 { echo "$as_me:$LINENO: checking for shl_load" >&5
18838 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18839 if test "${ac_cv_func_shl_load+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 cat >conftest.$ac_ext <<_ACEOF
18845 cat confdefs.h >>conftest.$ac_ext
18846 cat >>conftest.$ac_ext <<_ACEOF
18847 /* end confdefs.h. */
18848 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18850 #define shl_load innocuous_shl_load
18852 /* System header to define __stub macros and hopefully few prototypes,
18853 which can conflict with char shl_load (); below.
18854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18855 <limits.h> exists even on freestanding compilers. */
18858 # include <limits.h>
18860 # include <assert.h>
18865 /* Override any GCC internal prototype to avoid an error.
18866 Use char because int might match the return type of a GCC
18867 builtin and then its argument prototype would still apply. */
18872 /* The GNU C library defines this for functions which it implements
18873 to always fail with ENOSYS. Some functions are actually named
18874 something starting with __ and the normal name is an alias. */
18875 #if defined __stub_shl_load || defined __stub___shl_load
18882 return shl_load ();
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (ac_try="$ac_link"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_link") 2>conftest.er1
18896 grep -v '^ *+' conftest.er1 >conftest.err
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } && {
18901 test -z "$ac_c_werror_flag" ||
18902 test ! -s conftest.err
18903 } && test -s conftest$ac_exeext &&
18904 $as_test_x conftest$ac_exeext; then
18905 ac_cv_func_shl_load=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_func_shl_load=no
18913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18914 conftest$ac_exeext conftest.$ac_ext
18916 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18917 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18918 if test $ac_cv_func_shl_load = yes; then
18919 lt_cv_dlopen="shl_load"
18921 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18922 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18923 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 ac_check_lib_save_LIBS=$LIBS
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18945 return shl_load ();
18950 rm -f conftest.$ac_objext conftest$ac_exeext
18951 if { (ac_try="$ac_link"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_link") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest$ac_exeext &&
18967 $as_test_x conftest$ac_exeext; then
18968 ac_cv_lib_dld_shl_load=yes
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_cv_lib_dld_shl_load=no
18976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18977 conftest$ac_exeext conftest.$ac_ext
18978 LIBS=$ac_check_lib_save_LIBS
18980 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18981 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18982 if test $ac_cv_lib_dld_shl_load = yes; then
18983 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18985 { echo "$as_me:$LINENO: checking for dlopen" >&5
18986 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18987 if test "${ac_cv_func_dlopen+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 cat >conftest.$ac_ext <<_ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998 #define dlopen innocuous_dlopen
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char dlopen (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19006 # include <limits.h>
19008 # include <assert.h>
19013 /* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined __stub_dlopen || defined __stub___dlopen
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 ac_cv_func_dlopen=yes
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_cv_func_dlopen=no
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19064 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19065 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
19066 if test $ac_cv_func_dlopen = yes; then
19067 lt_cv_dlopen="dlopen"
19069 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19070 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19071 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 ac_check_lib_save_LIBS=$LIBS
19076 cat >conftest.$ac_ext <<_ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19083 /* Override any GCC internal prototype to avoid an error.
19084 Use char because int might match the return type of a GCC
19085 builtin and then its argument prototype would still apply. */
19098 rm -f conftest.$ac_objext conftest$ac_exeext
19099 if { (ac_try="$ac_link"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_link") 2>conftest.er1
19107 grep -v '^ *+' conftest.er1 >conftest.err
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && {
19112 test -z "$ac_c_werror_flag" ||
19113 test ! -s conftest.err
19114 } && test -s conftest$ac_exeext &&
19115 $as_test_x conftest$ac_exeext; then
19116 ac_cv_lib_dl_dlopen=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_lib_dl_dlopen=no
19124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19125 conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19128 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19130 if test $ac_cv_lib_dl_dlopen = yes; then
19131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19133 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19134 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19135 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 ac_check_lib_save_LIBS=$LIBS
19139 LIBS="-lsvld $LIBS"
19140 cat >conftest.$ac_ext <<_ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19147 /* Override any GCC internal prototype to avoid an error.
19148 Use char because int might match the return type of a GCC
19149 builtin and then its argument prototype would still apply. */
19162 rm -f conftest.$ac_objext conftest$ac_exeext
19163 if { (ac_try="$ac_link"
19164 case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_link") 2>conftest.er1
19171 grep -v '^ *+' conftest.er1 >conftest.err
19173 cat conftest.err >&5
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } && {
19176 test -z "$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 } && test -s conftest$ac_exeext &&
19179 $as_test_x conftest$ac_exeext; then
19180 ac_cv_lib_svld_dlopen=yes
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19185 ac_cv_lib_svld_dlopen=no
19188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19189 conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19192 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19193 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19194 if test $ac_cv_lib_svld_dlopen = yes; then
19195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19197 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19198 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19199 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 ac_check_lib_save_LIBS=$LIBS
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19211 /* Override any GCC internal prototype to avoid an error.
19212 Use char because int might match the return type of a GCC
19213 builtin and then its argument prototype would still apply. */
19221 return dld_link ();
19226 rm -f conftest.$ac_objext conftest$ac_exeext
19227 if { (ac_try="$ac_link"
19228 case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_link") 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest$ac_exeext &&
19243 $as_test_x conftest$ac_exeext; then
19244 ac_cv_lib_dld_dld_link=yes
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_cv_lib_dld_dld_link=no
19252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19253 conftest$ac_exeext conftest.$ac_ext
19254 LIBS=$ac_check_lib_save_LIBS
19256 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19257 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19258 if test $ac_cv_lib_dld_dld_link = yes; then
19259 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19280 if test "x$lt_cv_dlopen" != xno; then
19286 case $lt_cv_dlopen in
19288 save_CPPFLAGS="$CPPFLAGS"
19289 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19291 save_LDFLAGS="$LDFLAGS"
19292 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19295 LIBS="$lt_cv_dlopen_libs $LIBS"
19297 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19298 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19299 if test "${lt_cv_dlopen_self+set}" = set; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 if test "$cross_compiling" = yes; then :
19303 lt_cv_dlopen_self=cross
19305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19306 lt_status=$lt_dlunknown
19307 cat > conftest.$ac_ext <<EOF
19308 #line 19308 "configure"
19309 #include "confdefs.h"
19318 # define LT_DLGLOBAL RTLD_GLOBAL
19321 # define LT_DLGLOBAL DL_GLOBAL
19323 # define LT_DLGLOBAL 0
19327 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19328 find out it does not work in some platform. */
19329 #ifndef LT_DLLAZY_OR_NOW
19331 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19334 # define LT_DLLAZY_OR_NOW DL_LAZY
19337 # define LT_DLLAZY_OR_NOW RTLD_NOW
19340 # define LT_DLLAZY_OR_NOW DL_NOW
19342 # define LT_DLLAZY_OR_NOW 0
19350 extern "C" void exit (int);
19353 void fnord() { int i=42;}
19356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19357 int status = $lt_dlunknown;
19361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19362 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19363 /* dlclose (self); */
19369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19370 (eval $ac_link) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19374 (./conftest; exit; ) 2>/dev/null
19376 case x$lt_status in
19377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19379 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19382 # compilation failed
19383 lt_cv_dlopen_self=no
19390 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19391 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19393 if test "x$lt_cv_dlopen_self" = xyes; then
19394 LDFLAGS="$LDFLAGS $link_static_flag"
19395 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19396 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19397 if test "${lt_cv_dlopen_self_static+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 if test "$cross_compiling" = yes; then :
19401 lt_cv_dlopen_self_static=cross
19403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19404 lt_status=$lt_dlunknown
19405 cat > conftest.$ac_ext <<EOF
19406 #line 19406 "configure"
19407 #include "confdefs.h"
19416 # define LT_DLGLOBAL RTLD_GLOBAL
19419 # define LT_DLGLOBAL DL_GLOBAL
19421 # define LT_DLGLOBAL 0
19425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19426 find out it does not work in some platform. */
19427 #ifndef LT_DLLAZY_OR_NOW
19429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19432 # define LT_DLLAZY_OR_NOW DL_LAZY
19435 # define LT_DLLAZY_OR_NOW RTLD_NOW
19438 # define LT_DLLAZY_OR_NOW DL_NOW
19440 # define LT_DLLAZY_OR_NOW 0
19448 extern "C" void exit (int);
19451 void fnord() { int i=42;}
19454 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19455 int status = $lt_dlunknown;
19459 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19460 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19461 /* dlclose (self); */
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468 (eval $ac_link) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19472 (./conftest; exit; ) 2>/dev/null
19474 case x$lt_status in
19475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19477 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19480 # compilation failed
19481 lt_cv_dlopen_self_static=no
19488 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19489 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19492 CPPFLAGS="$save_CPPFLAGS"
19493 LDFLAGS="$save_LDFLAGS"
19498 case $lt_cv_dlopen_self in
19499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19500 *) enable_dlopen_self=unknown ;;
19503 case $lt_cv_dlopen_self_static in
19504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19505 *) enable_dlopen_self_static=unknown ;;
19510 # The else clause should only fire when bootstrapping the
19511 # libtool distribution, otherwise you forgot to ship ltmain.sh
19512 # with your package, and you will get complaints that there are
19513 # no rules to generate ltmain.sh.
19514 if test -f "$ltmain"; then
19515 # See if we are running on zsh, and set the options which allow our commands through
19516 # without removal of \ escapes.
19517 if test -n "${ZSH_VERSION+set}" ; then
19518 setopt NO_GLOB_SUBST
19520 # Now quote all the things that may contain metacharacters while being
19521 # careful not to overquote the AC_SUBSTed values. We take copies of the
19522 # variables and quote the copies for generation of the libtool script.
19523 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19525 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19526 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19527 deplibs_check_method reload_flag reload_cmds need_locks \
19528 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19529 lt_cv_sys_global_symbol_to_c_name_address \
19530 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19531 old_postinstall_cmds old_postuninstall_cmds \
19535 lt_prog_compiler_wl_GCJ \
19536 lt_prog_compiler_pic_GCJ \
19537 lt_prog_compiler_static_GCJ \
19538 lt_prog_compiler_no_builtin_flag_GCJ \
19539 export_dynamic_flag_spec_GCJ \
19540 thread_safe_flag_spec_GCJ \
19541 whole_archive_flag_spec_GCJ \
19542 enable_shared_with_static_runtimes_GCJ \
19543 old_archive_cmds_GCJ \
19544 old_archive_from_new_cmds_GCJ \
19545 predep_objects_GCJ \
19546 postdep_objects_GCJ \
19549 compiler_lib_search_path_GCJ \
19551 archive_expsym_cmds_GCJ \
19552 postinstall_cmds_GCJ \
19553 postuninstall_cmds_GCJ \
19554 old_archive_from_expsyms_cmds_GCJ \
19555 allow_undefined_flag_GCJ \
19556 no_undefined_flag_GCJ \
19557 export_symbols_cmds_GCJ \
19558 hardcode_libdir_flag_spec_GCJ \
19559 hardcode_libdir_flag_spec_ld_GCJ \
19560 hardcode_libdir_separator_GCJ \
19561 hardcode_automatic_GCJ \
19563 module_expsym_cmds_GCJ \
19564 lt_cv_prog_compiler_c_o_GCJ \
19565 exclude_expsyms_GCJ \
19566 include_expsyms_GCJ; do
19569 old_archive_cmds_GCJ | \
19570 old_archive_from_new_cmds_GCJ | \
19571 archive_cmds_GCJ | \
19572 archive_expsym_cmds_GCJ | \
19573 module_cmds_GCJ | \
19574 module_expsym_cmds_GCJ | \
19575 old_archive_from_expsyms_cmds_GCJ | \
19576 export_symbols_cmds_GCJ | \
19577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19578 postinstall_cmds | postuninstall_cmds | \
19579 old_postinstall_cmds | old_postuninstall_cmds | \
19580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19581 # Double-quote double-evaled strings.
19582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19591 *'\$0 --fallback-echo"')
19592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19598 cat <<__EOF__ >> "$cfgfile"
19599 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19603 # Shell to use when invoking shell scripts.
19606 # Whether or not to build shared libraries.
19607 build_libtool_libs=$enable_shared
19609 # Whether or not to build static libraries.
19610 build_old_libs=$enable_static
19612 # Whether or not to add -lc for building shared libraries.
19613 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19615 # Whether or not to disallow shared libs when runtime libs are static
19616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19618 # Whether or not to optimize for fast installation.
19619 fast_install=$enable_fast_install
19622 host_alias=$host_alias
19626 # The build system.
19627 build_alias=$build_alias
19631 # An echo program that does not interpret backslashes.
19636 AR_FLAGS=$lt_AR_FLAGS
19641 # A language-specific compiler.
19642 CC=$lt_compiler_GCJ
19644 # Is the compiler the GNU C compiler?
19650 # The linker used to build libraries.
19653 # Whether we need hard or soft links.
19656 # A BSD-compatible nm program.
19659 # A symbol stripping program
19662 # Used to examine libraries when file_magic_cmd begins "file"
19663 MAGIC_CMD=$MAGIC_CMD
19665 # Used on cygwin: DLL creation program.
19668 # Used on cygwin: object dumper.
19671 # Used on cygwin: assembler.
19674 # The name of the directory that contains temporary libtool files.
19677 # How to create reloadable object files.
19678 reload_flag=$lt_reload_flag
19679 reload_cmds=$lt_reload_cmds
19681 # How to pass a linker flag through the compiler.
19682 wl=$lt_lt_prog_compiler_wl_GCJ
19684 # Object file suffix (normally "o").
19685 objext="$ac_objext"
19687 # Old archive suffix (normally "a").
19690 # Shared library suffix (normally ".so").
19691 shrext_cmds='$shrext_cmds'
19693 # Executable file suffix (normally "").
19696 # Additional compiler flags for building library objects.
19697 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19700 # What is the maximum length of a command?
19701 max_cmd_len=$lt_cv_sys_max_cmd_len
19703 # Does compiler simultaneously support -c and -o options?
19704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19706 # Must we lock files when doing compilation?
19707 need_locks=$lt_need_locks
19709 # Do we need the lib prefix for modules?
19710 need_lib_prefix=$need_lib_prefix
19712 # Do we need a version for libraries?
19713 need_version=$need_version
19715 # Whether dlopen is supported.
19716 dlopen_support=$enable_dlopen
19718 # Whether dlopen of programs is supported.
19719 dlopen_self=$enable_dlopen_self
19721 # Whether dlopen of statically linked programs is supported.
19722 dlopen_self_static=$enable_dlopen_self_static
19724 # Compiler flag to prevent dynamic linking.
19725 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19727 # Compiler flag to turn off builtin functions.
19728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19730 # Compiler flag to allow reflexive dlopens.
19731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19733 # Compiler flag to generate shared objects directly from archives.
19734 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19736 # Compiler flag to generate thread-safe objects.
19737 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19739 # Library versioning type.
19740 version_type=$version_type
19742 # Format of library name prefix.
19743 libname_spec=$lt_libname_spec
19745 # List of archive names. First name is the real one, the rest are links.
19746 # The last name is the one that the linker finds with -lNAME.
19747 library_names_spec=$lt_library_names_spec
19749 # The coded name of the library, if different from the real name.
19750 soname_spec=$lt_soname_spec
19752 # Commands used to build and install an old-style archive.
19754 old_archive_cmds=$lt_old_archive_cmds_GCJ
19755 old_postinstall_cmds=$lt_old_postinstall_cmds
19756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19758 # Create an old-style archive from a shared archive.
19759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19761 # Create a temporary old-style archive to link instead of a shared archive.
19762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19764 # Commands used to build and install a shared archive.
19765 archive_cmds=$lt_archive_cmds_GCJ
19766 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19767 postinstall_cmds=$lt_postinstall_cmds
19768 postuninstall_cmds=$lt_postuninstall_cmds
19770 # Commands used to build a loadable module (assumed same as above if empty)
19771 module_cmds=$lt_module_cmds_GCJ
19772 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19774 # Commands to strip libraries.
19775 old_striplib=$lt_old_striplib
19776 striplib=$lt_striplib
19778 # Dependencies to place before the objects being linked to create a
19780 predep_objects=$lt_predep_objects_GCJ
19782 # Dependencies to place after the objects being linked to create a
19784 postdep_objects=$lt_postdep_objects_GCJ
19786 # Dependencies to place before the objects being linked to create a
19788 predeps=$lt_predeps_GCJ
19790 # Dependencies to place after the objects being linked to create a
19792 postdeps=$lt_postdeps_GCJ
19794 # The library search path used internally by the compiler when linking
19795 # a shared library.
19796 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19798 # Method to check whether dependent libraries are shared objects.
19799 deplibs_check_method=$lt_deplibs_check_method
19801 # Command to use when deplibs_check_method == file_magic.
19802 file_magic_cmd=$lt_file_magic_cmd
19804 # Flag that allows shared libraries with undefined symbols to be built.
19805 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19807 # Flag that forces no undefined symbols.
19808 no_undefined_flag=$lt_no_undefined_flag_GCJ
19810 # Commands used to finish a libtool library installation in a directory.
19811 finish_cmds=$lt_finish_cmds
19813 # Same as above, but a single script fragment to be evaled but not shown.
19814 finish_eval=$lt_finish_eval
19816 # Take the output of nm and produce a listing of raw symbols and C names.
19817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19819 # Transform the output of nm in a proper C declaration
19820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19822 # Transform the output of nm in a C name address pair
19823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19825 # This is the shared library runtime path variable.
19826 runpath_var=$runpath_var
19828 # This is the shared library path variable.
19829 shlibpath_var=$shlibpath_var
19831 # Is shlibpath searched before the hard-coded library search path?
19832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19834 # How to hardcode a shared library path into an executable.
19835 hardcode_action=$hardcode_action_GCJ
19837 # Whether we should hardcode library paths into libraries.
19838 hardcode_into_libs=$hardcode_into_libs
19840 # Flag to hardcode \$libdir into a binary during linking.
19841 # This must work even if \$libdir does not exist.
19842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19844 # If ld is used when linking, flag to hardcode \$libdir into
19845 # a binary during linking. This must work even if \$libdir does
19847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19849 # Whether we need a single -rpath flag with a separated argument.
19850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19853 # resulting binary.
19854 hardcode_direct=$hardcode_direct_GCJ
19856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19857 # resulting binary.
19858 hardcode_minus_L=$hardcode_minus_L_GCJ
19860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19861 # the resulting binary.
19862 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19864 # Set to yes if building a shared library automatically hardcodes DIR into the library
19865 # and all subsequent libraries and executables linked against it.
19866 hardcode_automatic=$hardcode_automatic_GCJ
19868 # Variables whose values should be saved in libtool wrapper scripts and
19869 # restored at relink time.
19870 variables_saved_for_relink="$variables_saved_for_relink"
19872 # Whether libtool must link a program against all its dependency libraries.
19873 link_all_deplibs=$link_all_deplibs_GCJ
19875 # Compile-time system search path for libraries
19876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19878 # Run-time system search path for libraries
19879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19881 # Fix the shell variable \$srcfile for the compiler.
19882 fix_srcfile_path="$fix_srcfile_path_GCJ"
19884 # Set to yes if exported symbols are required.
19885 always_export_symbols=$always_export_symbols_GCJ
19887 # The commands to list exported symbols.
19888 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19890 # The commands to extract the exported symbol list from a shared archive.
19891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19893 # Symbols that should not be listed in the preloaded symbols.
19894 exclude_expsyms=$lt_exclude_expsyms_GCJ
19896 # Symbols that must always be exported.
19897 include_expsyms=$lt_include_expsyms_GCJ
19899 # ### END LIBTOOL TAG CONFIG: $tagname
19905 # If there is no Makefile yet, we rely on a make rule to execute
19906 # `config.status --recheck' to rerun these tests and create the
19907 # libtool script then.
19908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19909 if test -f "$ltmain_in"; then
19910 test -f Makefile && make "$ltmain"
19916 ac_cpp='$CPP $CPPFLAGS'
19917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19931 # Source file extension for RC test sources.
19934 # Object file extension for compiled RC test sources.
19938 # Code to be used in simple compile tests
19939 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19941 # Code to be used in simple link tests
19942 lt_simple_link_test_code="$lt_simple_compile_test_code"
19944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19946 # If no C compiler was specified, use CC.
19949 # Allow CC to be a program name with arguments.
19953 # save warnings/boilerplate of simple test code
19954 ac_outfile=conftest.$ac_objext
19955 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19957 _lt_compiler_boilerplate=`cat conftest.err`
19960 ac_outfile=conftest.$ac_objext
19961 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19963 _lt_linker_boilerplate=`cat conftest.err`
19967 # Allow CC to be a program name with arguments.
19972 for cc_temp in $compiler""; do
19974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19980 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19982 lt_cv_prog_compiler_c_o_RC=yes
19984 # The else clause should only fire when bootstrapping the
19985 # libtool distribution, otherwise you forgot to ship ltmain.sh
19986 # with your package, and you will get complaints that there are
19987 # no rules to generate ltmain.sh.
19988 if test -f "$ltmain"; then
19989 # See if we are running on zsh, and set the options which allow our commands through
19990 # without removal of \ escapes.
19991 if test -n "${ZSH_VERSION+set}" ; then
19992 setopt NO_GLOB_SUBST
19994 # Now quote all the things that may contain metacharacters while being
19995 # careful not to overquote the AC_SUBSTed values. We take copies of the
19996 # variables and quote the copies for generation of the libtool script.
19997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20001 deplibs_check_method reload_flag reload_cmds need_locks \
20002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20003 lt_cv_sys_global_symbol_to_c_name_address \
20004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20005 old_postinstall_cmds old_postuninstall_cmds \
20009 lt_prog_compiler_wl_RC \
20010 lt_prog_compiler_pic_RC \
20011 lt_prog_compiler_static_RC \
20012 lt_prog_compiler_no_builtin_flag_RC \
20013 export_dynamic_flag_spec_RC \
20014 thread_safe_flag_spec_RC \
20015 whole_archive_flag_spec_RC \
20016 enable_shared_with_static_runtimes_RC \
20017 old_archive_cmds_RC \
20018 old_archive_from_new_cmds_RC \
20019 predep_objects_RC \
20020 postdep_objects_RC \
20023 compiler_lib_search_path_RC \
20025 archive_expsym_cmds_RC \
20026 postinstall_cmds_RC \
20027 postuninstall_cmds_RC \
20028 old_archive_from_expsyms_cmds_RC \
20029 allow_undefined_flag_RC \
20030 no_undefined_flag_RC \
20031 export_symbols_cmds_RC \
20032 hardcode_libdir_flag_spec_RC \
20033 hardcode_libdir_flag_spec_ld_RC \
20034 hardcode_libdir_separator_RC \
20035 hardcode_automatic_RC \
20037 module_expsym_cmds_RC \
20038 lt_cv_prog_compiler_c_o_RC \
20039 exclude_expsyms_RC \
20040 include_expsyms_RC; do
20043 old_archive_cmds_RC | \
20044 old_archive_from_new_cmds_RC | \
20045 archive_cmds_RC | \
20046 archive_expsym_cmds_RC | \
20048 module_expsym_cmds_RC | \
20049 old_archive_from_expsyms_cmds_RC | \
20050 export_symbols_cmds_RC | \
20051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20052 postinstall_cmds | postuninstall_cmds | \
20053 old_postinstall_cmds | old_postuninstall_cmds | \
20054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20055 # Double-quote double-evaled strings.
20056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20065 *'\$0 --fallback-echo"')
20066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20072 cat <<__EOF__ >> "$cfgfile"
20073 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20077 # Shell to use when invoking shell scripts.
20080 # Whether or not to build shared libraries.
20081 build_libtool_libs=$enable_shared
20083 # Whether or not to build static libraries.
20084 build_old_libs=$enable_static
20086 # Whether or not to add -lc for building shared libraries.
20087 build_libtool_need_lc=$archive_cmds_need_lc_RC
20089 # Whether or not to disallow shared libs when runtime libs are static
20090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20092 # Whether or not to optimize for fast installation.
20093 fast_install=$enable_fast_install
20096 host_alias=$host_alias
20100 # The build system.
20101 build_alias=$build_alias
20105 # An echo program that does not interpret backslashes.
20110 AR_FLAGS=$lt_AR_FLAGS
20115 # A language-specific compiler.
20118 # Is the compiler the GNU C compiler?
20124 # The linker used to build libraries.
20127 # Whether we need hard or soft links.
20130 # A BSD-compatible nm program.
20133 # A symbol stripping program
20136 # Used to examine libraries when file_magic_cmd begins "file"
20137 MAGIC_CMD=$MAGIC_CMD
20139 # Used on cygwin: DLL creation program.
20142 # Used on cygwin: object dumper.
20145 # Used on cygwin: assembler.
20148 # The name of the directory that contains temporary libtool files.
20151 # How to create reloadable object files.
20152 reload_flag=$lt_reload_flag
20153 reload_cmds=$lt_reload_cmds
20155 # How to pass a linker flag through the compiler.
20156 wl=$lt_lt_prog_compiler_wl_RC
20158 # Object file suffix (normally "o").
20159 objext="$ac_objext"
20161 # Old archive suffix (normally "a").
20164 # Shared library suffix (normally ".so").
20165 shrext_cmds='$shrext_cmds'
20167 # Executable file suffix (normally "").
20170 # Additional compiler flags for building library objects.
20171 pic_flag=$lt_lt_prog_compiler_pic_RC
20174 # What is the maximum length of a command?
20175 max_cmd_len=$lt_cv_sys_max_cmd_len
20177 # Does compiler simultaneously support -c and -o options?
20178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20180 # Must we lock files when doing compilation?
20181 need_locks=$lt_need_locks
20183 # Do we need the lib prefix for modules?
20184 need_lib_prefix=$need_lib_prefix
20186 # Do we need a version for libraries?
20187 need_version=$need_version
20189 # Whether dlopen is supported.
20190 dlopen_support=$enable_dlopen
20192 # Whether dlopen of programs is supported.
20193 dlopen_self=$enable_dlopen_self
20195 # Whether dlopen of statically linked programs is supported.
20196 dlopen_self_static=$enable_dlopen_self_static
20198 # Compiler flag to prevent dynamic linking.
20199 link_static_flag=$lt_lt_prog_compiler_static_RC
20201 # Compiler flag to turn off builtin functions.
20202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20204 # Compiler flag to allow reflexive dlopens.
20205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20207 # Compiler flag to generate shared objects directly from archives.
20208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20210 # Compiler flag to generate thread-safe objects.
20211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20213 # Library versioning type.
20214 version_type=$version_type
20216 # Format of library name prefix.
20217 libname_spec=$lt_libname_spec
20219 # List of archive names. First name is the real one, the rest are links.
20220 # The last name is the one that the linker finds with -lNAME.
20221 library_names_spec=$lt_library_names_spec
20223 # The coded name of the library, if different from the real name.
20224 soname_spec=$lt_soname_spec
20226 # Commands used to build and install an old-style archive.
20228 old_archive_cmds=$lt_old_archive_cmds_RC
20229 old_postinstall_cmds=$lt_old_postinstall_cmds
20230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20232 # Create an old-style archive from a shared archive.
20233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20235 # Create a temporary old-style archive to link instead of a shared archive.
20236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20238 # Commands used to build and install a shared archive.
20239 archive_cmds=$lt_archive_cmds_RC
20240 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20241 postinstall_cmds=$lt_postinstall_cmds
20242 postuninstall_cmds=$lt_postuninstall_cmds
20244 # Commands used to build a loadable module (assumed same as above if empty)
20245 module_cmds=$lt_module_cmds_RC
20246 module_expsym_cmds=$lt_module_expsym_cmds_RC
20248 # Commands to strip libraries.
20249 old_striplib=$lt_old_striplib
20250 striplib=$lt_striplib
20252 # Dependencies to place before the objects being linked to create a
20254 predep_objects=$lt_predep_objects_RC
20256 # Dependencies to place after the objects being linked to create a
20258 postdep_objects=$lt_postdep_objects_RC
20260 # Dependencies to place before the objects being linked to create a
20262 predeps=$lt_predeps_RC
20264 # Dependencies to place after the objects being linked to create a
20266 postdeps=$lt_postdeps_RC
20268 # The library search path used internally by the compiler when linking
20269 # a shared library.
20270 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20272 # Method to check whether dependent libraries are shared objects.
20273 deplibs_check_method=$lt_deplibs_check_method
20275 # Command to use when deplibs_check_method == file_magic.
20276 file_magic_cmd=$lt_file_magic_cmd
20278 # Flag that allows shared libraries with undefined symbols to be built.
20279 allow_undefined_flag=$lt_allow_undefined_flag_RC
20281 # Flag that forces no undefined symbols.
20282 no_undefined_flag=$lt_no_undefined_flag_RC
20284 # Commands used to finish a libtool library installation in a directory.
20285 finish_cmds=$lt_finish_cmds
20287 # Same as above, but a single script fragment to be evaled but not shown.
20288 finish_eval=$lt_finish_eval
20290 # Take the output of nm and produce a listing of raw symbols and C names.
20291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20293 # Transform the output of nm in a proper C declaration
20294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20296 # Transform the output of nm in a C name address pair
20297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20299 # This is the shared library runtime path variable.
20300 runpath_var=$runpath_var
20302 # This is the shared library path variable.
20303 shlibpath_var=$shlibpath_var
20305 # Is shlibpath searched before the hard-coded library search path?
20306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20308 # How to hardcode a shared library path into an executable.
20309 hardcode_action=$hardcode_action_RC
20311 # Whether we should hardcode library paths into libraries.
20312 hardcode_into_libs=$hardcode_into_libs
20314 # Flag to hardcode \$libdir into a binary during linking.
20315 # This must work even if \$libdir does not exist.
20316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20318 # If ld is used when linking, flag to hardcode \$libdir into
20319 # a binary during linking. This must work even if \$libdir does
20321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20323 # Whether we need a single -rpath flag with a separated argument.
20324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20327 # resulting binary.
20328 hardcode_direct=$hardcode_direct_RC
20330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20331 # resulting binary.
20332 hardcode_minus_L=$hardcode_minus_L_RC
20334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20335 # the resulting binary.
20336 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20338 # Set to yes if building a shared library automatically hardcodes DIR into the library
20339 # and all subsequent libraries and executables linked against it.
20340 hardcode_automatic=$hardcode_automatic_RC
20342 # Variables whose values should be saved in libtool wrapper scripts and
20343 # restored at relink time.
20344 variables_saved_for_relink="$variables_saved_for_relink"
20346 # Whether libtool must link a program against all its dependency libraries.
20347 link_all_deplibs=$link_all_deplibs_RC
20349 # Compile-time system search path for libraries
20350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20352 # Run-time system search path for libraries
20353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20355 # Fix the shell variable \$srcfile for the compiler.
20356 fix_srcfile_path="$fix_srcfile_path_RC"
20358 # Set to yes if exported symbols are required.
20359 always_export_symbols=$always_export_symbols_RC
20361 # The commands to list exported symbols.
20362 export_symbols_cmds=$lt_export_symbols_cmds_RC
20364 # The commands to extract the exported symbol list from a shared archive.
20365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20367 # Symbols that should not be listed in the preloaded symbols.
20368 exclude_expsyms=$lt_exclude_expsyms_RC
20370 # Symbols that must always be exported.
20371 include_expsyms=$lt_include_expsyms_RC
20373 # ### END LIBTOOL TAG CONFIG: $tagname
20379 # If there is no Makefile yet, we rely on a make rule to execute
20380 # `config.status --recheck' to rerun these tests and create the
20381 # libtool script then.
20382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20383 if test -f "$ltmain_in"; then
20384 test -f Makefile && make "$ltmain"
20390 ac_cpp='$CPP $CPPFLAGS'
20391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20400 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20401 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20402 { (exit 1); exit 1; }; }
20406 # Append the new tag name to the list of available tags.
20407 if test -n "$tagname" ; then
20408 available_tags="$available_tags $tagname"
20414 # Now substitute the updated list of available tags.
20415 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20416 mv "${ofile}T" "$ofile"
20420 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20421 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20422 { (exit 1); exit 1; }; }
20428 # This can be used to rebuild libtool when needed
20429 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20431 # Always use our own libtool.
20432 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20434 # Prevent multiple expansion
20456 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20457 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20458 if test "${ac_cv_header_stdc+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 #include <stdlib.h>
20468 #include <stdarg.h>
20469 #include <string.h>
20480 rm -f conftest.$ac_objext
20481 if { (ac_try="$ac_compile"
20482 case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_compile") 2>conftest.er1
20489 grep -v '^ *+' conftest.er1 >conftest.err
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } && {
20494 test -z "$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20496 } && test -s conftest.$ac_objext; then
20497 ac_cv_header_stdc=yes
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_cv_header_stdc=no
20505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 if test $ac_cv_header_stdc = yes; then
20508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 #include <string.h>
20518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20519 $EGREP "memchr" >/dev/null 2>&1; then
20522 ac_cv_header_stdc=no
20528 if test $ac_cv_header_stdc = yes; then
20529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 #include <stdlib.h>
20539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20540 $EGREP "free" >/dev/null 2>&1; then
20543 ac_cv_header_stdc=no
20549 if test $ac_cv_header_stdc = yes; then
20550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20551 if test "$cross_compiling" = yes; then
20554 cat >conftest.$ac_ext <<_ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20561 #include <stdlib.h>
20562 #if ((' ' & 0x0FF) == 0x020)
20563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20566 # define ISLOWER(c) \
20567 (('a' <= (c) && (c) <= 'i') \
20568 || ('j' <= (c) && (c) <= 'r') \
20569 || ('s' <= (c) && (c) <= 'z'))
20570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20578 for (i = 0; i < 256; i++)
20579 if (XOR (islower (i), ISLOWER (i))
20580 || toupper (i) != TOUPPER (i))
20585 rm -f conftest$ac_exeext
20586 if { (ac_try="$ac_link"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_link") 2>&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20596 { (case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_try") 2>&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
20607 echo "$as_me: program exited with status $ac_status" >&5
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20611 ( exit $ac_status )
20612 ac_cv_header_stdc=no
20614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20621 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20622 if test $ac_cv_header_stdc = yes; then
20624 cat >>confdefs.h <<\_ACEOF
20625 #define STDC_HEADERS 1
20630 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20631 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20632 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20641 #include <sys/types.h>
20645 return makedev(0, 0);
20650 rm -f conftest.$ac_objext conftest$ac_exeext
20651 if { (ac_try="$ac_link"
20652 case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_link") 2>conftest.er1
20659 grep -v '^ *+' conftest.er1 >conftest.err
20661 cat conftest.err >&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } && {
20664 test -z "$ac_c_werror_flag" ||
20665 test ! -s conftest.err
20666 } && test -s conftest$ac_exeext &&
20667 $as_test_x conftest$ac_exeext; then
20668 ac_cv_header_sys_types_h_makedev=yes
20670 echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.$ac_ext >&5
20673 ac_cv_header_sys_types_h_makedev=no
20676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20677 conftest$ac_exeext conftest.$ac_ext
20680 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20681 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20683 if test $ac_cv_header_sys_types_h_makedev = no; then
20684 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20685 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20686 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20687 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20691 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20693 # Is the header compilable?
20694 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20695 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20696 cat >conftest.$ac_ext <<_ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20702 $ac_includes_default
20703 #include <sys/mkdev.h>
20705 rm -f conftest.$ac_objext
20706 if { (ac_try="$ac_compile"
20707 case "(($ac_try" in
20708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709 *) ac_try_echo=$ac_try;;
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712 (eval "$ac_compile") 2>conftest.er1
20714 grep -v '^ *+' conftest.er1 >conftest.err
20716 cat conftest.err >&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest.$ac_objext; then
20722 ac_header_compiler=yes
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_header_compiler=no
20730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20732 echo "${ECHO_T}$ac_header_compiler" >&6; }
20734 # Is the header present?
20735 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20736 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 #include <sys/mkdev.h>
20745 if { (ac_try="$ac_cpp conftest.$ac_ext"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20753 grep -v '^ *+' conftest.er1 >conftest.err
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } >/dev/null && {
20758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20759 test ! -s conftest.err
20761 ac_header_preproc=yes
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_header_preproc=no
20769 rm -f conftest.err conftest.$ac_ext
20770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20771 echo "${ECHO_T}$ac_header_preproc" >&6; }
20773 # So? What about this header?
20774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20776 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20777 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20779 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20780 ac_header_preproc=yes
20783 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20784 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20786 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20788 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20790 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20792 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20794 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20796 ## ---------------------------------- ##
20797 ## Report this to christos@astron.com ##
20798 ## ---------------------------------- ##
20800 ) | sed "s/^/$as_me: WARNING: /" >&2
20803 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20804 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20805 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20810 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20811 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20814 if test $ac_cv_header_sys_mkdev_h = yes; then
20816 cat >>confdefs.h <<\_ACEOF
20817 #define MAJOR_IN_MKDEV 1
20824 if test $ac_cv_header_sys_mkdev_h = no; then
20825 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20826 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20827 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20828 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20831 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20832 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20834 # Is the header compilable?
20835 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20836 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 $ac_includes_default
20844 #include <sys/sysmacros.h>
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest.$ac_objext; then
20863 ac_header_compiler=yes
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_header_compiler=no
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20873 echo "${ECHO_T}$ac_header_compiler" >&6; }
20875 # Is the header present?
20876 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20877 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 #include <sys/sysmacros.h>
20886 if { (ac_try="$ac_cpp conftest.$ac_ext"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } >/dev/null && {
20899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20902 ac_header_preproc=yes
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_header_preproc=no
20910 rm -f conftest.err conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20912 echo "${ECHO_T}$ac_header_preproc" >&6; }
20914 # So? What about this header?
20915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20917 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20918 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20920 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20921 ac_header_preproc=yes
20924 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20925 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20927 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20929 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20931 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20933 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20935 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20937 ## ---------------------------------- ##
20938 ## Report this to christos@astron.com ##
20939 ## ---------------------------------- ##
20941 ) | sed "s/^/$as_me: WARNING: /" >&2
20944 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20945 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20946 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20951 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20952 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20955 if test $ac_cv_header_sys_sysmacros_h = yes; then
20957 cat >>confdefs.h <<\_ACEOF
20958 #define MAJOR_IN_SYSMACROS 1
20967 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20968 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20969 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 #include <sys/types.h>
20979 #include <sys/wait.h>
20980 #ifndef WEXITSTATUS
20981 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20984 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20992 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20997 rm -f conftest.$ac_objext
20998 if { (ac_try="$ac_compile"
20999 case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_compile") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest.$ac_objext; then
21014 ac_cv_header_sys_wait_h=yes
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_cv_header_sys_wait_h=no
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21025 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21026 if test $ac_cv_header_sys_wait_h = yes; then
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_SYS_WAIT_H 1
21040 for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
21042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 ac_res=`eval echo '${'$as_ac_Header'}'`
21050 { echo "$as_me:$LINENO: result: $ac_res" >&5
21051 echo "${ECHO_T}$ac_res" >&6; }
21053 # Is the header compilable?
21054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 $ac_includes_default
21063 #include <$ac_header>
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21074 grep -v '^ *+' conftest.er1 >conftest.err
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } && {
21079 test -z "$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 } && test -s conftest.$ac_objext; then
21082 ac_header_compiler=yes
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_header_compiler=no
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21092 echo "${ECHO_T}$ac_header_compiler" >&6; }
21094 # Is the header present?
21095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21097 cat >conftest.$ac_ext <<_ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 #include <$ac_header>
21105 if { (ac_try="$ac_cpp conftest.$ac_ext"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } >/dev/null && {
21118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21121 ac_header_preproc=yes
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_header_preproc=no
21129 rm -f conftest.err conftest.$ac_ext
21130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21131 echo "${ECHO_T}$ac_header_preproc" >&6; }
21133 # So? What about this header?
21134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21140 ac_header_preproc=yes
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21156 ## ---------------------------------- ##
21157 ## Report this to christos@astron.com ##
21158 ## ---------------------------------- ##
21160 ) | sed "s/^/$as_me: WARNING: /" >&2
21163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21168 eval "$as_ac_Header=\$ac_header_preproc"
21170 ac_res=`eval echo '${'$as_ac_Header'}'`
21171 { echo "$as_me:$LINENO: result: $ac_res" >&5
21172 echo "${ECHO_T}$ac_res" >&6; }
21175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21176 cat >>confdefs.h <<_ACEOF
21177 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21188 for ac_header in utime.h wchar.h wctype.h limits.h
21190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 ac_res=`eval echo '${'$as_ac_Header'}'`
21198 { echo "$as_me:$LINENO: result: $ac_res" >&5
21199 echo "${ECHO_T}$ac_res" >&6; }
21201 # Is the header compilable?
21202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21204 cat >conftest.$ac_ext <<_ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21210 $ac_includes_default
21211 #include <$ac_header>
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && {
21227 test -z "$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 } && test -s conftest.$ac_objext; then
21230 ac_header_compiler=yes
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 ac_header_compiler=no
21238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21240 echo "${ECHO_T}$ac_header_compiler" >&6; }
21242 # Is the header present?
21243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 #include <$ac_header>
21253 if { (ac_try="$ac_cpp conftest.$ac_ext"
21254 case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21261 grep -v '^ *+' conftest.er1 >conftest.err
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } >/dev/null && {
21266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21269 ac_header_preproc=yes
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ac_header_preproc=no
21277 rm -f conftest.err conftest.$ac_ext
21278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21279 echo "${ECHO_T}$ac_header_preproc" >&6; }
21281 # So? What about this header?
21282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21288 ac_header_preproc=yes
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21304 ## ---------------------------------- ##
21305 ## Report this to christos@astron.com ##
21306 ## ---------------------------------- ##
21308 ) | sed "s/^/$as_me: WARNING: /" >&2
21311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 eval "$as_ac_Header=\$ac_header_preproc"
21318 ac_res=`eval echo '${'$as_ac_Header'}'`
21319 { echo "$as_me:$LINENO: result: $ac_res" >&5
21320 echo "${ECHO_T}$ac_res" >&6; }
21323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21324 cat >>confdefs.h <<_ACEOF
21325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21334 for ac_header in getopt.h err.h
21336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 ac_res=`eval echo '${'$as_ac_Header'}'`
21344 { echo "$as_me:$LINENO: result: $ac_res" >&5
21345 echo "${ECHO_T}$ac_res" >&6; }
21347 # Is the header compilable?
21348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 $ac_includes_default
21357 #include <$ac_header>
21359 rm -f conftest.$ac_objext
21360 if { (ac_try="$ac_compile"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_compile") 2>conftest.er1
21368 grep -v '^ *+' conftest.er1 >conftest.err
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest.$ac_objext; then
21376 ac_header_compiler=yes
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 ac_header_compiler=no
21384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21386 echo "${ECHO_T}$ac_header_compiler" >&6; }
21388 # Is the header present?
21389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21391 cat >conftest.$ac_ext <<_ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 #include <$ac_header>
21399 if { (ac_try="$ac_cpp conftest.$ac_ext"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21407 grep -v '^ *+' conftest.er1 >conftest.err
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } >/dev/null && {
21412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21415 ac_header_preproc=yes
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ac_header_preproc=no
21423 rm -f conftest.err conftest.$ac_ext
21424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21425 echo "${ECHO_T}$ac_header_preproc" >&6; }
21427 # So? What about this header?
21428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21434 ac_header_preproc=yes
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21450 ## ---------------------------------- ##
21451 ## Report this to christos@astron.com ##
21452 ## ---------------------------------- ##
21454 ) | sed "s/^/$as_me: WARNING: /" >&2
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 eval "$as_ac_Header=\$ac_header_preproc"
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465 { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21483 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
21485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 ac_res=`eval echo '${'$as_ac_Header'}'`
21493 { echo "$as_me:$LINENO: result: $ac_res" >&5
21494 echo "${ECHO_T}$ac_res" >&6; }
21496 # Is the header compilable?
21497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 $ac_includes_default
21506 #include <$ac_header>
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_compile") 2>conftest.er1
21517 grep -v '^ *+' conftest.er1 >conftest.err
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest.$ac_objext; then
21525 ac_header_compiler=yes
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21530 ac_header_compiler=no
21533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21535 echo "${ECHO_T}$ac_header_compiler" >&6; }
21537 # Is the header present?
21538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <$ac_header>
21548 if { (ac_try="$ac_cpp conftest.$ac_ext"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21556 grep -v '^ *+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } >/dev/null && {
21561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21564 ac_header_preproc=yes
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_header_preproc=no
21572 rm -f conftest.err conftest.$ac_ext
21573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21574 echo "${ECHO_T}$ac_header_preproc" >&6; }
21576 # So? What about this header?
21577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21583 ac_header_preproc=yes
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21599 ## ---------------------------------- ##
21600 ## Report this to christos@astron.com ##
21601 ## ---------------------------------- ##
21603 ) | sed "s/^/$as_me: WARNING: /" >&2
21606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 eval "$as_ac_Header=\$ac_header_preproc"
21613 ac_res=`eval echo '${'$as_ac_Header'}'`
21614 { echo "$as_me:$LINENO: result: $ac_res" >&5
21615 echo "${ECHO_T}$ac_res" >&6; }
21618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21619 cat >>confdefs.h <<_ACEOF
21620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21628 for ac_header in zlib.h
21630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21637 ac_res=`eval echo '${'$as_ac_Header'}'`
21638 { echo "$as_me:$LINENO: result: $ac_res" >&5
21639 echo "${ECHO_T}$ac_res" >&6; }
21641 # Is the header compilable?
21642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21644 cat >conftest.$ac_ext <<_ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 $ac_includes_default
21651 #include <$ac_header>
21653 rm -f conftest.$ac_objext
21654 if { (ac_try="$ac_compile"
21655 case "(($ac_try" in
21656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_compile") 2>conftest.er1
21662 grep -v '^ *+' conftest.er1 >conftest.err
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && {
21667 test -z "$ac_c_werror_flag" ||
21668 test ! -s conftest.err
21669 } && test -s conftest.$ac_objext; then
21670 ac_header_compiler=yes
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 ac_header_compiler=no
21678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21680 echo "${ECHO_T}$ac_header_compiler" >&6; }
21682 # Is the header present?
21683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 #include <$ac_header>
21693 if { (ac_try="$ac_cpp conftest.$ac_ext"
21694 case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21701 grep -v '^ *+' conftest.er1 >conftest.err
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } >/dev/null && {
21706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21707 test ! -s conftest.err
21709 ac_header_preproc=yes
21711 echo "$as_me: failed program was:" >&5
21712 sed 's/^/| /' conftest.$ac_ext >&5
21714 ac_header_preproc=no
21717 rm -f conftest.err conftest.$ac_ext
21718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21719 echo "${ECHO_T}$ac_header_preproc" >&6; }
21721 # So? What about this header?
21722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21728 ac_header_preproc=yes
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21744 ## ---------------------------------- ##
21745 ## Report this to christos@astron.com ##
21746 ## ---------------------------------- ##
21748 ) | sed "s/^/$as_me: WARNING: /" >&2
21751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21756 eval "$as_ac_Header=\$ac_header_preproc"
21758 ac_res=`eval echo '${'$as_ac_Header'}'`
21759 { echo "$as_me:$LINENO: result: $ac_res" >&5
21760 echo "${ECHO_T}$ac_res" >&6; }
21763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21764 cat >>confdefs.h <<_ACEOF
21765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21773 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21774 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21775 if test "${ac_cv_c_const+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21788 /* FIXME: Include the comments suggested by Paul. */
21789 #ifndef __cplusplus
21790 /* Ultrix mips cc rejects this. */
21791 typedef int charset[2];
21793 /* SunOS 4.1.1 cc rejects this. */
21794 char const *const *pcpcc;
21796 /* NEC SVR4.0.2 mips cc rejects this. */
21797 struct point {int x, y;};
21798 static struct point const zero = {0,0};
21799 /* AIX XL C 1.02.0.0 rejects this.
21800 It does not let you subtract one const X* pointer from another in
21801 an arm of an if-expression whose if-part is not a constant
21803 const char *g = "string";
21804 pcpcc = &g + (g ? g-g : 0);
21805 /* HPUX 7.0 cc rejects these. */
21807 ppc = (char**) pcpcc;
21808 pcpcc = (char const *const *) ppc;
21809 { /* SCO 3.2v4 cc rejects this. */
21811 char const *s = 0 ? (char *) 0 : (char const *) 0;
21816 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21817 int x[] = {25, 17};
21818 const int *foo = &x[0];
21821 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21822 typedef const int *iptr;
21826 { /* AIX XL C 1.02.0.0 rejects this saying
21827 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21828 struct s { int j; const int *ap[3]; };
21829 struct s *b; b->j = 5;
21831 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21832 const int foo = 10;
21833 if (!foo) return 0;
21835 return !cs[0] && !zero.x;
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21870 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21871 if test $ac_cv_c_const = no; then
21873 cat >>confdefs.h <<\_ACEOF
21879 { echo "$as_me:$LINENO: checking for off_t" >&5
21880 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21881 if test "${ac_cv_type_off_t+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 cat >conftest.$ac_ext <<_ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 $ac_includes_default
21891 typedef off_t ac__type_new_;
21895 if ((ac__type_new_ *) 0)
21897 if (sizeof (ac__type_new_))
21903 rm -f conftest.$ac_objext
21904 if { (ac_try="$ac_compile"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_compile") 2>conftest.er1
21912 grep -v '^ *+' conftest.er1 >conftest.err
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest.$ac_objext; then
21920 ac_cv_type_off_t=yes
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 ac_cv_type_off_t=no
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21931 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21932 if test $ac_cv_type_off_t = yes; then
21936 cat >>confdefs.h <<_ACEOF
21937 #define off_t long int
21942 { echo "$as_me:$LINENO: checking for size_t" >&5
21943 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21944 if test "${ac_cv_type_size_t+set}" = set; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 cat >conftest.$ac_ext <<_ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21953 $ac_includes_default
21954 typedef size_t ac__type_new_;
21958 if ((ac__type_new_ *) 0)
21960 if (sizeof (ac__type_new_))
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_compile") 2>conftest.er1
21975 grep -v '^ *+' conftest.er1 >conftest.err
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } && {
21980 test -z "$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 } && test -s conftest.$ac_objext; then
21983 ac_cv_type_size_t=yes
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 ac_cv_type_size_t=no
21991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21993 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21994 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21995 if test $ac_cv_type_size_t = yes; then
21999 cat >>confdefs.h <<_ACEOF
22000 #define size_t unsigned int
22005 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22006 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22007 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22020 static struct stat ac_aggr;
22021 if (ac_aggr.st_rdev)
22027 rm -f conftest.$ac_objext
22028 if { (ac_try="$ac_compile"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_compile") 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest.$ac_objext; then
22044 ac_cv_member_struct_stat_st_rdev=yes
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 $ac_includes_default
22059 static struct stat ac_aggr;
22060 if (sizeof ac_aggr.st_rdev)
22066 rm -f conftest.$ac_objext
22067 if { (ac_try="$ac_compile"
22068 case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_compile") 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest.$ac_objext; then
22083 ac_cv_member_struct_stat_st_rdev=yes
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 ac_cv_member_struct_stat_st_rdev=no
22091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22097 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
22098 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22100 cat >>confdefs.h <<_ACEOF
22101 #define HAVE_STRUCT_STAT_ST_RDEV 1
22108 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22109 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22110 if test "${ac_cv_struct_tm+set}" = set; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22113 cat >conftest.$ac_ext <<_ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 #include <sys/types.h>
22126 int *p = &tm.tm_sec;
22132 rm -f conftest.$ac_objext
22133 if { (ac_try="$ac_compile"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_compile") 2>conftest.er1
22141 grep -v '^ *+' conftest.er1 >conftest.err
22143 cat conftest.err >&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && {
22146 test -z "$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22148 } && test -s conftest.$ac_objext; then
22149 ac_cv_struct_tm=time.h
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 ac_cv_struct_tm=sys/time.h
22157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22160 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22161 if test $ac_cv_struct_tm = sys/time.h; then
22163 cat >>confdefs.h <<\_ACEOF
22164 #define TM_IN_SYS_TIME 1
22169 { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
22170 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
22171 if test "${ac_cv_struct_tm_zone+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 #include <sys/types.h>
22181 #include <$ac_cv_struct_tm>
22185 struct tm tm; tm.tm_zone;
22190 rm -f conftest.$ac_objext
22191 if { (ac_try="$ac_compile"
22192 case "(($ac_try" in
22193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197 (eval "$ac_compile") 2>conftest.er1
22199 grep -v '^ *+' conftest.er1 >conftest.err
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } && {
22204 test -z "$ac_c_werror_flag" ||
22205 test ! -s conftest.err
22206 } && test -s conftest.$ac_objext; then
22207 ac_cv_struct_tm_zone=yes
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 ac_cv_struct_tm_zone=no
22215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22217 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
22218 echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
22219 if test "$ac_cv_struct_tm_zone" = yes; then
22221 cat >>confdefs.h <<\_ACEOF
22222 #define HAVE_TM_ZONE 1
22226 { echo "$as_me:$LINENO: checking for tzname" >&5
22227 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22228 if test "${ac_cv_var_tzname+set}" = set; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22231 cat >conftest.$ac_ext <<_ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22238 #ifndef tzname /* For SGI. */
22239 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22249 rm -f conftest.$ac_objext conftest$ac_exeext
22250 if { (ac_try="$ac_link"
22251 case "(($ac_try" in
22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22256 (eval "$ac_link") 2>conftest.er1
22258 grep -v '^ *+' conftest.er1 >conftest.err
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_exeext &&
22266 $as_test_x conftest$ac_exeext; then
22267 ac_cv_var_tzname=yes
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22272 ac_cv_var_tzname=no
22275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22276 conftest$ac_exeext conftest.$ac_ext
22278 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22279 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22280 if test $ac_cv_var_tzname = yes; then
22282 cat >>confdefs.h <<\_ACEOF
22283 #define HAVE_TZNAME 1
22288 { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
22289 echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
22290 if test "${ac_cv_struct_tm_isdst+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22293 cat >conftest.$ac_ext <<_ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h. */
22299 #include <sys/types.h>
22300 #include <$ac_cv_struct_tm>
22304 struct tm tm; tm.tm_isdst;
22309 rm -f conftest.$ac_objext
22310 if { (ac_try="$ac_compile"
22311 case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_compile") 2>conftest.er1
22318 grep -v '^ *+' conftest.er1 >conftest.err
22320 cat conftest.err >&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } && {
22323 test -z "$ac_c_werror_flag" ||
22324 test ! -s conftest.err
22325 } && test -s conftest.$ac_objext; then
22326 ac_cv_struct_tm_isdst=yes
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22331 ac_cv_struct_tm_isdst=no
22334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
22337 echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
22338 if test "$ac_cv_struct_tm_isdst" = yes; then
22340 cat >>confdefs.h <<\_ACEOF
22341 #define HAVE_TM_ISDST 1
22345 { echo "$as_me:$LINENO: checking for daylight" >&5
22346 echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
22347 if test "${ac_cv_var_daylight+set}" = set; then
22348 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22357 #ifndef daylight /* In case IRIX #defines this, too */
22358 extern int daylight;
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375 (eval "$ac_link") 2>conftest.er1
22377 grep -v '^ *+' conftest.er1 >conftest.err
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); } && {
22382 test -z "$ac_c_werror_flag" ||
22383 test ! -s conftest.err
22384 } && test -s conftest$ac_exeext &&
22385 $as_test_x conftest$ac_exeext; then
22386 ac_cv_var_daylight=yes
22388 echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 ac_cv_var_daylight=no
22394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22395 conftest$ac_exeext conftest.$ac_ext
22397 { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
22398 echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
22399 if test $ac_cv_var_daylight = yes; then
22401 cat >>confdefs.h <<\_ACEOF
22402 #define HAVE_DAYLIGHT 1
22407 # Check whether --enable-largefile was given.
22408 if test "${enable_largefile+set}" = set; then
22409 enableval=$enable_largefile;
22412 if test "$enable_largefile" != no; then
22414 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22415 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
22416 if test "${ac_cv_sys_largefile_CC+set}" = set; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 ac_cv_sys_largefile_CC=no
22420 if test "$GCC" != yes; then
22423 # IRIX 6.2 and later do not support large files by default,
22424 # so use the C compiler's -n32 option if that helps.
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 #include <sys/types.h>
22432 /* Check that off_t can represent 2**63 - 1 correctly.
22433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22434 since some C++ compilers masquerading as C compilers
22435 incorrectly reject 9223372036854775807. */
22436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22438 && LARGE_OFF_T % 2147483647 == 1)
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22457 grep -v '^ *+' conftest.er1 >conftest.err
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22473 rm -f core conftest.err conftest.$ac_objext
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_compile") 2>conftest.er1
22484 grep -v '^ *+' conftest.er1 >conftest.err
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && {
22489 test -z "$ac_c_werror_flag" ||
22490 test ! -s conftest.err
22491 } && test -s conftest.$ac_objext; then
22492 ac_cv_sys_largefile_CC=' -n32'; break
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22500 rm -f core conftest.err conftest.$ac_objext
22504 rm -f conftest.$ac_ext
22507 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22508 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
22509 if test "$ac_cv_sys_largefile_CC" != no; then
22510 CC=$CC$ac_cv_sys_largefile_CC
22513 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22514 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 cat >conftest.$ac_ext <<_ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h. */
22525 #include <sys/types.h>
22526 /* Check that off_t can represent 2**63 - 1 correctly.
22527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22528 since some C++ compilers masquerading as C compilers
22529 incorrectly reject 9223372036854775807. */
22530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22532 && LARGE_OFF_T % 2147483647 == 1)
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22549 (eval "$ac_compile") 2>conftest.er1
22551 grep -v '^ *+' conftest.er1 >conftest.err
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } && {
22556 test -z "$ac_c_werror_flag" ||
22557 test ! -s conftest.err
22558 } && test -s conftest.$ac_objext; then
22559 ac_cv_sys_file_offset_bits=no; break
22561 echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568 cat >conftest.$ac_ext <<_ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22574 #define _FILE_OFFSET_BITS 64
22575 #include <sys/types.h>
22576 /* Check that off_t can represent 2**63 - 1 correctly.
22577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22578 since some C++ compilers masquerading as C compilers
22579 incorrectly reject 9223372036854775807. */
22580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22582 && LARGE_OFF_T % 2147483647 == 1)
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22601 grep -v '^ *+' conftest.er1 >conftest.err
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest.$ac_objext; then
22609 ac_cv_sys_file_offset_bits=64; break
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 ac_cv_sys_file_offset_bits=unknown
22622 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22623 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22624 case $ac_cv_sys_file_offset_bits in #(
22627 cat >>confdefs.h <<_ACEOF
22628 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22633 if test $ac_cv_sys_file_offset_bits = unknown; then
22634 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22635 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22636 if test "${ac_cv_sys_large_files+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 cat >conftest.$ac_ext <<_ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22646 #include <sys/types.h>
22647 /* Check that off_t can represent 2**63 - 1 correctly.
22648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22649 since some C++ compilers masquerading as C compilers
22650 incorrectly reject 9223372036854775807. */
22651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22653 && LARGE_OFF_T % 2147483647 == 1)
22663 rm -f conftest.$ac_objext
22664 if { (ac_try="$ac_compile"
22665 case "(($ac_try" in
22666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667 *) ac_try_echo=$ac_try;;
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670 (eval "$ac_compile") 2>conftest.er1
22672 grep -v '^ *+' conftest.er1 >conftest.err
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest.$ac_objext; then
22680 ac_cv_sys_large_files=no; break
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 #define _LARGE_FILES 1
22696 #include <sys/types.h>
22697 /* Check that off_t can represent 2**63 - 1 correctly.
22698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22699 since some C++ compilers masquerading as C compilers
22700 incorrectly reject 9223372036854775807. */
22701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22703 && LARGE_OFF_T % 2147483647 == 1)
22713 rm -f conftest.$ac_objext
22714 if { (ac_try="$ac_compile"
22715 case "(($ac_try" in
22716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717 *) ac_try_echo=$ac_try;;
22719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720 (eval "$ac_compile") 2>conftest.er1
22722 grep -v '^ *+' conftest.er1 >conftest.err
22724 cat conftest.err >&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } && {
22727 test -z "$ac_c_werror_flag" ||
22728 test ! -s conftest.err
22729 } && test -s conftest.$ac_objext; then
22730 ac_cv_sys_large_files=1; break
22732 echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 ac_cv_sys_large_files=unknown
22743 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22744 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22745 case $ac_cv_sys_large_files in #(
22748 cat >>confdefs.h <<_ACEOF
22749 #define _LARGE_FILES $ac_cv_sys_large_files
22757 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
22758 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
22759 if test "${ac_cv_sys_largefile_source+set}" = set; then
22760 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 cat >conftest.$ac_ext <<_ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22773 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (ac_try="$ac_link"
22780 case "(($ac_try" in
22781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22782 *) ac_try_echo=$ac_try;;
22784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22785 (eval "$ac_link") 2>conftest.er1
22787 grep -v '^ *+' conftest.er1 >conftest.err
22789 cat conftest.err >&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && {
22792 test -z "$ac_c_werror_flag" ||
22793 test ! -s conftest.err
22794 } && test -s conftest$ac_exeext &&
22795 $as_test_x conftest$ac_exeext; then
22796 ac_cv_sys_largefile_source=no; break
22798 echo "$as_me: failed program was:" >&5
22799 sed 's/^/| /' conftest.$ac_ext >&5
22804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22805 conftest$ac_exeext conftest.$ac_ext
22806 cat >conftest.$ac_ext <<_ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22812 #define _LARGEFILE_SOURCE 1
22817 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
22822 rm -f conftest.$ac_objext conftest$ac_exeext
22823 if { (ac_try="$ac_link"
22824 case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22829 (eval "$ac_link") 2>conftest.er1
22831 grep -v '^ *+' conftest.er1 >conftest.err
22833 cat conftest.err >&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } && {
22836 test -z "$ac_c_werror_flag" ||
22837 test ! -s conftest.err
22838 } && test -s conftest$ac_exeext &&
22839 $as_test_x conftest$ac_exeext; then
22840 ac_cv_sys_largefile_source=1; break
22842 echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22849 conftest$ac_exeext conftest.$ac_ext
22850 ac_cv_sys_largefile_source=unknown
22854 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22855 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
22856 case $ac_cv_sys_largefile_source in #(
22859 cat >>confdefs.h <<_ACEOF
22860 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22866 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22867 # in glibc 2.1.3, but that breaks too many other things.
22868 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22869 if test $ac_cv_sys_largefile_source != unknown; then
22871 cat >>confdefs.h <<\_ACEOF
22872 #define HAVE_FSEEKO 1
22877 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22878 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22879 if test "${ac_cv_type_mbstate_t+set}" = set; then
22880 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 cat >conftest.$ac_ext <<_ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h. */
22888 $ac_includes_default
22889 # include <wchar.h>
22893 mbstate_t x; return sizeof x;
22898 rm -f conftest.$ac_objext
22899 if { (ac_try="$ac_compile"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_compile") 2>conftest.er1
22907 grep -v '^ *+' conftest.er1 >conftest.err
22909 cat conftest.err >&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); } && {
22912 test -z "$ac_c_werror_flag" ||
22913 test ! -s conftest.err
22914 } && test -s conftest.$ac_objext; then
22915 ac_cv_type_mbstate_t=yes
22917 echo "$as_me: failed program was:" >&5
22918 sed 's/^/| /' conftest.$ac_ext >&5
22920 ac_cv_type_mbstate_t=no
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22926 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22927 if test $ac_cv_type_mbstate_t = yes; then
22929 cat >>confdefs.h <<\_ACEOF
22930 #define HAVE_MBSTATE_T 1
22935 cat >>confdefs.h <<\_ACEOF
22936 #define mbstate_t int
22941 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22942 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22943 if test "${ac_cv_type_uint8_t+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22946 cat >conftest.$ac_ext <<_ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 $ac_includes_default
22953 typedef uint8_t ac__type_new_;
22957 if ((ac__type_new_ *) 0)
22959 if (sizeof (ac__type_new_))
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22982 ac_cv_type_uint8_t=yes
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_cv_type_uint8_t=no
22990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22993 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22994 if test $ac_cv_type_uint8_t = yes; then
22996 cat >>confdefs.h <<_ACEOF
22997 #define HAVE_UINT8_T 1
23002 { echo "$as_me:$LINENO: checking for uint16_t" >&5
23003 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23004 if test "${ac_cv_type_uint16_t+set}" = set; then
23005 echo $ECHO_N "(cached) $ECHO_C" >&6
23007 cat >conftest.$ac_ext <<_ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013 $ac_includes_default
23014 typedef uint16_t ac__type_new_;
23018 if ((ac__type_new_ *) 0)
23020 if (sizeof (ac__type_new_))
23026 rm -f conftest.$ac_objext
23027 if { (ac_try="$ac_compile"
23028 case "(($ac_try" in
23029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030 *) ac_try_echo=$ac_try;;
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033 (eval "$ac_compile") 2>conftest.er1
23035 grep -v '^ *+' conftest.er1 >conftest.err
23037 cat conftest.err >&5
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); } && {
23040 test -z "$ac_c_werror_flag" ||
23041 test ! -s conftest.err
23042 } && test -s conftest.$ac_objext; then
23043 ac_cv_type_uint16_t=yes
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23048 ac_cv_type_uint16_t=no
23051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23053 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23054 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23055 if test $ac_cv_type_uint16_t = yes; then
23057 cat >>confdefs.h <<_ACEOF
23058 #define HAVE_UINT16_T 1
23063 { echo "$as_me:$LINENO: checking for uint32_t" >&5
23064 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23065 if test "${ac_cv_type_uint32_t+set}" = set; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23068 cat >conftest.$ac_ext <<_ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23074 $ac_includes_default
23075 typedef uint32_t ac__type_new_;
23079 if ((ac__type_new_ *) 0)
23081 if (sizeof (ac__type_new_))
23087 rm -f conftest.$ac_objext
23088 if { (ac_try="$ac_compile"
23089 case "(($ac_try" in
23090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23091 *) ac_try_echo=$ac_try;;
23093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23094 (eval "$ac_compile") 2>conftest.er1
23096 grep -v '^ *+' conftest.er1 >conftest.err
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } && {
23101 test -z "$ac_c_werror_flag" ||
23102 test ! -s conftest.err
23103 } && test -s conftest.$ac_objext; then
23104 ac_cv_type_uint32_t=yes
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23109 ac_cv_type_uint32_t=no
23112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23115 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23116 if test $ac_cv_type_uint32_t = yes; then
23118 cat >>confdefs.h <<_ACEOF
23119 #define HAVE_UINT32_T 1
23124 { echo "$as_me:$LINENO: checking for int32_t" >&5
23125 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
23126 if test "${ac_cv_type_int32_t+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 $ac_includes_default
23136 typedef int32_t ac__type_new_;
23140 if ((ac__type_new_ *) 0)
23142 if (sizeof (ac__type_new_))
23148 rm -f conftest.$ac_objext
23149 if { (ac_try="$ac_compile"
23150 case "(($ac_try" in
23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152 *) ac_try_echo=$ac_try;;
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155 (eval "$ac_compile") 2>conftest.er1
23157 grep -v '^ *+' conftest.er1 >conftest.err
23159 cat conftest.err >&5
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); } && {
23162 test -z "$ac_c_werror_flag" ||
23163 test ! -s conftest.err
23164 } && test -s conftest.$ac_objext; then
23165 ac_cv_type_int32_t=yes
23167 echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23170 ac_cv_type_int32_t=no
23173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23175 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
23176 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
23177 if test $ac_cv_type_int32_t = yes; then
23179 cat >>confdefs.h <<_ACEOF
23180 #define HAVE_INT32_T 1
23185 { echo "$as_me:$LINENO: checking for uint64_t" >&5
23186 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
23187 if test "${ac_cv_type_uint64_t+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23196 $ac_includes_default
23197 typedef uint64_t ac__type_new_;
23201 if ((ac__type_new_ *) 0)
23203 if (sizeof (ac__type_new_))
23209 rm -f conftest.$ac_objext
23210 if { (ac_try="$ac_compile"
23211 case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_compile") 2>conftest.er1
23218 grep -v '^ *+' conftest.er1 >conftest.err
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } && {
23223 test -z "$ac_c_werror_flag" ||
23224 test ! -s conftest.err
23225 } && test -s conftest.$ac_objext; then
23226 ac_cv_type_uint64_t=yes
23228 echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23231 ac_cv_type_uint64_t=no
23234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
23237 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
23238 if test $ac_cv_type_uint64_t = yes; then
23240 cat >>confdefs.h <<_ACEOF
23241 #define HAVE_UINT64_T 1
23246 { echo "$as_me:$LINENO: checking for int64_t" >&5
23247 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
23248 if test "${ac_cv_type_int64_t+set}" = set; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 $ac_includes_default
23258 typedef int64_t ac__type_new_;
23262 if ((ac__type_new_ *) 0)
23264 if (sizeof (ac__type_new_))
23270 rm -f conftest.$ac_objext
23271 if { (ac_try="$ac_compile"
23272 case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_compile") 2>conftest.er1
23279 grep -v '^ *+' conftest.er1 >conftest.err
23281 cat conftest.err >&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } && {
23284 test -z "$ac_c_werror_flag" ||
23285 test ! -s conftest.err
23286 } && test -s conftest.$ac_objext; then
23287 ac_cv_type_int64_t=yes
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ac_cv_type_int64_t=no
23295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
23298 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
23299 if test $ac_cv_type_int64_t = yes; then
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_INT64_T 1
23308 { echo "$as_me:$LINENO: checking for long long" >&5
23309 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23310 if test "${ac_cv_type_long_long+set}" = set; then
23311 echo $ECHO_N "(cached) $ECHO_C" >&6
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 $ac_includes_default
23320 typedef long long ac__type_new_;
23324 if ((ac__type_new_ *) 0)
23326 if (sizeof (ac__type_new_))
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339 (eval "$ac_compile") 2>conftest.er1
23341 grep -v '^ *+' conftest.er1 >conftest.err
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && {
23346 test -z "$ac_c_werror_flag" ||
23347 test ! -s conftest.err
23348 } && test -s conftest.$ac_objext; then
23349 ac_cv_type_long_long=yes
23351 echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23354 ac_cv_type_long_long=no
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23360 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23362 # The cast to long int works around a bug in the HP C Compiler
23363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23365 # This bug is HP SR number 8606223364.
23366 { echo "$as_me:$LINENO: checking size of long long" >&5
23367 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23368 if test "${ac_cv_sizeof_long_long+set}" = set; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 if test "$cross_compiling" = yes; then
23372 # Depending upon the size, compute the lo and hi bounds.
23373 cat >conftest.$ac_ext <<_ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 $ac_includes_default
23380 typedef long long ac__type_sizeof_;
23384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23391 rm -f conftest.$ac_objext
23392 if { (ac_try="$ac_compile"
23393 case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_compile") 2>conftest.er1
23400 grep -v '^ *+' conftest.er1 >conftest.err
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest.$ac_objext; then
23410 cat >conftest.$ac_ext <<_ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 $ac_includes_default
23417 typedef long long ac__type_sizeof_;
23421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23428 rm -f conftest.$ac_objext
23429 if { (ac_try="$ac_compile"
23430 case "(($ac_try" in
23431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435 (eval "$ac_compile") 2>conftest.er1
23437 grep -v '^ *+' conftest.er1 >conftest.err
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } && {
23442 test -z "$ac_c_werror_flag" ||
23443 test ! -s conftest.err
23444 } && test -s conftest.$ac_objext; then
23445 ac_hi=$ac_mid; break
23447 echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 ac_lo=`expr $ac_mid + 1`
23451 if test $ac_lo -le $ac_mid; then
23455 ac_mid=`expr 2 '*' $ac_mid + 1`
23458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 cat >conftest.$ac_ext <<_ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h. */
23470 $ac_includes_default
23471 typedef long long ac__type_sizeof_;
23475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23482 rm -f conftest.$ac_objext
23483 if { (ac_try="$ac_compile"
23484 case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23489 (eval "$ac_compile") 2>conftest.er1
23491 grep -v '^ *+' conftest.er1 >conftest.err
23493 cat conftest.err >&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } && {
23496 test -z "$ac_c_werror_flag" ||
23497 test ! -s conftest.err
23498 } && test -s conftest.$ac_objext; then
23501 cat >conftest.$ac_ext <<_ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 $ac_includes_default
23508 typedef long long ac__type_sizeof_;
23512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23519 rm -f conftest.$ac_objext
23520 if { (ac_try="$ac_compile"
23521 case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_compile") 2>conftest.er1
23528 grep -v '^ *+' conftest.er1 >conftest.err
23530 cat conftest.err >&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } && {
23533 test -z "$ac_c_werror_flag" ||
23534 test ! -s conftest.err
23535 } && test -s conftest.$ac_objext; then
23536 ac_lo=$ac_mid; break
23538 echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23541 ac_hi=`expr '(' $ac_mid ')' - 1`
23542 if test $ac_mid -le $ac_hi; then
23546 ac_mid=`expr 2 '*' $ac_mid`
23549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552 echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23562 # Binary search between lo and hi bounds.
23563 while test "x$ac_lo" != "x$ac_hi"; do
23564 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 $ac_includes_default
23572 typedef long long ac__type_sizeof_;
23576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590 (eval "$ac_compile") 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest.$ac_objext; then
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 ac_lo=`expr '(' $ac_mid ')' + 1`
23608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23611 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23612 '') if test "$ac_cv_type_long_long" = yes; then
23613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23614 See \`config.log' for more details." >&5
23615 echo "$as_me: error: cannot compute sizeof (long long)
23616 See \`config.log' for more details." >&2;}
23617 { (exit 77); exit 77; }; }
23619 ac_cv_sizeof_long_long=0
23623 cat >conftest.$ac_ext <<_ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23629 $ac_includes_default
23630 typedef long long ac__type_sizeof_;
23631 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23632 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23634 #include <stdlib.h>
23639 FILE *f = fopen ("conftest.val", "w");
23642 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23644 long int i = longval ();
23645 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23647 fprintf (f, "%ld\n", i);
23651 unsigned long int i = ulongval ();
23652 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23654 fprintf (f, "%lu\n", i);
23656 return ferror (f) || fclose (f) != 0;
23662 rm -f conftest$ac_exeext
23663 if { (ac_try="$ac_link"
23664 case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23669 (eval "$ac_link") 2>&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23673 { (case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23678 (eval "$ac_try") 2>&5
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23682 ac_cv_sizeof_long_long=`cat conftest.val`
23684 echo "$as_me: program exited with status $ac_status" >&5
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 ( exit $ac_status )
23689 if test "$ac_cv_type_long_long" = yes; then
23690 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23691 See \`config.log' for more details." >&5
23692 echo "$as_me: error: cannot compute sizeof (long long)
23693 See \`config.log' for more details." >&2;}
23694 { (exit 77); exit 77; }; }
23696 ac_cv_sizeof_long_long=0
23699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23703 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23704 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23708 cat >>confdefs.h <<_ACEOF
23709 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23716 { echo "$as_me:$LINENO: checking for gcc compiler warnings" >&5
23717 echo $ECHO_N "checking for gcc compiler warnings... $ECHO_C" >&6; }
23718 # Check whether --enable-warnings was given.
23719 if test "${enable_warnings+set}" = set; then
23720 enableval=$enable_warnings; if test "${enableval}" = no -o $GCC = no; then
23721 { echo "$as_me:$LINENO: result: no" >&5
23722 echo "${ECHO_T}no" >&6; }
23725 { echo "$as_me:$LINENO: result: yes" >&5
23726 echo "${ECHO_T}yes" >&6; }
23727 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23728 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23729 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23730 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23734 if test $GCC = no; then
23736 { echo "$as_me:$LINENO: result: no" >&5
23737 echo "${ECHO_T}no" >&6; }
23739 { echo "$as_me:$LINENO: result: yes" >&5
23740 echo "${ECHO_T}yes" >&6; }
23741 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
23742 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
23743 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
23744 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter"
23759 for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof
23761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23767 cat >conftest.$ac_ext <<_ACEOF
23770 cat confdefs.h >>conftest.$ac_ext
23771 cat >>conftest.$ac_ext <<_ACEOF
23772 /* end confdefs.h. */
23773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23775 #define $ac_func innocuous_$ac_func
23777 /* System header to define __stub macros and hopefully few prototypes,
23778 which can conflict with char $ac_func (); below.
23779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23780 <limits.h> exists even on freestanding compilers. */
23783 # include <limits.h>
23785 # include <assert.h>
23790 /* Override any GCC internal prototype to avoid an error.
23791 Use char because int might match the return type of a GCC
23792 builtin and then its argument prototype would still apply. */
23797 /* The GNU C library defines this for functions which it implements
23798 to always fail with ENOSYS. Some functions are actually named
23799 something starting with __ and the normal name is an alias. */
23800 #if defined __stub_$ac_func || defined __stub___$ac_func
23807 return $ac_func ();
23812 rm -f conftest.$ac_objext conftest$ac_exeext
23813 if { (ac_try="$ac_link"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23819 (eval "$ac_link") 2>conftest.er1
23821 grep -v '^ *+' conftest.er1 >conftest.err
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); } && {
23826 test -z "$ac_c_werror_flag" ||
23827 test ! -s conftest.err
23828 } && test -s conftest$ac_exeext &&
23829 $as_test_x conftest$ac_exeext; then
23830 eval "$as_ac_var=yes"
23832 echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23835 eval "$as_ac_var=no"
23838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23839 conftest$ac_exeext conftest.$ac_ext
23841 ac_res=`eval echo '${'$as_ac_var'}'`
23842 { echo "$as_me:$LINENO: result: $ac_res" >&5
23843 echo "${ECHO_T}$ac_res" >&6; }
23844 if test `eval echo '${'$as_ac_var'}'` = yes; then
23845 cat >>confdefs.h <<_ACEOF
23846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23856 for ac_func in getopt_long asprintf vasprintf
23858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23862 echo $ECHO_N "(cached) $ECHO_C" >&6
23864 cat >conftest.$ac_ext <<_ACEOF
23867 cat confdefs.h >>conftest.$ac_ext
23868 cat >>conftest.$ac_ext <<_ACEOF
23869 /* end confdefs.h. */
23870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23872 #define $ac_func innocuous_$ac_func
23874 /* System header to define __stub macros and hopefully few prototypes,
23875 which can conflict with char $ac_func (); below.
23876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23877 <limits.h> exists even on freestanding compilers. */
23880 # include <limits.h>
23882 # include <assert.h>
23887 /* Override any GCC internal prototype to avoid an error.
23888 Use char because int might match the return type of a GCC
23889 builtin and then its argument prototype would still apply. */
23894 /* The GNU C library defines this for functions which it implements
23895 to always fail with ENOSYS. Some functions are actually named
23896 something starting with __ and the normal name is an alias. */
23897 #if defined __stub_$ac_func || defined __stub___$ac_func
23904 return $ac_func ();
23909 rm -f conftest.$ac_objext conftest$ac_exeext
23910 if { (ac_try="$ac_link"
23911 case "(($ac_try" in
23912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23913 *) ac_try_echo=$ac_try;;
23915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23916 (eval "$ac_link") 2>conftest.er1
23918 grep -v '^ *+' conftest.er1 >conftest.err
23920 cat conftest.err >&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); } && {
23923 test -z "$ac_c_werror_flag" ||
23924 test ! -s conftest.err
23925 } && test -s conftest$ac_exeext &&
23926 $as_test_x conftest$ac_exeext; then
23927 eval "$as_ac_var=yes"
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23932 eval "$as_ac_var=no"
23935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23936 conftest$ac_exeext conftest.$ac_ext
23938 ac_res=`eval echo '${'$as_ac_var'}'`
23939 { echo "$as_me:$LINENO: result: $ac_res" >&5
23940 echo "${ECHO_T}$ac_res" >&6; }
23941 if test `eval echo '${'$as_ac_var'}'` = yes; then
23942 cat >>confdefs.h <<_ACEOF
23943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23947 case " $LIBOBJS " in
23948 *" $ac_func.$ac_objext "* ) ;;
23949 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23959 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
23960 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
23961 if test "${ac_cv_lib_z_gzopen+set}" = set; then
23962 echo $ECHO_N "(cached) $ECHO_C" >&6
23964 ac_check_lib_save_LIBS=$LIBS
23966 cat >conftest.$ac_ext <<_ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h. */
23973 /* Override any GCC internal prototype to avoid an error.
23974 Use char because int might match the return type of a GCC
23975 builtin and then its argument prototype would still apply. */
23988 rm -f conftest.$ac_objext conftest$ac_exeext
23989 if { (ac_try="$ac_link"
23990 case "(($ac_try" in
23991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992 *) ac_try_echo=$ac_try;;
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_link") 2>conftest.er1
23997 grep -v '^ *+' conftest.er1 >conftest.err
23999 cat conftest.err >&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } && {
24002 test -z "$ac_c_werror_flag" ||
24003 test ! -s conftest.err
24004 } && test -s conftest$ac_exeext &&
24005 $as_test_x conftest$ac_exeext; then
24006 ac_cv_lib_z_gzopen=yes
24008 echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24011 ac_cv_lib_z_gzopen=no
24014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24015 conftest$ac_exeext conftest.$ac_ext
24016 LIBS=$ac_check_lib_save_LIBS
24018 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
24019 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
24020 if test $ac_cv_lib_z_gzopen = yes; then
24021 cat >>confdefs.h <<_ACEOF
24022 #define HAVE_LIBZ 1
24030 if test "$cross_compiling" = yes; then
24031 IS_CROSS_COMPILE_TRUE=
24032 IS_CROSS_COMPILE_FALSE='#'
24034 IS_CROSS_COMPILE_TRUE='#'
24035 IS_CROSS_COMPILE_FALSE=
24039 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
24041 cat >confcache <<\_ACEOF
24042 # This file is a shell script that caches the results of configure
24043 # tests run on this system so they can be shared between configure
24044 # scripts and configure runs, see configure's option --config-cache.
24045 # It is not useful on other systems. If it contains results you don't
24046 # want to keep, you may remove or edit it.
24048 # config.status only pays attention to the cache file if you give it
24049 # the --recheck option to rerun configure.
24051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24053 # following values.
24057 # The following way of writing the cache mishandles newlines in values,
24058 # but we know of no workaround that is simple, portable, and efficient.
24059 # So, we kill variables containing newlines.
24060 # Ultrix sh set writes to stderr and can't be redirected directly,
24061 # and sets the high bit in the cache file unless we assign to the vars.
24063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24064 eval ac_val=\$$ac_var
24068 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24069 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24072 _ | IFS | as_nl) ;; #(
24073 *) $as_unset $ac_var ;;
24079 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24080 *${as_nl}ac_space=\ *)
24081 # `set' does not quote correctly, so add quotes (double-quote
24082 # substitution turns \\\\ into \\, and sed turns \\ into \).
24085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24088 # `set' quotes correctly as required by POSIX, so do not add quotes.
24089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24103 if test -w "$cache_file"; then
24104 test "x$cache_file" != "x/dev/null" &&
24105 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24106 echo "$as_me: updating cache $cache_file" >&6;}
24107 cat confcache >$cache_file
24109 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24110 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24116 # Let make expand exec_prefix.
24117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24119 DEFS=-DHAVE_CONFIG_H
24123 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24124 # 1. Remove the extension, and $U if already installed.
24125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24126 ac_i=`echo "$ac_i" | sed "$ac_script"`
24127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24128 # will be set to the directory where LIBOBJS objects are built.
24129 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24130 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24132 LIBOBJS=$ac_libobjs
24134 LTLIBOBJS=$ac_ltlibobjs
24137 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
24138 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
24139 Usually this means the macro was only invoked conditionally." >&5
24140 echo "$as_me: error: conditional \"FSECT5\" was never defined.
24141 Usually this means the macro was only invoked conditionally." >&2;}
24142 { (exit 1); exit 1; }; }
24144 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24145 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24146 Usually this means the macro was only invoked conditionally." >&5
24147 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24148 Usually this means the macro was only invoked conditionally." >&2;}
24149 { (exit 1); exit 1; }; }
24151 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24152 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24153 Usually this means the macro was only invoked conditionally." >&5
24154 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24155 Usually this means the macro was only invoked conditionally." >&2;}
24156 { (exit 1); exit 1; }; }
24158 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24159 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24160 Usually this means the macro was only invoked conditionally." >&5
24161 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24162 Usually this means the macro was only invoked conditionally." >&2;}
24163 { (exit 1); exit 1; }; }
24165 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
24166 { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
24167 Usually this means the macro was only invoked conditionally." >&5
24168 echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
24169 Usually this means the macro was only invoked conditionally." >&2;}
24170 { (exit 1); exit 1; }; }
24173 : ${CONFIG_STATUS=./config.status}
24174 ac_clean_files_save=$ac_clean_files
24175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24176 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24177 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24178 cat >$CONFIG_STATUS <<_ACEOF
24180 # Generated by $as_me.
24181 # Run this file to recreate the current configuration.
24182 # Compiler output produced by configure, useful for debugging
24183 # configure, is in config.log if it exists.
24186 ac_cs_recheck=false
24188 SHELL=\${CONFIG_SHELL-$SHELL}
24191 cat >>$CONFIG_STATUS <<\_ACEOF
24192 ## --------------------- ##
24193 ## M4sh Initialization. ##
24194 ## --------------------- ##
24196 # Be more Bourne compatible
24197 DUALCASE=1; export DUALCASE # for MKS sh
24198 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24201 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24202 # is contrary to our usage. Disable this feature.
24203 alias -g '${1+"$@"}'='"$@"'
24204 setopt NO_GLOB_SUBST
24206 case `(set -o) 2>/dev/null` in
24207 *posix*) set -o posix ;;
24216 # Avoid depending upon Character Ranges.
24217 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24218 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24219 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24220 as_cr_digits='0123456789'
24221 as_cr_alnum=$as_cr_Letters$as_cr_digits
24223 # The user is always right.
24224 if test "${PATH_SEPARATOR+set}" != set; then
24225 echo "#! /bin/sh" >conf$$.sh
24226 echo "exit 0" >>conf$$.sh
24228 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24236 # Support unset when possible.
24237 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24245 # We need space, tab and new line, in precisely that order. Quoting is
24246 # there to prevent editors from complaining about space-tab.
24247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24248 # splitting by setting IFS to empty value.)
24253 # Find who we are. Look in the path if we contain no directory separator.
24255 *[\\/]* ) as_myself=$0 ;;
24256 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24257 for as_dir in $PATH
24260 test -z "$as_dir" && as_dir=.
24261 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24267 # We did not find ourselves, most probably we were run as `sh COMMAND'
24268 # in which case we are not to be found in the path.
24269 if test "x$as_myself" = x; then
24272 if test ! -f "$as_myself"; then
24273 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24274 { (exit 1); exit 1; }
24277 # Work around bugs in pre-3.0 UWIN ksh.
24278 for as_var in ENV MAIL MAILPATH
24279 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24287 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24288 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24289 LC_TELEPHONE LC_TIME
24291 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24292 eval $as_var=C; export $as_var
24294 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24298 # Required to use basename.
24299 if expr a : '\(a\)' >/dev/null 2>&1 &&
24300 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24306 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24307 as_basename=basename
24313 # Name of the executable.
24314 as_me=`$as_basename -- "$0" ||
24315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24316 X"$0" : 'X\(//\)$' \| \
24317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24319 sed '/^.*\/\([^/][^/]*\)\/*$/{
24338 as_lineno_1=$LINENO
24339 as_lineno_2=$LINENO
24340 test "x$as_lineno_1" != "x$as_lineno_2" &&
24341 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24343 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24344 # uniformly replaced by the line number. The first 'sed' inserts a
24345 # line-number line after each line using $LINENO; the second 'sed'
24346 # does the real work. The second script uses 'N' to pair each
24347 # line-number line with the line containing $LINENO, and appends
24348 # trailing '-' during substitution so that $LINENO is not a special
24349 # case at line end.
24350 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24351 # scripts with optimization help from Paolo Bonzini. Blame Lee
24352 # E. McMahon (1931-1989) for sed's syntax. :-)
24364 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24367 ' >$as_me.lineno &&
24368 chmod +x "$as_me.lineno" ||
24369 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24370 { (exit 1); exit 1; }; }
24372 # Don't try to exec as it changes $[0], causing all sort of problems
24373 # (the dirname of $[0] is not the place where we might find the
24374 # original and so on. Autoconf is especially sensitive to this).
24375 . "./$as_me.lineno"
24376 # Exit status is that of the last command.
24381 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24387 ECHO_C= ECHO_N= ECHO_T=
24388 case `echo -n x` in
24390 case `echo 'x\c'` in
24391 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24398 if expr a : '\(a\)' >/dev/null 2>&1 &&
24399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24405 rm -f conf$$ conf$$.exe conf$$.file
24406 if test -d conf$$.dir; then
24407 rm -f conf$$.dir/conf$$.file
24413 if ln -s conf$$.file conf$$ 2>/dev/null; then
24415 # ... but there are two gotchas:
24416 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24417 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24418 # In both cases, we have to default to `cp -p'.
24419 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24421 elif ln conf$$.file conf$$ 2>/dev/null; then
24426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24427 rmdir conf$$.dir 2>/dev/null
24429 if mkdir -p . 2>/dev/null; then
24432 test -d ./-p && rmdir ./-p
24436 if test -x / >/dev/null 2>&1; then
24437 as_test_x='test -x'
24439 if ls -dL / >/dev/null 2>&1; then
24446 if test -d "$1"; then
24452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24453 ???[sx]*):;;*)false;;esac;fi
24457 as_executable_p=$as_test_x
24459 # Sed expression to map a string onto a valid CPP name.
24460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24462 # Sed expression to map a string onto a valid variable name.
24463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24468 # Save the log message, to keep $[0] and so on meaningful, and to
24469 # report actual input values of CONFIG_FILES etc. instead of their
24470 # values after options handling.
24472 This file was extended by file $as_me 4.26, which was
24473 generated by GNU Autoconf 2.61. Invocation command line was
24475 CONFIG_FILES = $CONFIG_FILES
24476 CONFIG_HEADERS = $CONFIG_HEADERS
24477 CONFIG_LINKS = $CONFIG_LINKS
24478 CONFIG_COMMANDS = $CONFIG_COMMANDS
24481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24486 cat >>$CONFIG_STATUS <<_ACEOF
24487 # Files that config.status was made for.
24488 config_files="$ac_config_files"
24489 config_headers="$ac_config_headers"
24490 config_commands="$ac_config_commands"
24494 cat >>$CONFIG_STATUS <<\_ACEOF
24496 \`$as_me' instantiates files from templates according to the
24497 current configuration.
24499 Usage: $0 [OPTIONS] [FILE]...
24501 -h, --help print this help, then exit
24502 -V, --version print version number and configuration settings, then exit
24503 -q, --quiet do not print progress messages
24504 -d, --debug don't remove temporary files
24505 --recheck update $as_me by reconfiguring in the same conditions
24506 --file=FILE[:TEMPLATE]
24507 instantiate the configuration file FILE
24508 --header=FILE[:TEMPLATE]
24509 instantiate the configuration header FILE
24511 Configuration files:
24514 Configuration headers:
24517 Configuration commands:
24520 Report bugs to <bug-autoconf@gnu.org>."
24523 cat >>$CONFIG_STATUS <<_ACEOF
24525 file config.status 4.26
24526 configured by $0, generated by GNU Autoconf 2.61,
24527 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24529 Copyright (C) 2006 Free Software Foundation, Inc.
24530 This config.status script is free software; the Free Software Foundation
24531 gives unlimited permission to copy, distribute and modify it."
24539 cat >>$CONFIG_STATUS <<\_ACEOF
24540 # If no file are specified by the user, then we need to provide default
24541 # value. By we need to know if files were specified by the user.
24547 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24548 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24559 # Handling of the options.
24560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24562 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24563 echo "$ac_cs_version"; exit ;;
24564 --debug | --debu | --deb | --de | --d | -d )
24566 --file | --fil | --fi | --f )
24568 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24569 ac_need_defaults=false;;
24570 --header | --heade | --head | --hea )
24572 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24573 ac_need_defaults=false;;
24575 # Conflict between --help and --header
24576 { echo "$as_me: error: ambiguous option: $1
24577 Try \`$0 --help' for more information." >&2
24578 { (exit 1); exit 1; }; };;
24579 --help | --hel | -h )
24580 echo "$ac_cs_usage"; exit ;;
24581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24585 # This is an error.
24586 -*) { echo "$as_me: error: unrecognized option: $1
24587 Try \`$0 --help' for more information." >&2
24588 { (exit 1); exit 1; }; } ;;
24590 *) ac_config_targets="$ac_config_targets $1"
24591 ac_need_defaults=false ;;
24597 ac_configure_extra_args=
24599 if $ac_cs_silent; then
24601 ac_configure_extra_args="$ac_configure_extra_args --silent"
24605 cat >>$CONFIG_STATUS <<_ACEOF
24606 if \$ac_cs_recheck; then
24607 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24608 CONFIG_SHELL=$SHELL
24609 export CONFIG_SHELL
24610 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24614 cat >>$CONFIG_STATUS <<\_ACEOF
24618 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24619 ## Running $as_me. ##
24625 cat >>$CONFIG_STATUS <<_ACEOF
24629 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24633 cat >>$CONFIG_STATUS <<\_ACEOF
24635 # Handling of arguments.
24636 for ac_config_target in $ac_config_targets
24638 case $ac_config_target in
24639 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24640 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24641 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24642 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24643 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
24644 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24645 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24646 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
24648 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24649 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24650 { (exit 1); exit 1; }; };;
24655 # If the user did not use the arguments to specify the items to instantiate,
24656 # then the envvar interface is used. Set only those that are not.
24657 # We use the long form for the default assignment because of an extremely
24658 # bizarre bug on SunOS 4.1.3.
24659 if $ac_need_defaults; then
24660 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24661 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24662 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24665 # Have a temporary directory for convenience. Make it in the build tree
24666 # simply because there is no reason against having it here, and in addition,
24667 # creating and moving files from /tmp can sometimes cause problems.
24668 # Hook for its removal unless debugging.
24669 # Note that there is a small window in which the directory will not be cleaned:
24670 # after its creation but before its name has been assigned to `$tmp'.
24674 trap 'exit_status=$?
24675 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24677 trap '{ (exit 1); exit 1; }' 1 2 13 15
24679 # Create a (secure) tmp directory for tmp files.
24682 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24683 test -n "$tmp" && test -d "$tmp"
24686 tmp=./conf$$-$RANDOM
24687 (umask 077 && mkdir "$tmp")
24690 echo "$me: cannot create a temporary directory in ." >&2
24691 { (exit 1); exit 1; }
24695 # Set up the sed scripts for CONFIG_FILES section.
24698 # No need to generate the scripts if there are no CONFIG_FILES.
24699 # This happens for instance when ./config.status config.h
24700 if test -n "$CONFIG_FILES"; then
24707 for ac_last_try in false false false false false :; do
24708 cat >conf$$subs.sed <<_ACEOF
24709 SHELL!$SHELL$ac_delim
24710 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24711 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24712 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24713 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24714 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24715 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24716 exec_prefix!$exec_prefix$ac_delim
24717 prefix!$prefix$ac_delim
24718 program_transform_name!$program_transform_name$ac_delim
24719 bindir!$bindir$ac_delim
24720 sbindir!$sbindir$ac_delim
24721 libexecdir!$libexecdir$ac_delim
24722 datarootdir!$datarootdir$ac_delim
24723 datadir!$datadir$ac_delim
24724 sysconfdir!$sysconfdir$ac_delim
24725 sharedstatedir!$sharedstatedir$ac_delim
24726 localstatedir!$localstatedir$ac_delim
24727 includedir!$includedir$ac_delim
24728 oldincludedir!$oldincludedir$ac_delim
24729 docdir!$docdir$ac_delim
24730 infodir!$infodir$ac_delim
24731 htmldir!$htmldir$ac_delim
24732 dvidir!$dvidir$ac_delim
24733 pdfdir!$pdfdir$ac_delim
24734 psdir!$psdir$ac_delim
24735 libdir!$libdir$ac_delim
24736 localedir!$localedir$ac_delim
24737 mandir!$mandir$ac_delim
24738 DEFS!$DEFS$ac_delim
24739 ECHO_C!$ECHO_C$ac_delim
24740 ECHO_N!$ECHO_N$ac_delim
24741 ECHO_T!$ECHO_T$ac_delim
24742 LIBS!$LIBS$ac_delim
24743 build_alias!$build_alias$ac_delim
24744 host_alias!$host_alias$ac_delim
24745 target_alias!$target_alias$ac_delim
24746 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24747 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24748 INSTALL_DATA!$INSTALL_DATA$ac_delim
24749 am__isrc!$am__isrc$ac_delim
24750 CYGPATH_W!$CYGPATH_W$ac_delim
24751 PACKAGE!$PACKAGE$ac_delim
24752 VERSION!$VERSION$ac_delim
24753 ACLOCAL!$ACLOCAL$ac_delim
24754 AUTOCONF!$AUTOCONF$ac_delim
24755 AUTOMAKE!$AUTOMAKE$ac_delim
24756 AUTOHEADER!$AUTOHEADER$ac_delim
24757 MAKEINFO!$MAKEINFO$ac_delim
24758 install_sh!$install_sh$ac_delim
24759 STRIP!$STRIP$ac_delim
24760 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24761 mkdir_p!$mkdir_p$ac_delim
24763 SET_MAKE!$SET_MAKE$ac_delim
24764 am__leading_dot!$am__leading_dot$ac_delim
24765 AMTAR!$AMTAR$ac_delim
24766 am__tar!$am__tar$ac_delim
24767 am__untar!$am__untar$ac_delim
24768 fsect!$fsect$ac_delim
24769 FSECT5_TRUE!$FSECT5_TRUE$ac_delim
24770 FSECT5_FALSE!$FSECT5_FALSE$ac_delim
24771 WARNINGS!$WARNINGS$ac_delim
24773 CFLAGS!$CFLAGS$ac_delim
24774 LDFLAGS!$LDFLAGS$ac_delim
24775 CPPFLAGS!$CPPFLAGS$ac_delim
24776 ac_ct_CC!$ac_ct_CC$ac_delim
24777 EXEEXT!$EXEEXT$ac_delim
24778 OBJEXT!$OBJEXT$ac_delim
24779 DEPDIR!$DEPDIR$ac_delim
24780 am__include!$am__include$ac_delim
24781 am__quote!$am__quote$ac_delim
24782 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24783 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24784 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24785 CCDEPMODE!$CCDEPMODE$ac_delim
24786 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24787 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24788 LN_S!$LN_S$ac_delim
24789 build!$build$ac_delim
24790 build_cpu!$build_cpu$ac_delim
24791 build_vendor!$build_vendor$ac_delim
24792 build_os!$build_os$ac_delim
24793 host!$host$ac_delim
24794 host_cpu!$host_cpu$ac_delim
24795 host_vendor!$host_vendor$ac_delim
24796 host_os!$host_os$ac_delim
24797 GREP!$GREP$ac_delim
24798 EGREP!$EGREP$ac_delim
24799 ECHO!$ECHO$ac_delim
24801 RANLIB!$RANLIB$ac_delim
24804 CXXFLAGS!$CXXFLAGS$ac_delim
24805 ac_ct_CXX!$ac_ct_CXX$ac_delim
24808 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24810 elif $ac_last_try; then
24811 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24812 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24813 { (exit 1); exit 1; }; }
24815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24819 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24820 if test -n "$ac_eof"; then
24821 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24822 ac_eof=`expr $ac_eof + 1`
24825 cat >>$CONFIG_STATUS <<_ACEOF
24826 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24830 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24831 s/^/s,@/; s/!/@,|#_!!_#|/
24834 s/'"$ac_delim"'$/,g/; t
24836 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24837 ' >>$CONFIG_STATUS <conf$$subs.sed
24838 rm -f conf$$subs.sed
24839 cat >>$CONFIG_STATUS <<_ACEOF
24845 for ac_last_try in false false false false false :; do
24846 cat >conf$$subs.sed <<_ACEOF
24847 CXXDEPMODE!$CXXDEPMODE$ac_delim
24848 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24849 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24850 CXXCPP!$CXXCPP$ac_delim
24852 FFLAGS!$FFLAGS$ac_delim
24853 ac_ct_F77!$ac_ct_F77$ac_delim
24854 LIBTOOL!$LIBTOOL$ac_delim
24855 LIBOBJS!$LIBOBJS$ac_delim
24856 IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
24857 IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
24858 LTLIBOBJS!$LTLIBOBJS$ac_delim
24861 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24863 elif $ac_last_try; then
24864 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24865 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24866 { (exit 1); exit 1; }; }
24868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24872 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24873 if test -n "$ac_eof"; then
24874 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24875 ac_eof=`expr $ac_eof + 1`
24878 cat >>$CONFIG_STATUS <<_ACEOF
24879 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24883 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24884 s/^/s,@/; s/!/@,|#_!!_#|/
24887 s/'"$ac_delim"'$/,g/; t
24889 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24890 ' >>$CONFIG_STATUS <conf$$subs.sed
24891 rm -f conf$$subs.sed
24892 cat >>$CONFIG_STATUS <<_ACEOF
24899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24901 # trailing colons and then remove the whole line if VPATH becomes empty
24902 # (actually we leave an empty line to preserve line numbers).
24903 if test "x$srcdir" = x.; then
24904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24905 s/:*\$(srcdir):*/:/
24906 s/:*\${srcdir}:*/:/
24908 s/^\([^=]*=[ ]*\):*/\1/
24914 cat >>$CONFIG_STATUS <<\_ACEOF
24915 fi # test -n "$CONFIG_FILES"
24918 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24921 :[FHLC]) ac_mode=$ac_tag; continue;;
24923 case $ac_mode$ac_tag in
24925 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24926 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24927 { (exit 1); exit 1; }; };;
24928 :[FH]-) ac_tag=-:-;;
24929 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24946 -) ac_f="$tmp/stdin";;
24947 *) # Look for the file first in the build tree, then in the source tree
24948 # (if the path is not absolute). The absolute path cannot be DOS-style,
24949 # because $ac_f cannot contain `:'.
24953 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24955 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24956 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24957 { (exit 1); exit 1; }; };;
24959 ac_file_inputs="$ac_file_inputs $ac_f"
24962 # Let's still pretend it is `configure' which instantiates (i.e., don't
24963 # use $as_me), people would be surprised to read:
24964 # /* config.h. Generated by config.status. */
24965 configure_input="Generated from "`IFS=:
24966 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24967 if test x"$ac_file" != x-; then
24968 configure_input="$ac_file. $configure_input"
24969 { echo "$as_me:$LINENO: creating $ac_file" >&5
24970 echo "$as_me: creating $ac_file" >&6;}
24974 *:-:* | *:-) cat >"$tmp/stdin";;
24979 ac_dir=`$as_dirname -- "$ac_file" ||
24980 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24981 X"$ac_file" : 'X\(//\)[^/]' \| \
24982 X"$ac_file" : 'X\(//\)$' \| \
24983 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24989 /^X\(\/\/\)[^/].*/{
25004 -*) as_dir=./$as_dir;;
25006 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25010 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25011 *) as_qdir=$as_dir;;
25013 as_dirs="'$as_qdir' $as_dirs"
25014 as_dir=`$as_dirname -- "$as_dir" ||
25015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25016 X"$as_dir" : 'X\(//\)[^/]' \| \
25017 X"$as_dir" : 'X\(//\)$' \| \
25018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25024 /^X\(\/\/\)[^/].*/{
25037 test -d "$as_dir" && break
25039 test -z "$as_dirs" || eval "mkdir $as_dirs"
25040 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25041 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25042 { (exit 1); exit 1; }; }; }
25046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25049 # A ".." for each directory in $ac_dir_suffix.
25050 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25051 case $ac_top_builddir_sub in
25052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25056 ac_abs_top_builddir=$ac_pwd
25057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25058 # for backward compatibility:
25059 ac_top_builddir=$ac_top_build_prefix
25062 .) # We are building in place.
25064 ac_top_srcdir=$ac_top_builddir_sub
25065 ac_abs_top_srcdir=$ac_pwd ;;
25066 [\\/]* | ?:[\\/]* ) # Absolute name.
25067 ac_srcdir=$srcdir$ac_dir_suffix;
25068 ac_top_srcdir=$srcdir
25069 ac_abs_top_srcdir=$srcdir ;;
25070 *) # Relative name.
25071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25072 ac_top_srcdir=$ac_top_build_prefix$srcdir
25073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25088 ac_MKDIR_P=$MKDIR_P
25090 [\\/$]* | ?:[\\/]* ) ;;
25091 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25095 cat >>$CONFIG_STATUS <<\_ACEOF
25096 # If the template does not know about datarootdir, expand it.
25097 # FIXME: This hack should be removed a few years after 2.60.
25098 ac_datarootdir_hack=; ac_datarootdir_seen=
25100 case `sed -n '/datarootdir/ {
25109 ' $ac_file_inputs` in
25110 *datarootdir*) ac_datarootdir_seen=yes;;
25111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25112 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25113 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25115 cat >>$CONFIG_STATUS <<_ACEOF
25116 ac_datarootdir_hack='
25117 s&@datadir@&$datadir&g
25118 s&@docdir@&$docdir&g
25119 s&@infodir@&$infodir&g
25120 s&@localedir@&$localedir&g
25121 s&@mandir@&$mandir&g
25122 s&\\\${datarootdir}&$datarootdir&g' ;;
25126 # Neutralize VPATH when `$srcdir' = `.'.
25127 # Shell code in configure.ac might set extrasub.
25128 # FIXME: do we really want to maintain this feature?
25129 cat >>$CONFIG_STATUS <<_ACEOF
25133 cat >>$CONFIG_STATUS <<\_ACEOF
25135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25136 s&@configure_input@&$configure_input&;t t
25137 s&@top_builddir@&$ac_top_builddir_sub&;t t
25138 s&@srcdir@&$ac_srcdir&;t t
25139 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25140 s&@top_srcdir@&$ac_top_srcdir&;t t
25141 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25142 s&@builddir@&$ac_builddir&;t t
25143 s&@abs_builddir@&$ac_abs_builddir&;t t
25144 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25145 s&@INSTALL@&$ac_INSTALL&;t t
25146 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25147 $ac_datarootdir_hack
25148 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25150 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25151 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25153 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25154 which seems to be undefined. Please make sure it is defined." >&5
25155 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25156 which seems to be undefined. Please make sure it is defined." >&2;}
25160 -) cat "$tmp/out"; rm -f "$tmp/out";;
25161 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25170 # Transform confdefs.h into a sed script `conftest.defines', that
25171 # substitutes the proper values into config.h.in to produce config.h.
25172 rm -f conftest.defines conftest.tail
25173 # First, append a space to every undef/define line, to ease matching.
25174 echo 's/$/ /' >conftest.defines
25175 # Then, protect against being on the right side of a sed subst, or in
25176 # an unquoted here document, in config.status. If some macros were
25177 # called several times there might be several #defines for the same
25178 # symbol, which is useless. But do not sort them, since the last
25179 # AC_DEFINE must be honored.
25180 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25181 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25182 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25183 # PARAMS is the parameter list in the macro definition--in most cases, it's
25184 # just an empty string.
25185 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25186 ac_dB='\\)[ (].*,\\1define\\2'
25194 s/^[ ]*#[ ]*define[ ][ ]*//
25199 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25200 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25201 ' >>conftest.defines
25203 # Remove the space that was appended to ease matching.
25204 # Then replace #undef with comments. This is necessary, for
25205 # example, in the case of _POSIX_SOURCE, which is predefined and required
25206 # on some systems where configure will not decide to define it.
25207 # (The regexp can be short, since the line contains either #define or #undef.)
25209 s,^[ #]*u.*,/* & */,' >>conftest.defines
25211 # Break up conftest.defines:
25212 ac_max_sed_lines=50
25214 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25215 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25216 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25218 ac_in='$ac_file_inputs'
25219 ac_out='"$tmp/out1"'
25220 ac_nxt='"$tmp/out2"'
25224 # Write a here document:
25225 cat >>$CONFIG_STATUS <<_ACEOF
25226 # First, check the format of the line:
25227 cat >"\$tmp/defines.sed" <<\\CEOF
25228 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25229 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25233 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25235 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25236 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25237 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25238 grep . conftest.tail >/dev/null || break
25239 rm -f conftest.defines
25240 mv conftest.tail conftest.defines
25242 rm -f conftest.defines conftest.tail
25244 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25245 cat >>$CONFIG_STATUS <<\_ACEOF
25246 if test x"$ac_file" != x-; then
25247 echo "/* $configure_input */" >"$tmp/config.h"
25248 cat "$ac_result" >>"$tmp/config.h"
25249 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25250 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25251 echo "$as_me: $ac_file is unchanged" >&6;}
25254 mv "$tmp/config.h" $ac_file
25257 echo "/* $configure_input */"
25261 # Compute $ac_file's index in $config_headers.
25263 for _am_header in $config_headers :; do
25264 case $_am_header in
25265 $ac_file | $ac_file:* )
25268 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25271 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25272 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25273 X$ac_file : 'X\(//\)[^/]' \| \
25274 X$ac_file : 'X\(//\)$' \| \
25275 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25281 /^X\(\/\/\)[^/].*/{
25293 s/.*/./; q'`/stamp-h$_am_stamp_count
25296 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25297 echo "$as_me: executing $ac_file commands" >&6;}
25302 case $ac_file$ac_mode in
25303 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25304 # Strip MF so we end up with the name of the file.
25305 mf=`echo "$mf" | sed -e 's/:.*$//'`
25306 # Check whether this is an Automake generated Makefile or not.
25307 # We used to match only the files named `Makefile.in', but
25308 # some people rename them; so instead we look at the file content.
25309 # Grep'ing the first line is not enough: some people post-process
25310 # each Makefile.in and add a new line on top of each file to say so.
25311 # Grep'ing the whole file is not good either: AIX grep has a line
25312 # limit of 2048, but all sed's we know have understand at least 4000.
25313 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25314 dirpart=`$as_dirname -- "$mf" ||
25315 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25316 X"$mf" : 'X\(//\)[^/]' \| \
25317 X"$mf" : 'X\(//\)$' \| \
25318 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25324 /^X\(\/\/\)[^/].*/{
25340 # Extract the definition of DEPDIR, am__include, and am__quote
25341 # from the Makefile without running `make'.
25342 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25343 test -z "$DEPDIR" && continue
25344 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25345 test -z "am__include" && continue
25346 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25347 # When using ansi2knr, U may be empty or an underscore; expand it
25348 U=`sed -n 's/^U = //p' < "$mf"`
25349 # Find all dependency output files, they are included files with
25350 # $(DEPDIR) in their names. We invoke sed twice because it is the
25351 # simplest approach to changing $(DEPDIR) to its actual value in the
25353 for file in `sed -n "
25354 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25355 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25356 # Make sure the directory exists.
25357 test -f "$dirpart/$file" && continue
25358 fdir=`$as_dirname -- "$file" ||
25359 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25360 X"$file" : 'X\(//\)[^/]' \| \
25361 X"$file" : 'X\(//\)$' \| \
25362 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25368 /^X\(\/\/\)[^/].*/{
25381 { as_dir=$dirpart/$fdir
25383 -*) as_dir=./$as_dir;;
25385 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25389 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25390 *) as_qdir=$as_dir;;
25392 as_dirs="'$as_qdir' $as_dirs"
25393 as_dir=`$as_dirname -- "$as_dir" ||
25394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25395 X"$as_dir" : 'X\(//\)[^/]' \| \
25396 X"$as_dir" : 'X\(//\)$' \| \
25397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25403 /^X\(\/\/\)[^/].*/{
25416 test -d "$as_dir" && break
25418 test -z "$as_dirs" || eval "mkdir $as_dirs"
25419 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25420 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25421 { (exit 1); exit 1; }; }; }
25422 # echo "creating $dirpart/$file"
25423 echo '# dummy' > "$dirpart/$file"
25432 { (exit 0); exit 0; }
25434 chmod +x $CONFIG_STATUS
25435 ac_clean_files=$ac_clean_files_save
25438 # configure is writing to config.log, and then calls config.status.
25439 # config.status does its own redirection, appending to config.log.
25440 # Unfortunately, on DOS this fails, as config.log is still kept open
25441 # by configure, so config.status won't be able to write to it; its
25442 # output is simply discarded. So we exec the FD to /dev/null,
25443 # effectively closing config.log, so it can be properly (re)opened and
25444 # appended to by config.status. When coming back to configure, we
25445 # need to make the FD available again.
25446 if test "$no_create" != yes; then
25448 ac_config_status_args=
25449 test "$silent" = yes &&
25450 ac_config_status_args="$ac_config_status_args --quiet"
25452 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25454 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25455 # would make configure fail if this is the last instruction.
25456 $ac_cs_success || { (exit 1); exit 1; }