2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for nss-mdns 0.10.
5 # Report bugs to <mzaffzqaf (at) 0pointer (dot) de>.
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.
729 PACKAGE_NAME='nss-mdns'
730 PACKAGE_TARNAME='nss-mdns'
731 PACKAGE_VERSION='0.10'
732 PACKAGE_STRING='nss-mdns 0.10'
733 PACKAGE_BUGREPORT='mzaffzqaf (at) 0pointer (dot) de'
735 ac_unique_file="src/query.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
822 INSTALL_STRIP_PROGRAM
888 ac_precious_vars='build_alias
905 # Initialize some variables set by options.
907 ac_init_version=false
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
917 program_transform_name=s,x,x,
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
963 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
991 cache_file=config.cache ;;
993 -datadir | --datadir | --datadi | --datad)
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1005 -disable-* | --disable-*)
1006 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1012 eval enable_$ac_feature=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1031 eval enable_$ac_feature=\$ac_optarg ;;
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 htmldir=$ac_optarg ;;
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1076 -libdir | --libdir | --libdi | --libd)
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1167 -psdir | --psdir | --psdi | --psd | --ps)
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 sbindir=$ac_optarg ;;
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 sharedstatedir=$ac_optarg ;;
1193 -site | --site | --sit)
1195 -site=* | --site=* | --sit=*)
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1222 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=\$ac_optarg ;;
1230 -without-* | --without-*)
1231 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237 eval with_$ac_package=no ;;
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1257 -*) { echo "$as_me: error: unrecognized option: $ac_option
1258 Try \`$0 --help' for more information." >&2
1259 { (exit 1); exit 1; }; }
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267 { (exit 1); exit 1; }; }
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1272 # FIXME: should be removed in autoconf 3.0.
1273 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 { echo "$as_me: error: missing argument to $ac_option" >&2
1285 { (exit 1); exit 1; }; }
1288 # Be sure to have absolute directory names.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val=\$$ac_var
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300 { (exit 1); exit 1; }; }
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1308 target=$target_alias
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315 If a cross compiler is detected then cross compile mode will be used." >&2
1316 elif test "x$build_alias" != "x$host_alias"; then
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324 test "$silent" = yes && exec 6>/dev/null
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 { echo "$as_me: error: Working directory cannot be determined" >&2
1331 { (exit 1); exit 1; }; }
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 { echo "$as_me: error: pwd does not report name of working directory" >&2
1334 { (exit 1); exit 1; }; }
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$0" ||
1342 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$0" : 'X\(//\)[^/]' \| \
1344 X"$0" : 'X\(//\)$' \| \
1345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1369 ac_srcdir_defaulted=no
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1374 { (exit 1); exit 1; }; }
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1379 { (exit 1); exit 1; }; }
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 # Report the --help message.
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1405 \`configure' configures nss-mdns 0.10 to adapt to many kinds of systems.
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1412 Defaults for the options are specified in brackets.
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1436 For better control, use the options below.
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/nss-mdns]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of nss-mdns 0.10:";;
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --enable-static[=PKGS] build static libraries [default=no]
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --disable-lynx Turn off lynx usage for documentation generation
1490 --enable-avahi Enable lookups with Avahi (default=yes)
1491 --enable-legacy Enable legacy unicast mDNS lookups when Avahi isn't
1492 available (default=no)
1493 --enable-search-domains Honour search domains from /etc/resolv.conf
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1502 --with-tags[=TAGS] include additional configurations [automatic]
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
1515 CXXCPP C++ preprocessor
1516 F77 Fortran 77 compiler command
1517 FFLAGS Fortran 77 compiler flags
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1522 Report bugs to <mzaffzqaf (at) 0pointer (dot) de>.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1583 nss-mdns configure 0.10
1584 generated by GNU Autoconf 2.61
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by nss-mdns $as_me 0.10, which was
1598 generated by GNU Autoconf 2.61. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next=false
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next=true ;;
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1870 # Check that the precious variables saved in the cache have kept the same
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1893 echo "$as_me: former value: $ac_old_val" >&2;}
1894 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1895 echo "$as_me: current value: $ac_new_val" >&2;}
1896 ac_cache_corrupted=:
1899 # Pass precious variables to config.status.
1900 if test "$ac_new_set" = set; then
1902 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 *) ac_arg=$ac_var=$ac_new_val ;;
1905 case " $ac_configure_args " in
1906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1907 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 if $ac_cache_corrupted; then
1912 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951 ac_config_headers="$ac_config_headers config.h"
1953 am__api_version="1.9"
1955 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1956 if test -f "$ac_dir/install-sh"; then
1958 ac_install_sh="$ac_aux_dir/install-sh -c"
1960 elif test -f "$ac_dir/install.sh"; then
1962 ac_install_sh="$ac_aux_dir/install.sh -c"
1964 elif test -f "$ac_dir/shtool"; then
1966 ac_install_sh="$ac_aux_dir/shtool install -c"
1970 if test -z "$ac_aux_dir"; then
1971 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1973 { (exit 1); exit 1; }; }
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1985 # Find a good install program. We prefer a C program (faster),
1986 # so one script is as good as another. But avoid the broken or
1987 # incompatible versions:
1988 # SysV /etc/install, /usr/sbin/install
1989 # SunOS /usr/etc/install
1990 # IRIX /sbin/install
1992 # AmigaOS /C/install, which installs bootblocks on floppy discs
1993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1996 # OS/2's system install, which has a completely different semantic
1997 # ./install, which can be erroneously created by make from ./install.sh.
1998 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1999 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2000 if test -z "$INSTALL"; then
2001 if test "${ac_cv_path_install+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 # Account for people who put trailing slashes in PATH elements.
2011 ./ | .// | /cC/* | \
2012 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2013 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2016 # OSF1 and SCO ODT 3.0 have their own names for install.
2017 # Don't use installbsd from OSF since it installs stuff as root
2019 for ac_prog in ginstall scoinst install; do
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2022 if test $ac_prog = install &&
2023 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2024 # AIX install. It has an incompatible calling convention.
2026 elif test $ac_prog = install &&
2027 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2028 # program-specific install script used by HP pwplus--don't use.
2031 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2044 if test "${ac_cv_path_install+set}" = set; then
2045 INSTALL=$ac_cv_path_install
2047 # As a last resort, use the slow shell script. Don't cache a
2048 # value for INSTALL within a source directory, because that will
2049 # break other packages using the cache if that directory is
2050 # removed, or if the value is a relative name.
2051 INSTALL=$ac_install_sh
2054 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2055 echo "${ECHO_T}$INSTALL" >&6; }
2057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2058 # It thinks the first close brace ends the variable substitution.
2059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2061 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2063 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2065 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2066 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2069 echo timestamp > conftest.file
2070 # Do `set' in a subshell so we don't clobber the current shell's
2071 # arguments. Must try -L first in case configure is actually a
2072 # symlink; some systems play weird games with the mod time of symlinks
2073 # (eg FreeBSD returns the mod time of the symlink's containing
2076 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2077 if test "$*" = "X"; then
2079 set X `ls -t $srcdir/configure conftest.file`
2082 if test "$*" != "X $srcdir/configure conftest.file" \
2083 && test "$*" != "X conftest.file $srcdir/configure"; then
2085 # If neither matched, then we have a broken ls. This can happen
2086 # if, for instance, CONFIG_SHELL is bash and it inherits a
2087 # broken ls alias from the environment. This has actually
2088 # happened. Such a system could not be considered "sane".
2089 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2090 alias in your environment" >&5
2091 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2092 alias in your environment" >&2;}
2093 { (exit 1); exit 1; }; }
2096 test "$2" = conftest.file
2102 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2103 Check your system clock" >&5
2104 echo "$as_me: error: newly created file is older than distributed files!
2105 Check your system clock" >&2;}
2106 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: yes" >&5
2109 echo "${ECHO_T}yes" >&6; }
2110 test "$program_prefix" != NONE &&
2111 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2112 # Use a double $ so make ignores it.
2113 test "$program_suffix" != NONE &&
2114 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2115 # Double any \ or $. echo might interpret backslashes.
2116 # By default was `s,x,x', remove it if useless.
2117 cat <<\_ACEOF >conftest.sed
2118 s/[\\$]/&&/g;s/;s,x,x,$//
2120 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2123 # expand $ac_aux_dir to an absolute path
2124 am_aux_dir=`cd $ac_aux_dir && pwd`
2126 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2127 # Use eval to expand $SHELL
2128 if eval "$MISSING --run true"; then
2129 am_missing_run="$MISSING --run "
2132 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2133 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2136 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2137 # We used to keeping the `.' as first argument, in order to
2138 # allow $(mkdir_p) to be used without argument. As in
2139 # $(mkdir_p) $(somedir)
2140 # where $(somedir) is conditionally defined. However this is wrong
2142 # 1. if the package is installed by a user who cannot write `.'
2143 # make install will fail,
2144 # 2. the above comment should most certainly read
2145 # $(mkdir_p) $(DESTDIR)$(somedir)
2146 # so it does not work when $(somedir) is undefined and
2147 # $(DESTDIR) is not.
2148 # To support the latter case, we have to write
2149 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2150 # so the `.' trick is pointless.
2151 mkdir_p='mkdir -p --'
2153 # On NextStep and OpenStep, the `mkdir' command does not
2154 # recognize any option. It will interpret all options as
2155 # directories to create, and then abort because `.' already
2157 for d in ./-p ./--version;
2159 test -d $d && rmdir $d
2161 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2162 if test -f "$ac_aux_dir/mkinstalldirs"; then
2163 mkdir_p='$(mkinstalldirs)'
2165 mkdir_p='$(install_sh) -d'
2169 for ac_prog in gawk mawk nawk awk
2171 # Extract the first word of "$ac_prog", so it can be a program name with args.
2172 set dummy $ac_prog; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_AWK+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 if test -n "$AWK"; then
2179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 ac_cv_prog_AWK="$ac_prog"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test -n "$AWK"; then
2200 { echo "$as_me:$LINENO: result: $AWK" >&5
2201 echo "${ECHO_T}$AWK" >&6; }
2203 { echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6; }
2208 test -n "$AWK" && break
2211 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2212 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2213 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2214 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 cat >conftest.make <<\_ACEOF
2220 @echo '@@@%%%=$(MAKE)=@@@%%%'
2222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2225 eval ac_cv_prog_make_${ac_make}_set=yes;;
2227 eval ac_cv_prog_make_${ac_make}_set=no;;
2231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2236 { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2238 SET_MAKE="MAKE=${MAKE-make}"
2241 rm -rf .tst 2>/dev/null
2242 mkdir .tst 2>/dev/null
2243 if test -d .tst; then
2248 rmdir .tst 2>/dev/null
2250 # test to see if srcdir already configured
2251 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2252 test -f $srcdir/config.status; then
2253 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2254 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2255 { (exit 1); exit 1; }; }
2258 # test whether we have cygpath
2259 if test -z "$CYGPATH_W"; then
2260 if (cygpath --version) >/dev/null 2>/dev/null; then
2261 CYGPATH_W='cygpath -w'
2268 # Define the identity of the package.
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE "$PACKAGE"
2278 cat >>confdefs.h <<_ACEOF
2279 #define VERSION "$VERSION"
2282 # Some tools Automake needs.
2284 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2287 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2290 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2293 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2296 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2298 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2300 # Installed binaries are usually stripped using `strip' when the user
2301 # run `make install-strip'. However `strip' might not be the right
2302 # tool to use in cross-compilation environments, therefore Automake
2303 # will honor the `STRIP' environment variable to overrule this program.
2304 if test "$cross_compiling" != no; then
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}strip; ac_word=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_STRIP+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 if test -n "$STRIP"; then
2314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 STRIP=$ac_cv_prog_STRIP
2334 if test -n "$STRIP"; then
2335 { echo "$as_me:$LINENO: result: $STRIP" >&5
2336 echo "${ECHO_T}$STRIP" >&6; }
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2344 if test -z "$ac_cv_prog_STRIP"; then
2346 # Extract the first word of "strip", so it can be a program name with args.
2347 set dummy strip; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 if test -n "$ac_ct_STRIP"; then
2354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_ac_ct_STRIP="strip"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2374 if test -n "$ac_ct_STRIP"; then
2375 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2376 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2378 { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2382 if test "x$ac_ct_STRIP" = x; then
2385 case $cross_compiling:$ac_tool_warned in
2387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&5
2390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet. If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2393 ac_tool_warned=yes ;;
2398 STRIP="$ac_cv_prog_STRIP"
2402 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2404 # We need awk for the "check" target. The system "awk" is bad on
2406 # Always define AMTAR for backward compatibility.
2408 AMTAR=${AMTAR-"${am_missing_run}tar"}
2410 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2417 PACKAGE_URL=http://0pointer.de/lennart/projects/nss-mdns/
2420 ac_default_prefix="/"
2423 cat >>confdefs.h <<\_ACEOF
2424 #define _GNU_SOURCE 1
2429 # Checks for programs.
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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; }
2669 test -n "$CC" && break
2672 if test -z "$CC"; then
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2716 if test "x$ac_ct_CC" = x; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2809 for ac_file in $ac_files
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 if { (ac_try="$ac_link_default"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2833 for ac_file in $ac_files ''
2835 test -f "$ac_file" || continue
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2840 # We found the default executable, but exeext='' is most
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2864 { echo "$as_me:$LINENO: result: $ac_file" >&5
2865 echo "${ECHO_T}$ac_file" >&6; }
2866 if test -z "$ac_file"; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&2;}
2874 { (exit 77); exit 77; }; }
2877 ac_exeext=$ac_cv_exeext
2879 # Check that the compiler produces executables we can run. If not, either
2880 # the compiler is broken, or we cross compile.
2881 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2884 # If not cross compiling, check that we can run a simple program.
2885 if test "$cross_compiling" != yes; then
2886 if { ac_try='./$ac_file'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 if test "$cross_compiling" = maybe; then
2901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2902 If you meant to cross compile, use \`--host'.
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot run C compiled programs.
2905 If you meant to cross compile, use \`--host'.
2906 See \`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2911 { echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6; }
2914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 # Check that the compiler produces executables we can run. If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2920 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2921 echo "${ECHO_T}$cross_compiling" >&6; }
2923 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2925 if { (ac_try="$ac_link"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_link") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2936 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2937 # work properly (i.e., refer to `conftest.exe'), while it won't with
2939 for ac_file in conftest.exe conftest conftest.*; do
2940 test -f "$ac_file" || continue
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2943 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2950 See \`config.log' for more details." >&5
2951 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&2;}
2953 { (exit 1); exit 1; }; }
2956 rm -f conftest$ac_cv_exeext
2957 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2958 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2960 rm -f conftest.$ac_ext
2961 EXEEXT=$ac_cv_exeext
2963 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2964 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2965 if test "${ac_cv_objext+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2983 rm -f conftest.o conftest.obj
2984 if { (ac_try="$ac_compile"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compile") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; then
2994 for ac_file in conftest.o conftest.obj conftest.*; do
2995 test -f "$ac_file" || continue;
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3015 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3016 echo "${ECHO_T}$ac_cv_objext" >&6; }
3017 OBJEXT=$ac_cv_objext
3019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } && {
3056 test -z "$ac_c_werror_flag" ||
3057 test ! -s conftest.err
3058 } && test -s conftest.$ac_objext; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3071 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3072 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3073 GCC=`test $ac_compiler_gnu = yes && echo yes`
3074 ac_test_CFLAGS=${CFLAGS+set}
3075 ac_save_CFLAGS=$CFLAGS
3076 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3077 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_cc_g+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 ac_save_c_werror_flag=$ac_c_werror_flag
3082 ac_c_werror_flag=yes
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 ac_c_werror_flag=$ac_save_c_werror_flag
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3212 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3213 if test "$ac_test_CFLAGS" = set; then
3214 CFLAGS=$ac_save_CFLAGS
3215 elif test $ac_cv_prog_cc_g = yes; then
3216 if test "$GCC" = yes; then
3222 if test "$GCC" = yes; then
3228 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3229 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3230 if test "${ac_cv_prog_cc_c89+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 ac_cv_prog_cc_c89=no
3235 cat >conftest.$ac_ext <<_ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3243 #include <sys/types.h>
3244 #include <sys/stat.h>
3245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246 struct buf { int x; };
3247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248 static char *e (p, i)
3254 static char *f (char * (*g) (char **, int), char **p, ...)
3259 s = g (p, va_arg (v,int));
3264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3265 function prototypes and stuff, but not '\xHH' hex character constants.
3266 These don't provoke an error unfortunately, instead are silently treated
3267 as 'x'. The following induces an error, until -std is added to get
3268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3269 array size at least. It's necessary to write '\x00'==0 to get something
3270 that's true only with -std. */
3271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274 inside strings and character constants. */
3276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3278 int test (int i, double x);
3279 struct s1 {int (*f) (int a);};
3280 struct s2 {int (*f) (double a);};
3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3295 CC="$ac_save_CC $ac_arg"
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_compile") 2>conftest.er1
3305 grep -v '^ *+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } && {
3310 test -z "$ac_c_werror_flag" ||
3311 test ! -s conftest.err
3312 } && test -s conftest.$ac_objext; then
3313 ac_cv_prog_cc_c89=$ac_arg
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3321 rm -f core conftest.err conftest.$ac_objext
3322 test "x$ac_cv_prog_cc_c89" != "xno" && break
3324 rm -f conftest.$ac_ext
3329 case "x$ac_cv_prog_cc_c89" in
3331 { echo "$as_me:$LINENO: result: none needed" >&5
3332 echo "${ECHO_T}none needed" >&6; } ;;
3334 { echo "$as_me:$LINENO: result: unsupported" >&5
3335 echo "${ECHO_T}unsupported" >&6; } ;;
3337 CC="$CC $ac_cv_prog_cc_c89"
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3339 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 DEPDIR="${am__leading_dot}deps"
3350 ac_config_commands="$ac_config_commands depfiles"
3353 am_make=${MAKE-make}
3354 cat > confinc << 'END'
3359 # If we don't find an include directive, just comment out the code.
3360 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3361 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3365 # First try GNU make style include.
3366 echo "include confinc" > confmf
3367 # We grep out `Entering directory' and `Leaving directory'
3368 # messages which can occur if `w' ends up in MAKEFLAGS.
3369 # In particular we don't look at `^make:' because GNU make might
3370 # be invoked under some other name (usually "gmake"), in which
3371 # case it prints its new name instead of `make'.
3372 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3377 # Now try BSD make style include.
3378 if test "$am__include" = "#"; then
3379 echo '.include "confinc"' > confmf
3380 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3381 am__include=.include
3388 { echo "$as_me:$LINENO: result: $_am_result" >&5
3389 echo "${ECHO_T}$_am_result" >&6; }
3390 rm -f confinc confmf
3392 # Check whether --enable-dependency-tracking was given.
3393 if test "${enable_dependency_tracking+set}" = set; then
3394 enableval=$enable_dependency_tracking;
3397 if test "x$enable_dependency_tracking" != xno; then
3398 am_depcomp="$ac_aux_dir/depcomp"
3403 if test "x$enable_dependency_tracking" != xno; then
3414 depcc="$CC" am_compiler_list=
3416 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3417 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3418 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3422 # We make a subdir and do the tests there. Otherwise we can end up
3423 # making bogus files that we don't know about and never remove. For
3424 # instance it was reported that on HP-UX the gcc test will end up
3425 # making a dummy file named `D' -- because `-MD' means `put the output
3428 # Copy depcomp to subdir because otherwise we won't find it if we're
3429 # using a relative directory.
3430 cp "$am_depcomp" conftest.dir
3432 # We will build objects and dependencies in a subdirectory because
3433 # it helps to detect inapplicable dependency modes. For instance
3434 # both Tru64's cc and ICC support -MD to output dependencies as a
3435 # side effect of compilation, but ICC will put the dependencies in
3436 # the current directory while Tru64 will put them in the object
3440 am_cv_CC_dependencies_compiler_type=none
3441 if test "$am_compiler_list" = ""; then
3442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3444 for depmode in $am_compiler_list; do
3445 # Setup a source with many dependencies, because some compilers
3446 # like to wrap large dependency lists on column 80 (with \), and
3447 # we should not choose a depcomp mode which is confused by this.
3449 # We need to recreate these files for each test, as the compiler may
3450 # overwrite some of them when testing with obscure command lines.
3451 # This happens at least with the AIX C compiler.
3453 for i in 1 2 3 4 5 6; do
3454 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3455 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3456 # Solaris 8's {/usr,}/bin/sh.
3457 touch sub/conftst$i.h
3459 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3463 # after this tag, mechanisms are not by side-effect, so they'll
3464 # only be used when explicitly requested
3465 if test "x$enable_dependency_tracking" = xyes; then
3473 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3474 # mode. It turns out that the SunPro C++ compiler does not properly
3475 # handle `-M -o', and we need to detect this.
3476 if depmode=$depmode \
3477 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3479 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3480 >/dev/null 2>conftest.err &&
3481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3482 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3484 # icc doesn't choke on unknown options, it will just issue warnings
3485 # or remarks (even with -Werror). So we grep stderr for any message
3486 # that says an option was ignored or not supported.
3487 # When given -MP, icc 7.0 and 7.1 complain thusly:
3488 # icc: Command line warning: ignoring option '-M'; no argument required
3489 # The diagnosis changed in icc 8.0:
3490 # icc: Command line remark: option '-MP' not supported
3491 if (grep 'ignoring option' conftest.err ||
3492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3493 am_cv_CC_dependencies_compiler_type=$depmode
3502 am_cv_CC_dependencies_compiler_type=none
3506 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3507 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3508 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3513 test "x$enable_dependency_tracking" != xno \
3514 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3516 am__fastdepCC_FALSE='#'
3518 am__fastdepCC_TRUE='#'
3519 am__fastdepCC_FALSE=
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3529 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3530 # On Suns, sometimes $CPP names a directory.
3531 if test -n "$CPP" && test -d "$CPP"; then
3534 if test -z "$CPP"; then
3535 if test "${ac_cv_prog_CPP+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 # Double quotes because CPP needs to be expanded
3539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542 for ac_c_preproc_warn_flag in '' yes
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3557 # include <limits.h>
3559 # include <assert.h>
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null && {
3576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Broken: fails on valid input.
3588 rm -f conftest.err conftest.$ac_ext
3590 # OK, works on sane cases. Now check whether nonexistent headers
3591 # can be detected and how.
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <ac_nonexistent.h>
3600 if { (ac_try="$ac_cpp conftest.$ac_ext"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null && {
3613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3616 # Broken: success on invalid input.
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Passes both tests.
3627 rm -f conftest.err conftest.$ac_ext
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3644 { echo "$as_me:$LINENO: result: $CPP" >&5
3645 echo "${ECHO_T}$CPP" >&6; }
3647 for ac_c_preproc_warn_flag in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3662 # include <limits.h>
3664 # include <assert.h>
3668 if { (ac_try="$ac_cpp conftest.$ac_ext"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676 grep -v '^ *+' conftest.er1 >conftest.err
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } >/dev/null && {
3681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3682 test ! -s conftest.err
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 # Broken: fails on valid input.
3693 rm -f conftest.err conftest.$ac_ext
3695 # OK, works on sane cases. Now check whether nonexistent headers
3696 # can be detected and how.
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <ac_nonexistent.h>
3705 if { (ac_try="$ac_cpp conftest.$ac_ext"
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3713 grep -v '^ *+' conftest.er1 >conftest.err
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null && {
3718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3719 test ! -s conftest.err
3721 # Broken: success on invalid input.
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 # Passes both tests.
3732 rm -f conftest.err conftest.$ac_ext
3735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3736 rm -f conftest.err conftest.$ac_ext
3737 if $ac_preproc_ok; then
3740 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3741 See \`config.log' for more details." >&5
3742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3743 See \`config.log' for more details." >&2;}
3744 { (exit 1); exit 1; }; }
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 # Find a good install program. We prefer a C program (faster),
3754 # so one script is as good as another. But avoid the broken or
3755 # incompatible versions:
3756 # SysV /etc/install, /usr/sbin/install
3757 # SunOS /usr/etc/install
3758 # IRIX /sbin/install
3760 # AmigaOS /C/install, which installs bootblocks on floppy discs
3761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3764 # OS/2's system install, which has a completely different semantic
3765 # ./install, which can be erroneously created by make from ./install.sh.
3766 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3767 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3768 if test -z "$INSTALL"; then
3769 if test "${ac_cv_path_install+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir=.
3777 # Account for people who put trailing slashes in PATH elements.
3779 ./ | .// | /cC/* | \
3780 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3781 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3784 # OSF1 and SCO ODT 3.0 have their own names for install.
3785 # Don't use installbsd from OSF since it installs stuff as root
3787 for ac_prog in ginstall scoinst install; do
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3790 if test $ac_prog = install &&
3791 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3792 # AIX install. It has an incompatible calling convention.
3794 elif test $ac_prog = install &&
3795 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3796 # program-specific install script used by HP pwplus--don't use.
3799 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3812 if test "${ac_cv_path_install+set}" = set; then
3813 INSTALL=$ac_cv_path_install
3815 # As a last resort, use the slow shell script. Don't cache a
3816 # value for INSTALL within a source directory, because that will
3817 # break other packages using the cache if that directory is
3818 # removed, or if the value is a relative name.
3819 INSTALL=$ac_install_sh
3822 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3823 echo "${ECHO_T}$INSTALL" >&6; }
3825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3826 # It thinks the first close brace ends the variable substitution.
3827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3833 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3834 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3836 if test "$LN_S" = "ln -s"; then
3837 { echo "$as_me:$LINENO: result: yes" >&5
3838 echo "${ECHO_T}yes" >&6; }
3840 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3841 echo "${ECHO_T}no, using $LN_S" >&6; }
3844 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3845 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3846 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3847 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 cat >conftest.make <<\_ACEOF
3853 @echo '@@@%%%=$(MAKE)=@@@%%%'
3855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3856 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3858 eval ac_cv_prog_make_${ac_make}_set=yes;;
3860 eval ac_cv_prog_make_${ac_make}_set=no;;
3864 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3865 { echo "$as_me:$LINENO: result: yes" >&5
3866 echo "${ECHO_T}yes" >&6; }
3869 { echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6; }
3871 SET_MAKE="MAKE=${MAKE-make}"
3876 cat >conftest.$ac_ext <<_ACEOF
3879 $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null
3885 # If using GCC specify some additional parameters
3886 if test "x$GCC" = "xyes" ; then
3888 # We use gnu99 instead of c99 because many have interpreted the standard
3889 # in a way that int64_t isn't defined on non-64 bit platforms.
3890 DESIRED_FLAGS="-std=gnu99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter"
3892 for flag in $DESIRED_FLAGS ; do
3893 { echo "$as_me:$LINENO: checking whether $CC accepts $flag" >&5
3894 echo $ECHO_N "checking whether $CC accepts $flag... $ECHO_C" >&6; }
3895 if test_gcc_flag $flag ; then
3896 CFLAGS="$CFLAGS $flag"
3897 { echo "$as_me:$LINENO: result: yes" >&5
3898 echo "${ECHO_T}yes" >&6; }
3900 { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3907 # Check whether --enable-static was given.
3908 if test "${enable_static+set}" = set; then
3909 enableval=$enable_static; p=${PACKAGE-default}
3911 yes) enable_static=yes ;;
3912 no) enable_static=no ;;
3915 # Look at the argument we got. We use all the common list separators.
3916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3917 for pkg in $enableval; do
3919 if test "X$pkg" = "X$p"; then
3932 # Check whether --enable-shared was given.
3933 if test "${enable_shared+set}" = set; then
3934 enableval=$enable_shared; p=${PACKAGE-default}
3936 yes) enable_shared=yes ;;
3937 no) enable_shared=no ;;
3940 # Look at the argument we got. We use all the common list separators.
3941 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3942 for pkg in $enableval; do
3944 if test "X$pkg" = "X$p"; then
3956 # Check whether --enable-fast-install was given.
3957 if test "${enable_fast_install+set}" = set; then
3958 enableval=$enable_fast_install; p=${PACKAGE-default}
3960 yes) enable_fast_install=yes ;;
3961 no) enable_fast_install=no ;;
3963 enable_fast_install=no
3964 # Look at the argument we got. We use all the common list separators.
3965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3966 for pkg in $enableval; do
3968 if test "X$pkg" = "X$p"; then
3969 enable_fast_install=yes
3976 enable_fast_install=yes
3980 # Make sure we can run config.sub.
3981 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3982 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3983 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3984 { (exit 1); exit 1; }; }
3986 { echo "$as_me:$LINENO: checking build system type" >&5
3987 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3988 if test "${ac_cv_build+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 ac_build_alias=$build_alias
3992 test "x$ac_build_alias" = x &&
3993 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3994 test "x$ac_build_alias" = x &&
3995 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3996 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3997 { (exit 1); exit 1; }; }
3998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3999 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4001 { (exit 1); exit 1; }; }
4004 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4005 echo "${ECHO_T}$ac_cv_build" >&6; }
4006 case $ac_cv_build in
4008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4009 echo "$as_me: error: invalid value of canonical build" >&2;}
4010 { (exit 1); exit 1; }; };;
4013 ac_save_IFS=$IFS; IFS='-'
4019 # Remember, the first character of IFS is used to create $*,
4020 # except with old shells:
4023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4026 { echo "$as_me:$LINENO: checking host system type" >&5
4027 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4028 if test "${ac_cv_host+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if test "x$host_alias" = x; then
4032 ac_cv_host=$ac_cv_build
4034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4037 { (exit 1); exit 1; }; }
4041 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4042 echo "${ECHO_T}$ac_cv_host" >&6; }
4045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4046 echo "$as_me: error: invalid value of canonical host" >&2;}
4047 { (exit 1); exit 1; }; };;
4050 ac_save_IFS=$IFS; IFS='-'
4056 # Remember, the first character of IFS is used to create $*,
4057 # except with old shells:
4060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4063 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4064 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4065 if test "${lt_cv_path_SED+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 # Loop through the user's path and test for sed and gsed.
4069 # Then use that list of sed's as ones to test for truncation.
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 test -z "$as_dir" && as_dir=.
4075 for lt_ac_prog in sed gsed; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4078 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4085 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4086 # along with /bin/sed that truncates output.
4087 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4088 test ! -f $lt_ac_sed && continue
4089 cat /dev/null > conftest.in
4091 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4092 # Check for GNU sed and select it if it is found.
4093 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4094 lt_cv_path_SED=$lt_ac_sed
4098 cat conftest.in conftest.in >conftest.tmp
4099 mv conftest.tmp conftest.in
4100 cp conftest.in conftest.nl
4102 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4103 cmp -s conftest.out conftest.nl || break
4104 # 10000 chars as input seems more than enough
4105 test $lt_ac_count -gt 10 && break
4106 lt_ac_count=`expr $lt_ac_count + 1`
4107 if test $lt_ac_count -gt $lt_ac_max; then
4108 lt_ac_max=$lt_ac_count
4109 lt_cv_path_SED=$lt_ac_sed
4117 { echo "$as_me:$LINENO: result: $SED" >&5
4118 echo "${ECHO_T}$SED" >&6; }
4120 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4121 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4122 if test "${ac_cv_path_GREP+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 # Extract the first word of "grep ggrep" to use in msg output
4126 if test -z "$GREP"; then
4127 set dummy grep ggrep; ac_prog_name=$2
4128 if test "${ac_cv_path_GREP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 ac_path_GREP_found=false
4132 # Loop through the user's path and test for each of PROGNAME-LIST
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4137 test -z "$as_dir" && as_dir=.
4138 for ac_prog in grep ggrep; do
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4141 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4142 # Check for GNU ac_path_GREP and select it if it is found.
4143 # Check for GNU $ac_path_GREP
4144 case `"$ac_path_GREP" --version 2>&1` in
4146 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4149 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4152 cat "conftest.in" "conftest.in" >"conftest.tmp"
4153 mv "conftest.tmp" "conftest.in"
4154 cp "conftest.in" "conftest.nl"
4155 echo 'GREP' >> "conftest.nl"
4156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158 ac_count=`expr $ac_count + 1`
4159 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160 # Best one so far, save it but keep looking for a better one
4161 ac_cv_path_GREP="$ac_path_GREP"
4162 ac_path_GREP_max=$ac_count
4164 # 10*(2^10) chars as input seems more than enough
4165 test $ac_count -gt 10 && break
4167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 $ac_path_GREP_found && break 3
4181 GREP="$ac_cv_path_GREP"
4182 if test -z "$GREP"; then
4183 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4184 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4185 { (exit 1); exit 1; }; }
4189 ac_cv_path_GREP=$GREP
4194 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4195 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4196 GREP="$ac_cv_path_GREP"
4199 { echo "$as_me:$LINENO: checking for egrep" >&5
4200 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_EGREP+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4205 then ac_cv_path_EGREP="$GREP -E"
4207 # Extract the first word of "egrep" to use in msg output
4208 if test -z "$EGREP"; then
4209 set dummy egrep; ac_prog_name=$2
4210 if test "${ac_cv_path_EGREP+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 ac_path_EGREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in egrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4223 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4224 # Check for GNU ac_path_EGREP and select it if it is found.
4225 # Check for GNU $ac_path_EGREP
4226 case `"$ac_path_EGREP" --version 2>&1` in
4228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4231 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 echo 'EGREP' >> "conftest.nl"
4238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 ac_count=`expr $ac_count + 1`
4241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_EGREP="$ac_path_EGREP"
4244 ac_path_EGREP_max=$ac_count
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4253 $ac_path_EGREP_found && break 3
4263 EGREP="$ac_cv_path_EGREP"
4264 if test -z "$EGREP"; then
4265 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4266 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4267 { (exit 1); exit 1; }; }
4271 ac_cv_path_EGREP=$EGREP
4277 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4278 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4279 EGREP="$ac_cv_path_EGREP"
4283 # Check whether --with-gnu-ld was given.
4284 if test "${with_gnu_ld+set}" = set; then
4285 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4291 if test "$GCC" = yes; then
4292 # Check if gcc -print-prog-name=ld gives a path.
4293 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4294 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4297 # gcc leaves a trailing carriage return which upsets mingw
4298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4303 # Accept absolute paths.
4305 re_direlt='/[^/][^/]*/\.\./'
4306 # Canonicalize the pathname of ld
4307 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4309 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4311 test -z "$LD" && LD="$ac_prog"
4314 # If it fails, then pretend we aren't using GCC.
4318 # If it is relative, then search for the first ld in PATH.
4322 elif test "$with_gnu_ld" = yes; then
4323 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4324 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4326 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4327 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4329 if test "${lt_cv_path_LD+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -z "$LD"; then
4333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4334 for ac_dir in $PATH; do
4336 test -z "$ac_dir" && ac_dir=.
4337 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4338 lt_cv_path_LD="$ac_dir/$ac_prog"
4339 # Check to see if the program is GNU ld. I'd rather use --version,
4340 # but apparently some variants of GNU ld only accept -v.
4341 # Break only if it was the GNU/non-GNU ld that we prefer.
4342 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4343 *GNU* | *'with BFD'*)
4344 test "$with_gnu_ld" != no && break
4347 test "$with_gnu_ld" != yes && break
4354 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4359 if test -n "$LD"; then
4360 { echo "$as_me:$LINENO: result: $LD" >&5
4361 echo "${ECHO_T}$LD" >&6; }
4363 { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4366 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4367 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4368 { (exit 1); exit 1; }; }
4369 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4370 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4371 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4375 case `$LD -v 2>&1 </dev/null` in
4376 *GNU* | *'with BFD'*)
4377 lt_cv_prog_gnu_ld=yes
4380 lt_cv_prog_gnu_ld=no
4384 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4385 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4386 with_gnu_ld=$lt_cv_prog_gnu_ld
4389 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4390 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4391 if test "${lt_cv_ld_reload_flag+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 lt_cv_ld_reload_flag='-r'
4396 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4397 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4398 reload_flag=$lt_cv_ld_reload_flag
4399 case $reload_flag in
4401 *) reload_flag=" $reload_flag" ;;
4403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4406 if test "$GCC" = yes; then
4407 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4409 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4414 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4415 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4416 if test "${lt_cv_path_NM+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 if test -n "$NM"; then
4420 # Let the user override the test.
4423 lt_nm_to_check="${ac_tool_prefix}nm"
4424 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4425 lt_nm_to_check="$lt_nm_to_check nm"
4427 for lt_tmp_nm in $lt_nm_to_check; do
4428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4429 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4431 test -z "$ac_dir" && ac_dir=.
4432 tmp_nm="$ac_dir/$lt_tmp_nm"
4433 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4434 # Check to see if the nm accepts a BSD-compat flag.
4435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4436 # nm: unknown option "B" ignored
4437 # Tru64's nm complains that /dev/null is an invalid object file
4438 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4439 */dev/null* | *'Invalid file or object type'*)
4440 lt_cv_path_NM="$tmp_nm -B"
4444 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4446 lt_cv_path_NM="$tmp_nm -p"
4450 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4451 continue # so that we can try to find one that supports BSD flags
4460 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4463 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4464 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4467 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4468 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4469 if test "${lt_cv_deplibs_check_method+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 lt_cv_file_magic_cmd='$MAGIC_CMD'
4473 lt_cv_file_magic_test_file=
4474 lt_cv_deplibs_check_method='unknown'
4475 # Need to set the preceding variable on all platforms that support
4476 # interlibrary dependencies.
4477 # 'none' -- dependencies not supported.
4478 # `unknown' -- same as none, but documents that we really don't know.
4479 # 'pass_all' -- all dependencies passed with no checks.
4480 # 'test_compile' -- check by making test program.
4481 # 'file_magic [[regex]]' -- check by looking for files in library path
4482 # which responds to the $file_magic_cmd with a given extended regex.
4483 # If you have `file' or equivalent on your system and you're not sure
4484 # whether `pass_all' will *always* work, you probably want this one.
4488 lt_cv_deplibs_check_method=pass_all
4492 lt_cv_deplibs_check_method=pass_all
4496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4497 lt_cv_file_magic_cmd='/usr/bin/file -L'
4498 lt_cv_file_magic_test_file=/shlib/libc.so
4502 # func_win32_libid is a shell function defined in ltmain.sh
4503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4504 lt_cv_file_magic_cmd='func_win32_libid'
4508 # Base MSYS/MinGW do not provide the 'file' command needed by
4509 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4510 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4511 lt_cv_file_magic_cmd='$OBJDUMP -f'
4514 darwin* | rhapsody*)
4515 lt_cv_deplibs_check_method=pass_all
4518 freebsd* | dragonfly*)
4519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4522 # Not sure whether the presence of OpenBSD here was a mistake.
4523 # Let's accept both of them until this is cleared up.
4524 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4525 lt_cv_file_magic_cmd=/usr/bin/file
4526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4530 lt_cv_deplibs_check_method=pass_all
4535 lt_cv_deplibs_check_method=pass_all
4538 hpux10.20* | hpux11*)
4539 lt_cv_file_magic_cmd=/usr/bin/file
4542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4543 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4546 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]'
4547 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4551 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4557 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4561 irix5* | irix6* | nonstopux*)
4563 *-32|*"-32 ") libmagic=32-bit;;
4564 *-n32|*"-n32 ") libmagic=N32;;
4565 *-64|*"-64 ") libmagic=64-bit;;
4566 *) libmagic=never-match;;
4568 lt_cv_deplibs_check_method=pass_all
4571 # This must be Linux ELF.
4572 linux* | k*bsd*-gnu)
4573 lt_cv_deplibs_check_method=pass_all
4576 netbsd* | netbsdelf*-gnu)
4577 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4586 lt_cv_file_magic_cmd=/usr/bin/file
4587 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4591 lt_cv_deplibs_check_method=unknown
4595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4602 osf3* | osf4* | osf5*)
4603 lt_cv_deplibs_check_method=pass_all
4607 lt_cv_deplibs_check_method=pass_all
4611 case $host_vendor in
4613 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]'
4614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4617 lt_cv_deplibs_check_method=pass_all
4620 lt_cv_file_magic_cmd='/bin/file'
4621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4624 lt_cv_file_magic_cmd='/bin/file'
4625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4626 lt_cv_file_magic_test_file=/lib/libc.so
4629 lt_cv_deplibs_check_method=pass_all
4632 lt_cv_deplibs_check_method=pass_all
4637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4638 lt_cv_deplibs_check_method=pass_all
4643 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4645 file_magic_cmd=$lt_cv_file_magic_cmd
4646 deplibs_check_method=$lt_cv_deplibs_check_method
4647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4652 # If no C compiler was specified, use CC.
4655 # If no C compiler flags were specified, use CFLAGS.
4656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4658 # Allow CC to be a program name with arguments.
4662 # Check whether --enable-libtool-lock was given.
4663 if test "${enable_libtool_lock+set}" = set; then
4664 enableval=$enable_libtool_lock;
4667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4669 # Some flags need to be propagated to the compiler or linker for good
4673 # Find out which ABI we are using.
4674 echo 'int i;' > conftest.$ac_ext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676 (eval $ac_compile) 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; then
4680 case `/usr/bin/file conftest.$ac_objext` in
4692 # Find out which ABI we are using.
4693 echo '#line 4693 "configure"' > conftest.$ac_ext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; then
4699 if test "$lt_cv_prog_gnu_ld" = yes; then
4700 case `/usr/bin/file conftest.$ac_objext` in
4702 LD="${LD-ld} -melf32bsmip"
4705 LD="${LD-ld} -melf32bmipn32"
4708 LD="${LD-ld} -melf64bmip"
4712 case `/usr/bin/file conftest.$ac_objext` in
4728 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4729 # Find out which ABI we are using.
4730 echo 'int i;' > conftest.$ac_ext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; then
4736 case `/usr/bin/file conftest.o` in
4740 LD="${LD-ld} -m elf_i386"
4742 ppc64-*linux*|powerpc64-*linux*)
4743 LD="${LD-ld} -m elf32ppclinux"
4746 LD="${LD-ld} -m elf_s390"
4749 LD="${LD-ld} -m elf32_sparc"
4756 LD="${LD-ld} -m elf_x86_64"
4758 ppc*-*linux*|powerpc*-*linux*)
4759 LD="${LD-ld} -m elf64ppc"
4762 LD="${LD-ld} -m elf64_s390"
4765 LD="${LD-ld} -m elf64_sparc"
4775 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4776 SAVE_CFLAGS="$CFLAGS"
4777 CFLAGS="$CFLAGS -belf"
4778 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4779 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4780 if test "${lt_cv_cc_needs_belf+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (ac_try="$ac_link"
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_link") 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); } && {
4818 test -z "$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 } && test -s conftest$ac_exeext &&
4821 $as_test_x conftest$ac_exeext; then
4822 lt_cv_cc_needs_belf=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 lt_cv_cc_needs_belf=no
4830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4831 conftest$ac_exeext conftest.$ac_ext
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4839 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4840 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4841 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4842 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4843 CFLAGS="$SAVE_CFLAGS"
4847 # Find out which ABI we are using.
4848 echo 'int i;' > conftest.$ac_ext
4849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; then
4854 case `/usr/bin/file conftest.o` in
4856 case $lt_cv_prog_gnu_ld in
4857 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4858 *) LD="${LD-ld} -64" ;;
4869 need_locks="$enable_libtool_lock"
4873 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4875 if test "${ac_cv_header_stdc+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_compile") 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && {
4911 test -z "$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 } && test -s conftest.$ac_objext; then
4914 ac_cv_header_stdc=yes
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 ac_cv_header_stdc=no
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 if test $ac_cv_header_stdc = yes; then
4925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936 $EGREP "memchr" >/dev/null 2>&1; then
4939 ac_cv_header_stdc=no
4945 if test $ac_cv_header_stdc = yes; then
4946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4957 $EGREP "free" >/dev/null 2>&1; then
4960 ac_cv_header_stdc=no
4966 if test $ac_cv_header_stdc = yes; then
4967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4968 if test "$cross_compiling" = yes; then
4971 cat >conftest.$ac_ext <<_ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4979 #if ((' ' & 0x0FF) == 0x020)
4980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4983 # define ISLOWER(c) \
4984 (('a' <= (c) && (c) <= 'i') \
4985 || ('j' <= (c) && (c) <= 'r') \
4986 || ('s' <= (c) && (c) <= 'z'))
4987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4995 for (i = 0; i < 256; i++)
4996 if (XOR (islower (i), ISLOWER (i))
4997 || toupper (i) != TOUPPER (i))
5002 rm -f conftest$ac_exeext
5003 if { (ac_try="$ac_link"
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_link") 2>&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5013 { (case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018 (eval "$ac_try") 2>&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5024 echo "$as_me: program exited with status $ac_status" >&5
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5029 ac_cv_header_stdc=no
5031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5039 if test $ac_cv_header_stdc = yes; then
5041 cat >>confdefs.h <<\_ACEOF
5042 #define STDC_HEADERS 1
5047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5058 inttypes.h stdint.h unistd.h
5060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5074 #include <$ac_header>
5076 rm -f conftest.$ac_objext
5077 if { (ac_try="$ac_compile"
5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5080 *) ac_try_echo=$ac_try;;
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_compile") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1 >conftest.err
5087 cat conftest.err >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest.$ac_objext; then
5093 eval "$as_ac_Header=yes"
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5098 eval "$as_ac_Header=no"
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 ac_res=`eval echo '${'$as_ac_Header'}'`
5104 { echo "$as_me:$LINENO: result: $ac_res" >&5
5105 echo "${ECHO_T}$ac_res" >&6; }
5106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5107 cat >>confdefs.h <<_ACEOF
5108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5117 for ac_header in dlfcn.h
5119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 ac_res=`eval echo '${'$as_ac_Header'}'`
5127 { echo "$as_me:$LINENO: result: $ac_res" >&5
5128 echo "${ECHO_T}$ac_res" >&6; }
5130 # Is the header compilable?
5131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5133 cat >conftest.$ac_ext <<_ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5140 #include <$ac_header>
5142 rm -f conftest.$ac_objext
5143 if { (ac_try="$ac_compile"
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_compile") 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } && {
5156 test -z "$ac_c_werror_flag" ||
5157 test ! -s conftest.err
5158 } && test -s conftest.$ac_objext; then
5159 ac_header_compiler=yes
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5164 ac_header_compiler=no
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5169 echo "${ECHO_T}$ac_header_compiler" >&6; }
5171 # Is the header present?
5172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5174 cat >conftest.$ac_ext <<_ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 #include <$ac_header>
5182 if { (ac_try="$ac_cpp conftest.$ac_ext"
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5190 grep -v '^ *+' conftest.er1 >conftest.err
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null && {
5195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5196 test ! -s conftest.err
5198 ac_header_preproc=yes
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 ac_header_preproc=no
5206 rm -f conftest.err conftest.$ac_ext
5207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5208 echo "${ECHO_T}$ac_header_preproc" >&6; }
5210 # So? What about this header?
5211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5217 ac_header_preproc=yes
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5233 ## ----------------------------------------------- ##
5234 ## Report this to mzaffzqaf (at) 0pointer (dot) de ##
5235 ## ----------------------------------------------- ##
5237 ) | sed "s/^/$as_me: WARNING: /" >&2
5240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 eval "$as_ac_Header=\$ac_header_preproc"
5247 ac_res=`eval echo '${'$as_ac_Header'}'`
5248 { echo "$as_me:$LINENO: result: $ac_res" >&5
5249 echo "${ECHO_T}$ac_res" >&6; }
5252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5253 cat >>confdefs.h <<_ACEOF
5254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5262 ac_cpp='$CXXCPP $CPPFLAGS'
5263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5266 if test -z "$CXX"; then
5267 if test -n "$CCC"; then
5270 if test -n "$ac_tool_prefix"; then
5271 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5277 if test "${ac_cv_prog_CXX+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 if test -n "$CXX"; then
5281 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 if test -n "$CXX"; then
5302 { echo "$as_me:$LINENO: result: $CXX" >&5
5303 echo "${ECHO_T}$CXX" >&6; }
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5310 test -n "$CXX" && break
5313 if test -z "$CXX"; then
5315 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317 # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5321 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 if test -n "$ac_ct_CXX"; then
5325 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_prog_ac_ct_CXX="$ac_prog"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5345 if test -n "$ac_ct_CXX"; then
5346 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5347 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5349 { echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6; }
5354 test -n "$ac_ct_CXX" && break
5357 if test "x$ac_ct_CXX" = x; then
5360 case $cross_compiling:$ac_tool_warned in
5362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5363 whose name does not start with the host triplet. If you think this
5364 configuration is useful to you, please write to autoconf@gnu.org." >&5
5365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5366 whose name does not start with the host triplet. If you think this
5367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5368 ac_tool_warned=yes ;;
5376 # Provide some information about the compiler.
5377 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5378 ac_compiler=`set X $ac_compile; echo $2`
5379 { (ac_try="$ac_compiler --version >&5"
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_compiler --version >&5") 2>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }
5389 { (ac_try="$ac_compiler -v >&5"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compiler -v >&5") 2>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }
5399 { (ac_try="$ac_compiler -V >&5"
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compiler -V >&5") 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }
5410 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5411 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_compile") 2>conftest.er1
5442 grep -v '^ *+' conftest.er1 >conftest.err
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } && {
5447 test -z "$ac_cxx_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest.$ac_objext; then
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5462 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5463 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5464 GXX=`test $ac_compiler_gnu = yes && echo yes`
5465 ac_test_CXXFLAGS=${CXXFLAGS+set}
5466 ac_save_CXXFLAGS=$CXXFLAGS
5467 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5468 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5469 if test "${ac_cv_prog_cxx_g+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5473 ac_cxx_werror_flag=yes
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_cxx_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 ac_cv_prog_cxx_g=yes
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5529 rm -f conftest.$ac_objext
5530 if { (ac_try="$ac_compile"
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_compile") 2>conftest.er1
5538 grep -v '^ *+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && {
5543 test -z "$ac_cxx_werror_flag" ||
5544 test ! -s conftest.err
5545 } && test -s conftest.$ac_objext; then
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_cxx_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5585 ac_cv_prog_cxx_g=yes
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5602 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5603 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5604 if test "$ac_test_CXXFLAGS" = set; then
5605 CXXFLAGS=$ac_save_CXXFLAGS
5606 elif test $ac_cv_prog_cxx_g = yes; then
5607 if test "$GXX" = yes; then
5613 if test "$GXX" = yes; then
5620 ac_cpp='$CXXCPP $CPPFLAGS'
5621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5625 depcc="$CXX" am_compiler_list=
5627 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5628 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5629 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5633 # We make a subdir and do the tests there. Otherwise we can end up
5634 # making bogus files that we don't know about and never remove. For
5635 # instance it was reported that on HP-UX the gcc test will end up
5636 # making a dummy file named `D' -- because `-MD' means `put the output
5639 # Copy depcomp to subdir because otherwise we won't find it if we're
5640 # using a relative directory.
5641 cp "$am_depcomp" conftest.dir
5643 # We will build objects and dependencies in a subdirectory because
5644 # it helps to detect inapplicable dependency modes. For instance
5645 # both Tru64's cc and ICC support -MD to output dependencies as a
5646 # side effect of compilation, but ICC will put the dependencies in
5647 # the current directory while Tru64 will put them in the object
5651 am_cv_CXX_dependencies_compiler_type=none
5652 if test "$am_compiler_list" = ""; then
5653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5655 for depmode in $am_compiler_list; do
5656 # Setup a source with many dependencies, because some compilers
5657 # like to wrap large dependency lists on column 80 (with \), and
5658 # we should not choose a depcomp mode which is confused by this.
5660 # We need to recreate these files for each test, as the compiler may
5661 # overwrite some of them when testing with obscure command lines.
5662 # This happens at least with the AIX C compiler.
5664 for i in 1 2 3 4 5 6; do
5665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5666 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5667 # Solaris 8's {/usr,}/bin/sh.
5668 touch sub/conftst$i.h
5670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5674 # after this tag, mechanisms are not by side-effect, so they'll
5675 # only be used when explicitly requested
5676 if test "x$enable_dependency_tracking" = xyes; then
5684 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5685 # mode. It turns out that the SunPro C++ compiler does not properly
5686 # handle `-M -o', and we need to detect this.
5687 if depmode=$depmode \
5688 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5689 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5690 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5691 >/dev/null 2>conftest.err &&
5692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5693 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5695 # icc doesn't choke on unknown options, it will just issue warnings
5696 # or remarks (even with -Werror). So we grep stderr for any message
5697 # that says an option was ignored or not supported.
5698 # When given -MP, icc 7.0 and 7.1 complain thusly:
5699 # icc: Command line warning: ignoring option '-M'; no argument required
5700 # The diagnosis changed in icc 8.0:
5701 # icc: Command line remark: option '-MP' not supported
5702 if (grep 'ignoring option' conftest.err ||
5703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5704 am_cv_CXX_dependencies_compiler_type=$depmode
5713 am_cv_CXX_dependencies_compiler_type=none
5717 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5718 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5719 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5724 test "x$enable_dependency_tracking" != xno \
5725 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5726 am__fastdepCXX_TRUE=
5727 am__fastdepCXX_FALSE='#'
5729 am__fastdepCXX_TRUE='#'
5730 am__fastdepCXX_FALSE=
5736 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5737 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5738 (test "X$CXX" != "Xg++"))) ; then
5740 ac_cpp='$CXXCPP $CPPFLAGS'
5741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5744 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5745 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5746 if test -z "$CXXCPP"; then
5747 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 # Double quotes because CXXCPP needs to be expanded
5751 for CXXCPP in "$CXX -E" "/lib/cpp"
5754 for ac_cxx_preproc_warn_flag in '' yes
5756 # Use a header file that comes with gcc, so configuring glibc
5757 # with a fresh cross-compiler works.
5758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759 # <limits.h> exists even on freestanding compilers.
5760 # On the NeXT, cc -E runs the code through the compiler's parser,
5761 # not just through cpp. "Syntax error" is here to catch this case.
5762 cat >conftest.$ac_ext <<_ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5769 # include <limits.h>
5771 # include <assert.h>
5775 if { (ac_try="$ac_cpp conftest.$ac_ext"
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5783 grep -v '^ *+' conftest.er1 >conftest.err
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } >/dev/null && {
5788 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5789 test ! -s conftest.err
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 # Broken: fails on valid input.
5800 rm -f conftest.err conftest.$ac_ext
5802 # OK, works on sane cases. Now check whether nonexistent headers
5803 # can be detected and how.
5804 cat >conftest.$ac_ext <<_ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h. */
5810 #include <ac_nonexistent.h>
5812 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820 grep -v '^ *+' conftest.er1 >conftest.err
5822 cat conftest.err >&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } >/dev/null && {
5825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5826 test ! -s conftest.err
5828 # Broken: success on invalid input.
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 # Passes both tests.
5839 rm -f conftest.err conftest.$ac_ext
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then
5849 ac_cv_prog_CXXCPP=$CXXCPP
5852 CXXCPP=$ac_cv_prog_CXXCPP
5854 ac_cv_prog_CXXCPP=$CXXCPP
5856 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5857 echo "${ECHO_T}$CXXCPP" >&6; }
5859 for ac_cxx_preproc_warn_flag in '' yes
5861 # Use a header file that comes with gcc, so configuring glibc
5862 # with a fresh cross-compiler works.
5863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5864 # <limits.h> exists even on freestanding compilers.
5865 # On the NeXT, cc -E runs the code through the compiler's parser,
5866 # not just through cpp. "Syntax error" is here to catch this case.
5867 cat >conftest.$ac_ext <<_ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5874 # include <limits.h>
5876 # include <assert.h>
5880 if { (ac_try="$ac_cpp conftest.$ac_ext"
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null && {
5893 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5894 test ! -s conftest.err
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 # Broken: fails on valid input.
5905 rm -f conftest.err conftest.$ac_ext
5907 # OK, works on sane cases. Now check whether nonexistent headers
5908 # can be detected and how.
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <ac_nonexistent.h>
5917 if { (ac_try="$ac_cpp conftest.$ac_ext"
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } >/dev/null && {
5930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5931 test ! -s conftest.err
5933 # Broken: success on invalid input.
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 # Passes both tests.
5944 rm -f conftest.err conftest.$ac_ext
5947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5948 rm -f conftest.err conftest.$ac_ext
5949 if $ac_preproc_ok; then
5952 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5953 See \`config.log' for more details." >&5
5954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5955 See \`config.log' for more details." >&2;}
5956 { (exit 1); exit 1; }; }
5960 ac_cpp='$CXXCPP $CPPFLAGS'
5961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5969 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5970 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5972 if test -n "$ac_tool_prefix"; then
5973 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
5975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979 if test "${ac_cv_prog_F77+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 if test -n "$F77"; then
5983 ac_cv_prog_F77="$F77" # Let the user override the test.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 if test -n "$F77"; then
6004 { echo "$as_me:$LINENO: result: $F77" >&5
6005 echo "${ECHO_T}$F77" >&6; }
6007 { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6012 test -n "$F77" && break
6015 if test -z "$F77"; then
6017 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
6019 # Extract the first word of "$ac_prog", so it can be a program name with args.
6020 set dummy $ac_prog; ac_word=$2
6021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 if test -n "$ac_ct_F77"; then
6027 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6036 ac_cv_prog_ac_ct_F77="$ac_prog"
6037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6047 if test -n "$ac_ct_F77"; then
6048 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6049 echo "${ECHO_T}$ac_ct_F77" >&6; }
6051 { echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6; }
6056 test -n "$ac_ct_F77" && break
6059 if test "x$ac_ct_F77" = x; then
6062 case $cross_compiling:$ac_tool_warned in
6064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6065 whose name does not start with the host triplet. If you think this
6066 configuration is useful to you, please write to autoconf@gnu.org." >&5
6067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6068 whose name does not start with the host triplet. If you think this
6069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6070 ac_tool_warned=yes ;;
6077 # Provide some information about the compiler.
6078 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6079 ac_compiler=`set X $ac_compile; echo $2`
6080 { (ac_try="$ac_compiler --version >&5"
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_compiler --version >&5") 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }
6090 { (ac_try="$ac_compiler -v >&5"
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compiler -v >&5") 2>&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }
6100 { (ac_try="$ac_compiler -V >&5"
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compiler -V >&5") 2>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }
6112 # If we don't use `.F' as extension, the preprocessor is not run on the
6113 # input file. (Note that this only needs to work for GNU compilers.)
6116 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6117 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6118 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 cat >conftest.$ac_ext <<_ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } && {
6143 test -z "$ac_f77_werror_flag" ||
6144 test ! -s conftest.err
6145 } && test -s conftest.$ac_objext; then
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6158 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6159 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6161 ac_test_FFLAGS=${FFLAGS+set}
6162 ac_save_FFLAGS=$FFLAGS
6164 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6165 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6166 if test "${ac_cv_prog_f77_g+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 cat >conftest.$ac_ext <<_ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (ac_try="$ac_compile"
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_compile") 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } && {
6189 test -z "$ac_f77_werror_flag" ||
6190 test ! -s conftest.err
6191 } && test -s conftest.$ac_objext; then
6192 ac_cv_prog_f77_g=yes
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6204 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6205 if test "$ac_test_FFLAGS" = set; then
6206 FFLAGS=$ac_save_FFLAGS
6207 elif test $ac_cv_prog_f77_g = yes; then
6208 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6214 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6221 G77=`test $ac_compiler_gnu = yes && echo yes`
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6230 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6232 # find the maximum length of command line arguments
6233 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6234 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6235 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 # On DJGPP, this test can blow up pretty badly due to problems in libc
6244 # (any single argument exceeding 2000 bytes causes a buffer overrun
6245 # during glob expansion). Even if it were fixed, the result of this
6246 # check would be larger than it should be.
6247 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6251 # Under GNU Hurd, this test is not required because there is
6252 # no limit to the length of command line arguments.
6253 # Libtool will interpret -1 as no limit whatsoever
6254 lt_cv_sys_max_cmd_len=-1;
6258 # On Win9x/ME, this test blows up -- it succeeds, but takes
6259 # about 5 minutes as the teststring grows exponentially.
6260 # Worse, since 9x/ME are not pre-emptively multitasking,
6261 # you end up with a "frozen" computer, even though with patience
6262 # the test eventually succeeds (with a max line length of 256k).
6263 # Instead, let's just punt: use the minimum linelength reported by
6264 # all of the supported platforms: 8192 (on NT/2K/XP).
6265 lt_cv_sys_max_cmd_len=8192;
6269 # On AmigaOS with pdksh, this test takes hours, literally.
6270 # So we just punt and use a minimum line length of 8192.
6271 lt_cv_sys_max_cmd_len=8192;
6274 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6275 # This has been around since 386BSD, at least. Likely further.
6276 if test -x /sbin/sysctl; then
6277 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6278 elif test -x /usr/sbin/sysctl; then
6279 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6281 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6283 # And add a safety zone
6284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6289 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6290 lt_cv_sys_max_cmd_len=196608
6294 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6295 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6296 # nice to cause kernel panics so lets avoid the loop below.
6297 # First set a reasonable default.
6298 lt_cv_sys_max_cmd_len=16384
6300 if test -x /sbin/sysconfig; then
6301 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6302 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6307 lt_cv_sys_max_cmd_len=102400
6309 sysv5* | sco5v6* | sysv4.2uw2*)
6310 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6311 if test -n "$kargmax"; then
6312 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6314 lt_cv_sys_max_cmd_len=32768
6318 # If test is not a shell built-in, we'll probably end up computing a
6319 # maximum length that is only half of the actual maximum length, but
6321 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6322 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6323 = "XX$teststring") >/dev/null 2>&1 &&
6324 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6325 lt_cv_sys_max_cmd_len=$new_result &&
6326 test $i != 17 # 1/2 MB should be enough
6329 teststring=$teststring$teststring
6332 # Add a significant safety factor because C++ compilers can tack on massive
6333 # amounts of additional arguments before passing them to the linker.
6334 # It appears as though 1/2 is a usable value.
6335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6341 if test -n $lt_cv_sys_max_cmd_len ; then
6342 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6343 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6345 { echo "$as_me:$LINENO: result: none" >&5
6346 echo "${ECHO_T}none" >&6; }
6352 # Check for command to grab the raw symbol name followed by C symbol from nm.
6353 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6354 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6355 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 # These are sane defaults that work on at least a few old systems.
6360 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6362 # Character class describing NM global symbol codes.
6363 symcode='[BCDEGRST]'
6365 # Regexp to match symbols that can be accessed directly from C.
6366 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6368 # Transform an extracted symbol line into a proper C declaration
6369 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6371 # Transform an extracted symbol line into symbol name and symbol address
6372 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'"
6374 # Define system-specific variables.
6379 cygwin* | mingw* | pw32*)
6380 symcode='[ABCDGISTW]'
6382 hpux*) # Its linker distinguishes data from code symbols
6383 if test "$host_cpu" = ia64; then
6384 symcode='[ABCDEGRST]'
6386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6387 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'"
6389 linux* | k*bsd*-gnu)
6390 if test "$host_cpu" = ia64; then
6391 symcode='[ABCDGIRSTW]'
6392 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6393 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'"
6397 symcode='[BCDEGRST]'
6400 symcode='[BCDEGQRST]'
6411 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6419 # Handle CRLF in mingw tool chain
6423 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6427 # If we're using GNU nm, then use its standard symbol codes.
6428 case `$NM -V 2>&1` in
6429 *GNU* | *'with BFD'*)
6430 symcode='[ABCDGIRSTW]' ;;
6433 # Try without a prefix undercore, then with it.
6434 for ac_symprfx in "" "_"; do
6436 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6437 symxfrm="\\1 $ac_symprfx\\2 \\2"
6439 # Write the raw and C identifiers.
6440 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6442 # Check to see that the pipe works correctly.
6446 cat > conftest.$ac_ext <<EOF
6451 void nm_test_func(){}
6455 int main(){nm_test_var='a';nm_test_func();return(0);}
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; then
6463 # Now try to grab the symbols.
6465 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6466 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } && test -s "$nlist"; then
6470 # Try sorting and uniquifying the output.
6471 if sort "$nlist" | uniq > "$nlist"T; then
6472 mv -f "$nlist"T "$nlist"
6477 # Make sure that we snagged all the symbols we need.
6478 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6479 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6480 cat <<EOF > conftest.$ac_ext
6486 # Now generate the symbol file.
6487 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6489 cat <<EOF >> conftest.$ac_ext
6490 #if defined (__STDC__) && __STDC__
6491 # define lt_ptr_t void *
6493 # define lt_ptr_t char *
6497 /* The mapping between symbol names and symbols. */
6502 lt_preloaded_symbols[] =
6505 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6506 cat <<\EOF >> conftest.$ac_ext
6514 # Now try linking the two files.
6515 mv conftest.$ac_objext conftstm.$ac_objext
6516 lt_save_LIBS="$LIBS"
6517 lt_save_CFLAGS="$CFLAGS"
6518 LIBS="conftstm.$ac_objext"
6519 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6527 LIBS="$lt_save_LIBS"
6528 CFLAGS="$lt_save_CFLAGS"
6530 echo "cannot find nm_test_func in $nlist" >&5
6533 echo "cannot find nm_test_var in $nlist" >&5
6536 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6539 echo "$progname: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6542 rm -f conftest* conftst*
6544 # Do not use the global_symbol_pipe unless it works.
6545 if test "$pipe_works" = yes; then
6548 lt_cv_sys_global_symbol_pipe=
6554 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6555 lt_cv_sys_global_symbol_to_cdecl=
6557 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6558 { echo "$as_me:$LINENO: result: failed" >&5
6559 echo "${ECHO_T}failed" >&6; }
6561 { echo "$as_me:$LINENO: result: ok" >&5
6562 echo "${ECHO_T}ok" >&6; }
6565 { echo "$as_me:$LINENO: checking for objdir" >&5
6566 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6567 if test "${lt_cv_objdir+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 rm -f .libs 2>/dev/null
6571 mkdir .libs 2>/dev/null
6572 if test -d .libs; then
6575 # MS-DOS does not allow filenames that begin with a dot.
6578 rmdir .libs 2>/dev/null
6580 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6581 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6582 objdir=$lt_cv_objdir
6590 # AIX sometimes has problems with the GCC collect2 program. For some
6591 # reason, if we set the COLLECT_NAMES environment variable, the problems
6592 # vanish in a puff of smoke.
6593 if test "X${COLLECT_NAMES+set}" != Xset; then
6595 export COLLECT_NAMES
6600 # Sed substitution that helps us do robust quoting. It backslashifies
6601 # metacharacters that are still active within double-quoted strings.
6602 Xsed='sed -e 1s/^X//'
6603 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6605 # Same as above, but do not quote variable references.
6606 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6608 # Sed substitution to delay expansion of an escaped shell variable in a
6609 # double_quote_subst'ed string.
6610 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6612 # Sed substitution to avoid accidental globbing in evaled expressions
6613 no_glob_subst='s/\*/\\\*/g'
6619 default_ofile=libtool
6620 can_build_shared=yes
6622 # All known linkers require a `.a' archive for static linking (except MSVC,
6623 # which needs '.lib').
6625 ltmain="$ac_aux_dir/ltmain.sh"
6626 ofile="$default_ofile"
6627 with_gnu_ld="$lt_cv_prog_gnu_ld"
6629 if test -n "$ac_tool_prefix"; then
6630 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6631 set dummy ${ac_tool_prefix}ar; ac_word=$2
6632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6634 if test "${ac_cv_prog_AR+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 if test -n "$AR"; then
6638 ac_cv_prog_AR="$AR" # Let the user override the test.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_AR="${ac_tool_prefix}ar"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 if test -n "$AR"; then
6659 { echo "$as_me:$LINENO: result: $AR" >&5
6660 echo "${ECHO_T}$AR" >&6; }
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6668 if test -z "$ac_cv_prog_AR"; then
6670 # Extract the first word of "ar", so it can be a program name with args.
6671 set dummy ar; ac_word=$2
6672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6674 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 if test -n "$ac_ct_AR"; then
6678 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_ac_ct_AR="ar"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6698 if test -n "$ac_ct_AR"; then
6699 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6700 echo "${ECHO_T}$ac_ct_AR" >&6; }
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6706 if test "x$ac_ct_AR" = x; then
6709 case $cross_compiling:$ac_tool_warned in
6711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6712 whose name does not start with the host triplet. If you think this
6713 configuration is useful to you, please write to autoconf@gnu.org." >&5
6714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6715 whose name does not start with the host triplet. If you think this
6716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6717 ac_tool_warned=yes ;;
6725 if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 if test -n "$RANLIB"; then
6734 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 RANLIB=$ac_cv_prog_RANLIB
6754 if test -n "$RANLIB"; then
6755 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6756 echo "${ECHO_T}$RANLIB" >&6; }
6758 { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6764 if test -z "$ac_cv_prog_RANLIB"; then
6765 ac_ct_RANLIB=$RANLIB
6766 # Extract the first word of "ranlib", so it can be a program name with args.
6767 set dummy ranlib; 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_RANLIB+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 if test -n "$ac_ct_RANLIB"; then
6774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6794 if test -n "$ac_ct_RANLIB"; then
6795 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6796 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6802 if test "x$ac_ct_RANLIB" = 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 ;;
6815 RANLIB=$ac_ct_RANLIB
6818 RANLIB="$ac_cv_prog_RANLIB"
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 if test -n "$STRIP"; then
6830 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 STRIP=$ac_cv_prog_STRIP
6850 if test -n "$STRIP"; then
6851 { echo "$as_me:$LINENO: result: $STRIP" >&5
6852 echo "${ECHO_T}$STRIP" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6860 if test -z "$ac_cv_prog_STRIP"; then
6862 # Extract the first word of "strip", so it can be a program name with args.
6863 set dummy strip; 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_STRIP+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 if test -n "$ac_ct_STRIP"; then
6870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6890 if test -n "$ac_ct_STRIP"; then
6891 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6892 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6898 if test "x$ac_ct_STRIP" = 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 ;;
6914 STRIP="$ac_cv_prog_STRIP"
6919 old_CFLAGS="$CFLAGS"
6921 # Set sane defaults for various variables
6922 test -z "$AR" && AR=ar
6923 test -z "$AR_FLAGS" && AR_FLAGS=cru
6924 test -z "$AS" && AS=as
6925 test -z "$CC" && CC=cc
6926 test -z "$LTCC" && LTCC=$CC
6927 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6928 test -z "$DLLTOOL" && DLLTOOL=dlltool
6929 test -z "$LD" && LD=ld
6930 test -z "$LN_S" && LN_S="ln -s"
6931 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6932 test -z "$NM" && NM=nm
6933 test -z "$SED" && SED=sed
6934 test -z "$OBJDUMP" && OBJDUMP=objdump
6935 test -z "$RANLIB" && RANLIB=:
6936 test -z "$STRIP" && STRIP=:
6937 test -z "$ac_objext" && ac_objext=o
6939 # Determine commands to create old-style static archives.
6940 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6941 old_postinstall_cmds='chmod 644 $oldlib'
6942 old_postuninstall_cmds=
6944 if test -n "$RANLIB"; then
6947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6953 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6956 for cc_temp in $compiler""; do
6958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6967 # Only perform the check for file, if the check method requires it
6968 case $deplibs_check_method in
6970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6971 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6972 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6973 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6981 lt_save_MAGIC_CMD="$MAGIC_CMD"
6982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6984 for ac_dir in $ac_dummy; do
6986 test -z "$ac_dir" && ac_dir=.
6987 if test -f $ac_dir/${ac_tool_prefix}file; then
6988 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6989 if test -n "$file_magic_test_file"; then
6990 case $deplibs_check_method in
6992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6995 $EGREP "$file_magic_regex" > /dev/null; then
7000 *** Warning: the command libtool uses to detect shared libraries,
7001 *** $file_magic_cmd, produces output that libtool cannot recognize.
7002 *** The result is that libtool may fail to recognize shared libraries
7003 *** as such. This will affect the creation of libtool libraries that
7004 *** depend on shared libraries, but programs linked with such libtool
7005 *** libraries will work regardless of this problem. Nevertheless, you
7006 *** may want to report the problem to your system manager and/or to
7007 *** bug-libtool@gnu.org
7017 MAGIC_CMD="$lt_save_MAGIC_CMD"
7022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7023 if test -n "$MAGIC_CMD"; then
7024 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7025 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7027 { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7031 if test -z "$lt_cv_path_MAGIC_CMD"; then
7032 if test -n "$ac_tool_prefix"; then
7033 { echo "$as_me:$LINENO: checking for file" >&5
7034 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7035 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7043 lt_save_MAGIC_CMD="$MAGIC_CMD"
7044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7046 for ac_dir in $ac_dummy; do
7048 test -z "$ac_dir" && ac_dir=.
7049 if test -f $ac_dir/file; then
7050 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7051 if test -n "$file_magic_test_file"; then
7052 case $deplibs_check_method in
7054 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7057 $EGREP "$file_magic_regex" > /dev/null; then
7062 *** Warning: the command libtool uses to detect shared libraries,
7063 *** $file_magic_cmd, produces output that libtool cannot recognize.
7064 *** The result is that libtool may fail to recognize shared libraries
7065 *** as such. This will affect the creation of libtool libraries that
7066 *** depend on shared libraries, but programs linked with such libtool
7067 *** libraries will work regardless of this problem. Nevertheless, you
7068 *** may want to report the problem to your system manager and/or to
7069 *** bug-libtool@gnu.org
7079 MAGIC_CMD="$lt_save_MAGIC_CMD"
7084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7085 if test -n "$MAGIC_CMD"; then
7086 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7087 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7089 { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7105 # Check whether --enable-libtool-lock was given.
7106 if test "${enable_libtool_lock+set}" = set; then
7107 enableval=$enable_libtool_lock;
7110 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7113 # Check whether --with-pic was given.
7114 if test "${with_pic+set}" = set; then
7115 withval=$with_pic; pic_mode="$withval"
7120 test -z "$pic_mode" && pic_mode=default
7122 # Use C for the default configuration in the libtool script
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132 # Source file extension for C test sources.
7135 # Object file extension for compiled C test sources.
7139 # Code to be used in simple compile tests
7140 lt_simple_compile_test_code="int some_variable = 0;\n"
7142 # Code to be used in simple link tests
7143 lt_simple_link_test_code='int main(){return(0);}\n'
7146 # If no C compiler was specified, use CC.
7149 # If no C compiler flags were specified, use CFLAGS.
7150 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7152 # Allow CC to be a program name with arguments.
7156 # save warnings/boilerplate of simple test code
7157 ac_outfile=conftest.$ac_objext
7158 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7159 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7160 _lt_compiler_boilerplate=`cat conftest.err`
7163 ac_outfile=conftest.$ac_objext
7164 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7165 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7166 _lt_linker_boilerplate=`cat conftest.err`
7171 lt_prog_compiler_no_builtin_flag=
7173 if test "$GCC" = yes; then
7174 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7177 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7178 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7179 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 lt_cv_prog_compiler_rtti_exceptions=no
7183 ac_outfile=conftest.$ac_objext
7184 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7185 lt_compiler_flag="-fno-rtti -fno-exceptions"
7186 # Insert the option either (1) after the last *FLAGS variable, or
7187 # (2) before a word containing "conftest.", or (3) at the end.
7188 # Note that $ac_compile itself does not contain backslashes and begins
7189 # with a dollar sign (not a hyphen), so the echo should work correctly.
7190 # The option is referenced via a variable to avoid confusing sed.
7191 lt_compile=`echo "$ac_compile" | $SED \
7192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7194 -e 's:$: $lt_compiler_flag:'`
7195 (eval echo "\"\$as_me:7195: $lt_compile\"" >&5)
7196 (eval "$lt_compile" 2>conftest.err)
7198 cat conftest.err >&5
7199 echo "$as_me:7199: \$? = $ac_status" >&5
7200 if (exit $ac_status) && test -s "$ac_outfile"; then
7201 # The compiler can only warn and ignore the option if not recognized
7202 # So say no if there are warnings other than the usual output.
7203 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7206 lt_cv_prog_compiler_rtti_exceptions=yes
7212 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7213 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7215 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7216 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7223 lt_prog_compiler_wl=
7224 lt_prog_compiler_pic=
7225 lt_prog_compiler_static=
7227 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7228 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7230 if test "$GCC" = yes; then
7231 lt_prog_compiler_wl='-Wl,'
7232 lt_prog_compiler_static='-static'
7236 # All AIX code is PIC.
7237 if test "$host_cpu" = ia64; then
7238 # AIX 5 now supports IA64 processor
7239 lt_prog_compiler_static='-Bstatic'
7244 # FIXME: we need at least 68020 code to build shared libraries, but
7245 # adding the `-m68020' flag to GCC prevents building anything better,
7247 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7250 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7251 # PIC is the default for these OSes.
7254 mingw* | pw32* | os2*)
7255 # This hack is so that the source file can tell whether it is being
7256 # built for inclusion in a dll (and should export symbols for example).
7257 lt_prog_compiler_pic='-DDLL_EXPORT'
7260 darwin* | rhapsody*)
7261 # PIC is the default on this platform
7262 # Common symbols not allowed in MH_DYLIB files
7263 lt_prog_compiler_pic='-fno-common'
7267 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7268 # Instead, we relocate shared libraries at runtime.
7272 # Just because we use GCC doesn't mean we suddenly get shared libraries
7273 # on systems that don't support them.
7274 lt_prog_compiler_can_build_shared=no
7279 if test -d /usr/nec; then
7280 lt_prog_compiler_pic=-Kconform_pic
7285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7292 lt_prog_compiler_pic='-fPIC'
7298 lt_prog_compiler_pic='-fPIC'
7302 # PORTME Check for flag to pass linker flags through the system compiler.
7305 lt_prog_compiler_wl='-Wl,'
7306 if test "$host_cpu" = ia64; then
7307 # AIX 5 now supports IA64 processor
7308 lt_prog_compiler_static='-Bstatic'
7310 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7314 # PIC is the default on this platform
7315 # Common symbols not allowed in MH_DYLIB files
7316 case $cc_basename in
7318 lt_prog_compiler_pic='-qnocommon'
7319 lt_prog_compiler_wl='-Wl,'
7324 mingw* | pw32* | os2*)
7325 # This hack is so that the source file can tell whether it is being
7326 # built for inclusion in a dll (and should export symbols for example).
7327 lt_prog_compiler_pic='-DDLL_EXPORT'
7330 hpux9* | hpux10* | hpux11*)
7331 lt_prog_compiler_wl='-Wl,'
7332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7339 lt_prog_compiler_pic='+Z'
7342 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7343 lt_prog_compiler_static='${wl}-a ${wl}archive'
7346 irix5* | irix6* | nonstopux*)
7347 lt_prog_compiler_wl='-Wl,'
7348 # PIC (with -KPIC) is the default.
7349 lt_prog_compiler_static='-non_shared'
7353 lt_prog_compiler_pic='-KPIC'
7354 lt_prog_compiler_static='-Bstatic'
7357 linux* | k*bsd*-gnu)
7358 case $cc_basename in
7360 lt_prog_compiler_wl='-Wl,'
7361 lt_prog_compiler_pic='-KPIC'
7362 lt_prog_compiler_static='-static'
7364 pgcc* | pgf77* | pgf90* | pgf95*)
7365 # Portland Group compilers (*not* the Pentium gcc compiler,
7366 # which looks to be a dead project)
7367 lt_prog_compiler_wl='-Wl,'
7368 lt_prog_compiler_pic='-fpic'
7369 lt_prog_compiler_static='-Bstatic'
7372 lt_prog_compiler_wl='-Wl,'
7373 # All Alpha code is PIC.
7374 lt_prog_compiler_static='-non_shared'
7379 osf3* | osf4* | osf5*)
7380 lt_prog_compiler_wl='-Wl,'
7381 # All OSF/1 code is PIC.
7382 lt_prog_compiler_static='-non_shared'
7386 lt_prog_compiler_pic='-KPIC'
7387 lt_prog_compiler_static='-Bstatic'
7388 case $cc_basename in
7390 lt_prog_compiler_wl='-Qoption ld ';;
7392 lt_prog_compiler_wl='-Wl,';;
7397 lt_prog_compiler_wl='-Qoption ld '
7398 lt_prog_compiler_pic='-PIC'
7399 lt_prog_compiler_static='-Bstatic'
7402 sysv4 | sysv4.2uw2* | sysv4.3*)
7403 lt_prog_compiler_wl='-Wl,'
7404 lt_prog_compiler_pic='-KPIC'
7405 lt_prog_compiler_static='-Bstatic'
7409 if test -d /usr/nec ;then
7410 lt_prog_compiler_pic='-Kconform_pic'
7411 lt_prog_compiler_static='-Bstatic'
7415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7416 lt_prog_compiler_wl='-Wl,'
7417 lt_prog_compiler_pic='-KPIC'
7418 lt_prog_compiler_static='-Bstatic'
7422 lt_prog_compiler_wl='-Wl,'
7423 lt_prog_compiler_can_build_shared=no
7427 lt_prog_compiler_pic='-pic'
7428 lt_prog_compiler_static='-Bstatic'
7432 lt_prog_compiler_can_build_shared=no
7437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7438 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7441 # Check to make sure the PIC flag actually works.
7443 if test -n "$lt_prog_compiler_pic"; then
7445 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7447 if test "${lt_prog_compiler_pic_works+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 lt_prog_compiler_pic_works=no
7451 ac_outfile=conftest.$ac_objext
7452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7453 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7454 # Insert the option either (1) after the last *FLAGS variable, or
7455 # (2) before a word containing "conftest.", or (3) at the end.
7456 # Note that $ac_compile itself does not contain backslashes and begins
7457 # with a dollar sign (not a hyphen), so the echo should work correctly.
7458 # The option is referenced via a variable to avoid confusing sed.
7459 lt_compile=`echo "$ac_compile" | $SED \
7460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7462 -e 's:$: $lt_compiler_flag:'`
7463 (eval echo "\"\$as_me:7463: $lt_compile\"" >&5)
7464 (eval "$lt_compile" 2>conftest.err)
7466 cat conftest.err >&5
7467 echo "$as_me:7467: \$? = $ac_status" >&5
7468 if (exit $ac_status) && test -s "$ac_outfile"; then
7469 # The compiler can only warn and ignore the option if not recognized
7470 # So say no if there are warnings other than the usual output.
7471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7474 lt_prog_compiler_pic_works=yes
7480 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7481 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7483 if test x"$lt_prog_compiler_pic_works" = xyes; then
7484 case $lt_prog_compiler_pic in
7486 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7489 lt_prog_compiler_pic=
7490 lt_prog_compiler_can_build_shared=no
7495 # For platforms which do not support PIC, -DPIC is meaningless:
7497 lt_prog_compiler_pic=
7500 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7505 # Check to make sure the static flag actually works.
7507 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7508 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7509 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7510 if test "${lt_prog_compiler_static_works+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 lt_prog_compiler_static_works=no
7514 save_LDFLAGS="$LDFLAGS"
7515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7516 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7518 # The linker can only warn and ignore the option if not recognized
7519 # So say no if there are warnings
7520 if test -s conftest.err; then
7521 # Append any errors to the config.log.
7522 cat conftest.err 1>&5
7523 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7525 if diff conftest.exp conftest.er2 >/dev/null; then
7526 lt_prog_compiler_static_works=yes
7529 lt_prog_compiler_static_works=yes
7533 LDFLAGS="$save_LDFLAGS"
7536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7537 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7539 if test x"$lt_prog_compiler_static_works" = xyes; then
7542 lt_prog_compiler_static=
7546 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7547 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 lt_cv_prog_compiler_c_o=no
7552 $rm -r conftest 2>/dev/null
7556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7558 lt_compiler_flag="-o out/conftest2.$ac_objext"
7559 # Insert the option either (1) after the last *FLAGS variable, or
7560 # (2) before a word containing "conftest.", or (3) at the end.
7561 # Note that $ac_compile itself does not contain backslashes and begins
7562 # with a dollar sign (not a hyphen), so the echo should work correctly.
7563 lt_compile=`echo "$ac_compile" | $SED \
7564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7566 -e 's:$: $lt_compiler_flag:'`
7567 (eval echo "\"\$as_me:7567: $lt_compile\"" >&5)
7568 (eval "$lt_compile" 2>out/conftest.err)
7570 cat out/conftest.err >&5
7571 echo "$as_me:7571: \$? = $ac_status" >&5
7572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7574 # The compiler can only warn and ignore the option if not recognized
7575 # So say no if there are warnings
7576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7579 lt_cv_prog_compiler_c_o=yes
7584 # SGI C++ compiler will create directory out/ii_files/ for
7585 # template instantiation
7586 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7587 $rm out/* && rmdir out
7593 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7594 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7597 hard_links="nottested"
7598 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7599 # do not overwrite the value of need_locks provided by the user
7600 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7601 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7606 ln conftest.a conftest.b 2>&5 || hard_links=no
7607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7608 { echo "$as_me:$LINENO: result: $hard_links" >&5
7609 echo "${ECHO_T}$hard_links" >&6; }
7610 if test "$hard_links" = no; then
7611 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7612 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7619 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7623 allow_undefined_flag=
7624 enable_shared_with_static_runtimes=no
7626 archive_expsym_cmds=
7627 old_archive_From_new_cmds=
7628 old_archive_from_expsyms_cmds=
7629 export_dynamic_flag_spec=
7630 whole_archive_flag_spec=
7631 thread_safe_flag_spec=
7632 hardcode_libdir_flag_spec=
7633 hardcode_libdir_flag_spec_ld=
7634 hardcode_libdir_separator=
7637 hardcode_shlibpath_var=unsupported
7638 link_all_deplibs=unknown
7639 hardcode_automatic=no
7642 always_export_symbols=no
7643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7644 # include_expsyms should be a list of space-separated symbols to be *always*
7645 # included in the symbol list
7647 # exclude_expsyms can be an extended regexp of symbols to exclude
7648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7650 # as well as any symbol that contains `d'.
7651 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7653 # platforms (ab)use it in PIC code, but their linkers get confused if
7654 # the symbol is explicitly referenced. Since portable code cannot
7655 # rely on this symbol name, it's probably fine to never include it in
7656 # preloaded symbol tables.
7657 extract_expsyms_cmds=
7658 # Just being paranoid about ensuring that cc_basename is set.
7659 for cc_temp in $compiler""; do
7661 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7662 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7667 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7670 cygwin* | mingw* | pw32*)
7671 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7672 # When not using gcc, we currently assume that we are using
7673 # Microsoft Visual C++.
7674 if test "$GCC" != yes; then
7679 # we just hope/assume this is gcc and not c89 (= MSVC++)
7688 if test "$with_gnu_ld" = yes; then
7689 # If archive_cmds runs LD, not CC, wlarc should be empty
7692 # Set some defaults for GNU ld with shared library support. These
7693 # are reset later if shared libraries are not supported. Putting them
7694 # here allows them to be overridden if necessary.
7695 runpath_var=LD_RUN_PATH
7696 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7697 export_dynamic_flag_spec='${wl}--export-dynamic'
7698 # ancient GNU ld didn't support --whole-archive et. al.
7699 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7700 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7702 whole_archive_flag_spec=
7704 supports_anon_versioning=no
7705 case `$LD -v 2>/dev/null` in
7706 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7709 *\ 2.11.*) ;; # other 2.11 versions
7710 *) supports_anon_versioning=yes ;;
7713 # See if GNU ld supports shared libraries.
7715 aix3* | aix4* | aix5*)
7716 # On AIX/PPC, the GNU linker is very broken
7717 if test "$host_cpu" != ia64; then
7721 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7722 *** to be unable to reliably create shared libraries on AIX.
7723 *** Therefore, libtool is disabling shared libraries support. If you
7724 *** really care for shared libraries, you may want to modify your PATH
7725 *** so that a non-GNU linker is found, and then restart.
7732 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)'
7733 hardcode_libdir_flag_spec='-L$libdir'
7734 hardcode_minus_L=yes
7736 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7737 # that the semantics of dynamic libraries on AmigaOS, at least up
7738 # to version 4, is to share data among multiple programs linked
7739 # with the same dynamic library. Since this doesn't match the
7740 # behavior of shared libraries on other platforms, we can't use
7746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7747 allow_undefined_flag=unsupported
7748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7749 # support --undefined. This deserves some investigation. FIXME
7750 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7756 cygwin* | mingw* | pw32*)
7757 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7758 # as there is no search path for DLLs.
7759 hardcode_libdir_flag_spec='-L$libdir'
7760 allow_undefined_flag=unsupported
7761 always_export_symbols=no
7762 enable_shared_with_static_runtimes=yes
7763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7765 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7767 # If the export-symbols file already is a .def file (1st line
7768 # is EXPORTS), use it as is; otherwise, prepend...
7769 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7770 cp $export_symbols $output_objdir/$soname.def;
7772 echo EXPORTS > $output_objdir/$soname.def;
7773 cat $export_symbols >> $output_objdir/$soname.def;
7775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7783 hardcode_shlibpath_var=no
7784 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7785 export_dynamic_flag_spec='${wl}-E'
7786 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7787 # Instead, shared libraries are loaded at an image base (0x10000000 by
7788 # default) and relocated if they conflict, which is a slow very memory
7789 # consuming and fragmenting process. To avoid this, we pick a random,
7790 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7791 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7793 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7796 linux* | k*bsd*-gnu)
7797 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7799 case $cc_basename,$host_cpu in
7800 pgcc*) # Portland Group C compiler
7801 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'
7802 tmp_addflag=' $pic_flag'
7804 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7805 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'
7806 tmp_addflag=' $pic_flag -Mnomain' ;;
7807 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7808 tmp_addflag=' -i_dynamic' ;;
7809 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7810 tmp_addflag=' -i_dynamic -nofor_main' ;;
7811 ifc* | ifort*) # Intel Fortran compiler
7812 tmp_addflag=' -nofor_main' ;;
7814 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7816 if test $supports_anon_versioning = yes; then
7817 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7819 $echo "local: *; };" >> $output_objdir/$libname.ver~
7820 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7828 netbsd* | netbsdelf*-gnu)
7829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7830 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7839 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7843 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7844 *** create shared libraries on Solaris systems. Therefore, libtool
7845 *** is disabling shared libraries support. We urge you to upgrade GNU
7846 *** binutils to release 2.9.1 or newer. Another option is to modify
7847 *** your PATH or compiler configuration so that the native linker is
7848 *** used, and then restart.
7851 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7853 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7860 case `$LD -v 2>&1` in
7861 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7865 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7866 *** reliably create shared libraries on SCO systems. Therefore, libtool
7867 *** is disabling shared libraries support. We urge you to upgrade GNU
7868 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7869 *** your PATH or compiler configuration so that the native linker is
7870 *** used, and then restart.
7875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7876 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7878 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7887 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7890 hardcode_shlibpath_var=no
7894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7896 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7903 if test "$ld_shlibs" = no; then
7905 hardcode_libdir_flag_spec=
7906 export_dynamic_flag_spec=
7907 whole_archive_flag_spec=
7910 # PORTME fill in a description of your system's linker (not GNU ld)
7913 allow_undefined_flag=unsupported
7914 always_export_symbols=yes
7915 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'
7916 # Note: this linker hardcodes the directories in LIBPATH if there
7917 # are no directories specified by -L.
7918 hardcode_minus_L=yes
7919 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7920 # Neither direct hardcoding nor static linking is supported with a
7922 hardcode_direct=unsupported
7927 if test "$host_cpu" = ia64; then
7928 # On IA64, the linker does run time linking by default, so we don't
7929 # have to do anything special.
7930 aix_use_runtimelinking=no
7931 exp_sym_flag='-Bexport'
7934 # If we're using GNU nm, then we don't want the "-C" option.
7935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7936 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7937 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'
7939 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'
7941 aix_use_runtimelinking=no
7943 # Test if we are trying to use run time linking or normal
7944 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7945 # need to do runtime linking.
7946 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7947 for ld_flag in $LDFLAGS; do
7948 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7949 aix_use_runtimelinking=yes
7956 exp_sym_flag='-bexport'
7957 no_entry_flag='-bnoentry'
7960 # When large executables or shared objects are built, AIX ld can
7961 # have problems creating the table of contents. If linking a library
7962 # or program results in "error TOC overflow" add -mminimal-toc to
7963 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7964 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7968 hardcode_libdir_separator=':'
7969 link_all_deplibs=yes
7971 if test "$GCC" = yes; then
7972 case $host_os in aix4.[012]|aix4.[012].*)
7973 # We only want to do this on AIX 4.2 and lower, the check
7974 # below for broken collect2 doesn't work under 4.3+
7975 collect2name=`${CC} -print-prog-name=collect2`
7976 if test -f "$collect2name" && \
7977 strings "$collect2name" | grep resolve_lib_name >/dev/null
7979 # We have reworked collect2
7982 # We have old collect2
7983 hardcode_direct=unsupported
7984 # It fails to find uninstalled libraries when the uninstalled
7985 # path is not listed in the libpath. Setting hardcode_minus_L
7986 # to unsupported forces relinking
7987 hardcode_minus_L=yes
7988 hardcode_libdir_flag_spec='-L$libdir'
7989 hardcode_libdir_separator=
7993 shared_flag='-shared'
7994 if test "$aix_use_runtimelinking" = yes; then
7995 shared_flag="$shared_flag "'${wl}-G'
7999 if test "$host_cpu" = ia64; then
8000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8001 # chokes on -Wl,-G. The following line is correct:
8004 if test "$aix_use_runtimelinking" = yes; then
8005 shared_flag='${wl}-G'
8007 shared_flag='${wl}-bM:SRE'
8012 # It seems that -bexpall does not export symbols beginning with
8013 # underscore (_), so it is better to generate a list of symbols to export.
8014 always_export_symbols=yes
8015 if test "$aix_use_runtimelinking" = yes; then
8016 # Warning - without using the other runtime loading flags (-brtl),
8017 # -berok will link without error, but may produce a broken library.
8018 allow_undefined_flag='-berok'
8019 # Determine the default libpath from the value encoded in an empty executable.
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest$ac_exeext &&
8052 $as_test_x conftest$ac_exeext; then
8054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8056 # Check for a 64-bit object if we didn't find anything.
8057 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; }
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8067 conftest$ac_exeext conftest.$ac_ext
8068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8070 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8071 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8073 if test "$host_cpu" = ia64; then
8074 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8075 allow_undefined_flag="-z nodefs"
8076 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8078 # Determine the default libpath from the value encoded in an empty executable.
8079 cat >conftest.$ac_ext <<_ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (ac_try="$ac_link"
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_link") 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } && {
8108 test -z "$ac_c_werror_flag" ||
8109 test ! -s conftest.err
8110 } && test -s conftest$ac_exeext &&
8111 $as_test_x conftest$ac_exeext; then
8113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8115 # Check for a 64-bit object if we didn't find anything.
8116 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; }
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8126 conftest$ac_exeext conftest.$ac_ext
8127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8130 # Warning - without using the other run time loading flags,
8131 # -berok will link without error, but may produce a broken library.
8132 no_undefined_flag=' ${wl}-bernotok'
8133 allow_undefined_flag=' ${wl}-berok'
8134 # Exported symbols can be pulled into shared objects from archives
8135 whole_archive_flag_spec='$convenience'
8136 archive_cmds_need_lc=yes
8137 # This is similar to how AIX traditionally builds its shared libraries.
8138 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8144 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)'
8145 hardcode_libdir_flag_spec='-L$libdir'
8146 hardcode_minus_L=yes
8147 # see comment about different semantics on the GNU ld section
8152 export_dynamic_flag_spec=-rdynamic
8155 cygwin* | mingw* | pw32*)
8156 # When not using gcc, we currently assume that we are using
8157 # Microsoft Visual C++.
8158 # hardcode_libdir_flag_spec is actually meaningless, as there is
8159 # no search path for DLLs.
8160 hardcode_libdir_flag_spec=' '
8161 allow_undefined_flag=unsupported
8162 # Tell ltmain to make .lib files, not .a files.
8164 # Tell ltmain to make .dll files, not .so files.
8166 # FIXME: Setting linknames here is a bad hack.
8167 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8168 # The linker will automatically build a .lib file if we build a DLL.
8169 old_archive_From_new_cmds='true'
8170 # FIXME: Should let the user specify the lib program.
8171 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8172 fix_srcfile_path='`cygpath -w "$srcfile"`'
8173 enable_shared_with_static_runtimes=yes
8176 darwin* | rhapsody*)
8178 rhapsody* | darwin1.[012])
8179 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8182 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8183 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8185 case ${MACOSX_DEPLOYMENT_TARGET} in
8187 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8190 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8196 archive_cmds_need_lc=no
8198 hardcode_automatic=yes
8199 hardcode_shlibpath_var=unsupported
8200 whole_archive_flag_spec=''
8201 link_all_deplibs=yes
8202 if test "$GCC" = yes ; then
8203 output_verbose_link_cmd='echo'
8204 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8205 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8207 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}'
8208 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}'
8210 case $cc_basename in
8212 output_verbose_link_cmd='echo'
8213 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8214 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8216 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}'
8217 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}'
8227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8228 hardcode_libdir_flag_spec='-L$libdir'
8229 hardcode_shlibpath_var=no
8236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8237 # support. Future versions do this automatically, but an explicit c++rt0.o
8238 # does not break anything, and helps significantly (at the cost of a little
8241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8242 hardcode_libdir_flag_spec='-R$libdir'
8244 hardcode_shlibpath_var=no
8247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8251 hardcode_minus_L=yes
8252 hardcode_shlibpath_var=no
8255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8256 freebsd* | dragonfly*)
8257 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8258 hardcode_libdir_flag_spec='-R$libdir'
8260 hardcode_shlibpath_var=no
8264 if test "$GCC" = yes; then
8265 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'
8267 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'
8269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8270 hardcode_libdir_separator=:
8273 # hardcode_minus_L: Not really in the search PATH,
8274 # but as the default location of the library.
8275 hardcode_minus_L=yes
8276 export_dynamic_flag_spec='${wl}-E'
8280 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8285 if test "$with_gnu_ld" = no; then
8286 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8287 hardcode_libdir_separator=:
8290 export_dynamic_flag_spec='${wl}-E'
8292 # hardcode_minus_L: Not really in the search PATH,
8293 # but as the default location of the library.
8294 hardcode_minus_L=yes
8299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8302 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8305 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8308 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8314 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8324 if test "$with_gnu_ld" = no; then
8325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8326 hardcode_libdir_separator=:
8330 hardcode_libdir_flag_spec_ld='+b $libdir'
8332 hardcode_shlibpath_var=no
8336 export_dynamic_flag_spec='${wl}-E'
8338 # hardcode_minus_L: Not really in the search PATH,
8339 # but as the default location of the library.
8340 hardcode_minus_L=yes
8346 irix5* | irix6* | nonstopux*)
8347 if test "$GCC" = yes; then
8348 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'
8350 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'
8351 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8354 hardcode_libdir_separator=:
8355 link_all_deplibs=yes
8358 netbsd* | netbsdelf*-gnu)
8359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8362 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8364 hardcode_libdir_flag_spec='-R$libdir'
8366 hardcode_shlibpath_var=no
8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8373 hardcode_libdir_separator=:
8374 hardcode_shlibpath_var=no
8379 hardcode_shlibpath_var=no
8380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8382 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8384 export_dynamic_flag_spec='${wl}-E'
8387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8389 hardcode_libdir_flag_spec='-R$libdir'
8392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8400 hardcode_libdir_flag_spec='-L$libdir'
8401 hardcode_minus_L=yes
8402 allow_undefined_flag=unsupported
8403 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'
8404 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8408 if test "$GCC" = yes; then
8409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8410 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'
8412 allow_undefined_flag=' -expect_unresolved \*'
8413 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'
8415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8416 hardcode_libdir_separator=:
8419 osf4* | osf5*) # as osf3* with the addition of -msym flag
8420 if test "$GCC" = yes; then
8421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8422 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'
8423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8425 allow_undefined_flag=' -expect_unresolved \*'
8426 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'
8427 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8428 $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'
8430 # Both c and cxx compiler support -rpath directly
8431 hardcode_libdir_flag_spec='-rpath $libdir'
8433 hardcode_libdir_separator=:
8437 no_undefined_flag=' -z text'
8438 if test "$GCC" = yes; then
8440 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8442 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8449 hardcode_libdir_flag_spec='-R$libdir'
8450 hardcode_shlibpath_var=no
8452 solaris2.[0-5] | solaris2.[0-5].*) ;;
8454 # The compiler driver will combine linker options so we
8455 # cannot just pass the convience library names through
8456 # without $wl, iff we do not link with $LD.
8457 # Luckily, gcc supports the same syntax we need for Sun Studio.
8458 # Supported since Solaris 2.6 (maybe 2.5.1?)
8461 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8463 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' ;;
8466 link_all_deplibs=yes
8470 if test "x$host_vendor" = xsequent; then
8471 # Use $CC to link under sequent, because it throws in some extra .o
8472 # files that make .init and .fini sections work.
8473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_libdir_flag_spec='-L$libdir'
8479 hardcode_minus_L=yes
8480 hardcode_shlibpath_var=no
8484 case $host_vendor in
8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487 hardcode_direct=yes # is this really true???
8490 ## LD is ld it makes a PLAMLIB
8491 ## CC just makes a GrossModule.
8492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8493 reload_cmds='$CC -r -o $output$reload_objs'
8497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8501 runpath_var='LD_RUN_PATH'
8502 hardcode_shlibpath_var=no
8506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507 hardcode_shlibpath_var=no
8508 export_dynamic_flag_spec='-Bexport'
8512 if test -d /usr/nec; then
8513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514 hardcode_shlibpath_var=no
8515 runpath_var=LD_RUN_PATH
8516 hardcode_runpath_var=yes
8521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8522 no_undefined_flag='${wl}-z,text'
8523 archive_cmds_need_lc=no
8524 hardcode_shlibpath_var=no
8525 runpath_var='LD_RUN_PATH'
8527 if test "$GCC" = yes; then
8528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 sysv5* | sco3.2v5* | sco5v6*)
8537 # Note: We can NOT use -z defs as we might desire, because we do not
8538 # link with -lc, and that would cause any symbols used from libc to
8539 # always be unresolved, which means just about no library would
8540 # ever link correctly. If we're not using GNU ld we use -z text
8541 # though, which does catch some bad symbols but isn't as heavy-handed
8543 no_undefined_flag='${wl}-z,text'
8544 allow_undefined_flag='${wl}-z,nodefs'
8545 archive_cmds_need_lc=no
8546 hardcode_shlibpath_var=no
8547 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8548 hardcode_libdir_separator=':'
8549 link_all_deplibs=yes
8550 export_dynamic_flag_spec='${wl}-Bexport'
8551 runpath_var='LD_RUN_PATH'
8553 if test "$GCC" = yes; then
8554 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564 hardcode_libdir_flag_spec='-L$libdir'
8565 hardcode_shlibpath_var=no
8574 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8575 echo "${ECHO_T}$ld_shlibs" >&6; }
8576 test "$ld_shlibs" = no && can_build_shared=no
8579 # Do we need to explicitly link libc?
8581 case "x$archive_cmds_need_lc" in
8583 # Assume -lc should be added
8584 archive_cmds_need_lc=yes
8586 if test "$enable_shared" = yes && test "$GCC" = yes; then
8587 case $archive_cmds in
8589 # FIXME: we may have to deal with multi-command sequences.
8592 # Test whether the compiler implicitly links with -lc since on some
8593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8594 # to ld, don't add -lc before -lgcc.
8595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } 2>conftest.err; then
8607 libobjs=conftest.$ac_objext
8609 wl=$lt_prog_compiler_wl
8610 pic_flag=$lt_prog_compiler_pic
8616 lt_save_allow_undefined_flag=$allow_undefined_flag
8617 allow_undefined_flag=
8618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8619 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }
8624 archive_cmds_need_lc=no
8626 archive_cmds_need_lc=yes
8628 allow_undefined_flag=$lt_save_allow_undefined_flag
8630 cat conftest.err 1>&5
8633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8634 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8641 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8644 libname_spec='lib$name'
8652 shlibpath_overrides_runpath=unknown
8654 dynamic_linker="$host_os ld.so"
8655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8656 if test "$GCC" = yes; then
8657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8658 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8659 # if the path contains ";" then we assume it to be the separator
8660 # otherwise default to the standard path separator (i.e. ":") - it is
8661 # assumed that no part of a normal pathname contains ";" but that should
8662 # okay in the real world where ";" in dirpaths is itself problematic.
8663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8670 need_lib_prefix=unknown
8671 hardcode_into_libs=no
8673 # when you set need_version to no, make sure it does not cause -set_version
8674 # flags to be left without arguments
8675 need_version=unknown
8680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8681 shlibpath_var=LIBPATH
8683 # AIX 3 has no versioning support, so we append a major version to the name.
8684 soname_spec='${libname}${release}${shared_ext}$major'
8691 hardcode_into_libs=yes
8692 if test "$host_cpu" = ia64; then
8693 # AIX 5 supports IA64
8694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8695 shlibpath_var=LD_LIBRARY_PATH
8697 # With GCC up to 2.95.x, collect2 would create an import file
8698 # for dependence libraries. The import file would start with
8699 # the line `#! .'. This would cause the generated library to
8700 # depend on `.', always an invalid library. This was fixed in
8701 # development snapshots of GCC prior to 3.0.
8703 aix4 | aix4.[01] | aix4.[01].*)
8704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8714 # soname into executable. Probably we can add versioning support to
8715 # collect2, so additional links can be useful in future.
8716 if test "$aix_use_runtimelinking" = yes; then
8717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8718 # instead of lib<name>.a to let people know that these are not
8719 # typical AIX shared libraries.
8720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8722 # We preserve .a as extension for shared libraries through AIX4.2
8723 # and later when we are not doing run time linking.
8724 library_names_spec='${libname}${release}.a $libname.a'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8727 shlibpath_var=LIBPATH
8732 library_names_spec='$libname.ixlibrary $libname.a'
8733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8734 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'
8738 library_names_spec='${libname}${shared_ext}'
8739 dynamic_linker="$host_os ld.so"
8740 shlibpath_var=LIBRARY_PATH
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8749 shlibpath_var=LD_LIBRARY_PATH
8750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8752 # the default ld.so.conf also contains /usr/contrib/lib and
8753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8754 # libtool to hard-code these into programs
8757 cygwin* | mingw* | pw32*)
8758 version_type=windows
8763 case $GCC,$host_os in
8764 yes,cygwin* | yes,mingw* | yes,pw32*)
8765 library_names_spec='$libname.dll.a'
8766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8767 postinstall_cmds='base_file=`basename \${file}`~
8768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8769 dldir=$destdir/`dirname \$dlpath`~
8770 test -d \$dldir || mkdir -p \$dldir~
8771 $install_prog $dir/$dlname \$dldir/$dlname~
8772 chmod a+x \$dldir/$dlname'
8773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8774 dlpath=$dir/\$dldll~
8776 shlibpath_overrides_runpath=yes
8780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8781 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8782 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8785 # MinGW DLLs use traditional 'lib' prefix
8786 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8789 # It is most probably a Windows format PATH printed by
8790 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8791 # path with ; separators, and with drive letters. We can handle the
8792 # drive letters (cygwin fileutils understands them), so leave them,
8793 # especially as we might pass files found there to a mingw objdump,
8794 # which wouldn't understand a cygwinified path. Ahh.
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8801 # pw32 DLLs use 'pw' prefix rather than 'lib'
8802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8811 dynamic_linker='Win32 ld.exe'
8812 # FIXME: first we should search . and the directory the executable is in
8816 darwin* | rhapsody*)
8817 dynamic_linker="$host_os dyld"
8821 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8822 soname_spec='${libname}${release}${major}$shared_ext'
8823 shlibpath_overrides_runpath=yes
8824 shlibpath_var=DYLD_LIBRARY_PATH
8825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8826 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8827 if test "$GCC" = yes; then
8828 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"`
8830 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 shlibpath_var=LD_LIBRARY_PATH
8848 freebsd* | dragonfly*)
8849 # DragonFly does not have aout. When/if they implement a new
8850 # versioning mechanism, adjust this.
8851 if test -x /usr/bin/objformat; then
8852 objformat=`/usr/bin/objformat`
8855 freebsd[123]*) objformat=aout ;;
8859 version_type=freebsd-$objformat
8860 case $version_type in
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8871 shlibpath_var=LD_LIBRARY_PATH
8874 shlibpath_overrides_runpath=yes
8876 freebsd3.[01]* | freebsdelf3.[01]*)
8877 shlibpath_overrides_runpath=yes
8878 hardcode_into_libs=yes
8880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8882 shlibpath_overrides_runpath=no
8883 hardcode_into_libs=yes
8885 freebsd*) # from 4.6 on
8886 shlibpath_overrides_runpath=yes
8887 hardcode_into_libs=yes
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 hardcode_into_libs=yes
8902 hpux9* | hpux10* | hpux11*)
8903 # Give a soname corresponding to the major version so that dld.sl refuses to
8904 # link against other versions.
8911 hardcode_into_libs=yes
8912 dynamic_linker="$host_os dld.so"
8913 shlibpath_var=LD_LIBRARY_PATH
8914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916 soname_spec='${libname}${release}${shared_ext}$major'
8917 if test "X$HPUX_IA64_MODE" = X32; then
8918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8926 hardcode_into_libs=yes
8927 dynamic_linker="$host_os dld.sl"
8928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8937 dynamic_linker="$host_os dld.sl"
8938 shlibpath_var=SHLIB_PATH
8939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8944 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8945 postinstall_cmds='chmod 555 $lib'
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8960 irix5* | irix6* | nonstopux*)
8962 nonstopux*) version_type=nonstopux ;;
8964 if test "$lt_cv_prog_gnu_ld" = yes; then
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8975 irix5* | nonstopux*)
8979 case $LD in # libtool.m4 will add one of these switches to LD
8980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8981 libsuff= shlibsuff= libmagic=32-bit;;
8982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8983 libsuff=32 shlibsuff=N32 libmagic=N32;;
8984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8986 *) libsuff= shlibsuff= libmagic=never-match;;
8990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8991 shlibpath_overrides_runpath=no
8992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8994 hardcode_into_libs=yes
8997 # No shared lib support for Linux oldld, aout, or coff.
8998 linux*oldld* | linux*aout* | linux*coff*)
9002 # This must be Linux ELF.
9003 linux* | k*bsd*-gnu)
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9010 shlibpath_var=LD_LIBRARY_PATH
9011 shlibpath_overrides_runpath=no
9012 # This implies no fast_install, which is unacceptable.
9013 # Some rework will be needed to allow for fast_install
9014 # before this can be enabled.
9015 hardcode_into_libs=yes
9017 # Append ld.so.conf contents to the search path
9018 if test -f /etc/ld.so.conf; then
9019 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' ' '`
9020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9023 # We used to test for /lib/ld.so.1 and disable shared libraries on
9024 # powerpc, because MkLinux only supported shared libraries with the
9025 # GNU dynamic linker. Since this was broken with cross compilers,
9026 # most powerpc-linux boxes support dynamic linking these days and
9027 # people can always --disable-shared, the test was removed, and we
9028 # assume the GNU/Linux dynamic linker is in use.
9029 dynamic_linker='GNU/Linux ld.so'
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=no
9040 hardcode_into_libs=yes
9041 dynamic_linker='NetBSD ld.elf_so'
9048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9051 dynamic_linker='NetBSD (a.out) ld.so'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 dynamic_linker='NetBSD ld.elf_so'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 hardcode_into_libs=yes
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
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=yes
9081 sys_lib_dlsearch_path_spec="/usr/lib"
9083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9086 *) need_version=no ;;
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9093 openbsd2.[89] | openbsd2.[89].*)
9094 shlibpath_overrides_runpath=no
9097 shlibpath_overrides_runpath=yes
9101 shlibpath_overrides_runpath=yes
9106 libname_spec='$name'
9109 library_names_spec='$libname${shared_ext} $libname.a'
9110 dynamic_linker='OS/2 ld.exe'
9111 shlibpath_var=LIBPATH
9114 osf3* | osf4* | osf5*)
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 hardcode_into_libs=yes
9134 # ldd complains unless libraries are executable
9135 postinstall_cmds='chmod +x $lib'
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9141 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 if test "$with_gnu_ld" = yes; then
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 case $host_vendor in
9157 shlibpath_overrides_runpath=no
9159 export_dynamic_flag_spec='${wl}-Blargedynsym'
9160 runpath_var=LD_RUN_PATH
9168 shlibpath_overrides_runpath=no
9169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9175 if test -d /usr/nec ;then
9177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9178 soname_spec='$libname${shared_ext}.$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9184 version_type=freebsd-elf
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 hardcode_into_libs=yes
9191 if test "$with_gnu_ld" = yes; then
9192 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9193 shlibpath_overrides_runpath=no
9195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9196 shlibpath_overrides_runpath=yes
9199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9203 sys_lib_dlsearch_path_spec='/usr/lib'
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9217 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9218 echo "${ECHO_T}$dynamic_linker" >&6; }
9219 test "$dynamic_linker" = no && can_build_shared=no
9221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9222 if test "$GCC" = yes; then
9223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9226 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9227 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9229 if test -n "$hardcode_libdir_flag_spec" || \
9230 test -n "$runpath_var" || \
9231 test "X$hardcode_automatic" = "Xyes" ; then
9233 # We can hardcode non-existant directories.
9234 if test "$hardcode_direct" != no &&
9235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9236 # have to relink, otherwise we might link with an installed library
9237 # when we should be linking with a yet-to-be-installed one
9238 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9239 test "$hardcode_minus_L" != no; then
9240 # Linking always hardcodes the temporary library directory.
9241 hardcode_action=relink
9243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9244 hardcode_action=immediate
9247 # We cannot hardcode anything, or else we can only hardcode existing
9249 hardcode_action=unsupported
9251 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9252 echo "${ECHO_T}$hardcode_action" >&6; }
9254 if test "$hardcode_action" = relink; then
9255 # Fast installation is not supported
9256 enable_fast_install=no
9257 elif test "$shlibpath_overrides_runpath" = yes ||
9258 test "$enable_shared" = no; then
9259 # Fast installation is not necessary
9260 enable_fast_install=needless
9265 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9266 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9267 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9268 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9269 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9270 { echo "$as_me:$LINENO: result: yes" >&5
9271 echo "${ECHO_T}yes" >&6; }
9273 # FIXME - insert some real tests, host_os isn't really good enough
9276 if test -n "$STRIP" ; then
9277 striplib="$STRIP -x"
9278 { echo "$as_me:$LINENO: result: yes" >&5
9279 echo "${ECHO_T}yes" >&6; }
9281 { echo "$as_me:$LINENO: result: no" >&5
9282 echo "${ECHO_T}no" >&6; }
9286 { echo "$as_me:$LINENO: result: no" >&5
9287 echo "${ECHO_T}no" >&6; }
9292 if test "x$enable_dlopen" != xyes; then
9293 enable_dlopen=unknown
9294 enable_dlopen_self=unknown
9295 enable_dlopen_self_static=unknown
9302 lt_cv_dlopen="load_add_on"
9304 lt_cv_dlopen_self=yes
9308 lt_cv_dlopen="LoadLibrary"
9313 lt_cv_dlopen="dlopen"
9318 # if libdl is installed we need to link against it
9319 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9320 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9321 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_check_lib_save_LIBS=$LIBS
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9333 /* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355 (eval "$ac_link") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest$ac_exeext &&
9365 $as_test_x conftest$ac_exeext; then
9366 ac_cv_lib_dl_dlopen=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_cv_lib_dl_dlopen=no
9374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9375 conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_check_lib_save_LIBS
9378 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9379 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9380 if test $ac_cv_lib_dl_dlopen = yes; then
9381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9386 lt_cv_dlopen_self=yes
9393 { echo "$as_me:$LINENO: checking for shl_load" >&5
9394 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9395 if test "${ac_cv_func_shl_load+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9406 #define shl_load innocuous_shl_load
9408 /* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char shl_load (); below.
9410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411 <limits.h> exists even on freestanding compilers. */
9414 # include <limits.h>
9416 # include <assert.h>
9421 /* Override any GCC internal prototype to avoid an error.
9422 Use char because int might match the return type of a GCC
9423 builtin and then its argument prototype would still apply. */
9428 /* The GNU C library defines this for functions which it implements
9429 to always fail with ENOSYS. Some functions are actually named
9430 something starting with __ and the normal name is an alias. */
9431 #if defined __stub_shl_load || defined __stub___shl_load
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>conftest.er1
9452 grep -v '^ *+' conftest.er1 >conftest.err
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest$ac_exeext &&
9460 $as_test_x conftest$ac_exeext; then
9461 ac_cv_func_shl_load=yes
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9466 ac_cv_func_shl_load=no
9469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470 conftest$ac_exeext conftest.$ac_ext
9472 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9473 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9474 if test $ac_cv_func_shl_load = yes; then
9475 lt_cv_dlopen="shl_load"
9477 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9478 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9479 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 ac_check_lib_save_LIBS=$LIBS
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_link") 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext &&
9523 $as_test_x conftest$ac_exeext; then
9524 ac_cv_lib_dld_shl_load=yes
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_cv_lib_dld_shl_load=no
9532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9533 conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
9536 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9537 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9538 if test $ac_cv_lib_dld_shl_load = yes; then
9539 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9541 { echo "$as_me:$LINENO: checking for dlopen" >&5
9542 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9543 if test "${ac_cv_func_dlopen+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9554 #define dlopen innocuous_dlopen
9556 /* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char dlopen (); below.
9558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559 <limits.h> exists even on freestanding compilers. */
9562 # include <limits.h>
9564 # include <assert.h>
9569 /* Override any GCC internal prototype to avoid an error.
9570 Use char because int might match the return type of a GCC
9571 builtin and then its argument prototype would still apply. */
9576 /* The GNU C library defines this for functions which it implements
9577 to always fail with ENOSYS. Some functions are actually named
9578 something starting with __ and the normal name is an alias. */
9579 #if defined __stub_dlopen || defined __stub___dlopen
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (ac_try="$ac_link"
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_link") 2>conftest.er1
9600 grep -v '^ *+' conftest.er1 >conftest.err
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } && {
9605 test -z "$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9607 } && test -s conftest$ac_exeext &&
9608 $as_test_x conftest$ac_exeext; then
9609 ac_cv_func_dlopen=yes
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_cv_func_dlopen=no
9617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9618 conftest$ac_exeext conftest.$ac_ext
9620 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9621 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9622 if test $ac_cv_func_dlopen = yes; then
9623 lt_cv_dlopen="dlopen"
9625 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9626 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9627 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 ac_check_lib_save_LIBS=$LIBS
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_link") 2>conftest.er1
9663 grep -v '^ *+' conftest.er1 >conftest.err
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest$ac_exeext &&
9671 $as_test_x conftest$ac_exeext; then
9672 ac_cv_lib_dl_dlopen=yes
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_cv_lib_dl_dlopen=no
9680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681 conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9684 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9685 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9686 if test $ac_cv_lib_dl_dlopen = yes; then
9687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9689 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9690 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9691 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 ac_check_lib_save_LIBS=$LIBS
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9703 /* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest$ac_exeext &&
9735 $as_test_x conftest$ac_exeext; then
9736 ac_cv_lib_svld_dlopen=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_cv_lib_svld_dlopen=no
9744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745 conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9748 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9749 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9750 if test $ac_cv_lib_svld_dlopen = yes; then
9751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9753 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9754 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9755 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 ac_check_lib_save_LIBS=$LIBS
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9767 /* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext &&
9799 $as_test_x conftest$ac_exeext; then
9800 ac_cv_lib_dld_dld_link=yes
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9805 ac_cv_lib_dld_dld_link=no
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809 conftest$ac_exeext conftest.$ac_ext
9810 LIBS=$ac_check_lib_save_LIBS
9812 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9813 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9814 if test $ac_cv_lib_dld_dld_link = yes; then
9815 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9836 if test "x$lt_cv_dlopen" != xno; then
9842 case $lt_cv_dlopen in
9844 save_CPPFLAGS="$CPPFLAGS"
9845 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9847 save_LDFLAGS="$LDFLAGS"
9848 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9851 LIBS="$lt_cv_dlopen_libs $LIBS"
9853 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9854 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9855 if test "${lt_cv_dlopen_self+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 if test "$cross_compiling" = yes; then :
9859 lt_cv_dlopen_self=cross
9861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9862 lt_status=$lt_dlunknown
9863 cat > conftest.$ac_ext <<EOF
9864 #line 9864 "configure"
9865 #include "confdefs.h"
9874 # define LT_DLGLOBAL RTLD_GLOBAL
9877 # define LT_DLGLOBAL DL_GLOBAL
9879 # define LT_DLGLOBAL 0
9883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9884 find out it does not work in some platform. */
9885 #ifndef LT_DLLAZY_OR_NOW
9887 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9890 # define LT_DLLAZY_OR_NOW DL_LAZY
9893 # define LT_DLLAZY_OR_NOW RTLD_NOW
9896 # define LT_DLLAZY_OR_NOW DL_NOW
9898 # define LT_DLLAZY_OR_NOW 0
9906 extern "C" void exit (int);
9909 void fnord() { int i=42;}
9912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9913 int status = $lt_dlunknown;
9917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9918 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9919 /* dlclose (self); */
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9932 (./conftest; exit; ) >&5 2>/dev/null
9935 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9936 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9937 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9940 # compilation failed
9941 lt_cv_dlopen_self=no
9948 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9949 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9951 if test "x$lt_cv_dlopen_self" = xyes; then
9952 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9953 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9954 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9955 if test "${lt_cv_dlopen_self_static+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 if test "$cross_compiling" = yes; then :
9959 lt_cv_dlopen_self_static=cross
9961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9962 lt_status=$lt_dlunknown
9963 cat > conftest.$ac_ext <<EOF
9964 #line 9964 "configure"
9965 #include "confdefs.h"
9974 # define LT_DLGLOBAL RTLD_GLOBAL
9977 # define LT_DLGLOBAL DL_GLOBAL
9979 # define LT_DLGLOBAL 0
9983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9984 find out it does not work in some platform. */
9985 #ifndef LT_DLLAZY_OR_NOW
9987 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9990 # define LT_DLLAZY_OR_NOW DL_LAZY
9993 # define LT_DLLAZY_OR_NOW RTLD_NOW
9996 # define LT_DLLAZY_OR_NOW DL_NOW
9998 # define LT_DLLAZY_OR_NOW 0
10006 extern "C" void exit (int);
10009 void fnord() { int i=42;}
10012 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10013 int status = $lt_dlunknown;
10017 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10018 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10019 /* dlclose (self); */
10027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10032 (./conftest; exit; ) >&5 2>/dev/null
10034 case x$lt_status in
10035 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10036 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10037 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10040 # compilation failed
10041 lt_cv_dlopen_self_static=no
10048 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10049 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10052 CPPFLAGS="$save_CPPFLAGS"
10053 LDFLAGS="$save_LDFLAGS"
10058 case $lt_cv_dlopen_self in
10059 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10060 *) enable_dlopen_self=unknown ;;
10063 case $lt_cv_dlopen_self_static in
10064 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10065 *) enable_dlopen_self_static=unknown ;;
10070 # Report which library types will actually be built
10071 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10072 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10073 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10074 echo "${ECHO_T}$can_build_shared" >&6; }
10076 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10077 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10078 test "$can_build_shared" = "no" && enable_shared=no
10080 # On AIX, shared libraries and static libraries use the same namespace, and
10081 # are all built from PIC.
10084 test "$enable_shared" = yes && enable_static=no
10085 if test -n "$RANLIB"; then
10086 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10087 postinstall_cmds='$RANLIB $lib'
10092 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10093 test "$enable_shared" = yes && enable_static=no
10097 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10098 echo "${ECHO_T}$enable_shared" >&6; }
10100 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10101 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10102 # Make sure either enable_shared or enable_static is yes.
10103 test "$enable_shared" = yes || enable_static=yes
10104 { echo "$as_me:$LINENO: result: $enable_static" >&5
10105 echo "${ECHO_T}$enable_static" >&6; }
10107 # The else clause should only fire when bootstrapping the
10108 # libtool distribution, otherwise you forgot to ship ltmain.sh
10109 # with your package, and you will get complaints that there are
10110 # no rules to generate ltmain.sh.
10111 if test -f "$ltmain"; then
10112 # See if we are running on zsh, and set the options which allow our commands through
10113 # without removal of \ escapes.
10114 if test -n "${ZSH_VERSION+set}" ; then
10115 setopt NO_GLOB_SUBST
10117 # Now quote all the things that may contain metacharacters while being
10118 # careful not to overquote the AC_SUBSTed values. We take copies of the
10119 # variables and quote the copies for generation of the libtool script.
10120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10124 deplibs_check_method reload_flag reload_cmds need_locks \
10125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10126 lt_cv_sys_global_symbol_to_c_name_address \
10127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10128 old_postinstall_cmds old_postuninstall_cmds \
10132 lt_prog_compiler_wl \
10133 lt_prog_compiler_pic \
10134 lt_prog_compiler_static \
10135 lt_prog_compiler_no_builtin_flag \
10136 export_dynamic_flag_spec \
10137 thread_safe_flag_spec \
10138 whole_archive_flag_spec \
10139 enable_shared_with_static_runtimes \
10141 old_archive_from_new_cmds \
10146 compiler_lib_search_path \
10148 archive_expsym_cmds \
10150 postuninstall_cmds \
10151 old_archive_from_expsyms_cmds \
10152 allow_undefined_flag \
10153 no_undefined_flag \
10154 export_symbols_cmds \
10155 hardcode_libdir_flag_spec \
10156 hardcode_libdir_flag_spec_ld \
10157 hardcode_libdir_separator \
10158 hardcode_automatic \
10160 module_expsym_cmds \
10161 lt_cv_prog_compiler_c_o \
10163 include_expsyms; do
10166 old_archive_cmds | \
10167 old_archive_from_new_cmds | \
10169 archive_expsym_cmds | \
10171 module_expsym_cmds | \
10172 old_archive_from_expsyms_cmds | \
10173 export_symbols_cmds | \
10174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10175 postinstall_cmds | postuninstall_cmds | \
10176 old_postinstall_cmds | old_postuninstall_cmds | \
10177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10178 # Double-quote double-evaled strings.
10179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10188 *'\$0 --fallback-echo"')
10189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10193 cfgfile="${ofile}T"
10194 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10196 { echo "$as_me:$LINENO: creating $ofile" >&5
10197 echo "$as_me: creating $ofile" >&6;}
10199 cat <<__EOF__ >> "$cfgfile"
10202 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10203 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10204 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10206 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10207 # Free Software Foundation, Inc.
10209 # This file is part of GNU Libtool:
10210 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10212 # This program is free software; you can redistribute it and/or modify
10213 # it under the terms of the GNU General Public License as published by
10214 # the Free Software Foundation; either version 2 of the License, or
10215 # (at your option) any later version.
10217 # This program is distributed in the hope that it will be useful, but
10218 # WITHOUT ANY WARRANTY; without even the implied warranty of
10219 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10220 # General Public License for more details.
10222 # You should have received a copy of the GNU General Public License
10223 # along with this program; if not, write to the Free Software
10224 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10226 # As a special exception to the GNU General Public License, if you
10227 # distribute this file as part of a program that contains a
10228 # configuration script generated by Autoconf, you may include it under
10229 # the same distribution terms that you use for the rest of that program.
10231 # A sed program that does not truncate output.
10234 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10235 Xsed="$SED -e 1s/^X//"
10237 # The HP-UX ksh and POSIX shell print the target directory to stdout
10238 # if CDPATH is set.
10239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10241 # The names of the tagged configurations supported by this script.
10244 # ### BEGIN LIBTOOL CONFIG
10246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10248 # Shell to use when invoking shell scripts.
10251 # Whether or not to build shared libraries.
10252 build_libtool_libs=$enable_shared
10254 # Whether or not to build static libraries.
10255 build_old_libs=$enable_static
10257 # Whether or not to add -lc for building shared libraries.
10258 build_libtool_need_lc=$archive_cmds_need_lc
10260 # Whether or not to disallow shared libs when runtime libs are static
10261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10263 # Whether or not to optimize for fast installation.
10264 fast_install=$enable_fast_install
10267 host_alias=$host_alias
10271 # The build system.
10272 build_alias=$build_alias
10276 # An echo program that does not interpret backslashes.
10281 AR_FLAGS=$lt_AR_FLAGS
10286 # LTCC compiler flags.
10287 LTCFLAGS=$lt_LTCFLAGS
10289 # A language-specific compiler.
10292 # Is the compiler the GNU C compiler?
10298 # The linker used to build libraries.
10301 # Whether we need hard or soft links.
10304 # A BSD-compatible nm program.
10307 # A symbol stripping program
10310 # Used to examine libraries when file_magic_cmd begins "file"
10311 MAGIC_CMD=$MAGIC_CMD
10313 # Used on cygwin: DLL creation program.
10316 # Used on cygwin: object dumper.
10319 # Used on cygwin: assembler.
10322 # The name of the directory that contains temporary libtool files.
10325 # How to create reloadable object files.
10326 reload_flag=$lt_reload_flag
10327 reload_cmds=$lt_reload_cmds
10329 # How to pass a linker flag through the compiler.
10330 wl=$lt_lt_prog_compiler_wl
10332 # Object file suffix (normally "o").
10333 objext="$ac_objext"
10335 # Old archive suffix (normally "a").
10338 # Shared library suffix (normally ".so").
10339 shrext_cmds='$shrext_cmds'
10341 # Executable file suffix (normally "").
10344 # Additional compiler flags for building library objects.
10345 pic_flag=$lt_lt_prog_compiler_pic
10348 # What is the maximum length of a command?
10349 max_cmd_len=$lt_cv_sys_max_cmd_len
10351 # Does compiler simultaneously support -c and -o options?
10352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10354 # Must we lock files when doing compilation?
10355 need_locks=$lt_need_locks
10357 # Do we need the lib prefix for modules?
10358 need_lib_prefix=$need_lib_prefix
10360 # Do we need a version for libraries?
10361 need_version=$need_version
10363 # Whether dlopen is supported.
10364 dlopen_support=$enable_dlopen
10366 # Whether dlopen of programs is supported.
10367 dlopen_self=$enable_dlopen_self
10369 # Whether dlopen of statically linked programs is supported.
10370 dlopen_self_static=$enable_dlopen_self_static
10372 # Compiler flag to prevent dynamic linking.
10373 link_static_flag=$lt_lt_prog_compiler_static
10375 # Compiler flag to turn off builtin functions.
10376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10378 # Compiler flag to allow reflexive dlopens.
10379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10381 # Compiler flag to generate shared objects directly from archives.
10382 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10384 # Compiler flag to generate thread-safe objects.
10385 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10387 # Library versioning type.
10388 version_type=$version_type
10390 # Format of library name prefix.
10391 libname_spec=$lt_libname_spec
10393 # List of archive names. First name is the real one, the rest are links.
10394 # The last name is the one that the linker finds with -lNAME.
10395 library_names_spec=$lt_library_names_spec
10397 # The coded name of the library, if different from the real name.
10398 soname_spec=$lt_soname_spec
10400 # Commands used to build and install an old-style archive.
10402 old_archive_cmds=$lt_old_archive_cmds
10403 old_postinstall_cmds=$lt_old_postinstall_cmds
10404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10406 # Create an old-style archive from a shared archive.
10407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10409 # Create a temporary old-style archive to link instead of a shared archive.
10410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10412 # Commands used to build and install a shared archive.
10413 archive_cmds=$lt_archive_cmds
10414 archive_expsym_cmds=$lt_archive_expsym_cmds
10415 postinstall_cmds=$lt_postinstall_cmds
10416 postuninstall_cmds=$lt_postuninstall_cmds
10418 # Commands used to build a loadable module (assumed same as above if empty)
10419 module_cmds=$lt_module_cmds
10420 module_expsym_cmds=$lt_module_expsym_cmds
10422 # Commands to strip libraries.
10423 old_striplib=$lt_old_striplib
10424 striplib=$lt_striplib
10426 # Dependencies to place before the objects being linked to create a
10428 predep_objects=$lt_predep_objects
10430 # Dependencies to place after the objects being linked to create a
10432 postdep_objects=$lt_postdep_objects
10434 # Dependencies to place before the objects being linked to create a
10436 predeps=$lt_predeps
10438 # Dependencies to place after the objects being linked to create a
10440 postdeps=$lt_postdeps
10442 # The library search path used internally by the compiler when linking
10443 # a shared library.
10444 compiler_lib_search_path=$lt_compiler_lib_search_path
10446 # Method to check whether dependent libraries are shared objects.
10447 deplibs_check_method=$lt_deplibs_check_method
10449 # Command to use when deplibs_check_method == file_magic.
10450 file_magic_cmd=$lt_file_magic_cmd
10452 # Flag that allows shared libraries with undefined symbols to be built.
10453 allow_undefined_flag=$lt_allow_undefined_flag
10455 # Flag that forces no undefined symbols.
10456 no_undefined_flag=$lt_no_undefined_flag
10458 # Commands used to finish a libtool library installation in a directory.
10459 finish_cmds=$lt_finish_cmds
10461 # Same as above, but a single script fragment to be evaled but not shown.
10462 finish_eval=$lt_finish_eval
10464 # Take the output of nm and produce a listing of raw symbols and C names.
10465 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10467 # Transform the output of nm in a proper C declaration
10468 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10470 # Transform the output of nm in a C name address pair
10471 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10473 # This is the shared library runtime path variable.
10474 runpath_var=$runpath_var
10476 # This is the shared library path variable.
10477 shlibpath_var=$shlibpath_var
10479 # Is shlibpath searched before the hard-coded library search path?
10480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10482 # How to hardcode a shared library path into an executable.
10483 hardcode_action=$hardcode_action
10485 # Whether we should hardcode library paths into libraries.
10486 hardcode_into_libs=$hardcode_into_libs
10488 # Flag to hardcode \$libdir into a binary during linking.
10489 # This must work even if \$libdir does not exist.
10490 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10492 # If ld is used when linking, flag to hardcode \$libdir into
10493 # a binary during linking. This must work even if \$libdir does
10495 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10497 # Whether we need a single -rpath flag with a separated argument.
10498 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10500 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10501 # resulting binary.
10502 hardcode_direct=$hardcode_direct
10504 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10505 # resulting binary.
10506 hardcode_minus_L=$hardcode_minus_L
10508 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10509 # the resulting binary.
10510 hardcode_shlibpath_var=$hardcode_shlibpath_var
10512 # Set to yes if building a shared library automatically hardcodes DIR into the library
10513 # and all subsequent libraries and executables linked against it.
10514 hardcode_automatic=$hardcode_automatic
10516 # Variables whose values should be saved in libtool wrapper scripts and
10517 # restored at relink time.
10518 variables_saved_for_relink="$variables_saved_for_relink"
10520 # Whether libtool must link a program against all its dependency libraries.
10521 link_all_deplibs=$link_all_deplibs
10523 # Compile-time system search path for libraries
10524 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10526 # Run-time system search path for libraries
10527 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10529 # Fix the shell variable \$srcfile for the compiler.
10530 fix_srcfile_path="$fix_srcfile_path"
10532 # Set to yes if exported symbols are required.
10533 always_export_symbols=$always_export_symbols
10535 # The commands to list exported symbols.
10536 export_symbols_cmds=$lt_export_symbols_cmds
10538 # The commands to extract the exported symbol list from a shared archive.
10539 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10541 # Symbols that should not be listed in the preloaded symbols.
10542 exclude_expsyms=$lt_exclude_expsyms
10544 # Symbols that must always be exported.
10545 include_expsyms=$lt_include_expsyms
10547 # ### END LIBTOOL CONFIG
10554 cat <<\EOF >> "$cfgfile"
10556 # AIX sometimes has problems with the GCC collect2 program. For some
10557 # reason, if we set the COLLECT_NAMES environment variable, the problems
10558 # vanish in a puff of smoke.
10559 if test "X${COLLECT_NAMES+set}" != Xset; then
10561 export COLLECT_NAMES
10567 # We use sed instead of cat because bash on DJGPP gets confused if
10568 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10569 # text mode, it properly converts lines to CR/LF. This bash problem
10570 # is reportedly fixed, but why not run on old versions too?
10571 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10573 mv -f "$cfgfile" "$ofile" || \
10574 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10578 # If there is no Makefile yet, we rely on a make rule to execute
10579 # `config.status --recheck' to rerun these tests and create the
10580 # libtool script then.
10581 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10582 if test -f "$ltmain_in"; then
10583 test -f Makefile && make "$ltmain"
10589 ac_cpp='$CPP $CPPFLAGS'
10590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10597 # Check whether --with-tags was given.
10598 if test "${with_tags+set}" = set; then
10599 withval=$with_tags; tagnames="$withval"
10603 if test -f "$ltmain" && test -n "$tagnames"; then
10604 if test ! -f "${ofile}"; then
10605 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10606 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10609 if test -z "$LTCC"; then
10610 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10611 if test -z "$LTCC"; then
10612 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10613 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10616 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10619 if test -z "$LTCFLAGS"; then
10620 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10623 # Extract list of available tagged configurations in $ofile.
10624 # Note that this assumes the entire list is on one line.
10625 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10628 for tagname in $tagnames; do
10630 # Check whether tagname contains only valid characters
10631 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10633 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10634 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10635 { (exit 1); exit 1; }; }
10639 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10641 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10642 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10643 { (exit 1); exit 1; }; }
10646 # Update the list of available tags.
10647 if test -n "$tagname"; then
10648 echo appending configuration tag \"$tagname\" to $ofile
10652 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10653 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10654 (test "X$CXX" != "Xg++"))) ; then
10656 ac_cpp='$CXXCPP $CPPFLAGS'
10657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10664 archive_cmds_need_lc_CXX=no
10665 allow_undefined_flag_CXX=
10666 always_export_symbols_CXX=no
10667 archive_expsym_cmds_CXX=
10668 export_dynamic_flag_spec_CXX=
10669 hardcode_direct_CXX=no
10670 hardcode_libdir_flag_spec_CXX=
10671 hardcode_libdir_flag_spec_ld_CXX=
10672 hardcode_libdir_separator_CXX=
10673 hardcode_minus_L_CXX=no
10674 hardcode_shlibpath_var_CXX=unsupported
10675 hardcode_automatic_CXX=no
10677 module_expsym_cmds_CXX=
10678 link_all_deplibs_CXX=unknown
10679 old_archive_cmds_CXX=$old_archive_cmds
10680 no_undefined_flag_CXX=
10681 whole_archive_flag_spec_CXX=
10682 enable_shared_with_static_runtimes_CXX=no
10684 # Dependencies to place before and after the object being linked:
10685 predep_objects_CXX=
10686 postdep_objects_CXX=
10689 compiler_lib_search_path_CXX=
10691 # Source file extension for C++ test sources.
10694 # Object file extension for compiled C++ test sources.
10698 # Code to be used in simple compile tests
10699 lt_simple_compile_test_code="int some_variable = 0;\n"
10701 # Code to be used in simple link tests
10702 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10704 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10706 # If no C compiler was specified, use CC.
10709 # If no C compiler flags were specified, use CFLAGS.
10710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10712 # Allow CC to be a program name with arguments.
10716 # save warnings/boilerplate of simple test code
10717 ac_outfile=conftest.$ac_objext
10718 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10719 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10720 _lt_compiler_boilerplate=`cat conftest.err`
10723 ac_outfile=conftest.$ac_objext
10724 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10725 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10726 _lt_linker_boilerplate=`cat conftest.err`
10730 # Allow CC to be a program name with arguments.
10735 lt_save_with_gnu_ld=$with_gnu_ld
10736 lt_save_path_LD=$lt_cv_path_LD
10737 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10738 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10740 $as_unset lt_cv_prog_gnu_ld
10742 if test -n "${lt_cv_path_LDCXX+set}"; then
10743 lt_cv_path_LD=$lt_cv_path_LDCXX
10745 $as_unset lt_cv_path_LD
10747 test -z "${LDCXX+set}" || LD=$LDCXX
10751 for cc_temp in $compiler""; do
10753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10759 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10762 # We don't want -fno-exception wen compiling C++ code, so set the
10763 # no_builtin_flag separately
10764 if test "$GXX" = yes; then
10765 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10767 lt_prog_compiler_no_builtin_flag_CXX=
10770 if test "$GXX" = yes; then
10771 # Set up default GNU C++ configuration
10774 # Check whether --with-gnu-ld was given.
10775 if test "${with_gnu_ld+set}" = set; then
10776 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10782 if test "$GCC" = yes; then
10783 # Check if gcc -print-prog-name=ld gives a path.
10784 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10785 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10788 # gcc leaves a trailing carriage return which upsets mingw
10789 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10791 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10794 # Accept absolute paths.
10796 re_direlt='/[^/][^/]*/\.\./'
10797 # Canonicalize the pathname of ld
10798 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10799 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10800 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10802 test -z "$LD" && LD="$ac_prog"
10805 # If it fails, then pretend we aren't using GCC.
10809 # If it is relative, then search for the first ld in PATH.
10810 with_gnu_ld=unknown
10813 elif test "$with_gnu_ld" = yes; then
10814 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10815 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10817 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10818 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10820 if test "${lt_cv_path_LD+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 if test -z "$LD"; then
10824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10825 for ac_dir in $PATH; do
10827 test -z "$ac_dir" && ac_dir=.
10828 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10829 lt_cv_path_LD="$ac_dir/$ac_prog"
10830 # Check to see if the program is GNU ld. I'd rather use --version,
10831 # but apparently some variants of GNU ld only accept -v.
10832 # Break only if it was the GNU/non-GNU ld that we prefer.
10833 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10834 *GNU* | *'with BFD'*)
10835 test "$with_gnu_ld" != no && break
10838 test "$with_gnu_ld" != yes && break
10845 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10849 LD="$lt_cv_path_LD"
10850 if test -n "$LD"; then
10851 { echo "$as_me:$LINENO: result: $LD" >&5
10852 echo "${ECHO_T}$LD" >&6; }
10854 { echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6; }
10857 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10858 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10859 { (exit 1); exit 1; }; }
10860 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10861 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10862 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10866 case `$LD -v 2>&1 </dev/null` in
10867 *GNU* | *'with BFD'*)
10868 lt_cv_prog_gnu_ld=yes
10871 lt_cv_prog_gnu_ld=no
10875 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10876 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10877 with_gnu_ld=$lt_cv_prog_gnu_ld
10881 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10882 # archiving commands below assume that GNU ld is being used.
10883 if test "$with_gnu_ld" = yes; then
10884 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885 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'
10887 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10888 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10890 # If archive_cmds runs LD, not CC, wlarc should be empty
10891 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10892 # investigate it a little bit more. (MM)
10895 # ancient GNU ld didn't support --whole-archive et. al.
10896 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10897 grep 'no-whole-archive' > /dev/null; then
10898 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10900 whole_archive_flag_spec_CXX=
10906 # A generic and very simple default shared library creation
10907 # command for GNU C++ for the case where it uses the native
10908 # linker, instead of GNU ld. If possible, this setting should
10909 # overridden to take advantage of the native linker features on
10910 # the platform it is being used on.
10911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10914 # Commands to make compiler produce verbose output that lists
10915 # what "hidden" libraries, object files and flags are used when
10916 # linking a shared library.
10917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10925 # PORTME: fill in a description of your system's C++ link characteristics
10926 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10927 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10931 # FIXME: insert proper C++ library support
10935 if test "$host_cpu" = ia64; then
10936 # On IA64, the linker does run time linking by default, so we don't
10937 # have to do anything special.
10938 aix_use_runtimelinking=no
10939 exp_sym_flag='-Bexport'
10942 aix_use_runtimelinking=no
10944 # Test if we are trying to use run time linking or normal
10945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10946 # need to do runtime linking.
10947 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10948 for ld_flag in $LDFLAGS; do
10951 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=
10996 shared_flag='-shared'
10997 if test "$aix_use_runtimelinking" = yes; then
10998 shared_flag="$shared_flag "'${wl}-G'
11002 if test "$host_cpu" = ia64; then
11003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11004 # chokes on -Wl,-G. The following line is correct:
11007 if test "$aix_use_runtimelinking" = yes; then
11008 shared_flag='${wl}-G'
11010 shared_flag='${wl}-bM:SRE'
11015 # It seems that -bexpall does not export symbols beginning with
11016 # underscore (_), so it is better to generate a list of symbols to export.
11017 always_export_symbols_CXX=yes
11018 if test "$aix_use_runtimelinking" = yes; then
11019 # Warning - without using the other runtime loading flags (-brtl),
11020 # -berok will link without error, but may produce a broken library.
11021 allow_undefined_flag_CXX='-berok'
11022 # Determine the default libpath from the value encoded in an empty executable.
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11047 grep -v '^ *+' conftest.er1 >conftest.err
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_cxx_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest$ac_exeext &&
11055 $as_test_x conftest$ac_exeext; then
11057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11059 # Check for a 64-bit object if we didn't find anything.
11060 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; }
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11070 conftest$ac_exeext conftest.$ac_ext
11071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11073 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11075 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11077 if test "$host_cpu" = ia64; then
11078 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11079 allow_undefined_flag_CXX="-z nodefs"
11080 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11082 # Determine the default libpath from the value encoded in an empty executable.
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (ac_try="$ac_link"
11100 case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_link") 2>conftest.er1
11107 grep -v '^ *+' conftest.er1 >conftest.err
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_cxx_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest$ac_exeext &&
11115 $as_test_x conftest$ac_exeext; then
11117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11119 # Check for a 64-bit object if we didn't find anything.
11120 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; }
11123 echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11130 conftest$ac_exeext conftest.$ac_ext
11131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11133 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11134 # Warning - without using the other run time loading flags,
11135 # -berok will link without error, but may produce a broken library.
11136 no_undefined_flag_CXX=' ${wl}-bernotok'
11137 allow_undefined_flag_CXX=' ${wl}-berok'
11138 # Exported symbols can be pulled into shared objects from archives
11139 whole_archive_flag_spec_CXX='$convenience'
11140 archive_cmds_need_lc_CXX=yes
11141 # This is similar to how AIX traditionally builds its shared libraries.
11142 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11149 allow_undefined_flag_CXX=unsupported
11150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11151 # support --undefined. This deserves some investigation. FIXME
11152 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11159 case $cc_basename in
11161 # FIXME: insert proper C++ library support
11167 cygwin* | mingw* | pw32*)
11168 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11169 # as there is no search path for DLLs.
11170 hardcode_libdir_flag_spec_CXX='-L$libdir'
11171 allow_undefined_flag_CXX=unsupported
11172 always_export_symbols_CXX=no
11173 enable_shared_with_static_runtimes_CXX=yes
11175 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11177 # If the export-symbols file already is a .def file (1st line
11178 # is EXPORTS), use it as is; otherwise, prepend...
11179 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11180 cp $export_symbols $output_objdir/$soname.def;
11182 echo EXPORTS > $output_objdir/$soname.def;
11183 cat $export_symbols >> $output_objdir/$soname.def;
11185 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11190 darwin* | rhapsody*)
11192 rhapsody* | darwin1.[012])
11193 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11196 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11197 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11199 case ${MACOSX_DEPLOYMENT_TARGET} in
11201 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11204 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11210 archive_cmds_need_lc_CXX=no
11211 hardcode_direct_CXX=no
11212 hardcode_automatic_CXX=yes
11213 hardcode_shlibpath_var_CXX=unsupported
11214 whole_archive_flag_spec_CXX=''
11215 link_all_deplibs_CXX=yes
11217 if test "$GXX" = yes ; then
11218 lt_int_apple_cc_single_mod=no
11219 output_verbose_link_cmd='echo'
11220 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11221 lt_int_apple_cc_single_mod=yes
11223 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11224 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11226 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'
11228 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11229 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11230 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11231 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}'
11233 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}'
11235 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}'
11237 case $cc_basename in
11239 output_verbose_link_cmd='echo'
11240 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'
11241 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11242 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11243 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}'
11244 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}'
11254 case $cc_basename in
11256 # FIXME: insert proper C++ library support
11260 # Green Hills C++ Compiler
11261 # FIXME: insert proper C++ library support
11265 # FIXME: insert proper C++ library support
11271 # C++ shared libraries reported to be fairly broken before switch to ELF
11275 archive_cmds_need_lc_CXX=no
11277 freebsd* | dragonfly*)
11278 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11285 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11286 hardcode_libdir_separator_CXX=:
11287 export_dynamic_flag_spec_CXX='${wl}-E'
11288 hardcode_direct_CXX=yes
11289 hardcode_minus_L_CXX=yes # Not in the search PATH,
11290 # but as the default
11291 # location of the library.
11293 case $cc_basename in
11295 # FIXME: insert proper C++ library support
11299 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'
11300 # Commands to make compiler produce verbose output that lists
11301 # what "hidden" libraries, object files and flags are used when
11302 # linking a shared library.
11304 # There doesn't appear to be a way to prevent this compiler from
11305 # explicitly linking system object files so we need to strip them
11306 # from the output so that they don't get included in the library
11308 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'
11311 if test "$GXX" = yes; then
11312 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'
11314 # FIXME: insert proper C++ library support
11321 if test $with_gnu_ld = no; then
11322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11323 hardcode_libdir_separator_CXX=:
11327 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11330 export_dynamic_flag_spec_CXX='${wl}-E'
11336 hardcode_direct_CXX=no
11337 hardcode_shlibpath_var_CXX=no
11340 hardcode_direct_CXX=yes
11341 hardcode_minus_L_CXX=yes # Not in the search PATH,
11342 # but as the default
11343 # location of the library.
11347 case $cc_basename in
11349 # FIXME: insert proper C++ library support
11355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11364 # Commands to make compiler produce verbose output that lists
11365 # what "hidden" libraries, object files and flags are used when
11366 # linking a shared library.
11368 # There doesn't appear to be a way to prevent this compiler from
11369 # explicitly linking system object files so we need to strip them
11370 # from the output so that they don't get included in the library
11372 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'
11375 if test "$GXX" = yes; then
11376 if test $with_gnu_ld = no; then
11379 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11382 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11385 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'
11390 # FIXME: insert proper C++ library support
11397 hardcode_direct_CXX=no
11398 hardcode_shlibpath_var_CXX=no
11399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11400 export_dynamic_flag_spec_CXX='${wl}-E'
11401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11402 # Instead, shared libraries are loaded at an image base (0x10000000 by
11403 # default) and relocated if they conflict, which is a slow very memory
11404 # consuming and fragmenting process. To avoid this, we pick a random,
11405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11406 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11407 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11408 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11411 case $cc_basename in
11414 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'
11416 # Archives containing C++ object files must be created using
11417 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11418 # necessary to make sure instantiated templates are included
11420 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11423 if test "$GXX" = yes; then
11424 if test "$with_gnu_ld" = no; then
11425 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'
11427 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'
11430 link_all_deplibs_CXX=yes
11433 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11434 hardcode_libdir_separator_CXX=:
11436 linux* | k*bsd*-gnu)
11437 case $cc_basename in
11439 # Kuck and Associates, Inc. (KAI) C++ Compiler
11441 # KCC will only create a shared library if the output file
11442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11443 # to its proper name (with version) after linking.
11444 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'
11445 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'
11446 # Commands to make compiler produce verbose output that lists
11447 # what "hidden" libraries, object files and flags are used when
11448 # linking a shared library.
11450 # There doesn't appear to be a way to prevent this compiler from
11451 # explicitly linking system object files so we need to strip them
11452 # from the output so that they don't get included in the library
11454 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'
11456 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11459 # Archives containing C++ object files must be created using
11460 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11461 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11466 # version 8.0 and above of icpc choke on multiply defined symbols
11467 # if we add $predep_objects and $postdep_objects, however 7.1 and
11468 # earlier do not add the objects themselves.
11469 case `$CC -V 2>&1` in
11471 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472 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'
11474 *) # Version 8.0 or newer
11477 ia64*) tmp_idyn=' -i_dynamic';;
11479 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480 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'
11483 archive_cmds_need_lc_CXX=no
11484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11485 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11489 # Portland Group C++ compiler
11490 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11491 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'
11493 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11495 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'
11499 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500 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'
11502 runpath_var=LD_RUN_PATH
11503 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11504 hardcode_libdir_separator_CXX=:
11506 # Commands to make compiler produce verbose output that lists
11507 # what "hidden" libraries, object files and flags are used when
11508 # linking a shared library.
11510 # There doesn't appear to be a way to prevent this compiler from
11511 # explicitly linking system object files so we need to strip them
11512 # from the output so that they don't get included in the library
11514 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'
11519 # FIXME: insert proper C++ library support
11523 # FIXME: insert proper C++ library support
11527 case $cc_basename in
11529 # FIXME: insert proper C++ library support
11533 # FIXME: insert proper C++ library support
11538 netbsd* | netbsdelf*-gnu)
11539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11540 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11542 hardcode_libdir_flag_spec_CXX='-R$libdir'
11543 hardcode_direct_CXX=yes
11544 hardcode_shlibpath_var_CXX=no
11546 # Workaround some broken pre-1.5 toolchains
11547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11550 # C++ shared libraries are fairly broken
11554 hardcode_direct_CXX=yes
11555 hardcode_shlibpath_var_CXX=no
11556 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11559 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11560 export_dynamic_flag_spec_CXX='${wl}-E'
11561 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11563 output_verbose_link_cmd='echo'
11566 case $cc_basename in
11568 # Kuck and Associates, Inc. (KAI) C++ Compiler
11570 # KCC will only create a shared library if the output file
11571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11572 # to its proper name (with version) after linking.
11573 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'
11575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11576 hardcode_libdir_separator_CXX=:
11578 # Archives containing C++ object files must be created using
11579 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11580 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11584 # Rational C++ 2.4.1
11585 # FIXME: insert proper C++ library support
11589 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11590 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'
11592 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11593 hardcode_libdir_separator_CXX=:
11595 # Commands to make compiler produce verbose output that lists
11596 # what "hidden" libraries, object files and flags are used when
11597 # linking a shared library.
11599 # There doesn't appear to be a way to prevent this compiler from
11600 # explicitly linking system object files so we need to strip them
11601 # from the output so that they don't get included in the library
11603 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'
11606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11607 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11608 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'
11610 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11611 hardcode_libdir_separator_CXX=:
11613 # Commands to make compiler produce verbose output that lists
11614 # what "hidden" libraries, object files and flags are used when
11615 # linking a shared library.
11616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11619 # FIXME: insert proper C++ library support
11626 case $cc_basename in
11628 # Kuck and Associates, Inc. (KAI) C++ Compiler
11630 # KCC will only create a shared library if the output file
11631 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11632 # to its proper name (with version) after linking.
11633 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'
11635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11636 hardcode_libdir_separator_CXX=:
11638 # Archives containing C++ object files must be created using
11639 # the KAI C++ compiler.
11640 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11643 # Rational C++ 2.4.1
11644 # FIXME: insert proper C++ library support
11648 allow_undefined_flag_CXX=' -expect_unresolved \*'
11649 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'
11650 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11651 echo "-hidden">> $lib.exp~
11652 $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~
11655 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11656 hardcode_libdir_separator_CXX=:
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11662 # There doesn't appear to be a way to prevent this compiler from
11663 # explicitly linking system object files so we need to strip them
11664 # from the output so that they don't get included in the library
11666 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'
11669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11670 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11671 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'
11673 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11674 hardcode_libdir_separator_CXX=:
11676 # Commands to make compiler produce verbose output that lists
11677 # what "hidden" libraries, object files and flags are used when
11678 # linking a shared library.
11679 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11682 # FIXME: insert proper C++ library support
11689 # FIXME: insert proper C++ library support
11693 case $cc_basename in
11696 # FIXME: insert proper C++ library support
11701 # FIXME: insert proper C++ library support
11705 # FIXME: insert proper C++ library support
11711 case $cc_basename in
11713 # Sun C++ 4.2, 5.x and Centerline C++
11714 archive_cmds_need_lc_CXX=yes
11715 no_undefined_flag_CXX=' -zdefs'
11716 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11717 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11718 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11720 hardcode_libdir_flag_spec_CXX='-R$libdir'
11721 hardcode_shlibpath_var_CXX=no
11723 solaris2.[0-5] | solaris2.[0-5].*) ;;
11725 # The C++ compiler is used as linker so we must use $wl
11726 # flag to pass the commands to the underlying system
11727 # linker. We must also pass each convience library through
11728 # to the system linker between allextract/defaultextract.
11729 # The C++ compiler will combine linker options so we
11730 # cannot just pass the convience library names through
11732 # Supported since Solaris 2.6 (maybe 2.5.1?)
11733 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'
11736 link_all_deplibs_CXX=yes
11738 output_verbose_link_cmd='echo'
11740 # Archives containing C++ object files must be created using
11741 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11742 # necessary to make sure instantiated templates are included
11744 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11747 # Green Hills C++ Compiler
11748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11750 # The C++ compiler must be used to create the archive.
11751 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11754 # GNU C++ compiler with Solaris linker
11755 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11756 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11757 if $CC --version | grep -v '^2\.7' > /dev/null; then
11758 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11759 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11760 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11762 # Commands to make compiler produce verbose output that lists
11763 # what "hidden" libraries, object files and flags are used when
11764 # linking a shared library.
11765 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11767 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11769 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11770 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11771 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11773 # Commands to make compiler produce verbose output that lists
11774 # what "hidden" libraries, object files and flags are used when
11775 # linking a shared library.
11776 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11779 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11785 no_undefined_flag_CXX='${wl}-z,text'
11786 archive_cmds_need_lc_CXX=no
11787 hardcode_shlibpath_var_CXX=no
11788 runpath_var='LD_RUN_PATH'
11790 case $cc_basename in
11792 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11796 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11801 sysv5* | sco3.2v5* | sco5v6*)
11802 # Note: We can NOT use -z defs as we might desire, because we do not
11803 # link with -lc, and that would cause any symbols used from libc to
11804 # always be unresolved, which means just about no library would
11805 # ever link correctly. If we're not using GNU ld we use -z text
11806 # though, which does catch some bad symbols but isn't as heavy-handed
11808 # For security reasons, it is highly recommended that you always
11809 # use absolute paths for naming shared libraries, and exclude the
11810 # DT_RUNPATH tag from executables and libraries. But doing so
11811 # requires that you compile everything twice, which is a pain.
11812 # So that behaviour is only enabled if SCOABSPATH is set to a
11813 # non-empty value in the environment. Most likely only useful for
11814 # creating official distributions of packages.
11815 # This is a hack until libtool officially supports absolute path
11816 # names for shared libraries.
11817 no_undefined_flag_CXX='${wl}-z,text'
11818 allow_undefined_flag_CXX='${wl}-z,nodefs'
11819 archive_cmds_need_lc_CXX=no
11820 hardcode_shlibpath_var_CXX=no
11821 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11822 hardcode_libdir_separator_CXX=':'
11823 link_all_deplibs_CXX=yes
11824 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11825 runpath_var='LD_RUN_PATH'
11827 case $cc_basename in
11829 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11833 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11839 case $cc_basename in
11841 # NonStop-UX NCC 3.20
11842 # FIXME: insert proper C++ library support
11846 # FIXME: insert proper C++ library support
11852 # FIXME: insert proper C++ library support
11856 # FIXME: insert proper C++ library support
11860 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11861 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11862 test "$ld_shlibs_CXX" = no && can_build_shared=no
11868 cat > conftest.$ac_ext <<EOF
11872 Foo (void) { a = 0; }
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; then
11883 # Parse the compiler output and extract the necessary
11884 # objects, libraries and library flags.
11886 # Sentinel used to keep track of whether or not we are before
11887 # the conftest object file.
11888 pre_test_object_deps_done=no
11890 # The `*' in the case matches for architectures that use `case' in
11891 # $output_verbose_cmd can trigger glob expansion during the loop
11892 # eval without this substitution.
11893 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11895 for p in `eval $output_verbose_link_cmd`; do
11899 # Some compilers place space between "-{L,R}" and the path.
11900 # Remove the space.
11901 if test $p = "-L" \
11902 || test $p = "-R"; then
11909 if test "$pre_test_object_deps_done" = no; then
11912 # Internal compiler library paths should come after those
11913 # provided the user. The postdeps already come after the
11914 # user supplied libs so there is no need to process them.
11915 if test -z "$compiler_lib_search_path_CXX"; then
11916 compiler_lib_search_path_CXX="${prev}${p}"
11918 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11921 # The "-l" case would never come before the object being
11922 # linked, so don't bother handling this case.
11925 if test -z "$postdeps_CXX"; then
11926 postdeps_CXX="${prev}${p}"
11928 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11934 # This assumes that the test object file only shows up
11935 # once in the compiler output.
11936 if test "$p" = "conftest.$objext"; then
11937 pre_test_object_deps_done=yes
11941 if test "$pre_test_object_deps_done" = no; then
11942 if test -z "$predep_objects_CXX"; then
11943 predep_objects_CXX="$p"
11945 predep_objects_CXX="$predep_objects_CXX $p"
11948 if test -z "$postdep_objects_CXX"; then
11949 postdep_objects_CXX="$p"
11951 postdep_objects_CXX="$postdep_objects_CXX $p"
11956 *) ;; # Ignore the rest.
11964 echo "libtool.m4: error: problem compiling CXX test program"
11967 $rm -f confest.$objext
11969 # PORTME: override above test on systems where it is broken
11972 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11973 # hack all around it, let's just trust "g++" to DTRT.
11974 predep_objects_CXX=
11975 postdep_objects_CXX=
11980 case $cc_basename in
11982 # Adding this requires a known-good setup of shared libraries for
11983 # Sun compiler versions before 5.6, else PIC objects from an old
11984 # archive will be linked into the output, leading to subtle bugs.
11985 postdeps_CXX='-lCstd -lCrun'
11992 case " $postdeps_CXX " in
11993 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11996 lt_prog_compiler_wl_CXX=
11997 lt_prog_compiler_pic_CXX=
11998 lt_prog_compiler_static_CXX=
12000 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12001 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12003 # C++ specific cases for pic, static, wl, etc.
12004 if test "$GXX" = yes; then
12005 lt_prog_compiler_wl_CXX='-Wl,'
12006 lt_prog_compiler_static_CXX='-static'
12010 # All AIX code is PIC.
12011 if test "$host_cpu" = ia64; then
12012 # AIX 5 now supports IA64 processor
12013 lt_prog_compiler_static_CXX='-Bstatic'
12017 # FIXME: we need at least 68020 code to build shared libraries, but
12018 # adding the `-m68020' flag to GCC prevents building anything better,
12020 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12022 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12023 # PIC is the default for these OSes.
12025 mingw* | os2* | pw32*)
12026 # This hack is so that the source file can tell whether it is being
12027 # built for inclusion in a dll (and should export symbols for example).
12028 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12030 darwin* | rhapsody*)
12031 # PIC is the default on this platform
12032 # Common symbols not allowed in MH_DYLIB files
12033 lt_prog_compiler_pic_CXX='-fno-common'
12036 # DJGPP does not support shared libraries at all
12037 lt_prog_compiler_pic_CXX=
12040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12041 # Instead, we relocate shared libraries at runtime.
12044 if test -d /usr/nec; then
12045 lt_prog_compiler_pic_CXX=-Kconform_pic
12049 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12050 # not for PA HP-UX.
12055 lt_prog_compiler_pic_CXX='-fPIC'
12060 lt_prog_compiler_pic_CXX='-fPIC'
12066 # All AIX code is PIC.
12067 if test "$host_cpu" = ia64; then
12068 # AIX 5 now supports IA64 processor
12069 lt_prog_compiler_static_CXX='-Bstatic'
12071 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12075 case $cc_basename in
12077 # Green Hills C++ Compiler
12078 # _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"
12083 # PIC is the default on this platform
12084 # Common symbols not allowed in MH_DYLIB files
12085 case $cc_basename in
12087 lt_prog_compiler_pic_CXX='-qnocommon'
12088 lt_prog_compiler_wl_CXX='-Wl,'
12093 case $cc_basename in
12095 lt_prog_compiler_pic_CXX='-KPIC'
12098 # Green Hills C++ Compiler
12099 lt_prog_compiler_pic_CXX='-pic'
12105 freebsd* | dragonfly*)
12106 # FreeBSD uses GNU C++
12108 hpux9* | hpux10* | hpux11*)
12109 case $cc_basename in
12111 lt_prog_compiler_wl_CXX='-Wl,'
12112 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12113 if test "$host_cpu" != ia64; then
12114 lt_prog_compiler_pic_CXX='+Z'
12118 lt_prog_compiler_wl_CXX='-Wl,'
12119 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12125 lt_prog_compiler_pic_CXX='+Z'
12134 # This is c89, which is MS Visual C++ (no shared libs)
12135 # Anyone wants to do a port?
12137 irix5* | irix6* | nonstopux*)
12138 case $cc_basename in
12140 lt_prog_compiler_wl_CXX='-Wl,'
12141 lt_prog_compiler_static_CXX='-non_shared'
12142 # CC pic flag -KPIC is the default.
12148 linux* | k*bsd*-gnu)
12149 case $cc_basename in
12152 lt_prog_compiler_wl_CXX='--backend -Wl,'
12153 lt_prog_compiler_pic_CXX='-fPIC'
12157 lt_prog_compiler_wl_CXX='-Wl,'
12158 lt_prog_compiler_pic_CXX='-KPIC'
12159 lt_prog_compiler_static_CXX='-static'
12162 # Portland Group C++ compiler.
12163 lt_prog_compiler_wl_CXX='-Wl,'
12164 lt_prog_compiler_pic_CXX='-fpic'
12165 lt_prog_compiler_static_CXX='-Bstatic'
12169 # Make sure the PIC flag is empty. It appears that all Alpha
12170 # Linux and Compaq Tru64 Unix objects are PIC.
12171 lt_prog_compiler_pic_CXX=
12172 lt_prog_compiler_static_CXX='-non_shared'
12183 case $cc_basename in
12185 lt_prog_compiler_pic_CXX='-W c,exportall'
12191 netbsd* | netbsdelf*-gnu)
12193 osf3* | osf4* | osf5*)
12194 case $cc_basename in
12196 lt_prog_compiler_wl_CXX='--backend -Wl,'
12199 # Rational C++ 2.4.1
12200 lt_prog_compiler_pic_CXX='-pic'
12203 # Digital/Compaq C++
12204 lt_prog_compiler_wl_CXX='-Wl,'
12205 # Make sure the PIC flag is empty. It appears that all Alpha
12206 # Linux and Compaq Tru64 Unix objects are PIC.
12207 lt_prog_compiler_pic_CXX=
12208 lt_prog_compiler_static_CXX='-non_shared'
12217 case $cc_basename in
12219 # Sun C++ 4.2, 5.x and Centerline C++
12220 lt_prog_compiler_pic_CXX='-KPIC'
12221 lt_prog_compiler_static_CXX='-Bstatic'
12222 lt_prog_compiler_wl_CXX='-Qoption ld '
12225 # Green Hills C++ Compiler
12226 lt_prog_compiler_pic_CXX='-PIC'
12233 case $cc_basename in
12236 lt_prog_compiler_pic_CXX='-pic'
12237 lt_prog_compiler_static_CXX='-Bstatic'
12241 lt_prog_compiler_pic_CXX='-pic'
12248 case $cc_basename in
12250 # NonStop-UX NCC 3.20
12251 lt_prog_compiler_pic_CXX='-KPIC'
12257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12258 case $cc_basename in
12260 lt_prog_compiler_wl_CXX='-Wl,'
12261 lt_prog_compiler_pic_CXX='-KPIC'
12262 lt_prog_compiler_static_CXX='-Bstatic'
12269 lt_prog_compiler_can_build_shared_CXX=no
12274 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12275 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12278 # Check to make sure the PIC flag actually works.
12280 if test -n "$lt_prog_compiler_pic_CXX"; then
12282 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12283 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12284 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 lt_prog_compiler_pic_works_CXX=no
12288 ac_outfile=conftest.$ac_objext
12289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12290 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12291 # Insert the option either (1) after the last *FLAGS variable, or
12292 # (2) before a word containing "conftest.", or (3) at the end.
12293 # Note that $ac_compile itself does not contain backslashes and begins
12294 # with a dollar sign (not a hyphen), so the echo should work correctly.
12295 # The option is referenced via a variable to avoid confusing sed.
12296 lt_compile=`echo "$ac_compile" | $SED \
12297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12299 -e 's:$: $lt_compiler_flag:'`
12300 (eval echo "\"\$as_me:12300: $lt_compile\"" >&5)
12301 (eval "$lt_compile" 2>conftest.err)
12303 cat conftest.err >&5
12304 echo "$as_me:12304: \$? = $ac_status" >&5
12305 if (exit $ac_status) && test -s "$ac_outfile"; then
12306 # The compiler can only warn and ignore the option if not recognized
12307 # So say no if there are warnings other than the usual output.
12308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12311 lt_prog_compiler_pic_works_CXX=yes
12317 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12318 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12320 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12321 case $lt_prog_compiler_pic_CXX in
12323 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12326 lt_prog_compiler_pic_CXX=
12327 lt_prog_compiler_can_build_shared_CXX=no
12332 # For platforms which do not support PIC, -DPIC is meaningless:
12334 lt_prog_compiler_pic_CXX=
12337 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12342 # Check to make sure the static flag actually works.
12344 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12345 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12346 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12347 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12350 lt_prog_compiler_static_works_CXX=no
12351 save_LDFLAGS="$LDFLAGS"
12352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12353 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12355 # The linker can only warn and ignore the option if not recognized
12356 # So say no if there are warnings
12357 if test -s conftest.err; then
12358 # Append any errors to the config.log.
12359 cat conftest.err 1>&5
12360 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12362 if diff conftest.exp conftest.er2 >/dev/null; then
12363 lt_prog_compiler_static_works_CXX=yes
12366 lt_prog_compiler_static_works_CXX=yes
12370 LDFLAGS="$save_LDFLAGS"
12373 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12374 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12376 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12379 lt_prog_compiler_static_CXX=
12383 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12384 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12385 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 lt_cv_prog_compiler_c_o_CXX=no
12389 $rm -r conftest 2>/dev/null
12393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12395 lt_compiler_flag="-o out/conftest2.$ac_objext"
12396 # Insert the option either (1) after the last *FLAGS variable, or
12397 # (2) before a word containing "conftest.", or (3) at the end.
12398 # Note that $ac_compile itself does not contain backslashes and begins
12399 # with a dollar sign (not a hyphen), so the echo should work correctly.
12400 lt_compile=`echo "$ac_compile" | $SED \
12401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12403 -e 's:$: $lt_compiler_flag:'`
12404 (eval echo "\"\$as_me:12404: $lt_compile\"" >&5)
12405 (eval "$lt_compile" 2>out/conftest.err)
12407 cat out/conftest.err >&5
12408 echo "$as_me:12408: \$? = $ac_status" >&5
12409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12411 # The compiler can only warn and ignore the option if not recognized
12412 # So say no if there are warnings
12413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12416 lt_cv_prog_compiler_c_o_CXX=yes
12421 # SGI C++ compiler will create directory out/ii_files/ for
12422 # template instantiation
12423 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12424 $rm out/* && rmdir out
12430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12431 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12434 hard_links="nottested"
12435 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12436 # do not overwrite the value of need_locks provided by the user
12437 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12438 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12443 ln conftest.a conftest.b 2>&5 || hard_links=no
12444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12445 { echo "$as_me:$LINENO: result: $hard_links" >&5
12446 echo "${ECHO_T}$hard_links" >&6; }
12447 if test "$hard_links" = no; then
12448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12449 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12456 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12457 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12459 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12462 # If we're using GNU nm, then we don't want the "-C" option.
12463 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12464 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12465 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'
12467 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'
12471 export_symbols_cmds_CXX="$ltdll_cmds"
12474 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'
12476 linux* | k*bsd*-gnu)
12477 link_all_deplibs_CXX=no
12480 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12484 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12485 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12486 test "$ld_shlibs_CXX" = no && can_build_shared=no
12489 # Do we need to explicitly link libc?
12491 case "x$archive_cmds_need_lc_CXX" in
12493 # Assume -lc should be added
12494 archive_cmds_need_lc_CXX=yes
12496 if test "$enable_shared" = yes && test "$GCC" = yes; then
12497 case $archive_cmds_CXX in
12499 # FIXME: we may have to deal with multi-command sequences.
12502 # Test whether the compiler implicitly links with -lc since on some
12503 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12504 # to ld, don't add -lc before -lgcc.
12505 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12506 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511 (eval $ac_compile) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } 2>conftest.err; then
12517 libobjs=conftest.$ac_objext
12519 wl=$lt_prog_compiler_wl_CXX
12520 pic_flag=$lt_prog_compiler_pic_CXX
12526 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12527 allow_undefined_flag_CXX=
12528 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12529 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }
12534 archive_cmds_need_lc_CXX=no
12536 archive_cmds_need_lc_CXX=yes
12538 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12540 cat conftest.err 1>&5
12543 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12544 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12551 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12552 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12553 library_names_spec=
12554 libname_spec='lib$name'
12558 postuninstall_cmds=
12562 shlibpath_overrides_runpath=unknown
12564 dynamic_linker="$host_os ld.so"
12565 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12566 if test "$GCC" = yes; then
12567 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12568 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12569 # if the path contains ";" then we assume it to be the separator
12570 # otherwise default to the standard path separator (i.e. ":") - it is
12571 # assumed that no part of a normal pathname contains ";" but that should
12572 # okay in the real world where ";" in dirpaths is itself problematic.
12573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12580 need_lib_prefix=unknown
12581 hardcode_into_libs=no
12583 # when you set need_version to no, make sure it does not cause -set_version
12584 # flags to be left without arguments
12585 need_version=unknown
12590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12591 shlibpath_var=LIBPATH
12593 # AIX 3 has no versioning support, so we append a major version to the name.
12594 soname_spec='${libname}${release}${shared_ext}$major'
12601 hardcode_into_libs=yes
12602 if test "$host_cpu" = ia64; then
12603 # AIX 5 supports IA64
12604 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12605 shlibpath_var=LD_LIBRARY_PATH
12607 # With GCC up to 2.95.x, collect2 would create an import file
12608 # for dependence libraries. The import file would start with
12609 # the line `#! .'. This would cause the generated library to
12610 # depend on `.', always an invalid library. This was fixed in
12611 # development snapshots of GCC prior to 3.0.
12613 aix4 | aix4.[01] | aix4.[01].*)
12614 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12616 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12619 can_build_shared=no
12623 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12624 # soname into executable. Probably we can add versioning support to
12625 # collect2, so additional links can be useful in future.
12626 if test "$aix_use_runtimelinking" = yes; then
12627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12628 # instead of lib<name>.a to let people know that these are not
12629 # typical AIX shared libraries.
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12632 # We preserve .a as extension for shared libraries through AIX4.2
12633 # and later when we are not doing run time linking.
12634 library_names_spec='${libname}${release}.a $libname.a'
12635 soname_spec='${libname}${release}${shared_ext}$major'
12637 shlibpath_var=LIBPATH
12642 library_names_spec='$libname.ixlibrary $libname.a'
12643 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12644 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'
12648 library_names_spec='${libname}${shared_ext}'
12649 dynamic_linker="$host_os ld.so"
12650 shlibpath_var=LIBRARY_PATH
12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12657 soname_spec='${libname}${release}${shared_ext}$major'
12658 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12659 shlibpath_var=LD_LIBRARY_PATH
12660 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12661 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12662 # the default ld.so.conf also contains /usr/contrib/lib and
12663 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12664 # libtool to hard-code these into programs
12667 cygwin* | mingw* | pw32*)
12668 version_type=windows
12673 case $GCC,$host_os in
12674 yes,cygwin* | yes,mingw* | yes,pw32*)
12675 library_names_spec='$libname.dll.a'
12676 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12677 postinstall_cmds='base_file=`basename \${file}`~
12678 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12679 dldir=$destdir/`dirname \$dlpath`~
12680 test -d \$dldir || mkdir -p \$dldir~
12681 $install_prog $dir/$dlname \$dldir/$dlname~
12682 chmod a+x \$dldir/$dlname'
12683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12684 dlpath=$dir/\$dldll~
12686 shlibpath_overrides_runpath=yes
12690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12692 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12695 # MinGW DLLs use traditional 'lib' prefix
12696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12698 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12699 # It is most probably a Windows format PATH printed by
12700 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12701 # path with ; separators, and with drive letters. We can handle the
12702 # drive letters (cygwin fileutils understands them), so leave them,
12703 # especially as we might pass files found there to a mingw objdump,
12704 # which wouldn't understand a cygwinified path. Ahh.
12705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12711 # pw32 DLLs use 'pw' prefix rather than 'lib'
12712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12721 dynamic_linker='Win32 ld.exe'
12722 # FIXME: first we should search . and the directory the executable is in
12726 darwin* | rhapsody*)
12727 dynamic_linker="$host_os dyld"
12728 version_type=darwin
12731 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12732 soname_spec='${libname}${release}${major}$shared_ext'
12733 shlibpath_overrides_runpath=yes
12734 shlibpath_var=DYLD_LIBRARY_PATH
12735 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12736 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12737 if test "$GCC" = yes; then
12738 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"`
12740 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12742 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12750 soname_spec='${libname}${release}${shared_ext}$major'
12751 shlibpath_var=LD_LIBRARY_PATH
12758 freebsd* | dragonfly*)
12759 # DragonFly does not have aout. When/if they implement a new
12760 # versioning mechanism, adjust this.
12761 if test -x /usr/bin/objformat; then
12762 objformat=`/usr/bin/objformat`
12765 freebsd[123]*) objformat=aout ;;
12766 *) objformat=elf ;;
12769 version_type=freebsd-$objformat
12770 case $version_type in
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12781 shlibpath_var=LD_LIBRARY_PATH
12784 shlibpath_overrides_runpath=yes
12786 freebsd3.[01]* | freebsdelf3.[01]*)
12787 shlibpath_overrides_runpath=yes
12788 hardcode_into_libs=yes
12790 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12791 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12792 shlibpath_overrides_runpath=no
12793 hardcode_into_libs=yes
12795 freebsd*) # from 4.6 on
12796 shlibpath_overrides_runpath=yes
12797 hardcode_into_libs=yes
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12807 soname_spec='${libname}${release}${shared_ext}$major'
12808 shlibpath_var=LD_LIBRARY_PATH
12809 hardcode_into_libs=yes
12812 hpux9* | hpux10* | hpux11*)
12813 # Give a soname corresponding to the major version so that dld.sl refuses to
12814 # link against other versions.
12821 hardcode_into_libs=yes
12822 dynamic_linker="$host_os dld.so"
12823 shlibpath_var=LD_LIBRARY_PATH
12824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12826 soname_spec='${libname}${release}${shared_ext}$major'
12827 if test "X$HPUX_IA64_MODE" = X32; then
12828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12836 hardcode_into_libs=yes
12837 dynamic_linker="$host_os dld.sl"
12838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12847 dynamic_linker="$host_os dld.sl"
12848 shlibpath_var=SHLIB_PATH
12849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
12854 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12855 postinstall_cmds='chmod 555 $lib'
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12863 soname_spec='${libname}${release}${shared_ext}$major'
12864 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 shlibpath_overrides_runpath=no
12867 hardcode_into_libs=yes
12870 irix5* | irix6* | nonstopux*)
12872 nonstopux*) version_type=nonstopux ;;
12874 if test "$lt_cv_prog_gnu_ld" = yes; then
12882 soname_spec='${libname}${release}${shared_ext}$major'
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12885 irix5* | nonstopux*)
12886 libsuff= shlibsuff=
12889 case $LD in # libtool.m4 will add one of these switches to LD
12890 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12891 libsuff= shlibsuff= libmagic=32-bit;;
12892 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12893 libsuff=32 shlibsuff=N32 libmagic=N32;;
12894 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12895 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12896 *) libsuff= shlibsuff= libmagic=never-match;;
12900 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12901 shlibpath_overrides_runpath=no
12902 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12903 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12904 hardcode_into_libs=yes
12907 # No shared lib support for Linux oldld, aout, or coff.
12908 linux*oldld* | linux*aout* | linux*coff*)
12912 # This must be Linux ELF.
12913 linux* | k*bsd*-gnu)
12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918 soname_spec='${libname}${release}${shared_ext}$major'
12919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12920 shlibpath_var=LD_LIBRARY_PATH
12921 shlibpath_overrides_runpath=no
12922 # This implies no fast_install, which is unacceptable.
12923 # Some rework will be needed to allow for fast_install
12924 # before this can be enabled.
12925 hardcode_into_libs=yes
12927 # Append ld.so.conf contents to the search path
12928 if test -f /etc/ld.so.conf; then
12929 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' ' '`
12930 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12933 # We used to test for /lib/ld.so.1 and disable shared libraries on
12934 # powerpc, because MkLinux only supported shared libraries with the
12935 # GNU dynamic linker. Since this was broken with cross compilers,
12936 # most powerpc-linux boxes support dynamic linking these days and
12937 # people can always --disable-shared, the test was removed, and we
12938 # assume the GNU/Linux dynamic linker is in use.
12939 dynamic_linker='GNU/Linux ld.so'
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12947 soname_spec='${libname}${release}${shared_ext}$major'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 shlibpath_overrides_runpath=no
12950 hardcode_into_libs=yes
12951 dynamic_linker='NetBSD ld.elf_so'
12958 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12961 dynamic_linker='NetBSD (a.out) ld.so'
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 dynamic_linker='NetBSD ld.elf_so'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 shlibpath_overrides_runpath=yes
12969 hardcode_into_libs=yes
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975 shlibpath_var=LD_LIBRARY_PATH
12976 shlibpath_overrides_runpath=yes
12983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984 soname_spec='${libname}${release}${shared_ext}$major'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 shlibpath_overrides_runpath=yes
12991 sys_lib_dlsearch_path_spec="/usr/lib"
12993 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12995 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12996 *) need_version=no ;;
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13003 openbsd2.[89] | openbsd2.[89].*)
13004 shlibpath_overrides_runpath=no
13007 shlibpath_overrides_runpath=yes
13011 shlibpath_overrides_runpath=yes
13016 libname_spec='$name'
13019 library_names_spec='$libname${shared_ext} $libname.a'
13020 dynamic_linker='OS/2 ld.exe'
13021 shlibpath_var=LIBPATH
13024 osf3* | osf4* | osf5*)
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030 shlibpath_var=LD_LIBRARY_PATH
13031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13032 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040 soname_spec='${libname}${release}${shared_ext}$major'
13041 shlibpath_var=LD_LIBRARY_PATH
13042 shlibpath_overrides_runpath=yes
13043 hardcode_into_libs=yes
13044 # ldd complains unless libraries are executable
13045 postinstall_cmds='chmod +x $lib'
13050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13051 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13052 shlibpath_var=LD_LIBRARY_PATH
13053 shlibpath_overrides_runpath=yes
13054 if test "$with_gnu_ld" = yes; then
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13063 soname_spec='${libname}${release}${shared_ext}$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 case $host_vendor in
13067 shlibpath_overrides_runpath=no
13069 export_dynamic_flag_spec='${wl}-Blargedynsym'
13070 runpath_var=LD_RUN_PATH
13078 shlibpath_overrides_runpath=no
13079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13085 if test -d /usr/nec ;then
13087 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13088 soname_spec='$libname${shared_ext}.$major'
13089 shlibpath_var=LD_LIBRARY_PATH
13093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13094 version_type=freebsd-elf
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 shlibpath_var=LD_LIBRARY_PATH
13100 hardcode_into_libs=yes
13101 if test "$with_gnu_ld" = yes; then
13102 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13103 shlibpath_overrides_runpath=no
13105 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13106 shlibpath_overrides_runpath=yes
13109 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13113 sys_lib_dlsearch_path_spec='/usr/lib'
13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13119 soname_spec='${libname}${release}${shared_ext}$major'
13120 shlibpath_var=LD_LIBRARY_PATH
13127 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13128 echo "${ECHO_T}$dynamic_linker" >&6; }
13129 test "$dynamic_linker" = no && can_build_shared=no
13131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13132 if test "$GCC" = yes; then
13133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13136 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13137 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13138 hardcode_action_CXX=
13139 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13140 test -n "$runpath_var_CXX" || \
13141 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13143 # We can hardcode non-existant directories.
13144 if test "$hardcode_direct_CXX" != no &&
13145 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13146 # have to relink, otherwise we might link with an installed library
13147 # when we should be linking with a yet-to-be-installed one
13148 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13149 test "$hardcode_minus_L_CXX" != no; then
13150 # Linking always hardcodes the temporary library directory.
13151 hardcode_action_CXX=relink
13153 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13154 hardcode_action_CXX=immediate
13157 # We cannot hardcode anything, or else we can only hardcode existing
13159 hardcode_action_CXX=unsupported
13161 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13162 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13164 if test "$hardcode_action_CXX" = relink; then
13165 # Fast installation is not supported
13166 enable_fast_install=no
13167 elif test "$shlibpath_overrides_runpath" = yes ||
13168 test "$enable_shared" = no; then
13169 # Fast installation is not necessary
13170 enable_fast_install=needless
13174 # The else clause should only fire when bootstrapping the
13175 # libtool distribution, otherwise you forgot to ship ltmain.sh
13176 # with your package, and you will get complaints that there are
13177 # no rules to generate ltmain.sh.
13178 if test -f "$ltmain"; then
13179 # See if we are running on zsh, and set the options which allow our commands through
13180 # without removal of \ escapes.
13181 if test -n "${ZSH_VERSION+set}" ; then
13182 setopt NO_GLOB_SUBST
13184 # Now quote all the things that may contain metacharacters while being
13185 # careful not to overquote the AC_SUBSTed values. We take copies of the
13186 # variables and quote the copies for generation of the libtool script.
13187 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13189 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13190 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13191 deplibs_check_method reload_flag reload_cmds need_locks \
13192 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13193 lt_cv_sys_global_symbol_to_c_name_address \
13194 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13195 old_postinstall_cmds old_postuninstall_cmds \
13199 lt_prog_compiler_wl_CXX \
13200 lt_prog_compiler_pic_CXX \
13201 lt_prog_compiler_static_CXX \
13202 lt_prog_compiler_no_builtin_flag_CXX \
13203 export_dynamic_flag_spec_CXX \
13204 thread_safe_flag_spec_CXX \
13205 whole_archive_flag_spec_CXX \
13206 enable_shared_with_static_runtimes_CXX \
13207 old_archive_cmds_CXX \
13208 old_archive_from_new_cmds_CXX \
13209 predep_objects_CXX \
13210 postdep_objects_CXX \
13213 compiler_lib_search_path_CXX \
13215 archive_expsym_cmds_CXX \
13216 postinstall_cmds_CXX \
13217 postuninstall_cmds_CXX \
13218 old_archive_from_expsyms_cmds_CXX \
13219 allow_undefined_flag_CXX \
13220 no_undefined_flag_CXX \
13221 export_symbols_cmds_CXX \
13222 hardcode_libdir_flag_spec_CXX \
13223 hardcode_libdir_flag_spec_ld_CXX \
13224 hardcode_libdir_separator_CXX \
13225 hardcode_automatic_CXX \
13227 module_expsym_cmds_CXX \
13228 lt_cv_prog_compiler_c_o_CXX \
13229 exclude_expsyms_CXX \
13230 include_expsyms_CXX; do
13233 old_archive_cmds_CXX | \
13234 old_archive_from_new_cmds_CXX | \
13235 archive_cmds_CXX | \
13236 archive_expsym_cmds_CXX | \
13237 module_cmds_CXX | \
13238 module_expsym_cmds_CXX | \
13239 old_archive_from_expsyms_cmds_CXX | \
13240 export_symbols_cmds_CXX | \
13241 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13242 postinstall_cmds | postuninstall_cmds | \
13243 old_postinstall_cmds | old_postuninstall_cmds | \
13244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13245 # Double-quote double-evaled strings.
13246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13255 *'\$0 --fallback-echo"')
13256 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13262 cat <<__EOF__ >> "$cfgfile"
13263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13267 # Shell to use when invoking shell scripts.
13270 # Whether or not to build shared libraries.
13271 build_libtool_libs=$enable_shared
13273 # Whether or not to build static libraries.
13274 build_old_libs=$enable_static
13276 # Whether or not to add -lc for building shared libraries.
13277 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13279 # Whether or not to disallow shared libs when runtime libs are static
13280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13282 # Whether or not to optimize for fast installation.
13283 fast_install=$enable_fast_install
13286 host_alias=$host_alias
13290 # The build system.
13291 build_alias=$build_alias
13295 # An echo program that does not interpret backslashes.
13300 AR_FLAGS=$lt_AR_FLAGS
13305 # LTCC compiler flags.
13306 LTCFLAGS=$lt_LTCFLAGS
13308 # A language-specific compiler.
13309 CC=$lt_compiler_CXX
13311 # Is the compiler the GNU C compiler?
13317 # The linker used to build libraries.
13320 # Whether we need hard or soft links.
13323 # A BSD-compatible nm program.
13326 # A symbol stripping program
13329 # Used to examine libraries when file_magic_cmd begins "file"
13330 MAGIC_CMD=$MAGIC_CMD
13332 # Used on cygwin: DLL creation program.
13335 # Used on cygwin: object dumper.
13338 # Used on cygwin: assembler.
13341 # The name of the directory that contains temporary libtool files.
13344 # How to create reloadable object files.
13345 reload_flag=$lt_reload_flag
13346 reload_cmds=$lt_reload_cmds
13348 # How to pass a linker flag through the compiler.
13349 wl=$lt_lt_prog_compiler_wl_CXX
13351 # Object file suffix (normally "o").
13352 objext="$ac_objext"
13354 # Old archive suffix (normally "a").
13357 # Shared library suffix (normally ".so").
13358 shrext_cmds='$shrext_cmds'
13360 # Executable file suffix (normally "").
13363 # Additional compiler flags for building library objects.
13364 pic_flag=$lt_lt_prog_compiler_pic_CXX
13367 # What is the maximum length of a command?
13368 max_cmd_len=$lt_cv_sys_max_cmd_len
13370 # Does compiler simultaneously support -c and -o options?
13371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13373 # Must we lock files when doing compilation?
13374 need_locks=$lt_need_locks
13376 # Do we need the lib prefix for modules?
13377 need_lib_prefix=$need_lib_prefix
13379 # Do we need a version for libraries?
13380 need_version=$need_version
13382 # Whether dlopen is supported.
13383 dlopen_support=$enable_dlopen
13385 # Whether dlopen of programs is supported.
13386 dlopen_self=$enable_dlopen_self
13388 # Whether dlopen of statically linked programs is supported.
13389 dlopen_self_static=$enable_dlopen_self_static
13391 # Compiler flag to prevent dynamic linking.
13392 link_static_flag=$lt_lt_prog_compiler_static_CXX
13394 # Compiler flag to turn off builtin functions.
13395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13397 # Compiler flag to allow reflexive dlopens.
13398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13400 # Compiler flag to generate shared objects directly from archives.
13401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13403 # Compiler flag to generate thread-safe objects.
13404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13406 # Library versioning type.
13407 version_type=$version_type
13409 # Format of library name prefix.
13410 libname_spec=$lt_libname_spec
13412 # List of archive names. First name is the real one, the rest are links.
13413 # The last name is the one that the linker finds with -lNAME.
13414 library_names_spec=$lt_library_names_spec
13416 # The coded name of the library, if different from the real name.
13417 soname_spec=$lt_soname_spec
13419 # Commands used to build and install an old-style archive.
13421 old_archive_cmds=$lt_old_archive_cmds_CXX
13422 old_postinstall_cmds=$lt_old_postinstall_cmds
13423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13425 # Create an old-style archive from a shared archive.
13426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13428 # Create a temporary old-style archive to link instead of a shared archive.
13429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13431 # Commands used to build and install a shared archive.
13432 archive_cmds=$lt_archive_cmds_CXX
13433 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13434 postinstall_cmds=$lt_postinstall_cmds
13435 postuninstall_cmds=$lt_postuninstall_cmds
13437 # Commands used to build a loadable module (assumed same as above if empty)
13438 module_cmds=$lt_module_cmds_CXX
13439 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13441 # Commands to strip libraries.
13442 old_striplib=$lt_old_striplib
13443 striplib=$lt_striplib
13445 # Dependencies to place before the objects being linked to create a
13447 predep_objects=$lt_predep_objects_CXX
13449 # Dependencies to place after the objects being linked to create a
13451 postdep_objects=$lt_postdep_objects_CXX
13453 # Dependencies to place before the objects being linked to create a
13455 predeps=$lt_predeps_CXX
13457 # Dependencies to place after the objects being linked to create a
13459 postdeps=$lt_postdeps_CXX
13461 # The library search path used internally by the compiler when linking
13462 # a shared library.
13463 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13465 # Method to check whether dependent libraries are shared objects.
13466 deplibs_check_method=$lt_deplibs_check_method
13468 # Command to use when deplibs_check_method == file_magic.
13469 file_magic_cmd=$lt_file_magic_cmd
13471 # Flag that allows shared libraries with undefined symbols to be built.
13472 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13474 # Flag that forces no undefined symbols.
13475 no_undefined_flag=$lt_no_undefined_flag_CXX
13477 # Commands used to finish a libtool library installation in a directory.
13478 finish_cmds=$lt_finish_cmds
13480 # Same as above, but a single script fragment to be evaled but not shown.
13481 finish_eval=$lt_finish_eval
13483 # Take the output of nm and produce a listing of raw symbols and C names.
13484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13486 # Transform the output of nm in a proper C declaration
13487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13489 # Transform the output of nm in a C name address pair
13490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13492 # This is the shared library runtime path variable.
13493 runpath_var=$runpath_var
13495 # This is the shared library path variable.
13496 shlibpath_var=$shlibpath_var
13498 # Is shlibpath searched before the hard-coded library search path?
13499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13501 # How to hardcode a shared library path into an executable.
13502 hardcode_action=$hardcode_action_CXX
13504 # Whether we should hardcode library paths into libraries.
13505 hardcode_into_libs=$hardcode_into_libs
13507 # Flag to hardcode \$libdir into a binary during linking.
13508 # This must work even if \$libdir does not exist.
13509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13511 # If ld is used when linking, flag to hardcode \$libdir into
13512 # a binary during linking. This must work even if \$libdir does
13514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13516 # Whether we need a single -rpath flag with a separated argument.
13517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13520 # resulting binary.
13521 hardcode_direct=$hardcode_direct_CXX
13523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13524 # resulting binary.
13525 hardcode_minus_L=$hardcode_minus_L_CXX
13527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13528 # the resulting binary.
13529 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13531 # Set to yes if building a shared library automatically hardcodes DIR into the library
13532 # and all subsequent libraries and executables linked against it.
13533 hardcode_automatic=$hardcode_automatic_CXX
13535 # Variables whose values should be saved in libtool wrapper scripts and
13536 # restored at relink time.
13537 variables_saved_for_relink="$variables_saved_for_relink"
13539 # Whether libtool must link a program against all its dependency libraries.
13540 link_all_deplibs=$link_all_deplibs_CXX
13542 # Compile-time system search path for libraries
13543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13545 # Run-time system search path for libraries
13546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13548 # Fix the shell variable \$srcfile for the compiler.
13549 fix_srcfile_path="$fix_srcfile_path_CXX"
13551 # Set to yes if exported symbols are required.
13552 always_export_symbols=$always_export_symbols_CXX
13554 # The commands to list exported symbols.
13555 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13557 # The commands to extract the exported symbol list from a shared archive.
13558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13560 # Symbols that should not be listed in the preloaded symbols.
13561 exclude_expsyms=$lt_exclude_expsyms_CXX
13563 # Symbols that must always be exported.
13564 include_expsyms=$lt_include_expsyms_CXX
13566 # ### END LIBTOOL TAG CONFIG: $tagname
13572 # If there is no Makefile yet, we rely on a make rule to execute
13573 # `config.status --recheck' to rerun these tests and create the
13574 # libtool script then.
13575 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13576 if test -f "$ltmain_in"; then
13577 test -f Makefile && make "$ltmain"
13583 ac_cpp='$CPP $CPPFLAGS'
13584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13592 with_gnu_ldcxx=$with_gnu_ld
13593 with_gnu_ld=$lt_save_with_gnu_ld
13594 lt_cv_path_LDCXX=$lt_cv_path_LD
13595 lt_cv_path_LD=$lt_save_path_LD
13596 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13597 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13605 if test -n "$F77" && test "X$F77" != "Xno"; then
13608 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13609 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13610 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13613 archive_cmds_need_lc_F77=no
13614 allow_undefined_flag_F77=
13615 always_export_symbols_F77=no
13616 archive_expsym_cmds_F77=
13617 export_dynamic_flag_spec_F77=
13618 hardcode_direct_F77=no
13619 hardcode_libdir_flag_spec_F77=
13620 hardcode_libdir_flag_spec_ld_F77=
13621 hardcode_libdir_separator_F77=
13622 hardcode_minus_L_F77=no
13623 hardcode_automatic_F77=no
13625 module_expsym_cmds_F77=
13626 link_all_deplibs_F77=unknown
13627 old_archive_cmds_F77=$old_archive_cmds
13628 no_undefined_flag_F77=
13629 whole_archive_flag_spec_F77=
13630 enable_shared_with_static_runtimes_F77=no
13632 # Source file extension for f77 test sources.
13635 # Object file extension for compiled f77 test sources.
13639 # Code to be used in simple compile tests
13640 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13642 # Code to be used in simple link tests
13643 lt_simple_link_test_code=" program t\n end\n"
13645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13647 # If no C compiler was specified, use CC.
13650 # If no C compiler flags were specified, use CFLAGS.
13651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13653 # Allow CC to be a program name with arguments.
13657 # save warnings/boilerplate of simple test code
13658 ac_outfile=conftest.$ac_objext
13659 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13661 _lt_compiler_boilerplate=`cat conftest.err`
13664 ac_outfile=conftest.$ac_objext
13665 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13667 _lt_linker_boilerplate=`cat conftest.err`
13671 # Allow CC to be a program name with arguments.
13676 for cc_temp in $compiler""; do
13678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13684 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13687 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13688 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13689 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13690 echo "${ECHO_T}$can_build_shared" >&6; }
13692 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13693 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13694 test "$can_build_shared" = "no" && enable_shared=no
13696 # On AIX, shared libraries and static libraries use the same namespace, and
13697 # are all built from PIC.
13700 test "$enable_shared" = yes && enable_static=no
13701 if test -n "$RANLIB"; then
13702 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13703 postinstall_cmds='$RANLIB $lib'
13707 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13708 test "$enable_shared" = yes && enable_static=no
13712 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13713 echo "${ECHO_T}$enable_shared" >&6; }
13715 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13716 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13717 # Make sure either enable_shared or enable_static is yes.
13718 test "$enable_shared" = yes || enable_static=yes
13719 { echo "$as_me:$LINENO: result: $enable_static" >&5
13720 echo "${ECHO_T}$enable_static" >&6; }
13725 lt_prog_compiler_wl_F77=
13726 lt_prog_compiler_pic_F77=
13727 lt_prog_compiler_static_F77=
13729 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13730 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13732 if test "$GCC" = yes; then
13733 lt_prog_compiler_wl_F77='-Wl,'
13734 lt_prog_compiler_static_F77='-static'
13738 # All AIX code is PIC.
13739 if test "$host_cpu" = ia64; then
13740 # AIX 5 now supports IA64 processor
13741 lt_prog_compiler_static_F77='-Bstatic'
13746 # FIXME: we need at least 68020 code to build shared libraries, but
13747 # adding the `-m68020' flag to GCC prevents building anything better,
13749 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13753 # PIC is the default for these OSes.
13756 mingw* | pw32* | os2*)
13757 # This hack is so that the source file can tell whether it is being
13758 # built for inclusion in a dll (and should export symbols for example).
13759 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13762 darwin* | rhapsody*)
13763 # PIC is the default on this platform
13764 # Common symbols not allowed in MH_DYLIB files
13765 lt_prog_compiler_pic_F77='-fno-common'
13769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13770 # Instead, we relocate shared libraries at runtime.
13774 # Just because we use GCC doesn't mean we suddenly get shared libraries
13775 # on systems that don't support them.
13776 lt_prog_compiler_can_build_shared_F77=no
13781 if test -d /usr/nec; then
13782 lt_prog_compiler_pic_F77=-Kconform_pic
13787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13788 # not for PA HP-UX.
13794 lt_prog_compiler_pic_F77='-fPIC'
13800 lt_prog_compiler_pic_F77='-fPIC'
13804 # PORTME Check for flag to pass linker flags through the system compiler.
13807 lt_prog_compiler_wl_F77='-Wl,'
13808 if test "$host_cpu" = ia64; then
13809 # AIX 5 now supports IA64 processor
13810 lt_prog_compiler_static_F77='-Bstatic'
13812 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13816 # PIC is the default on this platform
13817 # Common symbols not allowed in MH_DYLIB files
13818 case $cc_basename in
13820 lt_prog_compiler_pic_F77='-qnocommon'
13821 lt_prog_compiler_wl_F77='-Wl,'
13826 mingw* | pw32* | os2*)
13827 # This hack is so that the source file can tell whether it is being
13828 # built for inclusion in a dll (and should export symbols for example).
13829 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13832 hpux9* | hpux10* | hpux11*)
13833 lt_prog_compiler_wl_F77='-Wl,'
13834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13835 # not for PA HP-UX.
13841 lt_prog_compiler_pic_F77='+Z'
13844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13845 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13848 irix5* | irix6* | nonstopux*)
13849 lt_prog_compiler_wl_F77='-Wl,'
13850 # PIC (with -KPIC) is the default.
13851 lt_prog_compiler_static_F77='-non_shared'
13855 lt_prog_compiler_pic_F77='-KPIC'
13856 lt_prog_compiler_static_F77='-Bstatic'
13859 linux* | k*bsd*-gnu)
13860 case $cc_basename in
13862 lt_prog_compiler_wl_F77='-Wl,'
13863 lt_prog_compiler_pic_F77='-KPIC'
13864 lt_prog_compiler_static_F77='-static'
13866 pgcc* | pgf77* | pgf90* | pgf95*)
13867 # Portland Group compilers (*not* the Pentium gcc compiler,
13868 # which looks to be a dead project)
13869 lt_prog_compiler_wl_F77='-Wl,'
13870 lt_prog_compiler_pic_F77='-fpic'
13871 lt_prog_compiler_static_F77='-Bstatic'
13874 lt_prog_compiler_wl_F77='-Wl,'
13875 # All Alpha code is PIC.
13876 lt_prog_compiler_static_F77='-non_shared'
13881 osf3* | osf4* | osf5*)
13882 lt_prog_compiler_wl_F77='-Wl,'
13883 # All OSF/1 code is PIC.
13884 lt_prog_compiler_static_F77='-non_shared'
13888 lt_prog_compiler_pic_F77='-KPIC'
13889 lt_prog_compiler_static_F77='-Bstatic'
13890 case $cc_basename in
13891 f77* | f90* | f95*)
13892 lt_prog_compiler_wl_F77='-Qoption ld ';;
13894 lt_prog_compiler_wl_F77='-Wl,';;
13899 lt_prog_compiler_wl_F77='-Qoption ld '
13900 lt_prog_compiler_pic_F77='-PIC'
13901 lt_prog_compiler_static_F77='-Bstatic'
13904 sysv4 | sysv4.2uw2* | sysv4.3*)
13905 lt_prog_compiler_wl_F77='-Wl,'
13906 lt_prog_compiler_pic_F77='-KPIC'
13907 lt_prog_compiler_static_F77='-Bstatic'
13911 if test -d /usr/nec ;then
13912 lt_prog_compiler_pic_F77='-Kconform_pic'
13913 lt_prog_compiler_static_F77='-Bstatic'
13917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13918 lt_prog_compiler_wl_F77='-Wl,'
13919 lt_prog_compiler_pic_F77='-KPIC'
13920 lt_prog_compiler_static_F77='-Bstatic'
13924 lt_prog_compiler_wl_F77='-Wl,'
13925 lt_prog_compiler_can_build_shared_F77=no
13929 lt_prog_compiler_pic_F77='-pic'
13930 lt_prog_compiler_static_F77='-Bstatic'
13934 lt_prog_compiler_can_build_shared_F77=no
13939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13940 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13943 # Check to make sure the PIC flag actually works.
13945 if test -n "$lt_prog_compiler_pic_F77"; then
13947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13949 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 lt_prog_compiler_pic_works_F77=no
13953 ac_outfile=conftest.$ac_objext
13954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13956 # Insert the option either (1) after the last *FLAGS variable, or
13957 # (2) before a word containing "conftest.", or (3) at the end.
13958 # Note that $ac_compile itself does not contain backslashes and begins
13959 # with a dollar sign (not a hyphen), so the echo should work correctly.
13960 # The option is referenced via a variable to avoid confusing sed.
13961 lt_compile=`echo "$ac_compile" | $SED \
13962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964 -e 's:$: $lt_compiler_flag:'`
13965 (eval echo "\"\$as_me:13965: $lt_compile\"" >&5)
13966 (eval "$lt_compile" 2>conftest.err)
13968 cat conftest.err >&5
13969 echo "$as_me:13969: \$? = $ac_status" >&5
13970 if (exit $ac_status) && test -s "$ac_outfile"; then
13971 # The compiler can only warn and ignore the option if not recognized
13972 # So say no if there are warnings other than the usual output.
13973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13976 lt_prog_compiler_pic_works_F77=yes
13982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13983 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13985 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13986 case $lt_prog_compiler_pic_F77 in
13988 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13991 lt_prog_compiler_pic_F77=
13992 lt_prog_compiler_can_build_shared_F77=no
13997 # For platforms which do not support PIC, -DPIC is meaningless:
13999 lt_prog_compiler_pic_F77=
14002 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14007 # Check to make sure the static flag actually works.
14009 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14010 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14011 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14012 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 lt_prog_compiler_static_works_F77=no
14016 save_LDFLAGS="$LDFLAGS"
14017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14018 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14020 # The linker can only warn and ignore the option if not recognized
14021 # So say no if there are warnings
14022 if test -s conftest.err; then
14023 # Append any errors to the config.log.
14024 cat conftest.err 1>&5
14025 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14027 if diff conftest.exp conftest.er2 >/dev/null; then
14028 lt_prog_compiler_static_works_F77=yes
14031 lt_prog_compiler_static_works_F77=yes
14035 LDFLAGS="$save_LDFLAGS"
14038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14039 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14041 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14044 lt_prog_compiler_static_F77=
14048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14050 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 lt_cv_prog_compiler_c_o_F77=no
14054 $rm -r conftest 2>/dev/null
14058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14060 lt_compiler_flag="-o out/conftest2.$ac_objext"
14061 # Insert the option either (1) after the last *FLAGS variable, or
14062 # (2) before a word containing "conftest.", or (3) at the end.
14063 # Note that $ac_compile itself does not contain backslashes and begins
14064 # with a dollar sign (not a hyphen), so the echo should work correctly.
14065 lt_compile=`echo "$ac_compile" | $SED \
14066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14068 -e 's:$: $lt_compiler_flag:'`
14069 (eval echo "\"\$as_me:14069: $lt_compile\"" >&5)
14070 (eval "$lt_compile" 2>out/conftest.err)
14072 cat out/conftest.err >&5
14073 echo "$as_me:14073: \$? = $ac_status" >&5
14074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14076 # The compiler can only warn and ignore the option if not recognized
14077 # So say no if there are warnings
14078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14081 lt_cv_prog_compiler_c_o_F77=yes
14086 # SGI C++ compiler will create directory out/ii_files/ for
14087 # template instantiation
14088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14089 $rm out/* && rmdir out
14095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14099 hard_links="nottested"
14100 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14101 # do not overwrite the value of need_locks provided by the user
14102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14108 ln conftest.a conftest.b 2>&5 || hard_links=no
14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110 { echo "$as_me:$LINENO: result: $hard_links" >&5
14111 echo "${ECHO_T}$hard_links" >&6; }
14112 if test "$hard_links" = no; then
14113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14125 allow_undefined_flag_F77=
14126 enable_shared_with_static_runtimes_F77=no
14128 archive_expsym_cmds_F77=
14129 old_archive_From_new_cmds_F77=
14130 old_archive_from_expsyms_cmds_F77=
14131 export_dynamic_flag_spec_F77=
14132 whole_archive_flag_spec_F77=
14133 thread_safe_flag_spec_F77=
14134 hardcode_libdir_flag_spec_F77=
14135 hardcode_libdir_flag_spec_ld_F77=
14136 hardcode_libdir_separator_F77=
14137 hardcode_direct_F77=no
14138 hardcode_minus_L_F77=no
14139 hardcode_shlibpath_var_F77=unsupported
14140 link_all_deplibs_F77=unknown
14141 hardcode_automatic_F77=no
14143 module_expsym_cmds_F77=
14144 always_export_symbols_F77=no
14145 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14146 # include_expsyms should be a list of space-separated symbols to be *always*
14147 # included in the symbol list
14148 include_expsyms_F77=
14149 # exclude_expsyms can be an extended regexp of symbols to exclude
14150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14152 # as well as any symbol that contains `d'.
14153 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14155 # platforms (ab)use it in PIC code, but their linkers get confused if
14156 # the symbol is explicitly referenced. Since portable code cannot
14157 # rely on this symbol name, it's probably fine to never include it in
14158 # preloaded symbol tables.
14159 extract_expsyms_cmds=
14160 # Just being paranoid about ensuring that cc_basename is set.
14161 for cc_temp in $compiler""; do
14163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14172 cygwin* | mingw* | pw32*)
14173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14174 # When not using gcc, we currently assume that we are using
14175 # Microsoft Visual C++.
14176 if test "$GCC" != yes; then
14181 # we just hope/assume this is gcc and not c89 (= MSVC++)
14190 if test "$with_gnu_ld" = yes; then
14191 # If archive_cmds runs LD, not CC, wlarc should be empty
14194 # Set some defaults for GNU ld with shared library support. These
14195 # are reset later if shared libraries are not supported. Putting them
14196 # here allows them to be overridden if necessary.
14197 runpath_var=LD_RUN_PATH
14198 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14199 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14200 # ancient GNU ld didn't support --whole-archive et. al.
14201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14202 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14204 whole_archive_flag_spec_F77=
14206 supports_anon_versioning=no
14207 case `$LD -v 2>/dev/null` in
14208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14211 *\ 2.11.*) ;; # other 2.11 versions
14212 *) supports_anon_versioning=yes ;;
14215 # See if GNU ld supports shared libraries.
14217 aix3* | aix4* | aix5*)
14218 # On AIX/PPC, the GNU linker is very broken
14219 if test "$host_cpu" != ia64; then
14223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14224 *** to be unable to reliably create shared libraries on AIX.
14225 *** Therefore, libtool is disabling shared libraries support. If you
14226 *** really care for shared libraries, you may want to modify your PATH
14227 *** so that a non-GNU linker is found, and then restart.
14234 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)'
14235 hardcode_libdir_flag_spec_F77='-L$libdir'
14236 hardcode_minus_L_F77=yes
14238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14239 # that the semantics of dynamic libraries on AmigaOS, at least up
14240 # to version 4, is to share data among multiple programs linked
14241 # with the same dynamic library. Since this doesn't match the
14242 # behavior of shared libraries on other platforms, we can't use
14248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249 allow_undefined_flag_F77=unsupported
14250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14251 # support --undefined. This deserves some investigation. FIXME
14252 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14258 cygwin* | mingw* | pw32*)
14259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14260 # as there is no search path for DLLs.
14261 hardcode_libdir_flag_spec_F77='-L$libdir'
14262 allow_undefined_flag_F77=unsupported
14263 always_export_symbols_F77=no
14264 enable_shared_with_static_runtimes_F77=yes
14265 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14268 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14269 # If the export-symbols file already is a .def file (1st line
14270 # is EXPORTS), use it as is; otherwise, prepend...
14271 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14272 cp $export_symbols $output_objdir/$soname.def;
14274 echo EXPORTS > $output_objdir/$soname.def;
14275 cat $export_symbols >> $output_objdir/$soname.def;
14277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14284 hardcode_direct_F77=no
14285 hardcode_shlibpath_var_F77=no
14286 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14287 export_dynamic_flag_spec_F77='${wl}-E'
14288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14289 # Instead, shared libraries are loaded at an image base (0x10000000 by
14290 # default) and relocated if they conflict, which is a slow very memory
14291 # consuming and fragmenting process. To avoid this, we pick a random,
14292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14294 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14295 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14298 linux* | k*bsd*-gnu)
14299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14301 case $cc_basename,$host_cpu in
14302 pgcc*) # Portland Group C compiler
14303 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'
14304 tmp_addflag=' $pic_flag'
14306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14307 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'
14308 tmp_addflag=' $pic_flag -Mnomain' ;;
14309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14310 tmp_addflag=' -i_dynamic' ;;
14311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14312 tmp_addflag=' -i_dynamic -nofor_main' ;;
14313 ifc* | ifort*) # Intel Fortran compiler
14314 tmp_addflag=' -nofor_main' ;;
14316 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14318 if test $supports_anon_versioning = yes; then
14319 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14321 $echo "local: *; };" >> $output_objdir/$libname.ver~
14322 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14324 link_all_deplibs_F77=no
14330 netbsd* | netbsdelf*-gnu)
14331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14332 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14335 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14336 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14341 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14345 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14346 *** create shared libraries on Solaris systems. Therefore, libtool
14347 *** is disabling shared libraries support. We urge you to upgrade GNU
14348 *** binutils to release 2.9.1 or newer. Another option is to modify
14349 *** your PATH or compiler configuration so that the native linker is
14350 *** used, and then restart.
14353 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14354 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14355 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14362 case `$LD -v 2>&1` in
14363 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14367 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14368 *** reliably create shared libraries on SCO systems. Therefore, libtool
14369 *** is disabling shared libraries support. We urge you to upgrade GNU
14370 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14371 *** your PATH or compiler configuration so that the native linker is
14372 *** used, and then restart.
14377 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14379 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14380 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14389 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14391 hardcode_direct_F77=yes
14392 hardcode_shlibpath_var_F77=no
14396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14397 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14398 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14405 if test "$ld_shlibs_F77" = no; then
14407 hardcode_libdir_flag_spec_F77=
14408 export_dynamic_flag_spec_F77=
14409 whole_archive_flag_spec_F77=
14412 # PORTME fill in a description of your system's linker (not GNU ld)
14415 allow_undefined_flag_F77=unsupported
14416 always_export_symbols_F77=yes
14417 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'
14418 # Note: this linker hardcodes the directories in LIBPATH if there
14419 # are no directories specified by -L.
14420 hardcode_minus_L_F77=yes
14421 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14422 # Neither direct hardcoding nor static linking is supported with a
14424 hardcode_direct_F77=unsupported
14429 if test "$host_cpu" = ia64; then
14430 # On IA64, the linker does run time linking by default, so we don't
14431 # have to do anything special.
14432 aix_use_runtimelinking=no
14433 exp_sym_flag='-Bexport'
14436 # If we're using GNU nm, then we don't want the "-C" option.
14437 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14438 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14439 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'
14441 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'
14443 aix_use_runtimelinking=no
14445 # Test if we are trying to use run time linking or normal
14446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14447 # need to do runtime linking.
14448 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14449 for ld_flag in $LDFLAGS; do
14450 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14451 aix_use_runtimelinking=yes
14458 exp_sym_flag='-bexport'
14459 no_entry_flag='-bnoentry'
14462 # When large executables or shared objects are built, AIX ld can
14463 # have problems creating the table of contents. If linking a library
14464 # or program results in "error TOC overflow" add -mminimal-toc to
14465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14468 archive_cmds_F77=''
14469 hardcode_direct_F77=yes
14470 hardcode_libdir_separator_F77=':'
14471 link_all_deplibs_F77=yes
14473 if test "$GCC" = yes; then
14474 case $host_os in aix4.[012]|aix4.[012].*)
14475 # We only want to do this on AIX 4.2 and lower, the check
14476 # below for broken collect2 doesn't work under 4.3+
14477 collect2name=`${CC} -print-prog-name=collect2`
14478 if test -f "$collect2name" && \
14479 strings "$collect2name" | grep resolve_lib_name >/dev/null
14481 # We have reworked collect2
14482 hardcode_direct_F77=yes
14484 # We have old collect2
14485 hardcode_direct_F77=unsupported
14486 # It fails to find uninstalled libraries when the uninstalled
14487 # path is not listed in the libpath. Setting hardcode_minus_L
14488 # to unsupported forces relinking
14489 hardcode_minus_L_F77=yes
14490 hardcode_libdir_flag_spec_F77='-L$libdir'
14491 hardcode_libdir_separator_F77=
14495 shared_flag='-shared'
14496 if test "$aix_use_runtimelinking" = yes; then
14497 shared_flag="$shared_flag "'${wl}-G'
14501 if test "$host_cpu" = ia64; then
14502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14503 # chokes on -Wl,-G. The following line is correct:
14506 if test "$aix_use_runtimelinking" = yes; then
14507 shared_flag='${wl}-G'
14509 shared_flag='${wl}-bM:SRE'
14514 # It seems that -bexpall does not export symbols beginning with
14515 # underscore (_), so it is better to generate a list of symbols to export.
14516 always_export_symbols_F77=yes
14517 if test "$aix_use_runtimelinking" = yes; then
14518 # Warning - without using the other runtime loading flags (-brtl),
14519 # -berok will link without error, but may produce a broken library.
14520 allow_undefined_flag_F77='-berok'
14521 # Determine the default libpath from the value encoded in an empty executable.
14522 cat >conftest.$ac_ext <<_ACEOF
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (ac_try="$ac_link"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_link") 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && {
14541 test -z "$ac_f77_werror_flag" ||
14542 test ! -s conftest.err
14543 } && test -s conftest$ac_exeext &&
14544 $as_test_x conftest$ac_exeext; then
14546 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14548 # Check for a 64-bit object if we didn't find anything.
14549 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; }
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14559 conftest$ac_exeext conftest.$ac_ext
14560 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14562 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14563 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14565 if test "$host_cpu" = ia64; then
14566 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14567 allow_undefined_flag_F77="-z nodefs"
14568 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14570 # Determine the default libpath from the value encoded in an empty executable.
14571 cat >conftest.$ac_ext <<_ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (ac_try="$ac_link"
14578 case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_link") 2>conftest.er1
14585 grep -v '^ *+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_f77_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest$ac_exeext &&
14593 $as_test_x conftest$ac_exeext; then
14595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14597 # Check for a 64-bit object if we didn't find anything.
14598 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; }
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14608 conftest$ac_exeext conftest.$ac_ext
14609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14611 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14612 # Warning - without using the other run time loading flags,
14613 # -berok will link without error, but may produce a broken library.
14614 no_undefined_flag_F77=' ${wl}-bernotok'
14615 allow_undefined_flag_F77=' ${wl}-berok'
14616 # Exported symbols can be pulled into shared objects from archives
14617 whole_archive_flag_spec_F77='$convenience'
14618 archive_cmds_need_lc_F77=yes
14619 # This is similar to how AIX traditionally builds its shared libraries.
14620 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14626 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)'
14627 hardcode_libdir_flag_spec_F77='-L$libdir'
14628 hardcode_minus_L_F77=yes
14629 # see comment about different semantics on the GNU ld section
14634 export_dynamic_flag_spec_F77=-rdynamic
14637 cygwin* | mingw* | pw32*)
14638 # When not using gcc, we currently assume that we are using
14639 # Microsoft Visual C++.
14640 # hardcode_libdir_flag_spec is actually meaningless, as there is
14641 # no search path for DLLs.
14642 hardcode_libdir_flag_spec_F77=' '
14643 allow_undefined_flag_F77=unsupported
14644 # Tell ltmain to make .lib files, not .a files.
14646 # Tell ltmain to make .dll files, not .so files.
14648 # FIXME: Setting linknames here is a bad hack.
14649 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14650 # The linker will automatically build a .lib file if we build a DLL.
14651 old_archive_From_new_cmds_F77='true'
14652 # FIXME: Should let the user specify the lib program.
14653 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14654 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14655 enable_shared_with_static_runtimes_F77=yes
14658 darwin* | rhapsody*)
14660 rhapsody* | darwin1.[012])
14661 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14664 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14665 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14667 case ${MACOSX_DEPLOYMENT_TARGET} in
14669 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14672 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14678 archive_cmds_need_lc_F77=no
14679 hardcode_direct_F77=no
14680 hardcode_automatic_F77=yes
14681 hardcode_shlibpath_var_F77=unsupported
14682 whole_archive_flag_spec_F77=''
14683 link_all_deplibs_F77=yes
14684 if test "$GCC" = yes ; then
14685 output_verbose_link_cmd='echo'
14686 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14687 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14688 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14689 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}'
14690 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}'
14692 case $cc_basename in
14694 output_verbose_link_cmd='echo'
14695 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14696 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14697 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14698 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}'
14699 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}'
14709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14710 hardcode_libdir_flag_spec_F77='-L$libdir'
14711 hardcode_shlibpath_var_F77=no
14718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14719 # support. Future versions do this automatically, but an explicit c++rt0.o
14720 # does not break anything, and helps significantly (at the cost of a little
14723 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14724 hardcode_libdir_flag_spec_F77='-R$libdir'
14725 hardcode_direct_F77=yes
14726 hardcode_shlibpath_var_F77=no
14729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14731 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14732 hardcode_direct_F77=yes
14733 hardcode_minus_L_F77=yes
14734 hardcode_shlibpath_var_F77=no
14737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14738 freebsd* | dragonfly*)
14739 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14740 hardcode_libdir_flag_spec_F77='-R$libdir'
14741 hardcode_direct_F77=yes
14742 hardcode_shlibpath_var_F77=no
14746 if test "$GCC" = yes; then
14747 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'
14749 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'
14751 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14752 hardcode_libdir_separator_F77=:
14753 hardcode_direct_F77=yes
14755 # hardcode_minus_L: Not really in the search PATH,
14756 # but as the default location of the library.
14757 hardcode_minus_L_F77=yes
14758 export_dynamic_flag_spec_F77='${wl}-E'
14762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14763 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14765 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14767 if test "$with_gnu_ld" = no; then
14768 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14769 hardcode_libdir_separator_F77=:
14771 hardcode_direct_F77=yes
14772 export_dynamic_flag_spec_F77='${wl}-E'
14774 # hardcode_minus_L: Not really in the search PATH,
14775 # but as the default location of the library.
14776 hardcode_minus_L_F77=yes
14781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14784 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14787 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14790 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14796 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14799 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14802 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14806 if test "$with_gnu_ld" = no; then
14807 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14808 hardcode_libdir_separator_F77=:
14812 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14813 hardcode_direct_F77=no
14814 hardcode_shlibpath_var_F77=no
14817 hardcode_direct_F77=yes
14818 export_dynamic_flag_spec_F77='${wl}-E'
14820 # hardcode_minus_L: Not really in the search PATH,
14821 # but as the default location of the library.
14822 hardcode_minus_L_F77=yes
14828 irix5* | irix6* | nonstopux*)
14829 if test "$GCC" = yes; then
14830 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'
14832 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'
14833 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14835 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14836 hardcode_libdir_separator_F77=:
14837 link_all_deplibs_F77=yes
14840 netbsd* | netbsdelf*-gnu)
14841 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14842 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14844 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14846 hardcode_libdir_flag_spec_F77='-R$libdir'
14847 hardcode_direct_F77=yes
14848 hardcode_shlibpath_var_F77=no
14852 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14853 hardcode_direct_F77=yes
14854 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14855 hardcode_libdir_separator_F77=:
14856 hardcode_shlibpath_var_F77=no
14860 hardcode_direct_F77=yes
14861 hardcode_shlibpath_var_F77=no
14862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14863 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14864 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14865 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14866 export_dynamic_flag_spec_F77='${wl}-E'
14869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14870 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14871 hardcode_libdir_flag_spec_F77='-R$libdir'
14874 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14875 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14882 hardcode_libdir_flag_spec_F77='-L$libdir'
14883 hardcode_minus_L_F77=yes
14884 allow_undefined_flag_F77=unsupported
14885 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'
14886 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14890 if test "$GCC" = yes; then
14891 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14892 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'
14894 allow_undefined_flag_F77=' -expect_unresolved \*'
14895 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'
14897 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14898 hardcode_libdir_separator_F77=:
14901 osf4* | osf5*) # as osf3* with the addition of -msym flag
14902 if test "$GCC" = yes; then
14903 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14904 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'
14905 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14907 allow_undefined_flag_F77=' -expect_unresolved \*'
14908 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'
14909 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~
14910 $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'
14912 # Both c and cxx compiler support -rpath directly
14913 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14915 hardcode_libdir_separator_F77=:
14919 no_undefined_flag_F77=' -z text'
14920 if test "$GCC" = yes; then
14922 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14923 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14924 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14927 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14928 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14931 hardcode_libdir_flag_spec_F77='-R$libdir'
14932 hardcode_shlibpath_var_F77=no
14934 solaris2.[0-5] | solaris2.[0-5].*) ;;
14936 # The compiler driver will combine linker options so we
14937 # cannot just pass the convience library names through
14938 # without $wl, iff we do not link with $LD.
14939 # Luckily, gcc supports the same syntax we need for Sun Studio.
14940 # Supported since Solaris 2.6 (maybe 2.5.1?)
14943 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14945 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' ;;
14948 link_all_deplibs_F77=yes
14952 if test "x$host_vendor" = xsequent; then
14953 # Use $CC to link under sequent, because it throws in some extra .o
14954 # files that make .init and .fini sections work.
14955 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14957 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14959 hardcode_libdir_flag_spec_F77='-L$libdir'
14960 hardcode_direct_F77=yes
14961 hardcode_minus_L_F77=yes
14962 hardcode_shlibpath_var_F77=no
14966 case $host_vendor in
14968 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969 hardcode_direct_F77=yes # is this really true???
14972 ## LD is ld it makes a PLAMLIB
14973 ## CC just makes a GrossModule.
14974 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14975 reload_cmds_F77='$CC -r -o $output$reload_objs'
14976 hardcode_direct_F77=no
14979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14980 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14983 runpath_var='LD_RUN_PATH'
14984 hardcode_shlibpath_var_F77=no
14988 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14989 hardcode_shlibpath_var_F77=no
14990 export_dynamic_flag_spec_F77='-Bexport'
14994 if test -d /usr/nec; then
14995 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14996 hardcode_shlibpath_var_F77=no
14997 runpath_var=LD_RUN_PATH
14998 hardcode_runpath_var=yes
15003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15004 no_undefined_flag_F77='${wl}-z,text'
15005 archive_cmds_need_lc_F77=no
15006 hardcode_shlibpath_var_F77=no
15007 runpath_var='LD_RUN_PATH'
15009 if test "$GCC" = yes; then
15010 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15013 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15014 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15018 sysv5* | sco3.2v5* | sco5v6*)
15019 # Note: We can NOT use -z defs as we might desire, because we do not
15020 # link with -lc, and that would cause any symbols used from libc to
15021 # always be unresolved, which means just about no library would
15022 # ever link correctly. If we're not using GNU ld we use -z text
15023 # though, which does catch some bad symbols but isn't as heavy-handed
15025 no_undefined_flag_F77='${wl}-z,text'
15026 allow_undefined_flag_F77='${wl}-z,nodefs'
15027 archive_cmds_need_lc_F77=no
15028 hardcode_shlibpath_var_F77=no
15029 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15030 hardcode_libdir_separator_F77=':'
15031 link_all_deplibs_F77=yes
15032 export_dynamic_flag_spec_F77='${wl}-Bexport'
15033 runpath_var='LD_RUN_PATH'
15035 if test "$GCC" = yes; then
15036 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15037 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15039 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15040 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15045 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046 hardcode_libdir_flag_spec_F77='-L$libdir'
15047 hardcode_shlibpath_var_F77=no
15056 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15057 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15058 test "$ld_shlibs_F77" = no && can_build_shared=no
15061 # Do we need to explicitly link libc?
15063 case "x$archive_cmds_need_lc_F77" in
15065 # Assume -lc should be added
15066 archive_cmds_need_lc_F77=yes
15068 if test "$enable_shared" = yes && test "$GCC" = yes; then
15069 case $archive_cmds_F77 in
15071 # FIXME: we may have to deal with multi-command sequences.
15074 # Test whether the compiler implicitly links with -lc since on some
15075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15076 # to ld, don't add -lc before -lgcc.
15077 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15083 (eval $ac_compile) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } 2>conftest.err; then
15089 libobjs=conftest.$ac_objext
15091 wl=$lt_prog_compiler_wl_F77
15092 pic_flag=$lt_prog_compiler_pic_F77
15098 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15099 allow_undefined_flag_F77=
15100 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15101 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }
15106 archive_cmds_need_lc_F77=no
15108 archive_cmds_need_lc_F77=yes
15110 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15112 cat conftest.err 1>&5
15115 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15116 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15123 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15124 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15125 library_names_spec=
15126 libname_spec='lib$name'
15130 postuninstall_cmds=
15134 shlibpath_overrides_runpath=unknown
15136 dynamic_linker="$host_os ld.so"
15137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15138 if test "$GCC" = yes; then
15139 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15140 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15141 # if the path contains ";" then we assume it to be the separator
15142 # otherwise default to the standard path separator (i.e. ":") - it is
15143 # assumed that no part of a normal pathname contains ";" but that should
15144 # okay in the real world where ";" in dirpaths is itself problematic.
15145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15150 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15152 need_lib_prefix=unknown
15153 hardcode_into_libs=no
15155 # when you set need_version to no, make sure it does not cause -set_version
15156 # flags to be left without arguments
15157 need_version=unknown
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15163 shlibpath_var=LIBPATH
15165 # AIX 3 has no versioning support, so we append a major version to the name.
15166 soname_spec='${libname}${release}${shared_ext}$major'
15173 hardcode_into_libs=yes
15174 if test "$host_cpu" = ia64; then
15175 # AIX 5 supports IA64
15176 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15177 shlibpath_var=LD_LIBRARY_PATH
15179 # With GCC up to 2.95.x, collect2 would create an import file
15180 # for dependence libraries. The import file would start with
15181 # the line `#! .'. This would cause the generated library to
15182 # depend on `.', always an invalid library. This was fixed in
15183 # development snapshots of GCC prior to 3.0.
15185 aix4 | aix4.[01] | aix4.[01].*)
15186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15188 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15191 can_build_shared=no
15195 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15196 # soname into executable. Probably we can add versioning support to
15197 # collect2, so additional links can be useful in future.
15198 if test "$aix_use_runtimelinking" = yes; then
15199 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15200 # instead of lib<name>.a to let people know that these are not
15201 # typical AIX shared libraries.
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 # We preserve .a as extension for shared libraries through AIX4.2
15205 # and later when we are not doing run time linking.
15206 library_names_spec='${libname}${release}.a $libname.a'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15209 shlibpath_var=LIBPATH
15214 library_names_spec='$libname.ixlibrary $libname.a'
15215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15216 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'
15220 library_names_spec='${libname}${shared_ext}'
15221 dynamic_linker="$host_os ld.so"
15222 shlibpath_var=LIBRARY_PATH
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 soname_spec='${libname}${release}${shared_ext}$major'
15230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15234 # the default ld.so.conf also contains /usr/contrib/lib and
15235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15236 # libtool to hard-code these into programs
15239 cygwin* | mingw* | pw32*)
15240 version_type=windows
15245 case $GCC,$host_os in
15246 yes,cygwin* | yes,mingw* | yes,pw32*)
15247 library_names_spec='$libname.dll.a'
15248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15249 postinstall_cmds='base_file=`basename \${file}`~
15250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15251 dldir=$destdir/`dirname \$dlpath`~
15252 test -d \$dldir || mkdir -p \$dldir~
15253 $install_prog $dir/$dlname \$dldir/$dlname~
15254 chmod a+x \$dldir/$dlname'
15255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15256 dlpath=$dir/\$dldll~
15258 shlibpath_overrides_runpath=yes
15262 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15263 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15264 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15267 # MinGW DLLs use traditional 'lib' prefix
15268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15269 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15270 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15271 # It is most probably a Windows format PATH printed by
15272 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15273 # path with ; separators, and with drive letters. We can handle the
15274 # drive letters (cygwin fileutils understands them), so leave them,
15275 # especially as we might pass files found there to a mingw objdump,
15276 # which wouldn't understand a cygwinified path. Ahh.
15277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15283 # pw32 DLLs use 'pw' prefix rather than 'lib'
15284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15293 dynamic_linker='Win32 ld.exe'
15294 # FIXME: first we should search . and the directory the executable is in
15298 darwin* | rhapsody*)
15299 dynamic_linker="$host_os dyld"
15300 version_type=darwin
15303 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15304 soname_spec='${libname}${release}${major}$shared_ext'
15305 shlibpath_overrides_runpath=yes
15306 shlibpath_var=DYLD_LIBRARY_PATH
15307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15308 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15309 if test "$GCC" = yes; then
15310 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"`
15312 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15314 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 shlibpath_var=LD_LIBRARY_PATH
15330 freebsd* | dragonfly*)
15331 # DragonFly does not have aout. When/if they implement a new
15332 # versioning mechanism, adjust this.
15333 if test -x /usr/bin/objformat; then
15334 objformat=`/usr/bin/objformat`
15337 freebsd[123]*) objformat=aout ;;
15338 *) objformat=elf ;;
15341 version_type=freebsd-$objformat
15342 case $version_type in
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15353 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=yes
15358 freebsd3.[01]* | freebsdelf3.[01]*)
15359 shlibpath_overrides_runpath=yes
15360 hardcode_into_libs=yes
15362 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15363 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15364 shlibpath_overrides_runpath=no
15365 hardcode_into_libs=yes
15367 freebsd*) # from 4.6 on
15368 shlibpath_overrides_runpath=yes
15369 hardcode_into_libs=yes
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 hardcode_into_libs=yes
15384 hpux9* | hpux10* | hpux11*)
15385 # Give a soname corresponding to the major version so that dld.sl refuses to
15386 # link against other versions.
15393 hardcode_into_libs=yes
15394 dynamic_linker="$host_os dld.so"
15395 shlibpath_var=LD_LIBRARY_PATH
15396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 soname_spec='${libname}${release}${shared_ext}$major'
15399 if test "X$HPUX_IA64_MODE" = X32; then
15400 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15402 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15408 hardcode_into_libs=yes
15409 dynamic_linker="$host_os dld.sl"
15410 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15411 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413 soname_spec='${libname}${release}${shared_ext}$major'
15414 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15415 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15419 dynamic_linker="$host_os dld.sl"
15420 shlibpath_var=SHLIB_PATH
15421 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15426 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15427 postinstall_cmds='chmod 555 $lib'
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 shlibpath_overrides_runpath=no
15439 hardcode_into_libs=yes
15442 irix5* | irix6* | nonstopux*)
15444 nonstopux*) version_type=nonstopux ;;
15446 if test "$lt_cv_prog_gnu_ld" = yes; then
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15457 irix5* | nonstopux*)
15458 libsuff= shlibsuff=
15461 case $LD in # libtool.m4 will add one of these switches to LD
15462 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15463 libsuff= shlibsuff= libmagic=32-bit;;
15464 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15465 libsuff=32 shlibsuff=N32 libmagic=N32;;
15466 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15467 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15468 *) libsuff= shlibsuff= libmagic=never-match;;
15472 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15473 shlibpath_overrides_runpath=no
15474 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15475 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15476 hardcode_into_libs=yes
15479 # No shared lib support for Linux oldld, aout, or coff.
15480 linux*oldld* | linux*aout* | linux*coff*)
15484 # This must be Linux ELF.
15485 linux* | k*bsd*-gnu)
15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15492 shlibpath_var=LD_LIBRARY_PATH
15493 shlibpath_overrides_runpath=no
15494 # This implies no fast_install, which is unacceptable.
15495 # Some rework will be needed to allow for fast_install
15496 # before this can be enabled.
15497 hardcode_into_libs=yes
15499 # Append ld.so.conf contents to the search path
15500 if test -f /etc/ld.so.conf; then
15501 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' ' '`
15502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15505 # We used to test for /lib/ld.so.1 and disable shared libraries on
15506 # powerpc, because MkLinux only supported shared libraries with the
15507 # GNU dynamic linker. Since this was broken with cross compilers,
15508 # most powerpc-linux boxes support dynamic linking these days and
15509 # people can always --disable-shared, the test was removed, and we
15510 # assume the GNU/Linux dynamic linker is in use.
15511 dynamic_linker='GNU/Linux ld.so'
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15519 soname_spec='${libname}${release}${shared_ext}$major'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=no
15522 hardcode_into_libs=yes
15523 dynamic_linker='NetBSD ld.elf_so'
15530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15533 dynamic_linker='NetBSD (a.out) ld.so'
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 dynamic_linker='NetBSD ld.elf_so'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=yes
15541 hardcode_into_libs=yes
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547 shlibpath_var=LD_LIBRARY_PATH
15548 shlibpath_overrides_runpath=yes
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556 soname_spec='${libname}${release}${shared_ext}$major'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15563 sys_lib_dlsearch_path_spec="/usr/lib"
15565 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15567 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15568 *) need_version=no ;;
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15575 openbsd2.[89] | openbsd2.[89].*)
15576 shlibpath_overrides_runpath=no
15579 shlibpath_overrides_runpath=yes
15583 shlibpath_overrides_runpath=yes
15588 libname_spec='$name'
15591 library_names_spec='$libname${shared_ext} $libname.a'
15592 dynamic_linker='OS/2 ld.exe'
15593 shlibpath_var=LIBPATH
15596 osf3* | osf4* | osf5*)
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=yes
15615 hardcode_into_libs=yes
15616 # ldd complains unless libraries are executable
15617 postinstall_cmds='chmod +x $lib'
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 shlibpath_overrides_runpath=yes
15626 if test "$with_gnu_ld" = yes; then
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 case $host_vendor in
15639 shlibpath_overrides_runpath=no
15641 export_dynamic_flag_spec='${wl}-Blargedynsym'
15642 runpath_var=LD_RUN_PATH
15650 shlibpath_overrides_runpath=no
15651 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15657 if test -d /usr/nec ;then
15659 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15660 soname_spec='$libname${shared_ext}.$major'
15661 shlibpath_var=LD_LIBRARY_PATH
15665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15666 version_type=freebsd-elf
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15670 soname_spec='${libname}${release}${shared_ext}$major'
15671 shlibpath_var=LD_LIBRARY_PATH
15672 hardcode_into_libs=yes
15673 if test "$with_gnu_ld" = yes; then
15674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15675 shlibpath_overrides_runpath=no
15677 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15678 shlibpath_overrides_runpath=yes
15681 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15685 sys_lib_dlsearch_path_spec='/usr/lib'
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691 soname_spec='${libname}${release}${shared_ext}$major'
15692 shlibpath_var=LD_LIBRARY_PATH
15699 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15700 echo "${ECHO_T}$dynamic_linker" >&6; }
15701 test "$dynamic_linker" = no && can_build_shared=no
15703 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15704 if test "$GCC" = yes; then
15705 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15708 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15709 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15710 hardcode_action_F77=
15711 if test -n "$hardcode_libdir_flag_spec_F77" || \
15712 test -n "$runpath_var_F77" || \
15713 test "X$hardcode_automatic_F77" = "Xyes" ; then
15715 # We can hardcode non-existant directories.
15716 if test "$hardcode_direct_F77" != no &&
15717 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15718 # have to relink, otherwise we might link with an installed library
15719 # when we should be linking with a yet-to-be-installed one
15720 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15721 test "$hardcode_minus_L_F77" != no; then
15722 # Linking always hardcodes the temporary library directory.
15723 hardcode_action_F77=relink
15725 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15726 hardcode_action_F77=immediate
15729 # We cannot hardcode anything, or else we can only hardcode existing
15731 hardcode_action_F77=unsupported
15733 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15734 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15736 if test "$hardcode_action_F77" = relink; then
15737 # Fast installation is not supported
15738 enable_fast_install=no
15739 elif test "$shlibpath_overrides_runpath" = yes ||
15740 test "$enable_shared" = no; then
15741 # Fast installation is not necessary
15742 enable_fast_install=needless
15746 # The else clause should only fire when bootstrapping the
15747 # libtool distribution, otherwise you forgot to ship ltmain.sh
15748 # with your package, and you will get complaints that there are
15749 # no rules to generate ltmain.sh.
15750 if test -f "$ltmain"; then
15751 # See if we are running on zsh, and set the options which allow our commands through
15752 # without removal of \ escapes.
15753 if test -n "${ZSH_VERSION+set}" ; then
15754 setopt NO_GLOB_SUBST
15756 # Now quote all the things that may contain metacharacters while being
15757 # careful not to overquote the AC_SUBSTed values. We take copies of the
15758 # variables and quote the copies for generation of the libtool script.
15759 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15761 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15762 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15763 deplibs_check_method reload_flag reload_cmds need_locks \
15764 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15765 lt_cv_sys_global_symbol_to_c_name_address \
15766 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15767 old_postinstall_cmds old_postuninstall_cmds \
15771 lt_prog_compiler_wl_F77 \
15772 lt_prog_compiler_pic_F77 \
15773 lt_prog_compiler_static_F77 \
15774 lt_prog_compiler_no_builtin_flag_F77 \
15775 export_dynamic_flag_spec_F77 \
15776 thread_safe_flag_spec_F77 \
15777 whole_archive_flag_spec_F77 \
15778 enable_shared_with_static_runtimes_F77 \
15779 old_archive_cmds_F77 \
15780 old_archive_from_new_cmds_F77 \
15781 predep_objects_F77 \
15782 postdep_objects_F77 \
15785 compiler_lib_search_path_F77 \
15787 archive_expsym_cmds_F77 \
15788 postinstall_cmds_F77 \
15789 postuninstall_cmds_F77 \
15790 old_archive_from_expsyms_cmds_F77 \
15791 allow_undefined_flag_F77 \
15792 no_undefined_flag_F77 \
15793 export_symbols_cmds_F77 \
15794 hardcode_libdir_flag_spec_F77 \
15795 hardcode_libdir_flag_spec_ld_F77 \
15796 hardcode_libdir_separator_F77 \
15797 hardcode_automatic_F77 \
15799 module_expsym_cmds_F77 \
15800 lt_cv_prog_compiler_c_o_F77 \
15801 exclude_expsyms_F77 \
15802 include_expsyms_F77; do
15805 old_archive_cmds_F77 | \
15806 old_archive_from_new_cmds_F77 | \
15807 archive_cmds_F77 | \
15808 archive_expsym_cmds_F77 | \
15809 module_cmds_F77 | \
15810 module_expsym_cmds_F77 | \
15811 old_archive_from_expsyms_cmds_F77 | \
15812 export_symbols_cmds_F77 | \
15813 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15814 postinstall_cmds | postuninstall_cmds | \
15815 old_postinstall_cmds | old_postuninstall_cmds | \
15816 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15817 # Double-quote double-evaled strings.
15818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15827 *'\$0 --fallback-echo"')
15828 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15834 cat <<__EOF__ >> "$cfgfile"
15835 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15839 # Shell to use when invoking shell scripts.
15842 # Whether or not to build shared libraries.
15843 build_libtool_libs=$enable_shared
15845 # Whether or not to build static libraries.
15846 build_old_libs=$enable_static
15848 # Whether or not to add -lc for building shared libraries.
15849 build_libtool_need_lc=$archive_cmds_need_lc_F77
15851 # Whether or not to disallow shared libs when runtime libs are static
15852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15854 # Whether or not to optimize for fast installation.
15855 fast_install=$enable_fast_install
15858 host_alias=$host_alias
15862 # The build system.
15863 build_alias=$build_alias
15867 # An echo program that does not interpret backslashes.
15872 AR_FLAGS=$lt_AR_FLAGS
15877 # LTCC compiler flags.
15878 LTCFLAGS=$lt_LTCFLAGS
15880 # A language-specific compiler.
15881 CC=$lt_compiler_F77
15883 # Is the compiler the GNU C compiler?
15889 # The linker used to build libraries.
15892 # Whether we need hard or soft links.
15895 # A BSD-compatible nm program.
15898 # A symbol stripping program
15901 # Used to examine libraries when file_magic_cmd begins "file"
15902 MAGIC_CMD=$MAGIC_CMD
15904 # Used on cygwin: DLL creation program.
15907 # Used on cygwin: object dumper.
15910 # Used on cygwin: assembler.
15913 # The name of the directory that contains temporary libtool files.
15916 # How to create reloadable object files.
15917 reload_flag=$lt_reload_flag
15918 reload_cmds=$lt_reload_cmds
15920 # How to pass a linker flag through the compiler.
15921 wl=$lt_lt_prog_compiler_wl_F77
15923 # Object file suffix (normally "o").
15924 objext="$ac_objext"
15926 # Old archive suffix (normally "a").
15929 # Shared library suffix (normally ".so").
15930 shrext_cmds='$shrext_cmds'
15932 # Executable file suffix (normally "").
15935 # Additional compiler flags for building library objects.
15936 pic_flag=$lt_lt_prog_compiler_pic_F77
15939 # What is the maximum length of a command?
15940 max_cmd_len=$lt_cv_sys_max_cmd_len
15942 # Does compiler simultaneously support -c and -o options?
15943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15945 # Must we lock files when doing compilation?
15946 need_locks=$lt_need_locks
15948 # Do we need the lib prefix for modules?
15949 need_lib_prefix=$need_lib_prefix
15951 # Do we need a version for libraries?
15952 need_version=$need_version
15954 # Whether dlopen is supported.
15955 dlopen_support=$enable_dlopen
15957 # Whether dlopen of programs is supported.
15958 dlopen_self=$enable_dlopen_self
15960 # Whether dlopen of statically linked programs is supported.
15961 dlopen_self_static=$enable_dlopen_self_static
15963 # Compiler flag to prevent dynamic linking.
15964 link_static_flag=$lt_lt_prog_compiler_static_F77
15966 # Compiler flag to turn off builtin functions.
15967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15969 # Compiler flag to allow reflexive dlopens.
15970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15972 # Compiler flag to generate shared objects directly from archives.
15973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15975 # Compiler flag to generate thread-safe objects.
15976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15978 # Library versioning type.
15979 version_type=$version_type
15981 # Format of library name prefix.
15982 libname_spec=$lt_libname_spec
15984 # List of archive names. First name is the real one, the rest are links.
15985 # The last name is the one that the linker finds with -lNAME.
15986 library_names_spec=$lt_library_names_spec
15988 # The coded name of the library, if different from the real name.
15989 soname_spec=$lt_soname_spec
15991 # Commands used to build and install an old-style archive.
15993 old_archive_cmds=$lt_old_archive_cmds_F77
15994 old_postinstall_cmds=$lt_old_postinstall_cmds
15995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15997 # Create an old-style archive from a shared archive.
15998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16000 # Create a temporary old-style archive to link instead of a shared archive.
16001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16003 # Commands used to build and install a shared archive.
16004 archive_cmds=$lt_archive_cmds_F77
16005 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16006 postinstall_cmds=$lt_postinstall_cmds
16007 postuninstall_cmds=$lt_postuninstall_cmds
16009 # Commands used to build a loadable module (assumed same as above if empty)
16010 module_cmds=$lt_module_cmds_F77
16011 module_expsym_cmds=$lt_module_expsym_cmds_F77
16013 # Commands to strip libraries.
16014 old_striplib=$lt_old_striplib
16015 striplib=$lt_striplib
16017 # Dependencies to place before the objects being linked to create a
16019 predep_objects=$lt_predep_objects_F77
16021 # Dependencies to place after the objects being linked to create a
16023 postdep_objects=$lt_postdep_objects_F77
16025 # Dependencies to place before the objects being linked to create a
16027 predeps=$lt_predeps_F77
16029 # Dependencies to place after the objects being linked to create a
16031 postdeps=$lt_postdeps_F77
16033 # The library search path used internally by the compiler when linking
16034 # a shared library.
16035 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16037 # Method to check whether dependent libraries are shared objects.
16038 deplibs_check_method=$lt_deplibs_check_method
16040 # Command to use when deplibs_check_method == file_magic.
16041 file_magic_cmd=$lt_file_magic_cmd
16043 # Flag that allows shared libraries with undefined symbols to be built.
16044 allow_undefined_flag=$lt_allow_undefined_flag_F77
16046 # Flag that forces no undefined symbols.
16047 no_undefined_flag=$lt_no_undefined_flag_F77
16049 # Commands used to finish a libtool library installation in a directory.
16050 finish_cmds=$lt_finish_cmds
16052 # Same as above, but a single script fragment to be evaled but not shown.
16053 finish_eval=$lt_finish_eval
16055 # Take the output of nm and produce a listing of raw symbols and C names.
16056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16058 # Transform the output of nm in a proper C declaration
16059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16061 # Transform the output of nm in a C name address pair
16062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16064 # This is the shared library runtime path variable.
16065 runpath_var=$runpath_var
16067 # This is the shared library path variable.
16068 shlibpath_var=$shlibpath_var
16070 # Is shlibpath searched before the hard-coded library search path?
16071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16073 # How to hardcode a shared library path into an executable.
16074 hardcode_action=$hardcode_action_F77
16076 # Whether we should hardcode library paths into libraries.
16077 hardcode_into_libs=$hardcode_into_libs
16079 # Flag to hardcode \$libdir into a binary during linking.
16080 # This must work even if \$libdir does not exist.
16081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16083 # If ld is used when linking, flag to hardcode \$libdir into
16084 # a binary during linking. This must work even if \$libdir does
16086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16088 # Whether we need a single -rpath flag with a separated argument.
16089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16092 # resulting binary.
16093 hardcode_direct=$hardcode_direct_F77
16095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16096 # resulting binary.
16097 hardcode_minus_L=$hardcode_minus_L_F77
16099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16100 # the resulting binary.
16101 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16103 # Set to yes if building a shared library automatically hardcodes DIR into the library
16104 # and all subsequent libraries and executables linked against it.
16105 hardcode_automatic=$hardcode_automatic_F77
16107 # Variables whose values should be saved in libtool wrapper scripts and
16108 # restored at relink time.
16109 variables_saved_for_relink="$variables_saved_for_relink"
16111 # Whether libtool must link a program against all its dependency libraries.
16112 link_all_deplibs=$link_all_deplibs_F77
16114 # Compile-time system search path for libraries
16115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16117 # Run-time system search path for libraries
16118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16120 # Fix the shell variable \$srcfile for the compiler.
16121 fix_srcfile_path="$fix_srcfile_path_F77"
16123 # Set to yes if exported symbols are required.
16124 always_export_symbols=$always_export_symbols_F77
16126 # The commands to list exported symbols.
16127 export_symbols_cmds=$lt_export_symbols_cmds_F77
16129 # The commands to extract the exported symbol list from a shared archive.
16130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16132 # Symbols that should not be listed in the preloaded symbols.
16133 exclude_expsyms=$lt_exclude_expsyms_F77
16135 # Symbols that must always be exported.
16136 include_expsyms=$lt_include_expsyms_F77
16138 # ### END LIBTOOL TAG CONFIG: $tagname
16144 # If there is no Makefile yet, we rely on a make rule to execute
16145 # `config.status --recheck' to rerun these tests and create the
16146 # libtool script then.
16147 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16148 if test -f "$ltmain_in"; then
16149 test -f Makefile && make "$ltmain"
16155 ac_cpp='$CPP $CPPFLAGS'
16156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16168 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16171 # Source file extension for Java test sources.
16174 # Object file extension for compiled Java test sources.
16178 # Code to be used in simple compile tests
16179 lt_simple_compile_test_code="class foo {}\n"
16181 # Code to be used in simple link tests
16182 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16186 # If no C compiler was specified, use CC.
16189 # If no C compiler flags were specified, use CFLAGS.
16190 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16192 # Allow CC to be a program name with arguments.
16196 # save warnings/boilerplate of simple test code
16197 ac_outfile=conftest.$ac_objext
16198 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16199 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16200 _lt_compiler_boilerplate=`cat conftest.err`
16203 ac_outfile=conftest.$ac_objext
16204 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16205 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16206 _lt_linker_boilerplate=`cat conftest.err`
16210 # Allow CC to be a program name with arguments.
16215 for cc_temp in $compiler""; do
16217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16226 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16227 archive_cmds_need_lc_GCJ=no
16229 old_archive_cmds_GCJ=$old_archive_cmds
16232 lt_prog_compiler_no_builtin_flag_GCJ=
16234 if test "$GCC" = yes; then
16235 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16238 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16239 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16240 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 lt_cv_prog_compiler_rtti_exceptions=no
16244 ac_outfile=conftest.$ac_objext
16245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16246 lt_compiler_flag="-fno-rtti -fno-exceptions"
16247 # Insert the option either (1) after the last *FLAGS variable, or
16248 # (2) before a word containing "conftest.", or (3) at the end.
16249 # Note that $ac_compile itself does not contain backslashes and begins
16250 # with a dollar sign (not a hyphen), so the echo should work correctly.
16251 # The option is referenced via a variable to avoid confusing sed.
16252 lt_compile=`echo "$ac_compile" | $SED \
16253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16255 -e 's:$: $lt_compiler_flag:'`
16256 (eval echo "\"\$as_me:16256: $lt_compile\"" >&5)
16257 (eval "$lt_compile" 2>conftest.err)
16259 cat conftest.err >&5
16260 echo "$as_me:16260: \$? = $ac_status" >&5
16261 if (exit $ac_status) && test -s "$ac_outfile"; then
16262 # The compiler can only warn and ignore the option if not recognized
16263 # So say no if there are warnings other than the usual output.
16264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16267 lt_cv_prog_compiler_rtti_exceptions=yes
16273 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16274 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16276 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16277 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16284 lt_prog_compiler_wl_GCJ=
16285 lt_prog_compiler_pic_GCJ=
16286 lt_prog_compiler_static_GCJ=
16288 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16289 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16291 if test "$GCC" = yes; then
16292 lt_prog_compiler_wl_GCJ='-Wl,'
16293 lt_prog_compiler_static_GCJ='-static'
16297 # All AIX code is PIC.
16298 if test "$host_cpu" = ia64; then
16299 # AIX 5 now supports IA64 processor
16300 lt_prog_compiler_static_GCJ='-Bstatic'
16305 # FIXME: we need at least 68020 code to build shared libraries, but
16306 # adding the `-m68020' flag to GCC prevents building anything better,
16308 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16311 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16312 # PIC is the default for these OSes.
16315 mingw* | pw32* | os2*)
16316 # This hack is so that the source file can tell whether it is being
16317 # built for inclusion in a dll (and should export symbols for example).
16318 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16321 darwin* | rhapsody*)
16322 # PIC is the default on this platform
16323 # Common symbols not allowed in MH_DYLIB files
16324 lt_prog_compiler_pic_GCJ='-fno-common'
16328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16329 # Instead, we relocate shared libraries at runtime.
16333 # Just because we use GCC doesn't mean we suddenly get shared libraries
16334 # on systems that don't support them.
16335 lt_prog_compiler_can_build_shared_GCJ=no
16340 if test -d /usr/nec; then
16341 lt_prog_compiler_pic_GCJ=-Kconform_pic
16346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16347 # not for PA HP-UX.
16353 lt_prog_compiler_pic_GCJ='-fPIC'
16359 lt_prog_compiler_pic_GCJ='-fPIC'
16363 # PORTME Check for flag to pass linker flags through the system compiler.
16366 lt_prog_compiler_wl_GCJ='-Wl,'
16367 if test "$host_cpu" = ia64; then
16368 # AIX 5 now supports IA64 processor
16369 lt_prog_compiler_static_GCJ='-Bstatic'
16371 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16375 # PIC is the default on this platform
16376 # Common symbols not allowed in MH_DYLIB files
16377 case $cc_basename in
16379 lt_prog_compiler_pic_GCJ='-qnocommon'
16380 lt_prog_compiler_wl_GCJ='-Wl,'
16385 mingw* | pw32* | os2*)
16386 # This hack is so that the source file can tell whether it is being
16387 # built for inclusion in a dll (and should export symbols for example).
16388 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16391 hpux9* | hpux10* | hpux11*)
16392 lt_prog_compiler_wl_GCJ='-Wl,'
16393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16394 # not for PA HP-UX.
16400 lt_prog_compiler_pic_GCJ='+Z'
16403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16404 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16407 irix5* | irix6* | nonstopux*)
16408 lt_prog_compiler_wl_GCJ='-Wl,'
16409 # PIC (with -KPIC) is the default.
16410 lt_prog_compiler_static_GCJ='-non_shared'
16414 lt_prog_compiler_pic_GCJ='-KPIC'
16415 lt_prog_compiler_static_GCJ='-Bstatic'
16418 linux* | k*bsd*-gnu)
16419 case $cc_basename in
16421 lt_prog_compiler_wl_GCJ='-Wl,'
16422 lt_prog_compiler_pic_GCJ='-KPIC'
16423 lt_prog_compiler_static_GCJ='-static'
16425 pgcc* | pgf77* | pgf90* | pgf95*)
16426 # Portland Group compilers (*not* the Pentium gcc compiler,
16427 # which looks to be a dead project)
16428 lt_prog_compiler_wl_GCJ='-Wl,'
16429 lt_prog_compiler_pic_GCJ='-fpic'
16430 lt_prog_compiler_static_GCJ='-Bstatic'
16433 lt_prog_compiler_wl_GCJ='-Wl,'
16434 # All Alpha code is PIC.
16435 lt_prog_compiler_static_GCJ='-non_shared'
16440 osf3* | osf4* | osf5*)
16441 lt_prog_compiler_wl_GCJ='-Wl,'
16442 # All OSF/1 code is PIC.
16443 lt_prog_compiler_static_GCJ='-non_shared'
16447 lt_prog_compiler_pic_GCJ='-KPIC'
16448 lt_prog_compiler_static_GCJ='-Bstatic'
16449 case $cc_basename in
16450 f77* | f90* | f95*)
16451 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16453 lt_prog_compiler_wl_GCJ='-Wl,';;
16458 lt_prog_compiler_wl_GCJ='-Qoption ld '
16459 lt_prog_compiler_pic_GCJ='-PIC'
16460 lt_prog_compiler_static_GCJ='-Bstatic'
16463 sysv4 | sysv4.2uw2* | sysv4.3*)
16464 lt_prog_compiler_wl_GCJ='-Wl,'
16465 lt_prog_compiler_pic_GCJ='-KPIC'
16466 lt_prog_compiler_static_GCJ='-Bstatic'
16470 if test -d /usr/nec ;then
16471 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16472 lt_prog_compiler_static_GCJ='-Bstatic'
16476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16477 lt_prog_compiler_wl_GCJ='-Wl,'
16478 lt_prog_compiler_pic_GCJ='-KPIC'
16479 lt_prog_compiler_static_GCJ='-Bstatic'
16483 lt_prog_compiler_wl_GCJ='-Wl,'
16484 lt_prog_compiler_can_build_shared_GCJ=no
16488 lt_prog_compiler_pic_GCJ='-pic'
16489 lt_prog_compiler_static_GCJ='-Bstatic'
16493 lt_prog_compiler_can_build_shared_GCJ=no
16498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16499 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16502 # Check to make sure the PIC flag actually works.
16504 if test -n "$lt_prog_compiler_pic_GCJ"; then
16506 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16507 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16508 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 lt_prog_compiler_pic_works_GCJ=no
16512 ac_outfile=conftest.$ac_objext
16513 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16514 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16515 # Insert the option either (1) after the last *FLAGS variable, or
16516 # (2) before a word containing "conftest.", or (3) at the end.
16517 # Note that $ac_compile itself does not contain backslashes and begins
16518 # with a dollar sign (not a hyphen), so the echo should work correctly.
16519 # The option is referenced via a variable to avoid confusing sed.
16520 lt_compile=`echo "$ac_compile" | $SED \
16521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16523 -e 's:$: $lt_compiler_flag:'`
16524 (eval echo "\"\$as_me:16524: $lt_compile\"" >&5)
16525 (eval "$lt_compile" 2>conftest.err)
16527 cat conftest.err >&5
16528 echo "$as_me:16528: \$? = $ac_status" >&5
16529 if (exit $ac_status) && test -s "$ac_outfile"; then
16530 # The compiler can only warn and ignore the option if not recognized
16531 # So say no if there are warnings other than the usual output.
16532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16535 lt_prog_compiler_pic_works_GCJ=yes
16541 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16542 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16544 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16545 case $lt_prog_compiler_pic_GCJ in
16547 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16550 lt_prog_compiler_pic_GCJ=
16551 lt_prog_compiler_can_build_shared_GCJ=no
16556 # For platforms which do not support PIC, -DPIC is meaningless:
16558 lt_prog_compiler_pic_GCJ=
16561 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16566 # Check to make sure the static flag actually works.
16568 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16569 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16570 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16571 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 lt_prog_compiler_static_works_GCJ=no
16575 save_LDFLAGS="$LDFLAGS"
16576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16577 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16579 # The linker can only warn and ignore the option if not recognized
16580 # So say no if there are warnings
16581 if test -s conftest.err; then
16582 # Append any errors to the config.log.
16583 cat conftest.err 1>&5
16584 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16586 if diff conftest.exp conftest.er2 >/dev/null; then
16587 lt_prog_compiler_static_works_GCJ=yes
16590 lt_prog_compiler_static_works_GCJ=yes
16594 LDFLAGS="$save_LDFLAGS"
16597 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16598 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16600 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16603 lt_prog_compiler_static_GCJ=
16607 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16608 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16609 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 lt_cv_prog_compiler_c_o_GCJ=no
16613 $rm -r conftest 2>/dev/null
16617 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16619 lt_compiler_flag="-o out/conftest2.$ac_objext"
16620 # Insert the option either (1) after the last *FLAGS variable, or
16621 # (2) before a word containing "conftest.", or (3) at the end.
16622 # Note that $ac_compile itself does not contain backslashes and begins
16623 # with a dollar sign (not a hyphen), so the echo should work correctly.
16624 lt_compile=`echo "$ac_compile" | $SED \
16625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16627 -e 's:$: $lt_compiler_flag:'`
16628 (eval echo "\"\$as_me:16628: $lt_compile\"" >&5)
16629 (eval "$lt_compile" 2>out/conftest.err)
16631 cat out/conftest.err >&5
16632 echo "$as_me:16632: \$? = $ac_status" >&5
16633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16635 # The compiler can only warn and ignore the option if not recognized
16636 # So say no if there are warnings
16637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16640 lt_cv_prog_compiler_c_o_GCJ=yes
16645 # SGI C++ compiler will create directory out/ii_files/ for
16646 # template instantiation
16647 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16648 $rm out/* && rmdir out
16654 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16655 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16658 hard_links="nottested"
16659 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16660 # do not overwrite the value of need_locks provided by the user
16661 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16662 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16667 ln conftest.a conftest.b 2>&5 || hard_links=no
16668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16669 { echo "$as_me:$LINENO: result: $hard_links" >&5
16670 echo "${ECHO_T}$hard_links" >&6; }
16671 if test "$hard_links" = no; then
16672 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16673 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16680 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16681 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16684 allow_undefined_flag_GCJ=
16685 enable_shared_with_static_runtimes_GCJ=no
16687 archive_expsym_cmds_GCJ=
16688 old_archive_From_new_cmds_GCJ=
16689 old_archive_from_expsyms_cmds_GCJ=
16690 export_dynamic_flag_spec_GCJ=
16691 whole_archive_flag_spec_GCJ=
16692 thread_safe_flag_spec_GCJ=
16693 hardcode_libdir_flag_spec_GCJ=
16694 hardcode_libdir_flag_spec_ld_GCJ=
16695 hardcode_libdir_separator_GCJ=
16696 hardcode_direct_GCJ=no
16697 hardcode_minus_L_GCJ=no
16698 hardcode_shlibpath_var_GCJ=unsupported
16699 link_all_deplibs_GCJ=unknown
16700 hardcode_automatic_GCJ=no
16702 module_expsym_cmds_GCJ=
16703 always_export_symbols_GCJ=no
16704 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16705 # include_expsyms should be a list of space-separated symbols to be *always*
16706 # included in the symbol list
16707 include_expsyms_GCJ=
16708 # exclude_expsyms can be an extended regexp of symbols to exclude
16709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16711 # as well as any symbol that contains `d'.
16712 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16714 # platforms (ab)use it in PIC code, but their linkers get confused if
16715 # the symbol is explicitly referenced. Since portable code cannot
16716 # rely on this symbol name, it's probably fine to never include it in
16717 # preloaded symbol tables.
16718 extract_expsyms_cmds=
16719 # Just being paranoid about ensuring that cc_basename is set.
16720 for cc_temp in $compiler""; do
16722 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16723 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16728 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16731 cygwin* | mingw* | pw32*)
16732 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16733 # When not using gcc, we currently assume that we are using
16734 # Microsoft Visual C++.
16735 if test "$GCC" != yes; then
16740 # we just hope/assume this is gcc and not c89 (= MSVC++)
16749 if test "$with_gnu_ld" = yes; then
16750 # If archive_cmds runs LD, not CC, wlarc should be empty
16753 # Set some defaults for GNU ld with shared library support. These
16754 # are reset later if shared libraries are not supported. Putting them
16755 # here allows them to be overridden if necessary.
16756 runpath_var=LD_RUN_PATH
16757 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16758 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16759 # ancient GNU ld didn't support --whole-archive et. al.
16760 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16761 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16763 whole_archive_flag_spec_GCJ=
16765 supports_anon_versioning=no
16766 case `$LD -v 2>/dev/null` in
16767 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16768 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16769 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16770 *\ 2.11.*) ;; # other 2.11 versions
16771 *) supports_anon_versioning=yes ;;
16774 # See if GNU ld supports shared libraries.
16776 aix3* | aix4* | aix5*)
16777 # On AIX/PPC, the GNU linker is very broken
16778 if test "$host_cpu" != ia64; then
16782 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16783 *** to be unable to reliably create shared libraries on AIX.
16784 *** Therefore, libtool is disabling shared libraries support. If you
16785 *** really care for shared libraries, you may want to modify your PATH
16786 *** so that a non-GNU linker is found, and then restart.
16793 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)'
16794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16795 hardcode_minus_L_GCJ=yes
16797 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16798 # that the semantics of dynamic libraries on AmigaOS, at least up
16799 # to version 4, is to share data among multiple programs linked
16800 # with the same dynamic library. Since this doesn't match the
16801 # behavior of shared libraries on other platforms, we can't use
16807 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16808 allow_undefined_flag_GCJ=unsupported
16809 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16810 # support --undefined. This deserves some investigation. FIXME
16811 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16817 cygwin* | mingw* | pw32*)
16818 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16819 # as there is no search path for DLLs.
16820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16821 allow_undefined_flag_GCJ=unsupported
16822 always_export_symbols_GCJ=no
16823 enable_shared_with_static_runtimes_GCJ=yes
16824 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16826 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16828 # If the export-symbols file already is a .def file (1st line
16829 # is EXPORTS), use it as is; otherwise, prepend...
16830 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16831 cp $export_symbols $output_objdir/$soname.def;
16833 echo EXPORTS > $output_objdir/$soname.def;
16834 cat $export_symbols >> $output_objdir/$soname.def;
16836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16843 hardcode_direct_GCJ=no
16844 hardcode_shlibpath_var_GCJ=no
16845 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16846 export_dynamic_flag_spec_GCJ='${wl}-E'
16847 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16848 # Instead, shared libraries are loaded at an image base (0x10000000 by
16849 # default) and relocated if they conflict, which is a slow very memory
16850 # consuming and fragmenting process. To avoid this, we pick a random,
16851 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16852 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16853 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16854 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16857 linux* | k*bsd*-gnu)
16858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16860 case $cc_basename,$host_cpu in
16861 pgcc*) # Portland Group C compiler
16862 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'
16863 tmp_addflag=' $pic_flag'
16865 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16866 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'
16867 tmp_addflag=' $pic_flag -Mnomain' ;;
16868 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16869 tmp_addflag=' -i_dynamic' ;;
16870 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16871 tmp_addflag=' -i_dynamic -nofor_main' ;;
16872 ifc* | ifort*) # Intel Fortran compiler
16873 tmp_addflag=' -nofor_main' ;;
16875 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16877 if test $supports_anon_versioning = yes; then
16878 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16880 $echo "local: *; };" >> $output_objdir/$libname.ver~
16881 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16883 link_all_deplibs_GCJ=no
16889 netbsd* | netbsdelf*-gnu)
16890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16891 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16894 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16895 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16900 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16904 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16905 *** create shared libraries on Solaris systems. Therefore, libtool
16906 *** is disabling shared libraries support. We urge you to upgrade GNU
16907 *** binutils to release 2.9.1 or newer. Another option is to modify
16908 *** your PATH or compiler configuration so that the native linker is
16909 *** used, and then restart.
16912 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16913 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16914 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16921 case `$LD -v 2>&1` in
16922 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16926 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16927 *** reliably create shared libraries on SCO systems. Therefore, libtool
16928 *** is disabling shared libraries support. We urge you to upgrade GNU
16929 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16930 *** your PATH or compiler configuration so that the native linker is
16931 *** used, and then restart.
16936 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16937 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16938 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16939 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16948 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16950 hardcode_direct_GCJ=yes
16951 hardcode_shlibpath_var_GCJ=no
16955 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16956 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16957 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16964 if test "$ld_shlibs_GCJ" = no; then
16966 hardcode_libdir_flag_spec_GCJ=
16967 export_dynamic_flag_spec_GCJ=
16968 whole_archive_flag_spec_GCJ=
16971 # PORTME fill in a description of your system's linker (not GNU ld)
16974 allow_undefined_flag_GCJ=unsupported
16975 always_export_symbols_GCJ=yes
16976 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'
16977 # Note: this linker hardcodes the directories in LIBPATH if there
16978 # are no directories specified by -L.
16979 hardcode_minus_L_GCJ=yes
16980 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16981 # Neither direct hardcoding nor static linking is supported with a
16983 hardcode_direct_GCJ=unsupported
16988 if test "$host_cpu" = ia64; then
16989 # On IA64, the linker does run time linking by default, so we don't
16990 # have to do anything special.
16991 aix_use_runtimelinking=no
16992 exp_sym_flag='-Bexport'
16995 # If we're using GNU nm, then we don't want the "-C" option.
16996 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16997 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16998 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'
17000 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'
17002 aix_use_runtimelinking=no
17004 # Test if we are trying to use run time linking or normal
17005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17006 # need to do runtime linking.
17007 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17008 for ld_flag in $LDFLAGS; do
17009 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17010 aix_use_runtimelinking=yes
17017 exp_sym_flag='-bexport'
17018 no_entry_flag='-bnoentry'
17021 # When large executables or shared objects are built, AIX ld can
17022 # have problems creating the table of contents. If linking a library
17023 # or program results in "error TOC overflow" add -mminimal-toc to
17024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17027 archive_cmds_GCJ=''
17028 hardcode_direct_GCJ=yes
17029 hardcode_libdir_separator_GCJ=':'
17030 link_all_deplibs_GCJ=yes
17032 if test "$GCC" = yes; then
17033 case $host_os in aix4.[012]|aix4.[012].*)
17034 # We only want to do this on AIX 4.2 and lower, the check
17035 # below for broken collect2 doesn't work under 4.3+
17036 collect2name=`${CC} -print-prog-name=collect2`
17037 if test -f "$collect2name" && \
17038 strings "$collect2name" | grep resolve_lib_name >/dev/null
17040 # We have reworked collect2
17041 hardcode_direct_GCJ=yes
17043 # We have old collect2
17044 hardcode_direct_GCJ=unsupported
17045 # It fails to find uninstalled libraries when the uninstalled
17046 # path is not listed in the libpath. Setting hardcode_minus_L
17047 # to unsupported forces relinking
17048 hardcode_minus_L_GCJ=yes
17049 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17050 hardcode_libdir_separator_GCJ=
17054 shared_flag='-shared'
17055 if test "$aix_use_runtimelinking" = yes; then
17056 shared_flag="$shared_flag "'${wl}-G'
17060 if test "$host_cpu" = ia64; then
17061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17062 # chokes on -Wl,-G. The following line is correct:
17065 if test "$aix_use_runtimelinking" = yes; then
17066 shared_flag='${wl}-G'
17068 shared_flag='${wl}-bM:SRE'
17073 # It seems that -bexpall does not export symbols beginning with
17074 # underscore (_), so it is better to generate a list of symbols to export.
17075 always_export_symbols_GCJ=yes
17076 if test "$aix_use_runtimelinking" = yes; then
17077 # Warning - without using the other runtime loading flags (-brtl),
17078 # -berok will link without error, but may produce a broken library.
17079 allow_undefined_flag_GCJ='-berok'
17080 # Determine the default libpath from the value encoded in an empty executable.
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_link") 2>conftest.er1
17105 grep -v '^ *+' conftest.er1 >conftest.err
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } && {
17110 test -z "$ac_c_werror_flag" ||
17111 test ! -s conftest.err
17112 } && test -s conftest$ac_exeext &&
17113 $as_test_x conftest$ac_exeext; then
17115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17117 # Check for a 64-bit object if we didn't find anything.
17118 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; }
17121 echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128 conftest$ac_exeext conftest.$ac_ext
17129 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17131 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17132 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17134 if test "$host_cpu" = ia64; then
17135 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17136 allow_undefined_flag_GCJ="-z nodefs"
17137 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17139 # Determine the default libpath from the value encoded in an empty executable.
17140 cat >conftest.$ac_ext <<_ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest$ac_exeext &&
17172 $as_test_x conftest$ac_exeext; then
17174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17176 # Check for a 64-bit object if we didn't find anything.
17177 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; }
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17190 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17191 # Warning - without using the other run time loading flags,
17192 # -berok will link without error, but may produce a broken library.
17193 no_undefined_flag_GCJ=' ${wl}-bernotok'
17194 allow_undefined_flag_GCJ=' ${wl}-berok'
17195 # Exported symbols can be pulled into shared objects from archives
17196 whole_archive_flag_spec_GCJ='$convenience'
17197 archive_cmds_need_lc_GCJ=yes
17198 # This is similar to how AIX traditionally builds its shared libraries.
17199 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17205 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)'
17206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17207 hardcode_minus_L_GCJ=yes
17208 # see comment about different semantics on the GNU ld section
17213 export_dynamic_flag_spec_GCJ=-rdynamic
17216 cygwin* | mingw* | pw32*)
17217 # When not using gcc, we currently assume that we are using
17218 # Microsoft Visual C++.
17219 # hardcode_libdir_flag_spec is actually meaningless, as there is
17220 # no search path for DLLs.
17221 hardcode_libdir_flag_spec_GCJ=' '
17222 allow_undefined_flag_GCJ=unsupported
17223 # Tell ltmain to make .lib files, not .a files.
17225 # Tell ltmain to make .dll files, not .so files.
17227 # FIXME: Setting linknames here is a bad hack.
17228 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17229 # The linker will automatically build a .lib file if we build a DLL.
17230 old_archive_From_new_cmds_GCJ='true'
17231 # FIXME: Should let the user specify the lib program.
17232 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17233 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17234 enable_shared_with_static_runtimes_GCJ=yes
17237 darwin* | rhapsody*)
17239 rhapsody* | darwin1.[012])
17240 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17243 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17244 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17246 case ${MACOSX_DEPLOYMENT_TARGET} in
17248 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17251 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17257 archive_cmds_need_lc_GCJ=no
17258 hardcode_direct_GCJ=no
17259 hardcode_automatic_GCJ=yes
17260 hardcode_shlibpath_var_GCJ=unsupported
17261 whole_archive_flag_spec_GCJ=''
17262 link_all_deplibs_GCJ=yes
17263 if test "$GCC" = yes ; then
17264 output_verbose_link_cmd='echo'
17265 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17266 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17268 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}'
17269 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}'
17271 case $cc_basename in
17273 output_verbose_link_cmd='echo'
17274 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17275 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17276 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17277 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}'
17278 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}'
17288 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290 hardcode_shlibpath_var_GCJ=no
17297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17298 # support. Future versions do this automatically, but an explicit c++rt0.o
17299 # does not break anything, and helps significantly (at the cost of a little
17302 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17303 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17304 hardcode_direct_GCJ=yes
17305 hardcode_shlibpath_var_GCJ=no
17308 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17310 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17311 hardcode_direct_GCJ=yes
17312 hardcode_minus_L_GCJ=yes
17313 hardcode_shlibpath_var_GCJ=no
17316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17317 freebsd* | dragonfly*)
17318 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17319 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17320 hardcode_direct_GCJ=yes
17321 hardcode_shlibpath_var_GCJ=no
17325 if test "$GCC" = yes; then
17326 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'
17328 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'
17330 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17331 hardcode_libdir_separator_GCJ=:
17332 hardcode_direct_GCJ=yes
17334 # hardcode_minus_L: Not really in the search PATH,
17335 # but as the default location of the library.
17336 hardcode_minus_L_GCJ=yes
17337 export_dynamic_flag_spec_GCJ='${wl}-E'
17341 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17342 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17344 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17346 if test "$with_gnu_ld" = no; then
17347 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17348 hardcode_libdir_separator_GCJ=:
17350 hardcode_direct_GCJ=yes
17351 export_dynamic_flag_spec_GCJ='${wl}-E'
17353 # hardcode_minus_L: Not really in the search PATH,
17354 # but as the default location of the library.
17355 hardcode_minus_L_GCJ=yes
17360 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17363 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17366 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17369 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17375 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17378 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17381 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17385 if test "$with_gnu_ld" = no; then
17386 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17387 hardcode_libdir_separator_GCJ=:
17391 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17392 hardcode_direct_GCJ=no
17393 hardcode_shlibpath_var_GCJ=no
17396 hardcode_direct_GCJ=yes
17397 export_dynamic_flag_spec_GCJ='${wl}-E'
17399 # hardcode_minus_L: Not really in the search PATH,
17400 # but as the default location of the library.
17401 hardcode_minus_L_GCJ=yes
17407 irix5* | irix6* | nonstopux*)
17408 if test "$GCC" = yes; then
17409 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'
17411 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'
17412 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17414 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17415 hardcode_libdir_separator_GCJ=:
17416 link_all_deplibs_GCJ=yes
17419 netbsd* | netbsdelf*-gnu)
17420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17421 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17423 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17425 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17426 hardcode_direct_GCJ=yes
17427 hardcode_shlibpath_var_GCJ=no
17431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432 hardcode_direct_GCJ=yes
17433 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17434 hardcode_libdir_separator_GCJ=:
17435 hardcode_shlibpath_var_GCJ=no
17439 hardcode_direct_GCJ=yes
17440 hardcode_shlibpath_var_GCJ=no
17441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17442 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17443 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17444 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17445 export_dynamic_flag_spec_GCJ='${wl}-E'
17448 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17449 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17450 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17453 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17454 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17461 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17462 hardcode_minus_L_GCJ=yes
17463 allow_undefined_flag_GCJ=unsupported
17464 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'
17465 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17469 if test "$GCC" = yes; then
17470 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17471 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'
17473 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17474 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'
17476 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17477 hardcode_libdir_separator_GCJ=:
17480 osf4* | osf5*) # as osf3* with the addition of -msym flag
17481 if test "$GCC" = yes; then
17482 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17483 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'
17484 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17486 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17487 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'
17488 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~
17489 $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'
17491 # Both c and cxx compiler support -rpath directly
17492 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17494 hardcode_libdir_separator_GCJ=:
17498 no_undefined_flag_GCJ=' -z text'
17499 if test "$GCC" = yes; then
17501 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17502 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17503 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17506 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17507 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17510 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17511 hardcode_shlibpath_var_GCJ=no
17513 solaris2.[0-5] | solaris2.[0-5].*) ;;
17515 # The compiler driver will combine linker options so we
17516 # cannot just pass the convience library names through
17517 # without $wl, iff we do not link with $LD.
17518 # Luckily, gcc supports the same syntax we need for Sun Studio.
17519 # Supported since Solaris 2.6 (maybe 2.5.1?)
17522 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17524 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' ;;
17527 link_all_deplibs_GCJ=yes
17531 if test "x$host_vendor" = xsequent; then
17532 # Use $CC to link under sequent, because it throws in some extra .o
17533 # files that make .init and .fini sections work.
17534 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17536 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17538 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17539 hardcode_direct_GCJ=yes
17540 hardcode_minus_L_GCJ=yes
17541 hardcode_shlibpath_var_GCJ=no
17545 case $host_vendor in
17547 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17548 hardcode_direct_GCJ=yes # is this really true???
17551 ## LD is ld it makes a PLAMLIB
17552 ## CC just makes a GrossModule.
17553 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17554 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17555 hardcode_direct_GCJ=no
17558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17559 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17562 runpath_var='LD_RUN_PATH'
17563 hardcode_shlibpath_var_GCJ=no
17567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17568 hardcode_shlibpath_var_GCJ=no
17569 export_dynamic_flag_spec_GCJ='-Bexport'
17573 if test -d /usr/nec; then
17574 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17575 hardcode_shlibpath_var_GCJ=no
17576 runpath_var=LD_RUN_PATH
17577 hardcode_runpath_var=yes
17582 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17583 no_undefined_flag_GCJ='${wl}-z,text'
17584 archive_cmds_need_lc_GCJ=no
17585 hardcode_shlibpath_var_GCJ=no
17586 runpath_var='LD_RUN_PATH'
17588 if test "$GCC" = yes; then
17589 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17590 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17592 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17593 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17597 sysv5* | sco3.2v5* | sco5v6*)
17598 # Note: We can NOT use -z defs as we might desire, because we do not
17599 # link with -lc, and that would cause any symbols used from libc to
17600 # always be unresolved, which means just about no library would
17601 # ever link correctly. If we're not using GNU ld we use -z text
17602 # though, which does catch some bad symbols but isn't as heavy-handed
17604 no_undefined_flag_GCJ='${wl}-z,text'
17605 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17606 archive_cmds_need_lc_GCJ=no
17607 hardcode_shlibpath_var_GCJ=no
17608 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17609 hardcode_libdir_separator_GCJ=':'
17610 link_all_deplibs_GCJ=yes
17611 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17612 runpath_var='LD_RUN_PATH'
17614 if test "$GCC" = yes; then
17615 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17616 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17618 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17624 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17626 hardcode_shlibpath_var_GCJ=no
17635 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17636 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17637 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17640 # Do we need to explicitly link libc?
17642 case "x$archive_cmds_need_lc_GCJ" in
17644 # Assume -lc should be added
17645 archive_cmds_need_lc_GCJ=yes
17647 if test "$enable_shared" = yes && test "$GCC" = yes; then
17648 case $archive_cmds_GCJ in
17650 # FIXME: we may have to deal with multi-command sequences.
17653 # Test whether the compiler implicitly links with -lc since on some
17654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17655 # to ld, don't add -lc before -lgcc.
17656 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17657 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662 (eval $ac_compile) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } 2>conftest.err; then
17668 libobjs=conftest.$ac_objext
17670 wl=$lt_prog_compiler_wl_GCJ
17671 pic_flag=$lt_prog_compiler_pic_GCJ
17677 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17678 allow_undefined_flag_GCJ=
17679 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17680 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }
17685 archive_cmds_need_lc_GCJ=no
17687 archive_cmds_need_lc_GCJ=yes
17689 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17691 cat conftest.err 1>&5
17694 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17695 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17702 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17703 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17704 library_names_spec=
17705 libname_spec='lib$name'
17709 postuninstall_cmds=
17713 shlibpath_overrides_runpath=unknown
17715 dynamic_linker="$host_os ld.so"
17716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17717 if test "$GCC" = yes; then
17718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17719 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17720 # if the path contains ";" then we assume it to be the separator
17721 # otherwise default to the standard path separator (i.e. ":") - it is
17722 # assumed that no part of a normal pathname contains ";" but that should
17723 # okay in the real world where ";" in dirpaths is itself problematic.
17724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17731 need_lib_prefix=unknown
17732 hardcode_into_libs=no
17734 # when you set need_version to no, make sure it does not cause -set_version
17735 # flags to be left without arguments
17736 need_version=unknown
17741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17742 shlibpath_var=LIBPATH
17744 # AIX 3 has no versioning support, so we append a major version to the name.
17745 soname_spec='${libname}${release}${shared_ext}$major'
17752 hardcode_into_libs=yes
17753 if test "$host_cpu" = ia64; then
17754 # AIX 5 supports IA64
17755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17756 shlibpath_var=LD_LIBRARY_PATH
17758 # With GCC up to 2.95.x, collect2 would create an import file
17759 # for dependence libraries. The import file would start with
17760 # the line `#! .'. This would cause the generated library to
17761 # depend on `.', always an invalid library. This was fixed in
17762 # development snapshots of GCC prior to 3.0.
17764 aix4 | aix4.[01] | aix4.[01].*)
17765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17767 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17770 can_build_shared=no
17774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17775 # soname into executable. Probably we can add versioning support to
17776 # collect2, so additional links can be useful in future.
17777 if test "$aix_use_runtimelinking" = yes; then
17778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17779 # instead of lib<name>.a to let people know that these are not
17780 # typical AIX shared libraries.
17781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17783 # We preserve .a as extension for shared libraries through AIX4.2
17784 # and later when we are not doing run time linking.
17785 library_names_spec='${libname}${release}.a $libname.a'
17786 soname_spec='${libname}${release}${shared_ext}$major'
17788 shlibpath_var=LIBPATH
17793 library_names_spec='$libname.ixlibrary $libname.a'
17794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17795 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'
17799 library_names_spec='${libname}${shared_ext}'
17800 dynamic_linker="$host_os ld.so"
17801 shlibpath_var=LIBRARY_PATH
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 soname_spec='${libname}${release}${shared_ext}$major'
17809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17813 # the default ld.so.conf also contains /usr/contrib/lib and
17814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17815 # libtool to hard-code these into programs
17818 cygwin* | mingw* | pw32*)
17819 version_type=windows
17824 case $GCC,$host_os in
17825 yes,cygwin* | yes,mingw* | yes,pw32*)
17826 library_names_spec='$libname.dll.a'
17827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17828 postinstall_cmds='base_file=`basename \${file}`~
17829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17830 dldir=$destdir/`dirname \$dlpath`~
17831 test -d \$dldir || mkdir -p \$dldir~
17832 $install_prog $dir/$dlname \$dldir/$dlname~
17833 chmod a+x \$dldir/$dlname'
17834 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17835 dlpath=$dir/\$dldll~
17837 shlibpath_overrides_runpath=yes
17841 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17842 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17843 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17846 # MinGW DLLs use traditional 'lib' prefix
17847 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17849 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17850 # It is most probably a Windows format PATH printed by
17851 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17852 # path with ; separators, and with drive letters. We can handle the
17853 # drive letters (cygwin fileutils understands them), so leave them,
17854 # especially as we might pass files found there to a mingw objdump,
17855 # which wouldn't understand a cygwinified path. Ahh.
17856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17862 # pw32 DLLs use 'pw' prefix rather than 'lib'
17863 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17869 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17872 dynamic_linker='Win32 ld.exe'
17873 # FIXME: first we should search . and the directory the executable is in
17877 darwin* | rhapsody*)
17878 dynamic_linker="$host_os dyld"
17879 version_type=darwin
17882 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17883 soname_spec='${libname}${release}${major}$shared_ext'
17884 shlibpath_overrides_runpath=yes
17885 shlibpath_var=DYLD_LIBRARY_PATH
17886 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17887 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17888 if test "$GCC" = yes; then
17889 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"`
17891 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17901 soname_spec='${libname}${release}${shared_ext}$major'
17902 shlibpath_var=LD_LIBRARY_PATH
17909 freebsd* | dragonfly*)
17910 # DragonFly does not have aout. When/if they implement a new
17911 # versioning mechanism, adjust this.
17912 if test -x /usr/bin/objformat; then
17913 objformat=`/usr/bin/objformat`
17916 freebsd[123]*) objformat=aout ;;
17917 *) objformat=elf ;;
17920 version_type=freebsd-$objformat
17921 case $version_type in
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17932 shlibpath_var=LD_LIBRARY_PATH
17935 shlibpath_overrides_runpath=yes
17937 freebsd3.[01]* | freebsdelf3.[01]*)
17938 shlibpath_overrides_runpath=yes
17939 hardcode_into_libs=yes
17941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17943 shlibpath_overrides_runpath=no
17944 hardcode_into_libs=yes
17946 freebsd*) # from 4.6 on
17947 shlibpath_overrides_runpath=yes
17948 hardcode_into_libs=yes
17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17958 soname_spec='${libname}${release}${shared_ext}$major'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 hardcode_into_libs=yes
17963 hpux9* | hpux10* | hpux11*)
17964 # Give a soname corresponding to the major version so that dld.sl refuses to
17965 # link against other versions.
17972 hardcode_into_libs=yes
17973 dynamic_linker="$host_os dld.so"
17974 shlibpath_var=LD_LIBRARY_PATH
17975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977 soname_spec='${libname}${release}${shared_ext}$major'
17978 if test "X$HPUX_IA64_MODE" = X32; then
17979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17987 hardcode_into_libs=yes
17988 dynamic_linker="$host_os dld.sl"
17989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17992 soname_spec='${libname}${release}${shared_ext}$major'
17993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17998 dynamic_linker="$host_os dld.sl"
17999 shlibpath_var=SHLIB_PATH
18000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18005 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18006 postinstall_cmds='chmod 555 $lib'
18013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18014 soname_spec='${libname}${release}${shared_ext}$major'
18015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18016 shlibpath_var=LD_LIBRARY_PATH
18017 shlibpath_overrides_runpath=no
18018 hardcode_into_libs=yes
18021 irix5* | irix6* | nonstopux*)
18023 nonstopux*) version_type=nonstopux ;;
18025 if test "$lt_cv_prog_gnu_ld" = yes; then
18033 soname_spec='${libname}${release}${shared_ext}$major'
18034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18036 irix5* | nonstopux*)
18037 libsuff= shlibsuff=
18040 case $LD in # libtool.m4 will add one of these switches to LD
18041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18042 libsuff= shlibsuff= libmagic=32-bit;;
18043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18044 libsuff=32 shlibsuff=N32 libmagic=N32;;
18045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18047 *) libsuff= shlibsuff= libmagic=never-match;;
18051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18052 shlibpath_overrides_runpath=no
18053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18055 hardcode_into_libs=yes
18058 # No shared lib support for Linux oldld, aout, or coff.
18059 linux*oldld* | linux*aout* | linux*coff*)
18063 # This must be Linux ELF.
18064 linux* | k*bsd*-gnu)
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069 soname_spec='${libname}${release}${shared_ext}$major'
18070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18071 shlibpath_var=LD_LIBRARY_PATH
18072 shlibpath_overrides_runpath=no
18073 # This implies no fast_install, which is unacceptable.
18074 # Some rework will be needed to allow for fast_install
18075 # before this can be enabled.
18076 hardcode_into_libs=yes
18078 # Append ld.so.conf contents to the search path
18079 if test -f /etc/ld.so.conf; then
18080 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' ' '`
18081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18084 # We used to test for /lib/ld.so.1 and disable shared libraries on
18085 # powerpc, because MkLinux only supported shared libraries with the
18086 # GNU dynamic linker. Since this was broken with cross compilers,
18087 # most powerpc-linux boxes support dynamic linking these days and
18088 # people can always --disable-shared, the test was removed, and we
18089 # assume the GNU/Linux dynamic linker is in use.
18090 dynamic_linker='GNU/Linux ld.so'
18097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18098 soname_spec='${libname}${release}${shared_ext}$major'
18099 shlibpath_var=LD_LIBRARY_PATH
18100 shlibpath_overrides_runpath=no
18101 hardcode_into_libs=yes
18102 dynamic_linker='NetBSD ld.elf_so'
18109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18112 dynamic_linker='NetBSD (a.out) ld.so'
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 dynamic_linker='NetBSD ld.elf_so'
18118 shlibpath_var=LD_LIBRARY_PATH
18119 shlibpath_overrides_runpath=yes
18120 hardcode_into_libs=yes
18125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18126 shlibpath_var=LD_LIBRARY_PATH
18127 shlibpath_overrides_runpath=yes
18134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135 soname_spec='${libname}${release}${shared_ext}$major'
18136 shlibpath_var=LD_LIBRARY_PATH
18137 shlibpath_overrides_runpath=yes
18142 sys_lib_dlsearch_path_spec="/usr/lib"
18144 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18146 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18147 *) need_version=no ;;
18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18154 openbsd2.[89] | openbsd2.[89].*)
18155 shlibpath_overrides_runpath=no
18158 shlibpath_overrides_runpath=yes
18162 shlibpath_overrides_runpath=yes
18167 libname_spec='$name'
18170 library_names_spec='$libname${shared_ext} $libname.a'
18171 dynamic_linker='OS/2 ld.exe'
18172 shlibpath_var=LIBPATH
18175 osf3* | osf4* | osf5*)
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 shlibpath_var=LD_LIBRARY_PATH
18182 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18183 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18191 soname_spec='${libname}${release}${shared_ext}$major'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 shlibpath_overrides_runpath=yes
18194 hardcode_into_libs=yes
18195 # ldd complains unless libraries are executable
18196 postinstall_cmds='chmod +x $lib'
18201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18202 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18203 shlibpath_var=LD_LIBRARY_PATH
18204 shlibpath_overrides_runpath=yes
18205 if test "$with_gnu_ld" = yes; then
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 case $host_vendor in
18218 shlibpath_overrides_runpath=no
18220 export_dynamic_flag_spec='${wl}-Blargedynsym'
18221 runpath_var=LD_RUN_PATH
18229 shlibpath_overrides_runpath=no
18230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18236 if test -d /usr/nec ;then
18238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18239 soname_spec='$libname${shared_ext}.$major'
18240 shlibpath_var=LD_LIBRARY_PATH
18244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18245 version_type=freebsd-elf
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18249 soname_spec='${libname}${release}${shared_ext}$major'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 hardcode_into_libs=yes
18252 if test "$with_gnu_ld" = yes; then
18253 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18254 shlibpath_overrides_runpath=no
18256 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18257 shlibpath_overrides_runpath=yes
18260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18264 sys_lib_dlsearch_path_spec='/usr/lib'
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270 soname_spec='${libname}${release}${shared_ext}$major'
18271 shlibpath_var=LD_LIBRARY_PATH
18278 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18279 echo "${ECHO_T}$dynamic_linker" >&6; }
18280 test "$dynamic_linker" = no && can_build_shared=no
18282 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18283 if test "$GCC" = yes; then
18284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18287 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18288 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18289 hardcode_action_GCJ=
18290 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18291 test -n "$runpath_var_GCJ" || \
18292 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18294 # We can hardcode non-existant directories.
18295 if test "$hardcode_direct_GCJ" != no &&
18296 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18297 # have to relink, otherwise we might link with an installed library
18298 # when we should be linking with a yet-to-be-installed one
18299 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18300 test "$hardcode_minus_L_GCJ" != no; then
18301 # Linking always hardcodes the temporary library directory.
18302 hardcode_action_GCJ=relink
18304 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18305 hardcode_action_GCJ=immediate
18308 # We cannot hardcode anything, or else we can only hardcode existing
18310 hardcode_action_GCJ=unsupported
18312 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18313 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18315 if test "$hardcode_action_GCJ" = relink; then
18316 # Fast installation is not supported
18317 enable_fast_install=no
18318 elif test "$shlibpath_overrides_runpath" = yes ||
18319 test "$enable_shared" = no; then
18320 # Fast installation is not necessary
18321 enable_fast_install=needless
18325 # The else clause should only fire when bootstrapping the
18326 # libtool distribution, otherwise you forgot to ship ltmain.sh
18327 # with your package, and you will get complaints that there are
18328 # no rules to generate ltmain.sh.
18329 if test -f "$ltmain"; then
18330 # See if we are running on zsh, and set the options which allow our commands through
18331 # without removal of \ escapes.
18332 if test -n "${ZSH_VERSION+set}" ; then
18333 setopt NO_GLOB_SUBST
18335 # Now quote all the things that may contain metacharacters while being
18336 # careful not to overquote the AC_SUBSTed values. We take copies of the
18337 # variables and quote the copies for generation of the libtool script.
18338 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18340 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18341 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18342 deplibs_check_method reload_flag reload_cmds need_locks \
18343 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18344 lt_cv_sys_global_symbol_to_c_name_address \
18345 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18346 old_postinstall_cmds old_postuninstall_cmds \
18350 lt_prog_compiler_wl_GCJ \
18351 lt_prog_compiler_pic_GCJ \
18352 lt_prog_compiler_static_GCJ \
18353 lt_prog_compiler_no_builtin_flag_GCJ \
18354 export_dynamic_flag_spec_GCJ \
18355 thread_safe_flag_spec_GCJ \
18356 whole_archive_flag_spec_GCJ \
18357 enable_shared_with_static_runtimes_GCJ \
18358 old_archive_cmds_GCJ \
18359 old_archive_from_new_cmds_GCJ \
18360 predep_objects_GCJ \
18361 postdep_objects_GCJ \
18364 compiler_lib_search_path_GCJ \
18366 archive_expsym_cmds_GCJ \
18367 postinstall_cmds_GCJ \
18368 postuninstall_cmds_GCJ \
18369 old_archive_from_expsyms_cmds_GCJ \
18370 allow_undefined_flag_GCJ \
18371 no_undefined_flag_GCJ \
18372 export_symbols_cmds_GCJ \
18373 hardcode_libdir_flag_spec_GCJ \
18374 hardcode_libdir_flag_spec_ld_GCJ \
18375 hardcode_libdir_separator_GCJ \
18376 hardcode_automatic_GCJ \
18378 module_expsym_cmds_GCJ \
18379 lt_cv_prog_compiler_c_o_GCJ \
18380 exclude_expsyms_GCJ \
18381 include_expsyms_GCJ; do
18384 old_archive_cmds_GCJ | \
18385 old_archive_from_new_cmds_GCJ | \
18386 archive_cmds_GCJ | \
18387 archive_expsym_cmds_GCJ | \
18388 module_cmds_GCJ | \
18389 module_expsym_cmds_GCJ | \
18390 old_archive_from_expsyms_cmds_GCJ | \
18391 export_symbols_cmds_GCJ | \
18392 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18393 postinstall_cmds | postuninstall_cmds | \
18394 old_postinstall_cmds | old_postuninstall_cmds | \
18395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18396 # Double-quote double-evaled strings.
18397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18406 *'\$0 --fallback-echo"')
18407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18413 cat <<__EOF__ >> "$cfgfile"
18414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18418 # Shell to use when invoking shell scripts.
18421 # Whether or not to build shared libraries.
18422 build_libtool_libs=$enable_shared
18424 # Whether or not to build static libraries.
18425 build_old_libs=$enable_static
18427 # Whether or not to add -lc for building shared libraries.
18428 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18430 # Whether or not to disallow shared libs when runtime libs are static
18431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18433 # Whether or not to optimize for fast installation.
18434 fast_install=$enable_fast_install
18437 host_alias=$host_alias
18441 # The build system.
18442 build_alias=$build_alias
18446 # An echo program that does not interpret backslashes.
18451 AR_FLAGS=$lt_AR_FLAGS
18456 # LTCC compiler flags.
18457 LTCFLAGS=$lt_LTCFLAGS
18459 # A language-specific compiler.
18460 CC=$lt_compiler_GCJ
18462 # Is the compiler the GNU C compiler?
18468 # The linker used to build libraries.
18471 # Whether we need hard or soft links.
18474 # A BSD-compatible nm program.
18477 # A symbol stripping program
18480 # Used to examine libraries when file_magic_cmd begins "file"
18481 MAGIC_CMD=$MAGIC_CMD
18483 # Used on cygwin: DLL creation program.
18486 # Used on cygwin: object dumper.
18489 # Used on cygwin: assembler.
18492 # The name of the directory that contains temporary libtool files.
18495 # How to create reloadable object files.
18496 reload_flag=$lt_reload_flag
18497 reload_cmds=$lt_reload_cmds
18499 # How to pass a linker flag through the compiler.
18500 wl=$lt_lt_prog_compiler_wl_GCJ
18502 # Object file suffix (normally "o").
18503 objext="$ac_objext"
18505 # Old archive suffix (normally "a").
18508 # Shared library suffix (normally ".so").
18509 shrext_cmds='$shrext_cmds'
18511 # Executable file suffix (normally "").
18514 # Additional compiler flags for building library objects.
18515 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18518 # What is the maximum length of a command?
18519 max_cmd_len=$lt_cv_sys_max_cmd_len
18521 # Does compiler simultaneously support -c and -o options?
18522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18524 # Must we lock files when doing compilation?
18525 need_locks=$lt_need_locks
18527 # Do we need the lib prefix for modules?
18528 need_lib_prefix=$need_lib_prefix
18530 # Do we need a version for libraries?
18531 need_version=$need_version
18533 # Whether dlopen is supported.
18534 dlopen_support=$enable_dlopen
18536 # Whether dlopen of programs is supported.
18537 dlopen_self=$enable_dlopen_self
18539 # Whether dlopen of statically linked programs is supported.
18540 dlopen_self_static=$enable_dlopen_self_static
18542 # Compiler flag to prevent dynamic linking.
18543 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18545 # Compiler flag to turn off builtin functions.
18546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18548 # Compiler flag to allow reflexive dlopens.
18549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18551 # Compiler flag to generate shared objects directly from archives.
18552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18554 # Compiler flag to generate thread-safe objects.
18555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18557 # Library versioning type.
18558 version_type=$version_type
18560 # Format of library name prefix.
18561 libname_spec=$lt_libname_spec
18563 # List of archive names. First name is the real one, the rest are links.
18564 # The last name is the one that the linker finds with -lNAME.
18565 library_names_spec=$lt_library_names_spec
18567 # The coded name of the library, if different from the real name.
18568 soname_spec=$lt_soname_spec
18570 # Commands used to build and install an old-style archive.
18572 old_archive_cmds=$lt_old_archive_cmds_GCJ
18573 old_postinstall_cmds=$lt_old_postinstall_cmds
18574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18576 # Create an old-style archive from a shared archive.
18577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18579 # Create a temporary old-style archive to link instead of a shared archive.
18580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18582 # Commands used to build and install a shared archive.
18583 archive_cmds=$lt_archive_cmds_GCJ
18584 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18585 postinstall_cmds=$lt_postinstall_cmds
18586 postuninstall_cmds=$lt_postuninstall_cmds
18588 # Commands used to build a loadable module (assumed same as above if empty)
18589 module_cmds=$lt_module_cmds_GCJ
18590 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18592 # Commands to strip libraries.
18593 old_striplib=$lt_old_striplib
18594 striplib=$lt_striplib
18596 # Dependencies to place before the objects being linked to create a
18598 predep_objects=$lt_predep_objects_GCJ
18600 # Dependencies to place after the objects being linked to create a
18602 postdep_objects=$lt_postdep_objects_GCJ
18604 # Dependencies to place before the objects being linked to create a
18606 predeps=$lt_predeps_GCJ
18608 # Dependencies to place after the objects being linked to create a
18610 postdeps=$lt_postdeps_GCJ
18612 # The library search path used internally by the compiler when linking
18613 # a shared library.
18614 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18616 # Method to check whether dependent libraries are shared objects.
18617 deplibs_check_method=$lt_deplibs_check_method
18619 # Command to use when deplibs_check_method == file_magic.
18620 file_magic_cmd=$lt_file_magic_cmd
18622 # Flag that allows shared libraries with undefined symbols to be built.
18623 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18625 # Flag that forces no undefined symbols.
18626 no_undefined_flag=$lt_no_undefined_flag_GCJ
18628 # Commands used to finish a libtool library installation in a directory.
18629 finish_cmds=$lt_finish_cmds
18631 # Same as above, but a single script fragment to be evaled but not shown.
18632 finish_eval=$lt_finish_eval
18634 # Take the output of nm and produce a listing of raw symbols and C names.
18635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18637 # Transform the output of nm in a proper C declaration
18638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18640 # Transform the output of nm in a C name address pair
18641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18643 # This is the shared library runtime path variable.
18644 runpath_var=$runpath_var
18646 # This is the shared library path variable.
18647 shlibpath_var=$shlibpath_var
18649 # Is shlibpath searched before the hard-coded library search path?
18650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18652 # How to hardcode a shared library path into an executable.
18653 hardcode_action=$hardcode_action_GCJ
18655 # Whether we should hardcode library paths into libraries.
18656 hardcode_into_libs=$hardcode_into_libs
18658 # Flag to hardcode \$libdir into a binary during linking.
18659 # This must work even if \$libdir does not exist.
18660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18662 # If ld is used when linking, flag to hardcode \$libdir into
18663 # a binary during linking. This must work even if \$libdir does
18665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18667 # Whether we need a single -rpath flag with a separated argument.
18668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18671 # resulting binary.
18672 hardcode_direct=$hardcode_direct_GCJ
18674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18675 # resulting binary.
18676 hardcode_minus_L=$hardcode_minus_L_GCJ
18678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18679 # the resulting binary.
18680 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18682 # Set to yes if building a shared library automatically hardcodes DIR into the library
18683 # and all subsequent libraries and executables linked against it.
18684 hardcode_automatic=$hardcode_automatic_GCJ
18686 # Variables whose values should be saved in libtool wrapper scripts and
18687 # restored at relink time.
18688 variables_saved_for_relink="$variables_saved_for_relink"
18690 # Whether libtool must link a program against all its dependency libraries.
18691 link_all_deplibs=$link_all_deplibs_GCJ
18693 # Compile-time system search path for libraries
18694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18696 # Run-time system search path for libraries
18697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18699 # Fix the shell variable \$srcfile for the compiler.
18700 fix_srcfile_path="$fix_srcfile_path_GCJ"
18702 # Set to yes if exported symbols are required.
18703 always_export_symbols=$always_export_symbols_GCJ
18705 # The commands to list exported symbols.
18706 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18708 # The commands to extract the exported symbol list from a shared archive.
18709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18711 # Symbols that should not be listed in the preloaded symbols.
18712 exclude_expsyms=$lt_exclude_expsyms_GCJ
18714 # Symbols that must always be exported.
18715 include_expsyms=$lt_include_expsyms_GCJ
18717 # ### END LIBTOOL TAG CONFIG: $tagname
18723 # If there is no Makefile yet, we rely on a make rule to execute
18724 # `config.status --recheck' to rerun these tests and create the
18725 # libtool script then.
18726 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18727 if test -f "$ltmain_in"; then
18728 test -f Makefile && make "$ltmain"
18734 ac_cpp='$CPP $CPPFLAGS'
18735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18749 # Source file extension for RC test sources.
18752 # Object file extension for compiled RC test sources.
18756 # Code to be used in simple compile tests
18757 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18759 # Code to be used in simple link tests
18760 lt_simple_link_test_code="$lt_simple_compile_test_code"
18762 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18764 # If no C compiler was specified, use CC.
18767 # If no C compiler flags were specified, use CFLAGS.
18768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18770 # Allow CC to be a program name with arguments.
18774 # save warnings/boilerplate of simple test code
18775 ac_outfile=conftest.$ac_objext
18776 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18778 _lt_compiler_boilerplate=`cat conftest.err`
18781 ac_outfile=conftest.$ac_objext
18782 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18784 _lt_linker_boilerplate=`cat conftest.err`
18788 # Allow CC to be a program name with arguments.
18793 for cc_temp in $compiler""; do
18795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18801 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18803 lt_cv_prog_compiler_c_o_RC=yes
18805 # The else clause should only fire when bootstrapping the
18806 # libtool distribution, otherwise you forgot to ship ltmain.sh
18807 # with your package, and you will get complaints that there are
18808 # no rules to generate ltmain.sh.
18809 if test -f "$ltmain"; then
18810 # See if we are running on zsh, and set the options which allow our commands through
18811 # without removal of \ escapes.
18812 if test -n "${ZSH_VERSION+set}" ; then
18813 setopt NO_GLOB_SUBST
18815 # Now quote all the things that may contain metacharacters while being
18816 # careful not to overquote the AC_SUBSTed values. We take copies of the
18817 # variables and quote the copies for generation of the libtool script.
18818 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18820 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18821 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18822 deplibs_check_method reload_flag reload_cmds need_locks \
18823 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18824 lt_cv_sys_global_symbol_to_c_name_address \
18825 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18826 old_postinstall_cmds old_postuninstall_cmds \
18830 lt_prog_compiler_wl_RC \
18831 lt_prog_compiler_pic_RC \
18832 lt_prog_compiler_static_RC \
18833 lt_prog_compiler_no_builtin_flag_RC \
18834 export_dynamic_flag_spec_RC \
18835 thread_safe_flag_spec_RC \
18836 whole_archive_flag_spec_RC \
18837 enable_shared_with_static_runtimes_RC \
18838 old_archive_cmds_RC \
18839 old_archive_from_new_cmds_RC \
18840 predep_objects_RC \
18841 postdep_objects_RC \
18844 compiler_lib_search_path_RC \
18846 archive_expsym_cmds_RC \
18847 postinstall_cmds_RC \
18848 postuninstall_cmds_RC \
18849 old_archive_from_expsyms_cmds_RC \
18850 allow_undefined_flag_RC \
18851 no_undefined_flag_RC \
18852 export_symbols_cmds_RC \
18853 hardcode_libdir_flag_spec_RC \
18854 hardcode_libdir_flag_spec_ld_RC \
18855 hardcode_libdir_separator_RC \
18856 hardcode_automatic_RC \
18858 module_expsym_cmds_RC \
18859 lt_cv_prog_compiler_c_o_RC \
18860 exclude_expsyms_RC \
18861 include_expsyms_RC; do
18864 old_archive_cmds_RC | \
18865 old_archive_from_new_cmds_RC | \
18866 archive_cmds_RC | \
18867 archive_expsym_cmds_RC | \
18869 module_expsym_cmds_RC | \
18870 old_archive_from_expsyms_cmds_RC | \
18871 export_symbols_cmds_RC | \
18872 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18873 postinstall_cmds | postuninstall_cmds | \
18874 old_postinstall_cmds | old_postuninstall_cmds | \
18875 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18876 # Double-quote double-evaled strings.
18877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18886 *'\$0 --fallback-echo"')
18887 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18893 cat <<__EOF__ >> "$cfgfile"
18894 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18896 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18898 # Shell to use when invoking shell scripts.
18901 # Whether or not to build shared libraries.
18902 build_libtool_libs=$enable_shared
18904 # Whether or not to build static libraries.
18905 build_old_libs=$enable_static
18907 # Whether or not to add -lc for building shared libraries.
18908 build_libtool_need_lc=$archive_cmds_need_lc_RC
18910 # Whether or not to disallow shared libs when runtime libs are static
18911 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18913 # Whether or not to optimize for fast installation.
18914 fast_install=$enable_fast_install
18917 host_alias=$host_alias
18921 # The build system.
18922 build_alias=$build_alias
18926 # An echo program that does not interpret backslashes.
18931 AR_FLAGS=$lt_AR_FLAGS
18936 # LTCC compiler flags.
18937 LTCFLAGS=$lt_LTCFLAGS
18939 # A language-specific compiler.
18942 # Is the compiler the GNU C compiler?
18948 # The linker used to build libraries.
18951 # Whether we need hard or soft links.
18954 # A BSD-compatible nm program.
18957 # A symbol stripping program
18960 # Used to examine libraries when file_magic_cmd begins "file"
18961 MAGIC_CMD=$MAGIC_CMD
18963 # Used on cygwin: DLL creation program.
18966 # Used on cygwin: object dumper.
18969 # Used on cygwin: assembler.
18972 # The name of the directory that contains temporary libtool files.
18975 # How to create reloadable object files.
18976 reload_flag=$lt_reload_flag
18977 reload_cmds=$lt_reload_cmds
18979 # How to pass a linker flag through the compiler.
18980 wl=$lt_lt_prog_compiler_wl_RC
18982 # Object file suffix (normally "o").
18983 objext="$ac_objext"
18985 # Old archive suffix (normally "a").
18988 # Shared library suffix (normally ".so").
18989 shrext_cmds='$shrext_cmds'
18991 # Executable file suffix (normally "").
18994 # Additional compiler flags for building library objects.
18995 pic_flag=$lt_lt_prog_compiler_pic_RC
18998 # What is the maximum length of a command?
18999 max_cmd_len=$lt_cv_sys_max_cmd_len
19001 # Does compiler simultaneously support -c and -o options?
19002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19004 # Must we lock files when doing compilation?
19005 need_locks=$lt_need_locks
19007 # Do we need the lib prefix for modules?
19008 need_lib_prefix=$need_lib_prefix
19010 # Do we need a version for libraries?
19011 need_version=$need_version
19013 # Whether dlopen is supported.
19014 dlopen_support=$enable_dlopen
19016 # Whether dlopen of programs is supported.
19017 dlopen_self=$enable_dlopen_self
19019 # Whether dlopen of statically linked programs is supported.
19020 dlopen_self_static=$enable_dlopen_self_static
19022 # Compiler flag to prevent dynamic linking.
19023 link_static_flag=$lt_lt_prog_compiler_static_RC
19025 # Compiler flag to turn off builtin functions.
19026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19028 # Compiler flag to allow reflexive dlopens.
19029 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19031 # Compiler flag to generate shared objects directly from archives.
19032 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19034 # Compiler flag to generate thread-safe objects.
19035 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19037 # Library versioning type.
19038 version_type=$version_type
19040 # Format of library name prefix.
19041 libname_spec=$lt_libname_spec
19043 # List of archive names. First name is the real one, the rest are links.
19044 # The last name is the one that the linker finds with -lNAME.
19045 library_names_spec=$lt_library_names_spec
19047 # The coded name of the library, if different from the real name.
19048 soname_spec=$lt_soname_spec
19050 # Commands used to build and install an old-style archive.
19052 old_archive_cmds=$lt_old_archive_cmds_RC
19053 old_postinstall_cmds=$lt_old_postinstall_cmds
19054 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19056 # Create an old-style archive from a shared archive.
19057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19059 # Create a temporary old-style archive to link instead of a shared archive.
19060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19062 # Commands used to build and install a shared archive.
19063 archive_cmds=$lt_archive_cmds_RC
19064 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19065 postinstall_cmds=$lt_postinstall_cmds
19066 postuninstall_cmds=$lt_postuninstall_cmds
19068 # Commands used to build a loadable module (assumed same as above if empty)
19069 module_cmds=$lt_module_cmds_RC
19070 module_expsym_cmds=$lt_module_expsym_cmds_RC
19072 # Commands to strip libraries.
19073 old_striplib=$lt_old_striplib
19074 striplib=$lt_striplib
19076 # Dependencies to place before the objects being linked to create a
19078 predep_objects=$lt_predep_objects_RC
19080 # Dependencies to place after the objects being linked to create a
19082 postdep_objects=$lt_postdep_objects_RC
19084 # Dependencies to place before the objects being linked to create a
19086 predeps=$lt_predeps_RC
19088 # Dependencies to place after the objects being linked to create a
19090 postdeps=$lt_postdeps_RC
19092 # The library search path used internally by the compiler when linking
19093 # a shared library.
19094 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19096 # Method to check whether dependent libraries are shared objects.
19097 deplibs_check_method=$lt_deplibs_check_method
19099 # Command to use when deplibs_check_method == file_magic.
19100 file_magic_cmd=$lt_file_magic_cmd
19102 # Flag that allows shared libraries with undefined symbols to be built.
19103 allow_undefined_flag=$lt_allow_undefined_flag_RC
19105 # Flag that forces no undefined symbols.
19106 no_undefined_flag=$lt_no_undefined_flag_RC
19108 # Commands used to finish a libtool library installation in a directory.
19109 finish_cmds=$lt_finish_cmds
19111 # Same as above, but a single script fragment to be evaled but not shown.
19112 finish_eval=$lt_finish_eval
19114 # Take the output of nm and produce a listing of raw symbols and C names.
19115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19117 # Transform the output of nm in a proper C declaration
19118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19120 # Transform the output of nm in a C name address pair
19121 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19123 # This is the shared library runtime path variable.
19124 runpath_var=$runpath_var
19126 # This is the shared library path variable.
19127 shlibpath_var=$shlibpath_var
19129 # Is shlibpath searched before the hard-coded library search path?
19130 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19132 # How to hardcode a shared library path into an executable.
19133 hardcode_action=$hardcode_action_RC
19135 # Whether we should hardcode library paths into libraries.
19136 hardcode_into_libs=$hardcode_into_libs
19138 # Flag to hardcode \$libdir into a binary during linking.
19139 # This must work even if \$libdir does not exist.
19140 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19142 # If ld is used when linking, flag to hardcode \$libdir into
19143 # a binary during linking. This must work even if \$libdir does
19145 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19147 # Whether we need a single -rpath flag with a separated argument.
19148 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19150 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19151 # resulting binary.
19152 hardcode_direct=$hardcode_direct_RC
19154 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19155 # resulting binary.
19156 hardcode_minus_L=$hardcode_minus_L_RC
19158 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19159 # the resulting binary.
19160 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19162 # Set to yes if building a shared library automatically hardcodes DIR into the library
19163 # and all subsequent libraries and executables linked against it.
19164 hardcode_automatic=$hardcode_automatic_RC
19166 # Variables whose values should be saved in libtool wrapper scripts and
19167 # restored at relink time.
19168 variables_saved_for_relink="$variables_saved_for_relink"
19170 # Whether libtool must link a program against all its dependency libraries.
19171 link_all_deplibs=$link_all_deplibs_RC
19173 # Compile-time system search path for libraries
19174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19176 # Run-time system search path for libraries
19177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19179 # Fix the shell variable \$srcfile for the compiler.
19180 fix_srcfile_path="$fix_srcfile_path_RC"
19182 # Set to yes if exported symbols are required.
19183 always_export_symbols=$always_export_symbols_RC
19185 # The commands to list exported symbols.
19186 export_symbols_cmds=$lt_export_symbols_cmds_RC
19188 # The commands to extract the exported symbol list from a shared archive.
19189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19191 # Symbols that should not be listed in the preloaded symbols.
19192 exclude_expsyms=$lt_exclude_expsyms_RC
19194 # Symbols that must always be exported.
19195 include_expsyms=$lt_include_expsyms_RC
19197 # ### END LIBTOOL TAG CONFIG: $tagname
19203 # If there is no Makefile yet, we rely on a make rule to execute
19204 # `config.status --recheck' to rerun these tests and create the
19205 # libtool script then.
19206 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19207 if test -f "$ltmain_in"; then
19208 test -f Makefile && make "$ltmain"
19214 ac_cpp='$CPP $CPPFLAGS'
19215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19224 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19225 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19226 { (exit 1); exit 1; }; }
19230 # Append the new tag name to the list of available tags.
19231 if test -n "$tagname" ; then
19232 available_tags="$available_tags $tagname"
19238 # Now substitute the updated list of available tags.
19239 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19240 mv "${ofile}T" "$ofile"
19244 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19245 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19246 { (exit 1); exit 1; }; }
19252 # This can be used to rebuild libtool when needed
19253 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19255 # Always use our own libtool.
19256 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19258 # Prevent multiple expansion
19280 # Checks for header files.
19281 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19282 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19283 if test "${ac_cv_header_stdc+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 #include <stdlib.h>
19293 #include <stdarg.h>
19294 #include <string.h>
19305 rm -f conftest.$ac_objext
19306 if { (ac_try="$ac_compile"
19307 case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 (eval "$ac_compile") 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && {
19319 test -z "$ac_c_werror_flag" ||
19320 test ! -s conftest.err
19321 } && test -s conftest.$ac_objext; then
19322 ac_cv_header_stdc=yes
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_header_stdc=no
19330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19332 if test $ac_cv_header_stdc = yes; then
19333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340 #include <string.h>
19343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19344 $EGREP "memchr" >/dev/null 2>&1; then
19347 ac_cv_header_stdc=no
19353 if test $ac_cv_header_stdc = yes; then
19354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19355 cat >conftest.$ac_ext <<_ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 #include <stdlib.h>
19364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19365 $EGREP "free" >/dev/null 2>&1; then
19368 ac_cv_header_stdc=no
19374 if test $ac_cv_header_stdc = yes; then
19375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19376 if test "$cross_compiling" = yes; then
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19386 #include <stdlib.h>
19387 #if ((' ' & 0x0FF) == 0x020)
19388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19391 # define ISLOWER(c) \
19392 (('a' <= (c) && (c) <= 'i') \
19393 || ('j' <= (c) && (c) <= 'r') \
19394 || ('s' <= (c) && (c) <= 'z'))
19395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19403 for (i = 0; i < 256; i++)
19404 if (XOR (islower (i), ISLOWER (i))
19405 || toupper (i) != TOUPPER (i))
19410 rm -f conftest$ac_exeext
19411 if { (ac_try="$ac_link"
19412 case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_link") 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19432 echo "$as_me: program exited with status $ac_status" >&5
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 ( exit $ac_status )
19437 ac_cv_header_stdc=no
19439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19445 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19446 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19447 if test $ac_cv_header_stdc = yes; then
19449 cat >>confdefs.h <<\_ACEOF
19450 #define STDC_HEADERS 1
19467 for ac_header in arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h
19469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 ac_res=`eval echo '${'$as_ac_Header'}'`
19477 { echo "$as_me:$LINENO: result: $ac_res" >&5
19478 echo "${ECHO_T}$ac_res" >&6; }
19480 # Is the header compilable?
19481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 $ac_includes_default
19490 #include <$ac_header>
19492 rm -f conftest.$ac_objext
19493 if { (ac_try="$ac_compile"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_compile") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && {
19506 test -z "$ac_c_werror_flag" ||
19507 test ! -s conftest.err
19508 } && test -s conftest.$ac_objext; then
19509 ac_header_compiler=yes
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 ac_header_compiler=no
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19519 echo "${ECHO_T}$ac_header_compiler" >&6; }
19521 # Is the header present?
19522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19524 cat >conftest.$ac_ext <<_ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19530 #include <$ac_header>
19532 if { (ac_try="$ac_cpp conftest.$ac_ext"
19533 case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } >/dev/null && {
19545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19546 test ! -s conftest.err
19548 ac_header_preproc=yes
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_header_preproc=no
19556 rm -f conftest.err conftest.$ac_ext
19557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19558 echo "${ECHO_T}$ac_header_preproc" >&6; }
19560 # So? What about this header?
19561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19567 ac_header_preproc=yes
19570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19583 ## ----------------------------------------------- ##
19584 ## Report this to mzaffzqaf (at) 0pointer (dot) de ##
19585 ## ----------------------------------------------- ##
19587 ) | sed "s/^/$as_me: WARNING: /" >&2
19590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 eval "$as_ac_Header=\$ac_header_preproc"
19597 ac_res=`eval echo '${'$as_ac_Header'}'`
19598 { echo "$as_me:$LINENO: result: $ac_res" >&5
19599 echo "${ECHO_T}$ac_res" >&6; }
19602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19603 cat >>confdefs.h <<_ACEOF
19604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19612 # Checks for typedefs, structures, and compiler characteristics.
19613 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19615 if test "${ac_cv_c_const+set}" = set; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 cat >conftest.$ac_ext <<_ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19628 /* FIXME: Include the comments suggested by Paul. */
19629 #ifndef __cplusplus
19630 /* Ultrix mips cc rejects this. */
19631 typedef int charset[2];
19633 /* SunOS 4.1.1 cc rejects this. */
19634 char const *const *pcpcc;
19636 /* NEC SVR4.0.2 mips cc rejects this. */
19637 struct point {int x, y;};
19638 static struct point const zero = {0,0};
19639 /* AIX XL C 1.02.0.0 rejects this.
19640 It does not let you subtract one const X* pointer from another in
19641 an arm of an if-expression whose if-part is not a constant
19643 const char *g = "string";
19644 pcpcc = &g + (g ? g-g : 0);
19645 /* HPUX 7.0 cc rejects these. */
19647 ppc = (char**) pcpcc;
19648 pcpcc = (char const *const *) ppc;
19649 { /* SCO 3.2v4 cc rejects this. */
19651 char const *s = 0 ? (char *) 0 : (char const *) 0;
19656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19657 int x[] = {25, 17};
19658 const int *foo = &x[0];
19661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19662 typedef const int *iptr;
19666 { /* AIX XL C 1.02.0.0 rejects this saying
19667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19668 struct s { int j; const int *ap[3]; };
19669 struct s *b; b->j = 5;
19671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19672 const int foo = 10;
19673 if (!foo) return 0;
19675 return !cs[0] && !zero.x;
19682 rm -f conftest.$ac_objext
19683 if { (ac_try="$ac_compile"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_compile") 2>conftest.er1
19691 grep -v '^ *+' conftest.er1 >conftest.err
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest.$ac_objext; then
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19710 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19711 if test $ac_cv_c_const = no; then
19713 cat >>confdefs.h <<\_ACEOF
19719 { echo "$as_me:$LINENO: checking for size_t" >&5
19720 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
19721 if test "${ac_cv_type_size_t+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 cat >conftest.$ac_ext <<_ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19730 $ac_includes_default
19731 typedef size_t ac__type_new_;
19735 if ((ac__type_new_ *) 0)
19737 if (sizeof (ac__type_new_))
19743 rm -f conftest.$ac_objext
19744 if { (ac_try="$ac_compile"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750 (eval "$ac_compile") 2>conftest.er1
19752 grep -v '^ *+' conftest.er1 >conftest.err
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && {
19757 test -z "$ac_c_werror_flag" ||
19758 test ! -s conftest.err
19759 } && test -s conftest.$ac_objext; then
19760 ac_cv_type_size_t=yes
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ac_cv_type_size_t=no
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19771 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19772 if test $ac_cv_type_size_t = yes; then
19776 cat >>confdefs.h <<_ACEOF
19777 #define size_t unsigned int
19782 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19783 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19784 if test "${ac_cv_header_time+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 cat >conftest.$ac_ext <<_ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19793 #include <sys/types.h>
19794 #include <sys/time.h>
19800 if ((struct tm *) 0)
19806 rm -f conftest.$ac_objext
19807 if { (ac_try="$ac_compile"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_compile") 2>conftest.er1
19815 grep -v '^ *+' conftest.er1 >conftest.err
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } && {
19820 test -z "$ac_c_werror_flag" ||
19821 test ! -s conftest.err
19822 } && test -s conftest.$ac_objext; then
19823 ac_cv_header_time=yes
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19828 ac_cv_header_time=no
19831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19834 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19835 if test $ac_cv_header_time = yes; then
19837 cat >>confdefs.h <<\_ACEOF
19838 #define TIME_WITH_SYS_TIME 1
19844 # Checks for library functions.
19846 for ac_header in stdlib.h
19848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 ac_res=`eval echo '${'$as_ac_Header'}'`
19856 { echo "$as_me:$LINENO: result: $ac_res" >&5
19857 echo "${ECHO_T}$ac_res" >&6; }
19859 # Is the header compilable?
19860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19862 cat >conftest.$ac_ext <<_ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19868 $ac_includes_default
19869 #include <$ac_header>
19871 rm -f conftest.$ac_objext
19872 if { (ac_try="$ac_compile"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_compile") 2>conftest.er1
19880 grep -v '^ *+' conftest.er1 >conftest.err
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest.$ac_objext; then
19888 ac_header_compiler=yes
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_header_compiler=no
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19898 echo "${ECHO_T}$ac_header_compiler" >&6; }
19900 # Is the header present?
19901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19909 #include <$ac_header>
19911 if { (ac_try="$ac_cpp conftest.$ac_ext"
19912 case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19919 grep -v '^ *+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } >/dev/null && {
19924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19927 ac_header_preproc=yes
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ac_header_preproc=no
19935 rm -f conftest.err conftest.$ac_ext
19936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937 echo "${ECHO_T}$ac_header_preproc" >&6; }
19939 # So? What about this header?
19940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19946 ac_header_preproc=yes
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19962 ## ----------------------------------------------- ##
19963 ## Report this to mzaffzqaf (at) 0pointer (dot) de ##
19964 ## ----------------------------------------------- ##
19966 ) | sed "s/^/$as_me: WARNING: /" >&2
19969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19972 echo $ECHO_N "(cached) $ECHO_C" >&6
19974 eval "$as_ac_Header=\$ac_header_preproc"
19976 ac_res=`eval echo '${'$as_ac_Header'}'`
19977 { echo "$as_me:$LINENO: result: $ac_res" >&5
19978 echo "${ECHO_T}$ac_res" >&6; }
19981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19990 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19991 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
19992 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 if test "$cross_compiling" = yes; then
19996 ac_cv_func_malloc_0_nonnull=no
19998 cat >conftest.$ac_ext <<_ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h. */
20004 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20005 # include <stdlib.h>
20013 return ! malloc (0);
20018 rm -f conftest$ac_exeext
20019 if { (ac_try="$ac_link"
20020 case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_link") 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20029 { (case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_try") 2>&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; }; then
20038 ac_cv_func_malloc_0_nonnull=yes
20040 echo "$as_me: program exited with status $ac_status" >&5
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ( exit $ac_status )
20045 ac_cv_func_malloc_0_nonnull=no
20047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20052 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20053 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
20054 if test $ac_cv_func_malloc_0_nonnull = yes; then
20056 cat >>confdefs.h <<\_ACEOF
20057 #define HAVE_MALLOC 1
20061 cat >>confdefs.h <<\_ACEOF
20062 #define HAVE_MALLOC 0
20065 case " $LIBOBJS " in
20066 *" malloc.$ac_objext "* ) ;;
20067 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20072 cat >>confdefs.h <<\_ACEOF
20073 #define malloc rpl_malloc
20082 for ac_header in sys/select.h sys/socket.h
20084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 ac_res=`eval echo '${'$as_ac_Header'}'`
20092 { echo "$as_me:$LINENO: result: $ac_res" >&5
20093 echo "${ECHO_T}$ac_res" >&6; }
20095 # Is the header compilable?
20096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 $ac_includes_default
20105 #include <$ac_header>
20107 rm -f conftest.$ac_objext
20108 if { (ac_try="$ac_compile"
20109 case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_compile") 2>conftest.er1
20116 grep -v '^ *+' conftest.er1 >conftest.err
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } && {
20121 test -z "$ac_c_werror_flag" ||
20122 test ! -s conftest.err
20123 } && test -s conftest.$ac_objext; then
20124 ac_header_compiler=yes
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_header_compiler=no
20132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20134 echo "${ECHO_T}$ac_header_compiler" >&6; }
20136 # Is the header present?
20137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 #include <$ac_header>
20147 if { (ac_try="$ac_cpp conftest.$ac_ext"
20148 case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20155 grep -v '^ *+' conftest.er1 >conftest.err
20157 cat conftest.err >&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } >/dev/null && {
20160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20163 ac_header_preproc=yes
20165 echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ac_header_preproc=no
20171 rm -f conftest.err conftest.$ac_ext
20172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20173 echo "${ECHO_T}$ac_header_preproc" >&6; }
20175 # So? What about this header?
20176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20182 ac_header_preproc=yes
20185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20198 ## ----------------------------------------------- ##
20199 ## Report this to mzaffzqaf (at) 0pointer (dot) de ##
20200 ## ----------------------------------------------- ##
20202 ) | sed "s/^/$as_me: WARNING: /" >&2
20205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 eval "$as_ac_Header=\$ac_header_preproc"
20212 ac_res=`eval echo '${'$as_ac_Header'}'`
20213 { echo "$as_me:$LINENO: result: $ac_res" >&5
20214 echo "${ECHO_T}$ac_res" >&6; }
20217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20218 cat >>confdefs.h <<_ACEOF
20219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20226 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
20227 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
20228 if test "${ac_cv_func_select_args+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20232 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20233 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 $ac_includes_default
20241 #ifdef HAVE_SYS_SELECT_H
20242 # include <sys/select.h>
20244 #ifdef HAVE_SYS_SOCKET_H
20245 # include <sys/socket.h>
20251 extern int select ($ac_arg1,
20252 $ac_arg234, $ac_arg234, $ac_arg234,
20258 rm -f conftest.$ac_objext
20259 if { (ac_try="$ac_compile"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_compile") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && {
20272 test -z "$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20274 } && test -s conftest.$ac_objext; then
20275 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20277 echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.$ac_ext >&5
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287 # Provide a safe default value.
20288 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
20291 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
20292 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
20293 ac_save_IFS=$IFS; IFS=','
20294 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20298 cat >>confdefs.h <<_ACEOF
20299 #define SELECT_TYPE_ARG1 $1
20303 cat >>confdefs.h <<_ACEOF
20304 #define SELECT_TYPE_ARG234 ($2)
20308 cat >>confdefs.h <<_ACEOF
20309 #define SELECT_TYPE_ARG5 ($3)
20327 for ac_func in gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn
20329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 cat >conftest.$ac_ext <<_ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20343 #define $ac_func innocuous_$ac_func
20345 /* System header to define __stub macros and hopefully few prototypes,
20346 which can conflict with char $ac_func (); below.
20347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20348 <limits.h> exists even on freestanding compilers. */
20351 # include <limits.h>
20353 # include <assert.h>
20358 /* Override any GCC internal prototype to avoid an error.
20359 Use char because int might match the return type of a GCC
20360 builtin and then its argument prototype would still apply. */
20365 /* The GNU C library defines this for functions which it implements
20366 to always fail with ENOSYS. Some functions are actually named
20367 something starting with __ and the normal name is an alias. */
20368 #if defined __stub_$ac_func || defined __stub___$ac_func
20375 return $ac_func ();
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest$ac_exeext &&
20397 $as_test_x conftest$ac_exeext; then
20398 eval "$as_ac_var=yes"
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 eval "$as_ac_var=no"
20406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20407 conftest$ac_exeext conftest.$ac_ext
20409 ac_res=`eval echo '${'$as_ac_var'}'`
20410 { echo "$as_me:$LINENO: result: $ac_res" >&5
20411 echo "${ECHO_T}$ac_res" >&6; }
20412 if test `eval echo '${'$as_ac_var'}'` = yes; then
20413 cat >>confdefs.h <<_ACEOF
20414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20421 # FreeBSD has a slightly different NSS interface
20423 *-freebsd*) freebsd="yes" ;;
20428 if test "x$freebsd" = "xyes"; then
20430 FREEBSD_NSS_FALSE='#'
20432 FREEBSD_NSS_TRUE='#'
20437 # If using GCC specify some additional parameters
20438 if test "x$GCC" = "xyes" ; then
20439 CFLAGS="$CFLAGS -pipe -W -Wall -pedantic"
20441 cat >conftest.$ac_ext <<_ACEOF
20444 $CC -c conftest.c -std=c99 -Wno-unused-parameter $CFLAGS > /dev/null 2> /dev/null && CFLAGS="$CFLAGS -std=c99 -Wno-unused-parameter"
20448 # LYNX documentation generation
20449 # Check whether --enable-lynx was given.
20450 if test "${enable_lynx+set}" = set; then
20451 enableval=$enable_lynx; case "${enableval}" in
20454 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5
20455 echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;}
20456 { (exit 1); exit 1; }; } ;;
20463 if test x$lynx = xyes ; then
20464 # Extract the first word of "lynx", so it can be a program name with args.
20465 set dummy lynx; ac_word=$2
20466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20468 if test "${ac_cv_prog_have_lynx+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 if test -n "$have_lynx"; then
20472 ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
20474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20475 for as_dir in $PATH
20478 test -z "$as_dir" && as_dir=.
20479 for ac_exec_ext in '' $ac_executable_extensions; do
20480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20481 ac_cv_prog_have_lynx="yes"
20482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20489 test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
20492 have_lynx=$ac_cv_prog_have_lynx
20493 if test -n "$have_lynx"; then
20494 { echo "$as_me:$LINENO: result: $have_lynx" >&5
20495 echo "${ECHO_T}$have_lynx" >&6; }
20497 { echo "$as_me:$LINENO: result: no" >&5
20498 echo "${ECHO_T}no" >&6; }
20503 if test x$have_lynx = xno ; then
20505 # Extract the first word of "links", so it can be a program name with args.
20506 set dummy links; ac_word=$2
20507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20509 if test "${ac_cv_prog_have_links+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 if test -n "$have_links"; then
20513 ac_cv_prog_have_links="$have_links" # Let the user override the test.
20515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20516 for as_dir in $PATH
20519 test -z "$as_dir" && as_dir=.
20520 for ac_exec_ext in '' $ac_executable_extensions; do
20521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20522 ac_cv_prog_have_links="yes"
20523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20530 test -z "$ac_cv_prog_have_links" && ac_cv_prog_have_links="no"
20533 have_links=$ac_cv_prog_have_links
20534 if test -n "$have_links"; then
20535 { echo "$as_me:$LINENO: result: $have_links" >&5
20536 echo "${ECHO_T}$have_links" >&6; }
20538 { echo "$as_me:$LINENO: result: no" >&5
20539 echo "${ECHO_T}no" >&6; }
20543 if test x$have_links = xno ; then
20544 { echo "$as_me:$LINENO: WARNING: *** neither lynx nor links found, plain text README will not be built ***" >&5
20545 echo "$as_me: WARNING: *** neither lynx nor links found, plain text README will not be built ***" >&2;}
20554 if test "x$lynx" = xyes; then
20564 if test "x$links" = xyes; then
20566 USE_LINKS_FALSE='#'
20573 ### Enable avahi support?
20575 # Check whether --enable-avahi was given.
20576 if test "${enable_avahi+set}" = set; then
20577 enableval=$enable_avahi; case "${enableval}" in
20578 yes) ENABLE_AVAHI=yes ;;
20579 no) ENABLE_AVAHI=no ;;
20580 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-avahi" >&5
20581 echo "$as_me: error: bad value ${enableval} for --enable-avahi" >&2;}
20582 { (exit 1); exit 1; }; } ;;
20590 if test "x$ENABLE_AVAHI" = "xyes"; then
20592 ENABLE_AVAHI_FALSE='#'
20594 ENABLE_AVAHI_TRUE='#'
20595 ENABLE_AVAHI_FALSE=
20599 if test "x$ENABLE_AVAHI" = "xyes" ; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define ENABLE_AVAHI 1
20607 ### Enable legacy unicast mDNS support?
20609 # Check whether --enable-legacy was given.
20610 if test "${enable_legacy+set}" = set; then
20611 enableval=$enable_legacy; case "${enableval}" in
20612 yes) ENABLE_LEGACY=yes ;;
20613 no) ENABLE_LEGACY=no ;;
20614 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-legacy" >&5
20615 echo "$as_me: error: bad value ${enableval} for --enable-legacy" >&2;}
20616 { (exit 1); exit 1; }; } ;;
20622 if test "x$ENABLE_AVAHI" = "xno" -a "x$ENABLE_LEGACY" = "xno"; then
20623 { { echo "$as_me:$LINENO: error: Can't disable legacy unicast mDNS lookups if Avahi support is disabled" >&5
20624 echo "$as_me: error: Can't disable legacy unicast mDNS lookups if Avahi support is disabled" >&2;}
20625 { (exit 1); exit 1; }; }
20628 if test "x$ENABLE_LEGACY" = "xyes" ; then
20630 cat >>confdefs.h <<\_ACEOF
20631 #define ENABLE_LEGACY 1
20638 if test "x$ENABLE_LEGACY" = "xyes"; then
20639 ENABLE_LEGACY_TRUE=
20640 ENABLE_LEGACY_FALSE='#'
20642 ENABLE_LEGACY_TRUE='#'
20643 ENABLE_LEGACY_FALSE=
20647 ### Honour search domains from /etc/resolv.conf?
20649 # Check whether --enable-search-domains was given.
20650 if test "${enable_search_domains+set}" = set; then
20651 enableval=$enable_search_domains; case "${enableval}" in
20652 yes) HONOUR_SEARCH_DOMAINS=yes ;;
20653 no) HONOUR_SEARCH_DOMAINS=no ;;
20654 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-search-domains" >&5
20655 echo "$as_me: error: bad value ${enableval} for --enable-search-domains" >&2;}
20656 { (exit 1); exit 1; }; } ;;
20659 HONOUR_SEARCH_DOMAINS=no
20662 if test "x$HONOUR_SEARCH_DOMAINS" = "xyes" ; then
20664 cat >>confdefs.h <<\_ACEOF
20665 #define HONOUR_SEARCH_DOMAINS 1
20671 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/README.html"
20673 cat >confcache <<\_ACEOF
20674 # This file is a shell script that caches the results of configure
20675 # tests run on this system so they can be shared between configure
20676 # scripts and configure runs, see configure's option --config-cache.
20677 # It is not useful on other systems. If it contains results you don't
20678 # want to keep, you may remove or edit it.
20680 # config.status only pays attention to the cache file if you give it
20681 # the --recheck option to rerun configure.
20683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20685 # following values.
20689 # The following way of writing the cache mishandles newlines in values,
20690 # but we know of no workaround that is simple, portable, and efficient.
20691 # So, we kill variables containing newlines.
20692 # Ultrix sh set writes to stderr and can't be redirected directly,
20693 # and sets the high bit in the cache file unless we assign to the vars.
20695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20696 eval ac_val=\$$ac_var
20700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20704 _ | IFS | as_nl) ;; #(
20705 *) $as_unset $ac_var ;;
20711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20712 *${as_nl}ac_space=\ *)
20713 # `set' does not quote correctly, so add quotes (double-quote
20714 # substitution turns \\\\ into \\, and sed turns \\ into \).
20717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20720 # `set' quotes correctly as required by POSIX, so do not add quotes.
20721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20735 if test -w "$cache_file"; then
20736 test "x$cache_file" != "x/dev/null" &&
20737 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20738 echo "$as_me: updating cache $cache_file" >&6;}
20739 cat confcache >$cache_file
20741 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20742 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20748 # Let make expand exec_prefix.
20749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20751 DEFS=-DHAVE_CONFIG_H
20755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20756 # 1. Remove the extension, and $U if already installed.
20757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20758 ac_i=`echo "$ac_i" | sed "$ac_script"`
20759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20760 # will be set to the directory where LIBOBJS objects are built.
20761 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20762 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20764 LIBOBJS=$ac_libobjs
20766 LTLIBOBJS=$ac_ltlibobjs
20769 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20770 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20771 Usually this means the macro was only invoked conditionally." >&5
20772 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20773 Usually this means the macro was only invoked conditionally." >&2;}
20774 { (exit 1); exit 1; }; }
20776 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20777 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20778 Usually this means the macro was only invoked conditionally." >&5
20779 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20780 Usually this means the macro was only invoked conditionally." >&2;}
20781 { (exit 1); exit 1; }; }
20783 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20784 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20785 Usually this means the macro was only invoked conditionally." >&5
20786 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20787 Usually this means the macro was only invoked conditionally." >&2;}
20788 { (exit 1); exit 1; }; }
20790 if test -z "${FREEBSD_NSS_TRUE}" && test -z "${FREEBSD_NSS_FALSE}"; then
20791 { { echo "$as_me:$LINENO: error: conditional \"FREEBSD_NSS\" was never defined.
20792 Usually this means the macro was only invoked conditionally." >&5
20793 echo "$as_me: error: conditional \"FREEBSD_NSS\" was never defined.
20794 Usually this means the macro was only invoked conditionally." >&2;}
20795 { (exit 1); exit 1; }; }
20797 if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
20798 { { echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined.
20799 Usually this means the macro was only invoked conditionally." >&5
20800 echo "$as_me: error: conditional \"USE_LYNX\" was never defined.
20801 Usually this means the macro was only invoked conditionally." >&2;}
20802 { (exit 1); exit 1; }; }
20804 if test -z "${USE_LINKS_TRUE}" && test -z "${USE_LINKS_FALSE}"; then
20805 { { echo "$as_me:$LINENO: error: conditional \"USE_LINKS\" was never defined.
20806 Usually this means the macro was only invoked conditionally." >&5
20807 echo "$as_me: error: conditional \"USE_LINKS\" was never defined.
20808 Usually this means the macro was only invoked conditionally." >&2;}
20809 { (exit 1); exit 1; }; }
20811 if test -z "${ENABLE_AVAHI_TRUE}" && test -z "${ENABLE_AVAHI_FALSE}"; then
20812 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_AVAHI\" was never defined.
20813 Usually this means the macro was only invoked conditionally." >&5
20814 echo "$as_me: error: conditional \"ENABLE_AVAHI\" was never defined.
20815 Usually this means the macro was only invoked conditionally." >&2;}
20816 { (exit 1); exit 1; }; }
20818 if test -z "${ENABLE_LEGACY_TRUE}" && test -z "${ENABLE_LEGACY_FALSE}"; then
20819 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LEGACY\" was never defined.
20820 Usually this means the macro was only invoked conditionally." >&5
20821 echo "$as_me: error: conditional \"ENABLE_LEGACY\" was never defined.
20822 Usually this means the macro was only invoked conditionally." >&2;}
20823 { (exit 1); exit 1; }; }
20826 : ${CONFIG_STATUS=./config.status}
20827 ac_clean_files_save=$ac_clean_files
20828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20829 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20830 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20831 cat >$CONFIG_STATUS <<_ACEOF
20833 # Generated by $as_me.
20834 # Run this file to recreate the current configuration.
20835 # Compiler output produced by configure, useful for debugging
20836 # configure, is in config.log if it exists.
20839 ac_cs_recheck=false
20841 SHELL=\${CONFIG_SHELL-$SHELL}
20844 cat >>$CONFIG_STATUS <<\_ACEOF
20845 ## --------------------- ##
20846 ## M4sh Initialization. ##
20847 ## --------------------- ##
20849 # Be more Bourne compatible
20850 DUALCASE=1; export DUALCASE # for MKS sh
20851 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20854 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20855 # is contrary to our usage. Disable this feature.
20856 alias -g '${1+"$@"}'='"$@"'
20857 setopt NO_GLOB_SUBST
20859 case `(set -o) 2>/dev/null` in
20860 *posix*) set -o posix ;;
20869 # Avoid depending upon Character Ranges.
20870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20873 as_cr_digits='0123456789'
20874 as_cr_alnum=$as_cr_Letters$as_cr_digits
20876 # The user is always right.
20877 if test "${PATH_SEPARATOR+set}" != set; then
20878 echo "#! /bin/sh" >conf$$.sh
20879 echo "exit 0" >>conf$$.sh
20881 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20889 # Support unset when possible.
20890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20898 # We need space, tab and new line, in precisely that order. Quoting is
20899 # there to prevent editors from complaining about space-tab.
20900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20901 # splitting by setting IFS to empty value.)
20906 # Find who we are. Look in the path if we contain no directory separator.
20908 *[\\/]* ) as_myself=$0 ;;
20909 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910 for as_dir in $PATH
20913 test -z "$as_dir" && as_dir=.
20914 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20920 # We did not find ourselves, most probably we were run as `sh COMMAND'
20921 # in which case we are not to be found in the path.
20922 if test "x$as_myself" = x; then
20925 if test ! -f "$as_myself"; then
20926 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20927 { (exit 1); exit 1; }
20930 # Work around bugs in pre-3.0 UWIN ksh.
20931 for as_var in ENV MAIL MAILPATH
20932 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20940 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20941 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20942 LC_TELEPHONE LC_TIME
20944 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20945 eval $as_var=C; export $as_var
20947 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20951 # Required to use basename.
20952 if expr a : '\(a\)' >/dev/null 2>&1 &&
20953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20960 as_basename=basename
20966 # Name of the executable.
20967 as_me=`$as_basename -- "$0" ||
20968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20969 X"$0" : 'X\(//\)$' \| \
20970 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20972 sed '/^.*\/\([^/][^/]*\)\/*$/{
20991 as_lineno_1=$LINENO
20992 as_lineno_2=$LINENO
20993 test "x$as_lineno_1" != "x$as_lineno_2" &&
20994 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20996 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20997 # uniformly replaced by the line number. The first 'sed' inserts a
20998 # line-number line after each line using $LINENO; the second 'sed'
20999 # does the real work. The second script uses 'N' to pair each
21000 # line-number line with the line containing $LINENO, and appends
21001 # trailing '-' during substitution so that $LINENO is not a special
21002 # case at line end.
21003 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21004 # scripts with optimization help from Paolo Bonzini. Blame Lee
21005 # E. McMahon (1931-1989) for sed's syntax. :-)
21017 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21020 ' >$as_me.lineno &&
21021 chmod +x "$as_me.lineno" ||
21022 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21023 { (exit 1); exit 1; }; }
21025 # Don't try to exec as it changes $[0], causing all sort of problems
21026 # (the dirname of $[0] is not the place where we might find the
21027 # original and so on. Autoconf is especially sensitive to this).
21028 . "./$as_me.lineno"
21029 # Exit status is that of the last command.
21034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21040 ECHO_C= ECHO_N= ECHO_T=
21041 case `echo -n x` in
21043 case `echo 'x\c'` in
21044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21051 if expr a : '\(a\)' >/dev/null 2>&1 &&
21052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21058 rm -f conf$$ conf$$.exe conf$$.file
21059 if test -d conf$$.dir; then
21060 rm -f conf$$.dir/conf$$.file
21066 if ln -s conf$$.file conf$$ 2>/dev/null; then
21068 # ... but there are two gotchas:
21069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21071 # In both cases, we have to default to `cp -p'.
21072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21074 elif ln conf$$.file conf$$ 2>/dev/null; then
21079 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21080 rmdir conf$$.dir 2>/dev/null
21082 if mkdir -p . 2>/dev/null; then
21085 test -d ./-p && rmdir ./-p
21089 if test -x / >/dev/null 2>&1; then
21090 as_test_x='test -x'
21092 if ls -dL / >/dev/null 2>&1; then
21099 if test -d "$1"; then
21105 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21106 ???[sx]*):;;*)false;;esac;fi
21110 as_executable_p=$as_test_x
21112 # Sed expression to map a string onto a valid CPP name.
21113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21115 # Sed expression to map a string onto a valid variable name.
21116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21121 # Save the log message, to keep $[0] and so on meaningful, and to
21122 # report actual input values of CONFIG_FILES etc. instead of their
21123 # values after options handling.
21125 This file was extended by nss-mdns $as_me 0.10, which was
21126 generated by GNU Autoconf 2.61. Invocation command line was
21128 CONFIG_FILES = $CONFIG_FILES
21129 CONFIG_HEADERS = $CONFIG_HEADERS
21130 CONFIG_LINKS = $CONFIG_LINKS
21131 CONFIG_COMMANDS = $CONFIG_COMMANDS
21134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21139 cat >>$CONFIG_STATUS <<_ACEOF
21140 # Files that config.status was made for.
21141 config_files="$ac_config_files"
21142 config_headers="$ac_config_headers"
21143 config_commands="$ac_config_commands"
21147 cat >>$CONFIG_STATUS <<\_ACEOF
21149 \`$as_me' instantiates files from templates according to the
21150 current configuration.
21152 Usage: $0 [OPTIONS] [FILE]...
21154 -h, --help print this help, then exit
21155 -V, --version print version number and configuration settings, then exit
21156 -q, --quiet do not print progress messages
21157 -d, --debug don't remove temporary files
21158 --recheck update $as_me by reconfiguring in the same conditions
21159 --file=FILE[:TEMPLATE]
21160 instantiate the configuration file FILE
21161 --header=FILE[:TEMPLATE]
21162 instantiate the configuration header FILE
21164 Configuration files:
21167 Configuration headers:
21170 Configuration commands:
21173 Report bugs to <bug-autoconf@gnu.org>."
21176 cat >>$CONFIG_STATUS <<_ACEOF
21178 nss-mdns config.status 0.10
21179 configured by $0, generated by GNU Autoconf 2.61,
21180 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21182 Copyright (C) 2006 Free Software Foundation, Inc.
21183 This config.status script is free software; the Free Software Foundation
21184 gives unlimited permission to copy, distribute and modify it."
21191 cat >>$CONFIG_STATUS <<\_ACEOF
21192 # If no file are specified by the user, then we need to provide default
21193 # value. By we need to know if files were specified by the user.
21199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21211 # Handling of the options.
21212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21214 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21215 echo "$ac_cs_version"; exit ;;
21216 --debug | --debu | --deb | --de | --d | -d )
21218 --file | --fil | --fi | --f )
21220 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21221 ac_need_defaults=false;;
21222 --header | --heade | --head | --hea )
21224 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21225 ac_need_defaults=false;;
21227 # Conflict between --help and --header
21228 { echo "$as_me: error: ambiguous option: $1
21229 Try \`$0 --help' for more information." >&2
21230 { (exit 1); exit 1; }; };;
21231 --help | --hel | -h )
21232 echo "$ac_cs_usage"; exit ;;
21233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21237 # This is an error.
21238 -*) { echo "$as_me: error: unrecognized option: $1
21239 Try \`$0 --help' for more information." >&2
21240 { (exit 1); exit 1; }; } ;;
21242 *) ac_config_targets="$ac_config_targets $1"
21243 ac_need_defaults=false ;;
21249 ac_configure_extra_args=
21251 if $ac_cs_silent; then
21253 ac_configure_extra_args="$ac_configure_extra_args --silent"
21257 cat >>$CONFIG_STATUS <<_ACEOF
21258 if \$ac_cs_recheck; then
21259 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21260 CONFIG_SHELL=$SHELL
21261 export CONFIG_SHELL
21262 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21266 cat >>$CONFIG_STATUS <<\_ACEOF
21270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21271 ## Running $as_me. ##
21277 cat >>$CONFIG_STATUS <<_ACEOF
21281 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21285 cat >>$CONFIG_STATUS <<\_ACEOF
21287 # Handling of arguments.
21288 for ac_config_target in $ac_config_targets
21290 case $ac_config_target in
21291 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21292 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21293 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21294 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21295 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21296 "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
21298 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21299 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21300 { (exit 1); exit 1; }; };;
21305 # If the user did not use the arguments to specify the items to instantiate,
21306 # then the envvar interface is used. Set only those that are not.
21307 # We use the long form for the default assignment because of an extremely
21308 # bizarre bug on SunOS 4.1.3.
21309 if $ac_need_defaults; then
21310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21315 # Have a temporary directory for convenience. Make it in the build tree
21316 # simply because there is no reason against having it here, and in addition,
21317 # creating and moving files from /tmp can sometimes cause problems.
21318 # Hook for its removal unless debugging.
21319 # Note that there is a small window in which the directory will not be cleaned:
21320 # after its creation but before its name has been assigned to `$tmp'.
21324 trap 'exit_status=$?
21325 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21327 trap '{ (exit 1); exit 1; }' 1 2 13 15
21329 # Create a (secure) tmp directory for tmp files.
21332 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21333 test -n "$tmp" && test -d "$tmp"
21336 tmp=./conf$$-$RANDOM
21337 (umask 077 && mkdir "$tmp")
21340 echo "$me: cannot create a temporary directory in ." >&2
21341 { (exit 1); exit 1; }
21345 # Set up the sed scripts for CONFIG_FILES section.
21348 # No need to generate the scripts if there are no CONFIG_FILES.
21349 # This happens for instance when ./config.status config.h
21350 if test -n "$CONFIG_FILES"; then
21357 for ac_last_try in false false false false false :; do
21358 cat >conf$$subs.sed <<_ACEOF
21359 SHELL!$SHELL$ac_delim
21360 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21361 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21362 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21363 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21364 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21365 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21366 exec_prefix!$exec_prefix$ac_delim
21367 prefix!$prefix$ac_delim
21368 program_transform_name!$program_transform_name$ac_delim
21369 bindir!$bindir$ac_delim
21370 sbindir!$sbindir$ac_delim
21371 libexecdir!$libexecdir$ac_delim
21372 datarootdir!$datarootdir$ac_delim
21373 datadir!$datadir$ac_delim
21374 sysconfdir!$sysconfdir$ac_delim
21375 sharedstatedir!$sharedstatedir$ac_delim
21376 localstatedir!$localstatedir$ac_delim
21377 includedir!$includedir$ac_delim
21378 oldincludedir!$oldincludedir$ac_delim
21379 docdir!$docdir$ac_delim
21380 infodir!$infodir$ac_delim
21381 htmldir!$htmldir$ac_delim
21382 dvidir!$dvidir$ac_delim
21383 pdfdir!$pdfdir$ac_delim
21384 psdir!$psdir$ac_delim
21385 libdir!$libdir$ac_delim
21386 localedir!$localedir$ac_delim
21387 mandir!$mandir$ac_delim
21388 DEFS!$DEFS$ac_delim
21389 ECHO_C!$ECHO_C$ac_delim
21390 ECHO_N!$ECHO_N$ac_delim
21391 ECHO_T!$ECHO_T$ac_delim
21392 LIBS!$LIBS$ac_delim
21393 build_alias!$build_alias$ac_delim
21394 host_alias!$host_alias$ac_delim
21395 target_alias!$target_alias$ac_delim
21396 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21397 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21398 INSTALL_DATA!$INSTALL_DATA$ac_delim
21399 CYGPATH_W!$CYGPATH_W$ac_delim
21400 PACKAGE!$PACKAGE$ac_delim
21401 VERSION!$VERSION$ac_delim
21402 ACLOCAL!$ACLOCAL$ac_delim
21403 AUTOCONF!$AUTOCONF$ac_delim
21404 AUTOMAKE!$AUTOMAKE$ac_delim
21405 AUTOHEADER!$AUTOHEADER$ac_delim
21406 MAKEINFO!$MAKEINFO$ac_delim
21407 install_sh!$install_sh$ac_delim
21408 STRIP!$STRIP$ac_delim
21409 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21410 mkdir_p!$mkdir_p$ac_delim
21412 SET_MAKE!$SET_MAKE$ac_delim
21413 am__leading_dot!$am__leading_dot$ac_delim
21414 AMTAR!$AMTAR$ac_delim
21415 am__tar!$am__tar$ac_delim
21416 am__untar!$am__untar$ac_delim
21417 PACKAGE_URL!$PACKAGE_URL$ac_delim
21419 CFLAGS!$CFLAGS$ac_delim
21420 LDFLAGS!$LDFLAGS$ac_delim
21421 CPPFLAGS!$CPPFLAGS$ac_delim
21422 ac_ct_CC!$ac_ct_CC$ac_delim
21423 EXEEXT!$EXEEXT$ac_delim
21424 OBJEXT!$OBJEXT$ac_delim
21425 DEPDIR!$DEPDIR$ac_delim
21426 am__include!$am__include$ac_delim
21427 am__quote!$am__quote$ac_delim
21428 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21429 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21430 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21431 CCDEPMODE!$CCDEPMODE$ac_delim
21432 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21433 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21435 LN_S!$LN_S$ac_delim
21436 build!$build$ac_delim
21437 build_cpu!$build_cpu$ac_delim
21438 build_vendor!$build_vendor$ac_delim
21439 build_os!$build_os$ac_delim
21440 host!$host$ac_delim
21441 host_cpu!$host_cpu$ac_delim
21442 host_vendor!$host_vendor$ac_delim
21443 host_os!$host_os$ac_delim
21444 GREP!$GREP$ac_delim
21445 EGREP!$EGREP$ac_delim
21446 ECHO!$ECHO$ac_delim
21448 RANLIB!$RANLIB$ac_delim
21450 CXXFLAGS!$CXXFLAGS$ac_delim
21451 ac_ct_CXX!$ac_ct_CXX$ac_delim
21452 CXXDEPMODE!$CXXDEPMODE$ac_delim
21453 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21454 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21455 CXXCPP!$CXXCPP$ac_delim
21458 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21460 elif $ac_last_try; then
21461 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21462 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21463 { (exit 1); exit 1; }; }
21465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21469 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21470 if test -n "$ac_eof"; then
21471 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21472 ac_eof=`expr $ac_eof + 1`
21475 cat >>$CONFIG_STATUS <<_ACEOF
21476 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21480 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21481 s/^/s,@/; s/!/@,|#_!!_#|/
21484 s/'"$ac_delim"'$/,g/; t
21486 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21487 ' >>$CONFIG_STATUS <conf$$subs.sed
21488 rm -f conf$$subs.sed
21489 cat >>$CONFIG_STATUS <<_ACEOF
21495 for ac_last_try in false false false false false :; do
21496 cat >conf$$subs.sed <<_ACEOF
21498 FFLAGS!$FFLAGS$ac_delim
21499 ac_ct_F77!$ac_ct_F77$ac_delim
21500 LIBTOOL!$LIBTOOL$ac_delim
21501 LIBOBJS!$LIBOBJS$ac_delim
21502 FREEBSD_NSS_TRUE!$FREEBSD_NSS_TRUE$ac_delim
21503 FREEBSD_NSS_FALSE!$FREEBSD_NSS_FALSE$ac_delim
21504 have_lynx!$have_lynx$ac_delim
21505 have_links!$have_links$ac_delim
21506 USE_LYNX_TRUE!$USE_LYNX_TRUE$ac_delim
21507 USE_LYNX_FALSE!$USE_LYNX_FALSE$ac_delim
21508 USE_LINKS_TRUE!$USE_LINKS_TRUE$ac_delim
21509 USE_LINKS_FALSE!$USE_LINKS_FALSE$ac_delim
21510 ENABLE_AVAHI_TRUE!$ENABLE_AVAHI_TRUE$ac_delim
21511 ENABLE_AVAHI_FALSE!$ENABLE_AVAHI_FALSE$ac_delim
21512 ENABLE_LEGACY_TRUE!$ENABLE_LEGACY_TRUE$ac_delim
21513 ENABLE_LEGACY_FALSE!$ENABLE_LEGACY_FALSE$ac_delim
21514 LTLIBOBJS!$LTLIBOBJS$ac_delim
21517 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
21519 elif $ac_last_try; then
21520 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21521 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21522 { (exit 1); exit 1; }; }
21524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21528 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21529 if test -n "$ac_eof"; then
21530 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21531 ac_eof=`expr $ac_eof + 1`
21534 cat >>$CONFIG_STATUS <<_ACEOF
21535 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21539 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21540 s/^/s,@/; s/!/@,|#_!!_#|/
21543 s/'"$ac_delim"'$/,g/; t
21545 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21546 ' >>$CONFIG_STATUS <conf$$subs.sed
21547 rm -f conf$$subs.sed
21548 cat >>$CONFIG_STATUS <<_ACEOF
21555 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21556 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21557 # trailing colons and then remove the whole line if VPATH becomes empty
21558 # (actually we leave an empty line to preserve line numbers).
21559 if test "x$srcdir" = x.; then
21560 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21561 s/:*\$(srcdir):*/:/
21562 s/:*\${srcdir}:*/:/
21564 s/^\([^=]*=[ ]*\):*/\1/
21570 cat >>$CONFIG_STATUS <<\_ACEOF
21571 fi # test -n "$CONFIG_FILES"
21574 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21577 :[FHLC]) ac_mode=$ac_tag; continue;;
21579 case $ac_mode$ac_tag in
21581 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21582 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21583 { (exit 1); exit 1; }; };;
21584 :[FH]-) ac_tag=-:-;;
21585 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21602 -) ac_f="$tmp/stdin";;
21603 *) # Look for the file first in the build tree, then in the source tree
21604 # (if the path is not absolute). The absolute path cannot be DOS-style,
21605 # because $ac_f cannot contain `:'.
21609 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21611 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21612 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21613 { (exit 1); exit 1; }; };;
21615 ac_file_inputs="$ac_file_inputs $ac_f"
21618 # Let's still pretend it is `configure' which instantiates (i.e., don't
21619 # use $as_me), people would be surprised to read:
21620 # /* config.h. Generated by config.status. */
21621 configure_input="Generated from "`IFS=:
21622 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21623 if test x"$ac_file" != x-; then
21624 configure_input="$ac_file. $configure_input"
21625 { echo "$as_me:$LINENO: creating $ac_file" >&5
21626 echo "$as_me: creating $ac_file" >&6;}
21630 *:-:* | *:-) cat >"$tmp/stdin";;
21635 ac_dir=`$as_dirname -- "$ac_file" ||
21636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21637 X"$ac_file" : 'X\(//\)[^/]' \| \
21638 X"$ac_file" : 'X\(//\)$' \| \
21639 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21645 /^X\(\/\/\)[^/].*/{
21660 -*) as_dir=./$as_dir;;
21662 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21666 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21667 *) as_qdir=$as_dir;;
21669 as_dirs="'$as_qdir' $as_dirs"
21670 as_dir=`$as_dirname -- "$as_dir" ||
21671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672 X"$as_dir" : 'X\(//\)[^/]' \| \
21673 X"$as_dir" : 'X\(//\)$' \| \
21674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21680 /^X\(\/\/\)[^/].*/{
21693 test -d "$as_dir" && break
21695 test -z "$as_dirs" || eval "mkdir $as_dirs"
21696 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21697 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21698 { (exit 1); exit 1; }; }; }
21702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21704 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21705 # A ".." for each directory in $ac_dir_suffix.
21706 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21707 case $ac_top_builddir_sub in
21708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21712 ac_abs_top_builddir=$ac_pwd
21713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21714 # for backward compatibility:
21715 ac_top_builddir=$ac_top_build_prefix
21718 .) # We are building in place.
21720 ac_top_srcdir=$ac_top_builddir_sub
21721 ac_abs_top_srcdir=$ac_pwd ;;
21722 [\\/]* | ?:[\\/]* ) # Absolute name.
21723 ac_srcdir=$srcdir$ac_dir_suffix;
21724 ac_top_srcdir=$srcdir
21725 ac_abs_top_srcdir=$srcdir ;;
21726 *) # Relative name.
21727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21728 ac_top_srcdir=$ac_top_build_prefix$srcdir
21729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21746 cat >>$CONFIG_STATUS <<\_ACEOF
21747 # If the template does not know about datarootdir, expand it.
21748 # FIXME: This hack should be removed a few years after 2.60.
21749 ac_datarootdir_hack=; ac_datarootdir_seen=
21751 case `sed -n '/datarootdir/ {
21760 ' $ac_file_inputs` in
21761 *datarootdir*) ac_datarootdir_seen=yes;;
21762 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21763 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21764 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21766 cat >>$CONFIG_STATUS <<_ACEOF
21767 ac_datarootdir_hack='
21768 s&@datadir@&$datadir&g
21769 s&@docdir@&$docdir&g
21770 s&@infodir@&$infodir&g
21771 s&@localedir@&$localedir&g
21772 s&@mandir@&$mandir&g
21773 s&\\\${datarootdir}&$datarootdir&g' ;;
21777 # Neutralize VPATH when `$srcdir' = `.'.
21778 # Shell code in configure.ac might set extrasub.
21779 # FIXME: do we really want to maintain this feature?
21780 cat >>$CONFIG_STATUS <<_ACEOF
21784 cat >>$CONFIG_STATUS <<\_ACEOF
21786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21787 s&@configure_input@&$configure_input&;t t
21788 s&@top_builddir@&$ac_top_builddir_sub&;t t
21789 s&@srcdir@&$ac_srcdir&;t t
21790 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21791 s&@top_srcdir@&$ac_top_srcdir&;t t
21792 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21793 s&@builddir@&$ac_builddir&;t t
21794 s&@abs_builddir@&$ac_abs_builddir&;t t
21795 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21796 s&@INSTALL@&$ac_INSTALL&;t t
21797 $ac_datarootdir_hack
21798 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21800 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21801 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21802 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21803 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21804 which seems to be undefined. Please make sure it is defined." >&5
21805 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21806 which seems to be undefined. Please make sure it is defined." >&2;}
21810 -) cat "$tmp/out"; rm -f "$tmp/out";;
21811 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21820 # Transform confdefs.h into a sed script `conftest.defines', that
21821 # substitutes the proper values into config.h.in to produce config.h.
21822 rm -f conftest.defines conftest.tail
21823 # First, append a space to every undef/define line, to ease matching.
21824 echo 's/$/ /' >conftest.defines
21825 # Then, protect against being on the right side of a sed subst, or in
21826 # an unquoted here document, in config.status. If some macros were
21827 # called several times there might be several #defines for the same
21828 # symbol, which is useless. But do not sort them, since the last
21829 # AC_DEFINE must be honored.
21830 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21831 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21832 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21833 # PARAMS is the parameter list in the macro definition--in most cases, it's
21834 # just an empty string.
21835 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21836 ac_dB='\\)[ (].*,\\1define\\2'
21844 s/^[ ]*#[ ]*define[ ][ ]*//
21849 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21850 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21851 ' >>conftest.defines
21853 # Remove the space that was appended to ease matching.
21854 # Then replace #undef with comments. This is necessary, for
21855 # example, in the case of _POSIX_SOURCE, which is predefined and required
21856 # on some systems where configure will not decide to define it.
21857 # (The regexp can be short, since the line contains either #define or #undef.)
21859 s,^[ #]*u.*,/* & */,' >>conftest.defines
21861 # Break up conftest.defines:
21862 ac_max_sed_lines=50
21864 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21865 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21866 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21868 ac_in='$ac_file_inputs'
21869 ac_out='"$tmp/out1"'
21870 ac_nxt='"$tmp/out2"'
21874 # Write a here document:
21875 cat >>$CONFIG_STATUS <<_ACEOF
21876 # First, check the format of the line:
21877 cat >"\$tmp/defines.sed" <<\\CEOF
21878 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21879 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21883 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21885 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21886 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21887 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21888 grep . conftest.tail >/dev/null || break
21889 rm -f conftest.defines
21890 mv conftest.tail conftest.defines
21892 rm -f conftest.defines conftest.tail
21894 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896 if test x"$ac_file" != x-; then
21897 echo "/* $configure_input */" >"$tmp/config.h"
21898 cat "$ac_result" >>"$tmp/config.h"
21899 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21900 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21901 echo "$as_me: $ac_file is unchanged" >&6;}
21904 mv "$tmp/config.h" $ac_file
21907 echo "/* $configure_input */"
21911 # Compute $ac_file's index in $config_headers.
21913 for _am_header in $config_headers :; do
21914 case $_am_header in
21915 $ac_file | $ac_file:* )
21918 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21921 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21922 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21923 X$ac_file : 'X\(//\)[^/]' \| \
21924 X$ac_file : 'X\(//\)$' \| \
21925 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21931 /^X\(\/\/\)[^/].*/{
21943 s/.*/./; q'`/stamp-h$_am_stamp_count
21946 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21947 echo "$as_me: executing $ac_file commands" >&6;}
21952 case $ac_file$ac_mode in
21953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21954 # Strip MF so we end up with the name of the file.
21955 mf=`echo "$mf" | sed -e 's/:.*$//'`
21956 # Check whether this is an Automake generated Makefile or not.
21957 # We used to match only the files named `Makefile.in', but
21958 # some people rename them; so instead we look at the file content.
21959 # Grep'ing the first line is not enough: some people post-process
21960 # each Makefile.in and add a new line on top of each file to say so.
21961 # So let's grep whole file.
21962 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21963 dirpart=`$as_dirname -- "$mf" ||
21964 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21965 X"$mf" : 'X\(//\)[^/]' \| \
21966 X"$mf" : 'X\(//\)$' \| \
21967 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21973 /^X\(\/\/\)[^/].*/{
21989 # Extract the definition of DEPDIR, am__include, and am__quote
21990 # from the Makefile without running `make'.
21991 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21992 test -z "$DEPDIR" && continue
21993 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21994 test -z "am__include" && continue
21995 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21996 # When using ansi2knr, U may be empty or an underscore; expand it
21997 U=`sed -n 's/^U = //p' < "$mf"`
21998 # Find all dependency output files, they are included files with
21999 # $(DEPDIR) in their names. We invoke sed twice because it is the
22000 # simplest approach to changing $(DEPDIR) to its actual value in the
22002 for file in `sed -n "
22003 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22004 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22005 # Make sure the directory exists.
22006 test -f "$dirpart/$file" && continue
22007 fdir=`$as_dirname -- "$file" ||
22008 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22009 X"$file" : 'X\(//\)[^/]' \| \
22010 X"$file" : 'X\(//\)$' \| \
22011 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22017 /^X\(\/\/\)[^/].*/{
22030 { as_dir=$dirpart/$fdir
22032 -*) as_dir=./$as_dir;;
22034 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22038 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22039 *) as_qdir=$as_dir;;
22041 as_dirs="'$as_qdir' $as_dirs"
22042 as_dir=`$as_dirname -- "$as_dir" ||
22043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22044 X"$as_dir" : 'X\(//\)[^/]' \| \
22045 X"$as_dir" : 'X\(//\)$' \| \
22046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22052 /^X\(\/\/\)[^/].*/{
22065 test -d "$as_dir" && break
22067 test -z "$as_dirs" || eval "mkdir $as_dirs"
22068 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22069 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22070 { (exit 1); exit 1; }; }; }
22071 # echo "creating $dirpart/$file"
22072 echo '# dummy' > "$dirpart/$file"
22081 { (exit 0); exit 0; }
22083 chmod +x $CONFIG_STATUS
22084 ac_clean_files=$ac_clean_files_save
22087 # configure is writing to config.log, and then calls config.status.
22088 # config.status does its own redirection, appending to config.log.
22089 # Unfortunately, on DOS this fails, as config.log is still kept open
22090 # by configure, so config.status won't be able to write to it; its
22091 # output is simply discarded. So we exec the FD to /dev/null,
22092 # effectively closing config.log, so it can be properly (re)opened and
22093 # appended to by config.status. When coming back to configure, we
22094 # need to make the FD available again.
22095 if test "$no_create" != yes; then
22097 ac_config_status_args=
22098 test "$silent" = yes &&
22099 ac_config_status_args="$ac_config_status_args --quiet"
22101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22104 # would make configure fail if this is the last instruction.
22105 $ac_cs_success || { (exit 1); exit 1; }