2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libasyncns 0.7.
5 # Report bugs to <mznflapaf (at) 0pointer (dot) de>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
638 # So, first we look for a working echo in the user's PATH.
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
691 # maybe with a smaller string...
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 # Oops. We lost completely, so just stick with echo.
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
726 tagnames=${tagnames+${tagnames},}CXX
728 tagnames=${tagnames+${tagnames},}F77
730 exec 7<&0 </dev/null 6>&1
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
740 ac_default_prefix=/usr/local
742 ac_config_libobj_dir=.
748 SHELL=${CONFIG_SHELL-/bin/sh}
750 # Identity of this package.
751 PACKAGE_NAME='libasyncns'
752 PACKAGE_TARNAME='libasyncns'
753 PACKAGE_VERSION='0.7'
754 PACKAGE_STRING='libasyncns 0.7'
755 PACKAGE_BUGREPORT='mznflapaf (at) 0pointer (dot) de'
757 ac_unique_file="libasyncns/asyncns.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
771 # ifdef HAVE_STDLIB_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
794 ac_subst_vars='LTLIBOBJS
848 LIBASYNCNS_VERSION_INFO
858 INSTALL_STRIP_PROGRAM
900 program_transform_name
912 enable_option_checking
913 enable_dependency_tracking
924 ac_precious_vars='build_alias
941 # Initialize some variables set by options.
943 ac_init_version=false
944 ac_unrecognized_opts=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name=s,x,x,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980 infodir='${datarootdir}/info'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1031 -datadir | --datadir | --datadi | --datad)
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1048 { (exit 1); exit 1; }; }
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval enable_$ac_useropt=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_$ac_useropt"
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 htmldir=$ac_optarg ;;
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1130 -libdir | --libdir | --libdi | --libd)
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1221 -psdir | --psdir | --psdi | --psd | --ps)
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1249 -site=* | --site=* | --sit=*)
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1290 eval with_$ac_useropt=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1307 eval with_$ac_useropt=no ;;
1310 # Obsolete; use --with-x.
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1328 Try \`$0 --help' for more information." >&2
1329 { (exit 1); exit 1; }; }
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337 { (exit 1); exit 1; }; }
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1355 { (exit 1); exit 1; }; }
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1361 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1362 { (exit 1); exit 1; }; } ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1380 # Be sure to have absolute directory names.
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1386 { (exit 1); exit 1; }; }
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1394 target=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401 If a cross compiler is detected then cross compile mode will be used." >&2
1402 elif test "x$build_alias" != "x$host_alias"; then
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410 test "$silent" = yes && exec 6>/dev/null
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1417 { (exit 1); exit 1; }; }
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1420 { (exit 1); exit 1; }; }
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1455 ac_srcdir_defaulted=no
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1460 { (exit 1); exit 1; }; }
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1465 { (exit 1); exit 1; }; }
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 # Report the --help message.
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1491 \`configure' configures libasyncns 0.7 to adapt to many kinds of systems.
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1498 Defaults for the options are specified in brackets.
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1522 For better control, use the options below.
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/libasyncns]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1559 if test -n "$ac_init_help"; then
1560 case $ac_init_help in
1561 short | recursive ) echo "Configuration of libasyncns 0.7:";;
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --disable-dependency-tracking speeds up one-time build
1570 --enable-dependency-tracking do not reject slow dependency extractors
1571 --enable-shared[=PKGS] build shared libraries [default=yes]
1572 --enable-static[=PKGS] build static libraries [default=yes]
1573 --enable-fast-install[=PKGS]
1574 optimize for fast installation [default=yes]
1575 --disable-libtool-lock avoid locking (might break parallel builds)
1576 --disable-assert turn off assertions
1577 --disable-lynx Turn off lynx usage for documentation generation
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1585 --with-tags[=TAGS] include additional configurations [automatic]
1587 Some influential environment variables:
1588 CC C compiler command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
1592 LIBS libraries to pass to the linker, e.g. -l<library>
1593 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594 you have headers in a nonstandard directory <include dir>
1596 CXX C++ compiler command
1597 CXXFLAGS C++ compiler flags
1598 CXXCPP C++ preprocessor
1599 F77 Fortran 77 compiler command
1600 FFLAGS Fortran 77 compiler flags
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to <mznflapaf (at) 0pointer (dot) de>.
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1635 .) # We are building in place.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1668 libasyncns configure 0.7
1669 generated by GNU Autoconf 2.63
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1682 It was created by libasyncns $as_me 0.7, which was
1683 generated by GNU Autoconf 2.63. Invocation command line was
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1708 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 test -z "$as_dir" && as_dir=.
1719 $as_echo "PATH: $as_dir"
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1743 ac_must_keep_next=false
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1754 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
1761 ac_must_keep_next=false # Got value, back to normal.
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 -* ) ac_must_keep_next=true ;;
1775 ac_configure_args="$ac_configure_args '$ac_arg'"
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log. We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1799 # The following way of writing the cache mishandles newlines in values,
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1806 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1807 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1810 _ | IFS | as_nl) ;; #(
1811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1812 *) $as_unset $ac_var ;;
1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
1820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1837 for ac_var in $ac_subst_vars
1839 eval ac_val=\$$ac_var
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 $as_echo "$ac_var='\''$ac_val'\''"
1847 if test -n "$ac_subst_files"; then
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1854 for ac_var in $ac_subst_files
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 $as_echo "$ac_var='\''$ac_val'\''"
1865 if test -s confdefs.h; then
1875 test "$ac_signal" != 0 &&
1876 $as_echo "$as_me: caught signal $ac_signal"
1877 $as_echo "$as_me: exit $exit_status"
1879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1883 for ac_signal in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest* confdefs.h
1891 # Predefined preprocessor variables.
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer an explicitly selected file to automatically selected ones.
1922 if test -n "$CONFIG_SITE"; then
1923 ac_site_file1=$CONFIG_SITE
1924 elif test "x$prefix" != xNONE; then
1925 ac_site_file1=$prefix/share/config.site
1926 ac_site_file2=$prefix/etc/config.site
1928 ac_site_file1=$ac_default_prefix/share/config.site
1929 ac_site_file2=$ac_default_prefix/etc/config.site
1931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1933 test "x$ac_site_file" = xNONE && continue
1934 if test -r "$ac_site_file"; then
1935 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1937 sed 's/^/| /' "$ac_site_file" >&5
1942 if test -r "$cache_file"; then
1943 # Some versions of bash will fail to source /dev/null (special
1944 # files actually), so we avoid doing that.
1945 if test -f "$cache_file"; then
1946 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 $as_echo "$as_me: loading cache $cache_file" >&6;}
1949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950 *) . "./$cache_file";;
1954 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 $as_echo "$as_me: creating cache $cache_file" >&6;}
1959 # Check that the precious variables saved in the cache have kept the same
1961 ac_cache_corrupted=false
1962 for ac_var in $ac_precious_vars; do
1963 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964 eval ac_new_set=\$ac_env_${ac_var}_set
1965 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966 eval ac_new_val=\$ac_env_${ac_var}_value
1967 case $ac_old_set,$ac_new_set in
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1974 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975 ac_cache_corrupted=: ;;
1978 if test "x$ac_old_val" != "x$ac_new_val"; then
1979 # differences in whitespace do not lead to failure.
1980 ac_old_val_w=`echo x $ac_old_val`
1981 ac_new_val_w=`echo x $ac_new_val`
1982 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1984 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1985 ac_cache_corrupted=:
1987 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1988 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1989 eval $ac_var=\$ac_old_val
1991 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1992 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1993 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1994 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1997 # Pass precious variables to config.status.
1998 if test "$ac_new_set" = set; then
2000 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 *) ac_arg=$ac_var=$ac_new_val ;;
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 if $ac_cache_corrupted; then
2010 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2013 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2014 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2015 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016 { (exit 1); exit 1; }; }
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 ac_config_headers="$ac_config_headers config.h"
2054 am__api_version='1.10'
2057 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2058 if test -f "$ac_dir/install-sh"; then
2060 ac_install_sh="$ac_aux_dir/install-sh -c"
2062 elif test -f "$ac_dir/install.sh"; then
2064 ac_install_sh="$ac_aux_dir/install.sh -c"
2066 elif test -f "$ac_dir/shtool"; then
2068 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 if test -z "$ac_aux_dir"; then
2073 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2074 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2075 { (exit 1); exit 1; }; }
2078 # These three variables are undocumented and unsupported,
2079 # and are intended to be withdrawn in a future Autoconf release.
2080 # They can cause serious problems if a builder's source tree is in a directory
2081 # whose full name contains unusual characters.
2082 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2083 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2084 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2087 # Find a good install program. We prefer a C program (faster),
2088 # so one script is as good as another. But avoid the broken or
2089 # incompatible versions:
2090 # SysV /etc/install, /usr/sbin/install
2091 # SunOS /usr/etc/install
2092 # IRIX /sbin/install
2094 # AmigaOS /C/install, which installs bootblocks on floppy discs
2095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2098 # OS/2's system install, which has a completely different semantic
2099 # ./install, which can be erroneously created by make from ./install.sh.
2100 # Reject install programs that cannot install multiple files.
2101 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2102 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 $as_echo_n "(cached) " >&6
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 test -z "$as_dir" && as_dir=.
2112 # Account for people who put trailing slashes in PATH elements.
2114 ./ | .// | /cC/* | \
2115 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2116 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2119 # OSF1 and SCO ODT 3.0 have their own names for install.
2120 # Don't use installbsd from OSF since it installs stuff as root
2122 for ac_prog in ginstall scoinst install; do
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2125 if test $ac_prog = install &&
2126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # AIX install. It has an incompatible calling convention.
2129 elif test $ac_prog = install &&
2130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131 # program-specific install script used by HP pwplus--don't use.
2134 rm -rf conftest.one conftest.two conftest.dir
2135 echo one > conftest.one
2136 echo two > conftest.two
2138 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2139 test -s conftest.one && test -s conftest.two &&
2140 test -s conftest.dir/conftest.one &&
2141 test -s conftest.dir/conftest.two
2143 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2156 rm -rf conftest.one conftest.two conftest.dir
2159 if test "${ac_cv_path_install+set}" = set; then
2160 INSTALL=$ac_cv_path_install
2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for INSTALL within a source directory, because that will
2164 # break other packages using the cache if that directory is
2165 # removed, or if the value is a relative name.
2166 INSTALL=$ac_install_sh
2169 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2170 $as_echo "$INSTALL" >&6; }
2172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2173 # It thinks the first close brace ends the variable substitution.
2174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2180 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2181 $as_echo_n "checking whether build environment is sane... " >&6; }
2184 echo timestamp > conftest.file
2185 # Do `set' in a subshell so we don't clobber the current shell's
2186 # arguments. Must try -L first in case configure is actually a
2187 # symlink; some systems play weird games with the mod time of symlinks
2188 # (eg FreeBSD returns the mod time of the symlink's containing
2191 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2192 if test "$*" = "X"; then
2194 set X `ls -t $srcdir/configure conftest.file`
2197 if test "$*" != "X $srcdir/configure conftest.file" \
2198 && test "$*" != "X conftest.file $srcdir/configure"; then
2200 # If neither matched, then we have a broken ls. This can happen
2201 # if, for instance, CONFIG_SHELL is bash and it inherits a
2202 # broken ls alias from the environment. This has actually
2203 # happened. Such a system could not be considered "sane".
2204 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2205 alias in your environment" >&5
2206 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2207 alias in your environment" >&2;}
2208 { (exit 1); exit 1; }; }
2211 test "$2" = conftest.file
2217 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2218 Check your system clock" >&5
2219 $as_echo "$as_me: error: newly created file is older than distributed files!
2220 Check your system clock" >&2;}
2221 { (exit 1); exit 1; }; }
2223 { $as_echo "$as_me:$LINENO: result: yes" >&5
2224 $as_echo "yes" >&6; }
2225 test "$program_prefix" != NONE &&
2226 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2227 # Use a double $ so make ignores it.
2228 test "$program_suffix" != NONE &&
2229 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2230 # Double any \ or $.
2231 # By default was `s,x,x', remove it if useless.
2232 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2233 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2235 # expand $ac_aux_dir to an absolute path
2236 am_aux_dir=`cd $ac_aux_dir && pwd`
2238 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2239 # Use eval to expand $SHELL
2240 if eval "$MISSING --run true"; then
2241 am_missing_run="$MISSING --run "
2244 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2245 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2248 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2249 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2250 if test -z "$MKDIR_P"; then
2251 if test "${ac_cv_path_mkdir+set}" = set; then
2252 $as_echo_n "(cached) " >&6
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2258 test -z "$as_dir" && as_dir=.
2259 for ac_prog in mkdir gmkdir; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2262 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2263 'mkdir (GNU coreutils) '* | \
2264 'mkdir (coreutils) '* | \
2265 'mkdir (fileutils) '4.1*)
2266 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2276 if test "${ac_cv_path_mkdir+set}" = set; then
2277 MKDIR_P="$ac_cv_path_mkdir -p"
2279 # As a last resort, use the slow shell script. Don't cache a
2280 # value for MKDIR_P within a source directory, because that will
2281 # break other packages using the cache if that directory is
2282 # removed, or if the value is a relative name.
2283 test -d ./--version && rmdir ./--version
2284 MKDIR_P="$ac_install_sh -d"
2287 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2288 $as_echo "$MKDIR_P" >&6; }
2292 [\\/$]* | ?:[\\/]*) ;;
2293 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2296 for ac_prog in gawk mawk nawk awk
2298 # Extract the first word of "$ac_prog", so it can be a program name with args.
2299 set dummy $ac_prog; ac_word=$2
2300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 $as_echo_n "checking for $ac_word... " >&6; }
2302 if test "${ac_cv_prog_AWK+set}" = set; then
2303 $as_echo_n "(cached) " >&6
2305 if test -n "$AWK"; then
2306 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_AWK="$ac_prog"
2316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 if test -n "$AWK"; then
2327 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2328 $as_echo "$AWK" >&6; }
2330 { $as_echo "$as_me:$LINENO: result: no" >&5
2331 $as_echo "no" >&6; }
2335 test -n "$AWK" && break
2338 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2339 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2341 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2342 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2343 $as_echo_n "(cached) " >&6
2345 cat >conftest.make <<\_ACEOF
2348 @echo '@@@%%%=$(MAKE)=@@@%%%'
2350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2353 eval ac_cv_prog_make_${ac_make}_set=yes;;
2355 eval ac_cv_prog_make_${ac_make}_set=no;;
2359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2360 { $as_echo "$as_me:$LINENO: result: yes" >&5
2361 $as_echo "yes" >&6; }
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2366 SET_MAKE="MAKE=${MAKE-make}"
2369 rm -rf .tst 2>/dev/null
2370 mkdir .tst 2>/dev/null
2371 if test -d .tst; then
2376 rmdir .tst 2>/dev/null
2378 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2379 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2380 # is not polluted with repeated "-I."
2381 am__isrc=' -I$(srcdir)'
2382 # test to see if srcdir already configured
2383 if test -f $srcdir/config.status; then
2384 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2385 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2386 { (exit 1); exit 1; }; }
2390 # test whether we have cygpath
2391 if test -z "$CYGPATH_W"; then
2392 if (cygpath --version) >/dev/null 2>/dev/null; then
2393 CYGPATH_W='cygpath -w'
2400 # Define the identity of the package.
2401 PACKAGE='libasyncns'
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE "$PACKAGE"
2410 cat >>confdefs.h <<_ACEOF
2411 #define VERSION "$VERSION"
2414 # Some tools Automake needs.
2416 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2419 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2422 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2425 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2428 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2430 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'. However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then
2443 $as_echo_n "(cached) " >&6
2445 if test -n "$STRIP"; then
2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2468 $as_echo "$STRIP" >&6; }
2470 { $as_echo "$as_me:$LINENO: result: no" >&5
2471 $as_echo "no" >&6; }
2476 if test -z "$ac_cv_prog_STRIP"; then
2478 # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483 $as_echo_n "(cached) " >&6
2485 if test -n "$ac_ct_STRIP"; then
2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_STRIP="strip"
2496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508 $as_echo "$ac_ct_STRIP" >&6; }
2510 { $as_echo "$as_me:$LINENO: result: no" >&5
2511 $as_echo "no" >&6; }
2514 if test "x$ac_ct_STRIP" = x; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521 ac_tool_warned=yes ;;
2526 STRIP="$ac_cv_prog_STRIP"
2530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2532 # We need awk for the "check" target. The system "awk" is bad on
2534 # Always define AMTAR for backward compatibility.
2536 AMTAR=${AMTAR-"${am_missing_run}tar"}
2538 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2545 PACKAGE_URL=http://0pointer.de/lennart/projects/libasyncns/
2548 LIBASYNCNS_VERSION_INFO=3:1:3
2551 if type -p stow > /dev/null && test -d /usr/local/stow ; then
2552 { $as_echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
2553 $as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
2554 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
2557 # Checks for programs.
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 if test -n "$ac_tool_prefix"; then
2564 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569 $as_echo_n "(cached) " >&6
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 if test -n "$CC"; then
2593 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2594 $as_echo "$CC" >&6; }
2596 { $as_echo "$as_me:$LINENO: result: no" >&5
2597 $as_echo "no" >&6; }
2602 if test -z "$ac_cv_prog_CC"; then
2604 # Extract the first word of "gcc", so it can be a program name with args.
2605 set dummy gcc; ac_word=$2
2606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2609 $as_echo_n "(cached) " >&6
2611 if test -n "$ac_ct_CC"; then
2612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_ac_ct_CC="gcc"
2622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632 if test -n "$ac_ct_CC"; then
2633 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634 $as_echo "$ac_ct_CC" >&6; }
2636 { $as_echo "$as_me:$LINENO: result: no" >&5
2637 $as_echo "no" >&6; }
2640 if test "x$ac_ct_CC" = x; then
2643 case $cross_compiling:$ac_tool_warned in
2645 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647 ac_tool_warned=yes ;;
2655 if test -z "$CC"; then
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}cc; ac_word=$2
2659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_CC="${ac_tool_prefix}cc"
2675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 if test -n "$CC"; then
2686 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2687 $as_echo "$CC" >&6; }
2689 { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2696 if test -z "$CC"; then
2697 # Extract the first word of "cc", so it can be a program name with args.
2698 set dummy cc; ac_word=$2
2699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_CC+set}" = set; then
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2716 ac_prog_rejected=yes
2720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test $ac_prog_rejected = yes; then
2728 # We found a bogon in the path, so make sure we never use it.
2729 set dummy $ac_cv_prog_CC
2731 if test $# != 0; then
2732 # We chose a different compiler from the bogus one.
2733 # However, it has the same basename, so the bogon will be chosen
2734 # first if we set CC to just the basename; use the full file name.
2736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2742 if test -n "$CC"; then
2743 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2746 { $as_echo "$as_me:$LINENO: result: no" >&5
2747 $as_echo "no" >&6; }
2752 if test -z "$CC"; then
2753 if test -n "$ac_tool_prefix"; then
2754 for ac_prog in cl.exe
2756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2788 { $as_echo "$as_me:$LINENO: result: no" >&5
2789 $as_echo "no" >&6; }
2793 test -n "$CC" && break
2796 if test -z "$CC"; then
2798 for ac_prog in cl.exe
2800 # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; ac_word=$2
2802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2805 $as_echo_n "(cached) " >&6
2807 if test -n "$ac_ct_CC"; then
2808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_ac_ct_CC="$ac_prog"
2818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2828 if test -n "$ac_ct_CC"; then
2829 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2830 $as_echo "$ac_ct_CC" >&6; }
2832 { $as_echo "$as_me:$LINENO: result: no" >&5
2833 $as_echo "no" >&6; }
2837 test -n "$ac_ct_CC" && break
2840 if test "x$ac_ct_CC" = x; then
2843 case $cross_compiling:$ac_tool_warned in
2845 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2856 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&5
2860 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }; }
2864 # Provide some information about the compiler.
2865 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2868 { (ac_try="$ac_compiler --version >&5"
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2874 $as_echo "$ac_try_echo") >&5
2875 (eval "$ac_compiler --version >&5") 2>&5
2877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2879 { (ac_try="$ac_compiler -v >&5"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886 (eval "$ac_compiler -v >&5") 2>&5
2888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }
2890 { (ac_try="$ac_compiler -V >&5"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896 $as_echo "$ac_try_echo") >&5
2897 (eval "$ac_compiler -V >&5") 2>&5
2899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2917 ac_clean_files_save=$ac_clean_files
2918 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2919 # Try to create an executable without -o first, disregard a.out.
2920 # It will help us diagnose broken compilers, and finding out an intuition
2922 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2923 $as_echo_n "checking for C compiler default output file name... " >&6; }
2924 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2926 # The possible output files:
2927 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2930 for ac_file in $ac_files
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2934 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2939 if { (ac_try="$ac_link_default"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2945 $as_echo "$ac_try_echo") >&5
2946 (eval "$ac_link_default") 2>&5
2948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; then
2950 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2953 # so that the user can short-circuit this test for compilers unknown to
2955 for ac_file in $ac_files ''
2957 test -f "$ac_file" || continue
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2962 # We found the default executable, but exeext='' is most
2966 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2968 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970 # We set ac_cv_exeext here because the later test for it is not
2971 # safe: cross compilers may not add the suffix if given an `-o'
2972 # argument, so we may need to know it at that point already.
2973 # Even if this section looks crufty: it has the advantage of
2980 test "$ac_cv_exeext" = no && ac_cv_exeext=
2986 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2987 $as_echo "$ac_file" >&6; }
2988 if test -z "$ac_file"; then
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&5
2996 $as_echo "$as_me: error: C compiler cannot create executables
2997 See \`config.log' for more details." >&2;}
2998 { (exit 77); exit 77; }; }; }
3001 ac_exeext=$ac_cv_exeext
3003 # Check that the compiler produces executables we can run. If not, either
3004 # the compiler is broken, or we cross compile.
3005 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3006 $as_echo_n "checking whether the C compiler works... " >&6; }
3007 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3008 # If not cross compiling, check that we can run a simple program.
3009 if test "$cross_compiling" != yes; then
3010 if { ac_try='./$ac_file'
3011 { (case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3016 $as_echo "$ac_try_echo") >&5
3017 (eval "$ac_try") 2>&5
3019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3023 if test "$cross_compiling" = maybe; then
3026 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3029 If you meant to cross compile, use \`--host'.
3030 See \`config.log' for more details." >&5
3031 $as_echo "$as_me: error: cannot run C compiled programs.
3032 If you meant to cross compile, use \`--host'.
3033 See \`config.log' for more details." >&2;}
3034 { (exit 1); exit 1; }; }; }
3038 { $as_echo "$as_me:$LINENO: result: yes" >&5
3039 $as_echo "yes" >&6; }
3041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3042 ac_clean_files=$ac_clean_files_save
3043 # Check that the compiler produces executables we can run. If not, either
3044 # the compiler is broken, or we cross compile.
3045 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3046 $as_echo_n "checking whether we are cross compiling... " >&6; }
3047 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3048 $as_echo "$cross_compiling" >&6; }
3050 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3051 $as_echo_n "checking for suffix of executables... " >&6; }
3052 if { (ac_try="$ac_link"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3058 $as_echo "$ac_try_echo") >&5
3059 (eval "$ac_link") 2>&5
3061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3065 # work properly (i.e., refer to `conftest.exe'), while it won't with
3067 for ac_file in conftest.exe conftest conftest.*; do
3068 test -f "$ac_file" || continue
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&5
3081 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&2;}
3083 { (exit 1); exit 1; }; }; }
3086 rm -f conftest$ac_cv_exeext
3087 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088 $as_echo "$ac_cv_exeext" >&6; }
3090 rm -f conftest.$ac_ext
3091 EXEEXT=$ac_cv_exeext
3093 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094 $as_echo_n "checking for suffix of object files... " >&6; }
3095 if test "${ac_cv_objext+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.o conftest.obj
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3120 $as_echo "$ac_try_echo") >&5
3121 (eval "$ac_compile") 2>&5
3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; then
3125 for ac_file in conftest.o conftest.obj conftest.*; do
3126 test -f "$ac_file" || continue;
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3129 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3134 $as_echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3137 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3140 See \`config.log' for more details." >&5
3141 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&2;}
3143 { (exit 1); exit 1; }; }; }
3146 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3148 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3149 $as_echo "$ac_cv_objext" >&6; }
3150 OBJEXT=$ac_cv_objext
3152 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3153 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3154 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3195 $as_echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3205 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3207 if test $ac_compiler_gnu = yes; then
3212 ac_test_CFLAGS=${CFLAGS+set}
3213 ac_save_CFLAGS=$CFLAGS
3214 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3215 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3216 if test "${ac_cv_prog_cc_g+set}" = set; then
3217 $as_echo_n "(cached) " >&6
3219 ac_save_c_werror_flag=$ac_c_werror_flag
3220 ac_c_werror_flag=yes
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246 (eval "$ac_compile") 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } && {
3253 test -z "$ac_c_werror_flag" ||
3254 test ! -s conftest.err
3255 } && test -s conftest.$ac_objext; then
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3277 rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284 $as_echo "$ac_try_echo") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && {
3292 test -z "$ac_c_werror_flag" ||
3293 test ! -s conftest.err
3294 } && test -s conftest.$ac_objext; then
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 ac_c_werror_flag=$ac_save_c_werror_flag
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3327 grep -v '^ *+' conftest.er1 >conftest.err
3329 cat conftest.err >&5
3330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } && {
3332 test -z "$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 } && test -s conftest.$ac_objext; then
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3352 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3353 $as_echo "$ac_cv_prog_cc_g" >&6; }
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3363 if test "$GCC" = yes; then
3369 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3370 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371 if test "${ac_cv_prog_cc_c89+set}" = set; then
3372 $as_echo_n "(cached) " >&6
3374 ac_cv_prog_cc_c89=no
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3384 #include <sys/types.h>
3385 #include <sys/stat.h>
3386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3387 struct buf { int x; };
3388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3389 static char *e (p, i)
3395 static char *f (char * (*g) (char **, int), char **p, ...)
3400 s = g (p, va_arg (v,int));
3405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3406 function prototypes and stuff, but not '\xHH' hex character constants.
3407 These don't provoke an error unfortunately, instead are silently treated
3408 as 'x'. The following induces an error, until -std is added to get
3409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3410 array size at least. It's necessary to write '\x00'==0 to get something
3411 that's true only with -std. */
3412 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3414 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3415 inside strings and character constants. */
3417 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3419 int test (int i, double x);
3420 struct s1 {int (*f) (int a);};
3421 struct s2 {int (*f) (double a);};
3422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3428 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3433 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3434 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3436 CC="$ac_save_CC $ac_arg"
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_c_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3455 ac_cv_prog_cc_c89=$ac_arg
3457 $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f core conftest.err conftest.$ac_objext
3464 test "x$ac_cv_prog_cc_c89" != "xno" && break
3466 rm -f conftest.$ac_ext
3471 case "x$ac_cv_prog_cc_c89" in
3473 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3474 $as_echo "none needed" >&6; } ;;
3476 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3477 $as_echo "unsupported" >&6; } ;;
3479 CC="$CC $ac_cv_prog_cc_c89"
3480 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3481 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 DEPDIR="${am__leading_dot}deps"
3492 ac_config_commands="$ac_config_commands depfiles"
3495 am_make=${MAKE-make}
3496 cat > confinc << 'END'
3501 # If we don't find an include directive, just comment out the code.
3502 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3507 # First try GNU make style include.
3508 echo "include confinc" > confmf
3509 # We grep out `Entering directory' and `Leaving directory'
3510 # messages which can occur if `w' ends up in MAKEFLAGS.
3511 # In particular we don't look at `^make:' because GNU make might
3512 # be invoked under some other name (usually "gmake"), in which
3513 # case it prints its new name instead of `make'.
3514 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3519 # Now try BSD make style include.
3520 if test "$am__include" = "#"; then
3521 echo '.include "confinc"' > confmf
3522 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3523 am__include=.include
3530 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3531 $as_echo "$_am_result" >&6; }
3532 rm -f confinc confmf
3534 # Check whether --enable-dependency-tracking was given.
3535 if test "${enable_dependency_tracking+set}" = set; then
3536 enableval=$enable_dependency_tracking;
3539 if test "x$enable_dependency_tracking" != xno; then
3540 am_depcomp="$ac_aux_dir/depcomp"
3543 if test "x$enable_dependency_tracking" != xno; then
3553 depcc="$CC" am_compiler_list=
3555 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3556 $as_echo_n "checking dependency style of $depcc... " >&6; }
3557 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3558 $as_echo_n "(cached) " >&6
3560 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3561 # We make a subdir and do the tests there. Otherwise we can end up
3562 # making bogus files that we don't know about and never remove. For
3563 # instance it was reported that on HP-UX the gcc test will end up
3564 # making a dummy file named `D' -- because `-MD' means `put the output
3567 # Copy depcomp to subdir because otherwise we won't find it if we're
3568 # using a relative directory.
3569 cp "$am_depcomp" conftest.dir
3571 # We will build objects and dependencies in a subdirectory because
3572 # it helps to detect inapplicable dependency modes. For instance
3573 # both Tru64's cc and ICC support -MD to output dependencies as a
3574 # side effect of compilation, but ICC will put the dependencies in
3575 # the current directory while Tru64 will put them in the object
3579 am_cv_CC_dependencies_compiler_type=none
3580 if test "$am_compiler_list" = ""; then
3581 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3583 for depmode in $am_compiler_list; do
3584 # Setup a source with many dependencies, because some compilers
3585 # like to wrap large dependency lists on column 80 (with \), and
3586 # we should not choose a depcomp mode which is confused by this.
3588 # We need to recreate these files for each test, as the compiler may
3589 # overwrite some of them when testing with obscure command lines.
3590 # This happens at least with the AIX C compiler.
3592 for i in 1 2 3 4 5 6; do
3593 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3594 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3595 # Solaris 8's {/usr,}/bin/sh.
3596 touch sub/conftst$i.h
3598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602 # after this tag, mechanisms are not by side-effect, so they'll
3603 # only be used when explicitly requested
3604 if test "x$enable_dependency_tracking" = xyes; then
3612 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3613 # mode. It turns out that the SunPro C++ compiler does not properly
3614 # handle `-M -o', and we need to detect this.
3615 if depmode=$depmode \
3616 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3617 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3618 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3619 >/dev/null 2>conftest.err &&
3620 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3624 # icc doesn't choke on unknown options, it will just issue warnings
3625 # or remarks (even with -Werror). So we grep stderr for any message
3626 # that says an option was ignored or not supported.
3627 # When given -MP, icc 7.0 and 7.1 complain thusly:
3628 # icc: Command line warning: ignoring option '-M'; no argument required
3629 # The diagnosis changed in icc 8.0:
3630 # icc: Command line remark: option '-MP' not supported
3631 if (grep 'ignoring option' conftest.err ||
3632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633 am_cv_CC_dependencies_compiler_type=$depmode
3642 am_cv_CC_dependencies_compiler_type=none
3646 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3647 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3648 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3651 test "x$enable_dependency_tracking" != xno \
3652 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3654 am__fastdepCC_FALSE='#'
3656 am__fastdepCC_TRUE='#'
3657 am__fastdepCC_FALSE=
3661 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3662 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3663 if test "${ac_cv_prog_cc_c99+set}" = set; then
3664 $as_echo_n "(cached) " >&6
3666 ac_cv_prog_cc_c99=no
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3675 #include <stdbool.h>
3680 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3681 #define debug(...) fprintf (stderr, __VA_ARGS__)
3682 #define showlist(...) puts (#__VA_ARGS__)
3683 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3685 test_varargs_macros (void)
3690 debug ("X = %d\n", x);
3691 showlist (The first, second, and third items.);
3692 report (x>y, "x is %d but y is %d", x, y);
3695 // Check long long types.
3696 #define BIG64 18446744073709551615ull
3697 #define BIG32 4294967295ul
3698 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3700 your preprocessor is broken;
3704 your preprocessor is broken;
3706 static long long int bignum = -9223372036854775807LL;
3707 static unsigned long long int ubignum = BIG64;
3709 struct incomplete_array
3717 const wchar_t *name;
3721 typedef const char *ccp;
3724 test_restrict (ccp restrict text)
3726 // See if C++-style comments work.
3727 // Iterate through items via the restricted pointer.
3728 // Also check for declarations in for loops.
3729 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3734 // Check varargs and va_copy.
3736 test_varargs (const char *format, ...)
3739 va_start (args, format);
3741 va_copy (args_copy, args);
3752 str = va_arg (args_copy, const char *);
3755 number = va_arg (args_copy, int);
3758 fnumber = va_arg (args_copy, double);
3773 _Bool success = false;
3776 if (test_restrict ("String literal") == 0)
3778 char *restrict newvar = "Another string";
3781 test_varargs ("s, d' f .", "string", 65, 34.234);
3782 test_varargs_macros ();
3784 // Check flexible array members.
3785 struct incomplete_array *ia =
3786 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3788 for (int i = 0; i < ia->datasize; ++i)
3789 ia->data[i] = i * 1.234;
3791 // Check named initializers.
3792 struct named_init ni = {
3794 .name = L"Test wide string",
3795 .average = 543.34343,
3800 int dynamic_array[ni.number];
3801 dynamic_array[ni.number - 1] = 543;
3803 // work around unused variable warnings
3804 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3805 || dynamic_array[ni.number - 1] != 543);
3811 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3813 CC="$ac_save_CC $ac_arg"
3814 rm -f conftest.$ac_objext
3815 if { (ac_try="$ac_compile"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3821 $as_echo "$ac_try_echo") >&5
3822 (eval "$ac_compile") 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } && {
3829 test -z "$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 } && test -s conftest.$ac_objext; then
3832 ac_cv_prog_cc_c99=$ac_arg
3834 $as_echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3840 rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c99" != "xno" && break
3843 rm -f conftest.$ac_ext
3848 case "x$ac_cv_prog_cc_c99" in
3850 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3853 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3856 CC="$CC $ac_cv_prog_cc_c99"
3857 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3858 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3869 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3870 # On Suns, sometimes $CPP names a directory.
3871 if test -n "$CPP" && test -d "$CPP"; then
3874 if test -z "$CPP"; then
3875 if test "${ac_cv_prog_CPP+set}" = set; then
3876 $as_echo_n "(cached) " >&6
3878 # Double quotes because CPP needs to be expanded
3879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3882 for ac_c_preproc_warn_flag in '' yes
3884 # Use a header file that comes with gcc, so configuring glibc
3885 # with a fresh cross-compiler works.
3886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887 # <limits.h> exists even on freestanding compilers.
3888 # On the NeXT, cc -E runs the code through the compiler's parser,
3889 # not just through cpp. "Syntax error" is here to catch this case.
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3897 # include <limits.h>
3899 # include <assert.h>
3903 if { (ac_try="$ac_cpp conftest.$ac_ext"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3909 $as_echo "$ac_try_echo") >&5
3910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3912 grep -v '^ *+' conftest.er1 >conftest.err
3914 cat conftest.err >&5
3915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } >/dev/null && {
3917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3918 test ! -s conftest.err
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 # Broken: fails on valid input.
3929 rm -f conftest.err conftest.$ac_ext
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 #include <ac_nonexistent.h>
3941 if { (ac_try="$ac_cpp conftest.$ac_ext"
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3947 $as_echo "$ac_try_echo") >&5
3948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3950 grep -v '^ *+' conftest.er1 >conftest.err
3952 cat conftest.err >&5
3953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } >/dev/null && {
3955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3956 test ! -s conftest.err
3958 # Broken: success on invalid input.
3961 $as_echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 # Passes both tests.
3969 rm -f conftest.err conftest.$ac_ext
3972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3973 rm -f conftest.err conftest.$ac_ext
3974 if $ac_preproc_ok; then
3986 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3987 $as_echo "$CPP" >&6; }
3989 for ac_c_preproc_warn_flag in '' yes
3991 # Use a header file that comes with gcc, so configuring glibc
3992 # with a fresh cross-compiler works.
3993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3994 # <limits.h> exists even on freestanding compilers.
3995 # On the NeXT, cc -E runs the code through the compiler's parser,
3996 # not just through cpp. "Syntax error" is here to catch this case.
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4004 # include <limits.h>
4006 # include <assert.h>
4010 if { (ac_try="$ac_cpp conftest.$ac_ext"
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4016 $as_echo "$ac_try_echo") >&5
4017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev/null && {
4024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4025 test ! -s conftest.err
4029 $as_echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 # Broken: fails on valid input.
4036 rm -f conftest.err conftest.$ac_ext
4038 # OK, works on sane cases. Now check whether nonexistent headers
4039 # can be detected and how.
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #include <ac_nonexistent.h>
4048 if { (ac_try="$ac_cpp conftest.$ac_ext"
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4054 $as_echo "$ac_try_echo") >&5
4055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } >/dev/null && {
4062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4063 test ! -s conftest.err
4065 # Broken: success on invalid input.
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 # Passes both tests.
4076 rm -f conftest.err conftest.$ac_ext
4079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080 rm -f conftest.err conftest.$ac_ext
4081 if $ac_preproc_ok; then
4084 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4087 See \`config.log' for more details." >&5
4088 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4089 See \`config.log' for more details." >&2;}
4090 { (exit 1); exit 1; }; }; }
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4104 if test "${ac_cv_path_GREP+set}" = set; then
4105 $as_echo_n "(cached) " >&6
4107 if test -z "$GREP"; then
4108 ac_path_GREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in grep ggrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4119 # Check for GNU ac_path_GREP and select it if it is found.
4120 # Check for GNU $ac_path_GREP
4121 case `"$ac_path_GREP" --version 2>&1` in
4123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4126 $as_echo_n 0123456789 >"conftest.in"
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 $as_echo 'GREP' >> "conftest.nl"
4133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 ac_count=`expr $ac_count + 1`
4136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_GREP="$ac_path_GREP"
4139 ac_path_GREP_max=$ac_count
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4147 $ac_path_GREP_found && break 3
4152 if test -z "$ac_cv_path_GREP"; then
4153 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4154 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4155 { (exit 1); exit 1; }; }
4158 ac_cv_path_GREP=$GREP
4162 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4163 $as_echo "$ac_cv_path_GREP" >&6; }
4164 GREP="$ac_cv_path_GREP"
4167 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4168 $as_echo_n "checking for egrep... " >&6; }
4169 if test "${ac_cv_path_EGREP+set}" = set; then
4170 $as_echo_n "(cached) " >&6
4172 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4173 then ac_cv_path_EGREP="$GREP -E"
4175 if test -z "$EGREP"; then
4176 ac_path_EGREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4182 test -z "$as_dir" && as_dir=.
4183 for ac_prog in egrep; do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4186 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4187 # Check for GNU ac_path_EGREP and select it if it is found.
4188 # Check for GNU $ac_path_EGREP
4189 case `"$ac_path_EGREP" --version 2>&1` in
4191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4194 $as_echo_n 0123456789 >"conftest.in"
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 $as_echo 'EGREP' >> "conftest.nl"
4201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 ac_count=`expr $ac_count + 1`
4204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_EGREP="$ac_path_EGREP"
4207 ac_path_EGREP_max=$ac_count
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4215 $ac_path_EGREP_found && break 3
4220 if test -z "$ac_cv_path_EGREP"; then
4221 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4222 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4223 { (exit 1); exit 1; }; }
4226 ac_cv_path_EGREP=$EGREP
4231 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4232 $as_echo "$ac_cv_path_EGREP" >&6; }
4233 EGREP="$ac_cv_path_EGREP"
4236 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4237 $as_echo_n "checking for ANSI C header files... " >&6; }
4238 if test "${ac_cv_header_stdc+set}" = set; then
4239 $as_echo_n "(cached) " >&6
4241 cat >conftest.$ac_ext <<_ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4267 $as_echo "$ac_try_echo") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4270 grep -v '^ *+' conftest.er1 >conftest.err
4272 cat conftest.err >&5
4273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } && {
4275 test -z "$ac_c_werror_flag" ||
4276 test ! -s conftest.err
4277 } && test -s conftest.$ac_objext; then
4278 ac_cv_header_stdc=yes
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 ac_cv_header_stdc=no
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 if test $ac_cv_header_stdc = yes; then
4289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 $EGREP "memchr" >/dev/null 2>&1; then
4303 ac_cv_header_stdc=no
4309 if test $ac_cv_header_stdc = yes; then
4310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "free" >/dev/null 2>&1; then
4324 ac_cv_header_stdc=no
4330 if test $ac_cv_header_stdc = yes; then
4331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4332 if test "$cross_compiling" = yes; then
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4343 #if ((' ' & 0x0FF) == 0x020)
4344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4347 # define ISLOWER(c) \
4348 (('a' <= (c) && (c) <= 'i') \
4349 || ('j' <= (c) && (c) <= 'r') \
4350 || ('s' <= (c) && (c) <= 'z'))
4351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4359 for (i = 0; i < 256; i++)
4360 if (XOR (islower (i), ISLOWER (i))
4361 || toupper (i) != TOUPPER (i))
4366 rm -f conftest$ac_exeext
4367 if { (ac_try="$ac_link"
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4373 $as_echo "$ac_try_echo") >&5
4374 (eval "$ac_link") 2>&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4383 $as_echo "$ac_try_echo") >&5
4384 (eval "$ac_try") 2>&5
4386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4390 $as_echo "$as_me: program exited with status $ac_status" >&5
4391 $as_echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4395 ac_cv_header_stdc=no
4397 rm -rf conftest.dSYM
4398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4404 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4405 $as_echo "$ac_cv_header_stdc" >&6; }
4406 if test $ac_cv_header_stdc = yes; then
4408 cat >>confdefs.h <<\_ACEOF
4409 #define STDC_HEADERS 1
4414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425 inttypes.h stdint.h unistd.h
4427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 $as_echo_n "checking for $ac_header... " >&6; }
4430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4431 $as_echo_n "(cached) " >&6
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 $ac_includes_default
4441 #include <$ac_header>
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4450 $as_echo "$ac_try_echo") >&5
4451 (eval "$ac_compile") 2>conftest.er1
4453 grep -v '^ *+' conftest.er1 >conftest.err
4455 cat conftest.err >&5
4456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } && {
4458 test -z "$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4460 } && test -s conftest.$ac_objext; then
4461 eval "$as_ac_Header=yes"
4463 $as_echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 eval "$as_ac_Header=no"
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 ac_res=`eval 'as_val=${'$as_ac_Header'}
4472 $as_echo "$as_val"'`
4473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4474 $as_echo "$ac_res" >&6; }
4475 as_val=`eval 'as_val=${'$as_ac_Header'}
4476 $as_echo "$as_val"'`
4477 if test "x$as_val" = x""yes; then
4478 cat >>confdefs.h <<_ACEOF
4479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4488 if test "${ac_cv_header_minix_config_h+set}" = set; then
4489 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4490 $as_echo_n "checking for minix/config.h... " >&6; }
4491 if test "${ac_cv_header_minix_config_h+set}" = set; then
4492 $as_echo_n "(cached) " >&6
4494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4495 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4497 # Is the header compilable?
4498 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4499 $as_echo_n "checking minix/config.h usability... " >&6; }
4500 cat >conftest.$ac_ext <<_ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 $ac_includes_default
4507 #include <minix/config.h>
4509 rm -f conftest.$ac_objext
4510 if { (ac_try="$ac_compile"
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4516 $as_echo "$ac_try_echo") >&5
4517 (eval "$ac_compile") 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } && {
4524 test -z "$ac_c_werror_flag" ||
4525 test ! -s conftest.err
4526 } && test -s conftest.$ac_objext; then
4527 ac_header_compiler=yes
4529 $as_echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 ac_header_compiler=no
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4537 $as_echo "$ac_header_compiler" >&6; }
4539 # Is the header present?
4540 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4541 $as_echo_n "checking minix/config.h presence... " >&6; }
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4548 #include <minix/config.h>
4550 if { (ac_try="$ac_cpp conftest.$ac_ext"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4559 grep -v '^ *+' conftest.er1 >conftest.err
4561 cat conftest.err >&5
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } >/dev/null && {
4564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4565 test ! -s conftest.err
4567 ac_header_preproc=yes
4569 $as_echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4572 ac_header_preproc=no
4575 rm -f conftest.err conftest.$ac_ext
4576 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4577 $as_echo "$ac_header_preproc" >&6; }
4579 # So? What about this header?
4580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4582 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4583 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4584 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4585 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4586 ac_header_preproc=yes
4589 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4590 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4591 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4592 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4593 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4594 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4595 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4596 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4597 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4598 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4599 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4600 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4602 ## ----------------------------------------------- ##
4603 ## Report this to mznflapaf (at) 0pointer (dot) de ##
4604 ## ----------------------------------------------- ##
4606 ) | sed "s/^/$as_me: WARNING: /" >&2
4609 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4610 $as_echo_n "checking for minix/config.h... " >&6; }
4611 if test "${ac_cv_header_minix_config_h+set}" = set; then
4612 $as_echo_n "(cached) " >&6
4614 ac_cv_header_minix_config_h=$ac_header_preproc
4616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4617 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4620 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4627 if test "$MINIX" = yes; then
4629 cat >>confdefs.h <<\_ACEOF
4630 #define _POSIX_SOURCE 1
4634 cat >>confdefs.h <<\_ACEOF
4635 #define _POSIX_1_SOURCE 2
4639 cat >>confdefs.h <<\_ACEOF
4647 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4648 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4649 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4650 $as_echo_n "(cached) " >&6
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4659 # define __EXTENSIONS__ 1
4660 $ac_includes_default
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4676 $as_echo "$ac_try_echo") >&5
4677 (eval "$ac_compile") 2>conftest.er1
4679 grep -v '^ *+' conftest.er1 >conftest.err
4681 cat conftest.err >&5
4682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && {
4684 test -z "$ac_c_werror_flag" ||
4685 test ! -s conftest.err
4686 } && test -s conftest.$ac_objext; then
4687 ac_cv_safe_to_define___extensions__=yes
4689 $as_echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 ac_cv_safe_to_define___extensions__=no
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4698 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4699 test $ac_cv_safe_to_define___extensions__ = yes &&
4700 cat >>confdefs.h <<\_ACEOF
4701 #define __EXTENSIONS__ 1
4704 cat >>confdefs.h <<\_ACEOF
4705 #define _ALL_SOURCE 1
4708 cat >>confdefs.h <<\_ACEOF
4709 #define _GNU_SOURCE 1
4712 cat >>confdefs.h <<\_ACEOF
4713 #define _POSIX_PTHREAD_SEMANTICS 1
4716 cat >>confdefs.h <<\_ACEOF
4717 #define _TANDEM_SOURCE 1
4722 # Find a good install program. We prefer a C program (faster),
4723 # so one script is as good as another. But avoid the broken or
4724 # incompatible versions:
4725 # SysV /etc/install, /usr/sbin/install
4726 # SunOS /usr/etc/install
4727 # IRIX /sbin/install
4729 # AmigaOS /C/install, which installs bootblocks on floppy discs
4730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4733 # OS/2's system install, which has a completely different semantic
4734 # ./install, which can be erroneously created by make from ./install.sh.
4735 # Reject install programs that cannot install multiple files.
4736 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4737 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4738 if test -z "$INSTALL"; then
4739 if test "${ac_cv_path_install+set}" = set; then
4740 $as_echo_n "(cached) " >&6
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 # Account for people who put trailing slashes in PATH elements.
4749 ./ | .// | /cC/* | \
4750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4751 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4754 # OSF1 and SCO ODT 3.0 have their own names for install.
4755 # Don't use installbsd from OSF since it installs stuff as root
4757 for ac_prog in ginstall scoinst install; do
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4760 if test $ac_prog = install &&
4761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4762 # AIX install. It has an incompatible calling convention.
4764 elif test $ac_prog = install &&
4765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4766 # program-specific install script used by HP pwplus--don't use.
4769 rm -rf conftest.one conftest.two conftest.dir
4770 echo one > conftest.one
4771 echo two > conftest.two
4773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4774 test -s conftest.one && test -s conftest.two &&
4775 test -s conftest.dir/conftest.one &&
4776 test -s conftest.dir/conftest.two
4778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4791 rm -rf conftest.one conftest.two conftest.dir
4794 if test "${ac_cv_path_install+set}" = set; then
4795 INSTALL=$ac_cv_path_install
4797 # As a last resort, use the slow shell script. Don't cache a
4798 # value for INSTALL within a source directory, because that will
4799 # break other packages using the cache if that directory is
4800 # removed, or if the value is a relative name.
4801 INSTALL=$ac_install_sh
4804 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4805 $as_echo "$INSTALL" >&6; }
4807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4808 # It thinks the first close brace ends the variable substitution.
4809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4815 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4816 $as_echo_n "checking whether ln -s works... " >&6; }
4818 if test "$LN_S" = "ln -s"; then
4819 { $as_echo "$as_me:$LINENO: result: yes" >&5
4820 $as_echo "yes" >&6; }
4822 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4823 $as_echo "no, using $LN_S" >&6; }
4826 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4829 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4830 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4831 $as_echo_n "(cached) " >&6
4833 cat >conftest.make <<\_ACEOF
4836 @echo '@@@%%%=$(MAKE)=@@@%%%'
4838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4841 eval ac_cv_prog_make_${ac_make}_set=yes;;
4843 eval ac_cv_prog_make_${ac_make}_set=no;;
4847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4848 { $as_echo "$as_me:$LINENO: result: yes" >&5
4849 $as_echo "yes" >&6; }
4852 { $as_echo "$as_me:$LINENO: result: no" >&5
4853 $as_echo "no" >&6; }
4854 SET_MAKE="MAKE=${MAKE-make}"
4857 # Check whether --enable-shared was given.
4858 if test "${enable_shared+set}" = set; then
4859 enableval=$enable_shared; p=${PACKAGE-default}
4861 yes) enable_shared=yes ;;
4862 no) enable_shared=no ;;
4865 # Look at the argument we got. We use all the common list separators.
4866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4867 for pkg in $enableval; do
4869 if test "X$pkg" = "X$p"; then
4881 # Check whether --enable-static was given.
4882 if test "${enable_static+set}" = set; then
4883 enableval=$enable_static; p=${PACKAGE-default}
4885 yes) enable_static=yes ;;
4886 no) enable_static=no ;;
4889 # Look at the argument we got. We use all the common list separators.
4890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4891 for pkg in $enableval; do
4893 if test "X$pkg" = "X$p"; then
4905 # Check whether --enable-fast-install was given.
4906 if test "${enable_fast_install+set}" = set; then
4907 enableval=$enable_fast_install; p=${PACKAGE-default}
4909 yes) enable_fast_install=yes ;;
4910 no) enable_fast_install=no ;;
4912 enable_fast_install=no
4913 # Look at the argument we got. We use all the common list separators.
4914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4915 for pkg in $enableval; do
4917 if test "X$pkg" = "X$p"; then
4918 enable_fast_install=yes
4925 enable_fast_install=yes
4929 # Make sure we can run config.sub.
4930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4931 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4932 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4933 { (exit 1); exit 1; }; }
4935 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4936 $as_echo_n "checking build system type... " >&6; }
4937 if test "${ac_cv_build+set}" = set; then
4938 $as_echo_n "(cached) " >&6
4940 ac_build_alias=$build_alias
4941 test "x$ac_build_alias" = x &&
4942 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4943 test "x$ac_build_alias" = x &&
4944 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4945 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4946 { (exit 1); exit 1; }; }
4947 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4948 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4949 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4950 { (exit 1); exit 1; }; }
4953 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4954 $as_echo "$ac_cv_build" >&6; }
4955 case $ac_cv_build in
4957 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4958 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4959 { (exit 1); exit 1; }; };;
4962 ac_save_IFS=$IFS; IFS='-'
4968 # Remember, the first character of IFS is used to create $*,
4969 # except with old shells:
4972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4975 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4976 $as_echo_n "checking host system type... " >&6; }
4977 if test "${ac_cv_host+set}" = set; then
4978 $as_echo_n "(cached) " >&6
4980 if test "x$host_alias" = x; then
4981 ac_cv_host=$ac_cv_build
4983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4984 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4985 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4986 { (exit 1); exit 1; }; }
4990 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4991 $as_echo "$ac_cv_host" >&6; }
4994 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4995 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4996 { (exit 1); exit 1; }; };;
4999 ac_save_IFS=$IFS; IFS='-'
5005 # Remember, the first character of IFS is used to create $*,
5006 # except with old shells:
5009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5012 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5014 if test "${lt_cv_path_SED+set}" = set; then
5015 $as_echo_n "(cached) " >&6
5017 # Loop through the user's path and test for sed and gsed.
5018 # Then use that list of sed's as ones to test for truncation.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for lt_ac_prog in sed gsed; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5027 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5035 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5036 # along with /bin/sed that truncates output.
5037 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5038 test ! -f $lt_ac_sed && continue
5039 cat /dev/null > conftest.in
5041 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5042 # Check for GNU sed and select it if it is found.
5043 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5044 lt_cv_path_SED=$lt_ac_sed
5048 cat conftest.in conftest.in >conftest.tmp
5049 mv conftest.tmp conftest.in
5050 cp conftest.in conftest.nl
5052 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5053 cmp -s conftest.out conftest.nl || break
5054 # 10000 chars as input seems more than enough
5055 test $lt_ac_count -gt 10 && break
5056 lt_ac_count=`expr $lt_ac_count + 1`
5057 if test $lt_ac_count -gt $lt_ac_max; then
5058 lt_ac_max=$lt_ac_count
5059 lt_cv_path_SED=$lt_ac_sed
5068 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5069 $as_echo "$SED" >&6; }
5072 # Check whether --with-gnu-ld was given.
5073 if test "${with_gnu_ld+set}" = set; then
5074 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5080 if test "$GCC" = yes; then
5081 # Check if gcc -print-prog-name=ld gives a path.
5082 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5083 $as_echo_n "checking for ld used by $CC... " >&6; }
5086 # gcc leaves a trailing carriage return which upsets mingw
5087 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5089 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5092 # Accept absolute paths.
5094 re_direlt='/[^/][^/]*/\.\./'
5095 # Canonicalize the pathname of ld
5096 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5097 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5098 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5100 test -z "$LD" && LD="$ac_prog"
5103 # If it fails, then pretend we aren't using GCC.
5107 # If it is relative, then search for the first ld in PATH.
5111 elif test "$with_gnu_ld" = yes; then
5112 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5113 $as_echo_n "checking for GNU ld... " >&6; }
5115 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5116 $as_echo_n "checking for non-GNU ld... " >&6; }
5118 if test "${lt_cv_path_LD+set}" = set; then
5119 $as_echo_n "(cached) " >&6
5121 if test -z "$LD"; then
5122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5123 for ac_dir in $PATH; do
5125 test -z "$ac_dir" && ac_dir=.
5126 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5127 lt_cv_path_LD="$ac_dir/$ac_prog"
5128 # Check to see if the program is GNU ld. I'd rather use --version,
5129 # but apparently some variants of GNU ld only accept -v.
5130 # Break only if it was the GNU/non-GNU ld that we prefer.
5131 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5132 *GNU* | *'with BFD'*)
5133 test "$with_gnu_ld" != no && break
5136 test "$with_gnu_ld" != yes && break
5143 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5148 if test -n "$LD"; then
5149 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5150 $as_echo "$LD" >&6; }
5152 { $as_echo "$as_me:$LINENO: result: no" >&5
5153 $as_echo "no" >&6; }
5155 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5156 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5157 { (exit 1); exit 1; }; }
5158 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5159 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5160 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5161 $as_echo_n "(cached) " >&6
5163 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5164 case `$LD -v 2>&1 </dev/null` in
5165 *GNU* | *'with BFD'*)
5166 lt_cv_prog_gnu_ld=yes
5169 lt_cv_prog_gnu_ld=no
5173 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5174 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5175 with_gnu_ld=$lt_cv_prog_gnu_ld
5178 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5179 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5180 if test "${lt_cv_ld_reload_flag+set}" = set; then
5181 $as_echo_n "(cached) " >&6
5183 lt_cv_ld_reload_flag='-r'
5185 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5186 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5187 reload_flag=$lt_cv_ld_reload_flag
5188 case $reload_flag in
5190 *) reload_flag=" $reload_flag" ;;
5192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5195 if test "$GCC" = yes; then
5196 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5198 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5203 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5204 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5205 if test "${lt_cv_path_NM+set}" = set; then
5206 $as_echo_n "(cached) " >&6
5208 if test -n "$NM"; then
5209 # Let the user override the test.
5212 lt_nm_to_check="${ac_tool_prefix}nm"
5213 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5214 lt_nm_to_check="$lt_nm_to_check nm"
5216 for lt_tmp_nm in $lt_nm_to_check; do
5217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5218 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5220 test -z "$ac_dir" && ac_dir=.
5221 tmp_nm="$ac_dir/$lt_tmp_nm"
5222 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5223 # Check to see if the nm accepts a BSD-compat flag.
5224 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5225 # nm: unknown option "B" ignored
5226 # Tru64's nm complains that /dev/null is an invalid object file
5227 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5228 */dev/null* | *'Invalid file or object type'*)
5229 lt_cv_path_NM="$tmp_nm -B"
5233 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5235 lt_cv_path_NM="$tmp_nm -p"
5239 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5240 continue # so that we can try to find one that supports BSD flags
5249 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5252 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5253 $as_echo "$lt_cv_path_NM" >&6; }
5256 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5257 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5258 if test "${lt_cv_deplibs_check_method+set}" = set; then
5259 $as_echo_n "(cached) " >&6
5261 lt_cv_file_magic_cmd='$MAGIC_CMD'
5262 lt_cv_file_magic_test_file=
5263 lt_cv_deplibs_check_method='unknown'
5264 # Need to set the preceding variable on all platforms that support
5265 # interlibrary dependencies.
5266 # 'none' -- dependencies not supported.
5267 # `unknown' -- same as none, but documents that we really don't know.
5268 # 'pass_all' -- all dependencies passed with no checks.
5269 # 'test_compile' -- check by making test program.
5270 # 'file_magic [[regex]]' -- check by looking for files in library path
5271 # which responds to the $file_magic_cmd with a given extended regex.
5272 # If you have `file' or equivalent on your system and you're not sure
5273 # whether `pass_all' will *always* work, you probably want this one.
5277 lt_cv_deplibs_check_method=pass_all
5281 lt_cv_deplibs_check_method=pass_all
5285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5286 lt_cv_file_magic_cmd='/usr/bin/file -L'
5287 lt_cv_file_magic_test_file=/shlib/libc.so
5291 # func_win32_libid is a shell function defined in ltmain.sh
5292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5293 lt_cv_file_magic_cmd='func_win32_libid'
5297 # Base MSYS/MinGW do not provide the 'file' command needed by
5298 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5299 # unless we find 'file', for example because we are cross-compiling.
5300 if ( file / ) >/dev/null 2>&1; then
5301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5302 lt_cv_file_magic_cmd='func_win32_libid'
5304 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5305 lt_cv_file_magic_cmd='$OBJDUMP -f'
5309 darwin* | rhapsody*)
5310 lt_cv_deplibs_check_method=pass_all
5313 freebsd* | dragonfly*)
5314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5317 # Not sure whether the presence of OpenBSD here was a mistake.
5318 # Let's accept both of them until this is cleared up.
5319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5320 lt_cv_file_magic_cmd=/usr/bin/file
5321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5325 lt_cv_deplibs_check_method=pass_all
5330 lt_cv_deplibs_check_method=pass_all
5333 hpux10.20* | hpux11*)
5334 lt_cv_file_magic_cmd=/usr/bin/file
5337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5338 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5341 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]'
5342 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5346 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5352 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5356 irix5* | irix6* | nonstopux*)
5358 *-32|*"-32 ") libmagic=32-bit;;
5359 *-n32|*"-n32 ") libmagic=N32;;
5360 *-64|*"-64 ") libmagic=64-bit;;
5361 *) libmagic=never-match;;
5363 lt_cv_deplibs_check_method=pass_all
5366 # This must be Linux ELF.
5367 linux* | k*bsd*-gnu)
5368 lt_cv_deplibs_check_method=pass_all
5372 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5381 lt_cv_file_magic_cmd=/usr/bin/file
5382 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5386 lt_cv_deplibs_check_method=unknown
5390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5397 osf3* | osf4* | osf5*)
5398 lt_cv_deplibs_check_method=pass_all
5402 lt_cv_deplibs_check_method=pass_all
5406 lt_cv_deplibs_check_method=pass_all
5410 case $host_vendor in
5412 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]'
5413 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5416 lt_cv_deplibs_check_method=pass_all
5419 lt_cv_file_magic_cmd='/bin/file'
5420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5423 lt_cv_file_magic_cmd='/bin/file'
5424 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5425 lt_cv_file_magic_test_file=/lib/libc.so
5428 lt_cv_deplibs_check_method=pass_all
5431 lt_cv_deplibs_check_method=pass_all
5436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5437 lt_cv_deplibs_check_method=pass_all
5442 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5443 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5444 file_magic_cmd=$lt_cv_file_magic_cmd
5445 deplibs_check_method=$lt_cv_deplibs_check_method
5446 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5451 # If no C compiler was specified, use CC.
5454 # If no C compiler flags were specified, use CFLAGS.
5455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5457 # Allow CC to be a program name with arguments.
5460 # Check whether --enable-libtool-lock was given.
5461 if test "${enable_libtool_lock+set}" = set; then
5462 enableval=$enable_libtool_lock;
5465 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5467 # Some flags need to be propagated to the compiler or linker for good
5471 # Find out which ABI we are using.
5472 echo 'int i;' > conftest.$ac_ext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>&5
5476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; then
5478 case `/usr/bin/file conftest.$ac_objext` in
5490 # Find out which ABI we are using.
5491 echo '#line 5491 "configure"' > conftest.$ac_ext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>&5
5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; then
5497 if test "$lt_cv_prog_gnu_ld" = yes; then
5498 case `/usr/bin/file conftest.$ac_objext` in
5500 LD="${LD-ld} -melf32bsmip"
5503 LD="${LD-ld} -melf32bmipn32"
5506 LD="${LD-ld} -melf64bmip"
5510 case `/usr/bin/file conftest.$ac_objext` in
5526 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5527 s390*-*linux*|sparc*-*linux*)
5528 # Find out which ABI we are using.
5529 echo 'int i;' > conftest.$ac_ext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>&5
5533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; then
5535 case `/usr/bin/file conftest.o` in
5538 x86_64-*kfreebsd*-gnu)
5539 LD="${LD-ld} -m elf_i386_fbsd"
5542 LD="${LD-ld} -m elf_i386"
5544 ppc64-*linux*|powerpc64-*linux*)
5545 LD="${LD-ld} -m elf32ppclinux"
5548 LD="${LD-ld} -m elf_s390"
5551 LD="${LD-ld} -m elf32_sparc"
5558 x86_64-*kfreebsd*-gnu)
5559 LD="${LD-ld} -m elf_x86_64_fbsd"
5562 LD="${LD-ld} -m elf_x86_64"
5564 ppc*-*linux*|powerpc*-*linux*)
5565 LD="${LD-ld} -m elf64ppc"
5568 LD="${LD-ld} -m elf64_s390"
5571 LD="${LD-ld} -m elf64_sparc"
5581 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5582 SAVE_CFLAGS="$CFLAGS"
5583 CFLAGS="$CFLAGS -belf"
5584 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5585 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5586 if test "${lt_cv_cc_needs_belf+set}" = set; then
5587 $as_echo_n "(cached) " >&6
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595 cat >conftest.$ac_ext <<_ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (ac_try="$ac_link"
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617 $as_echo "$ac_try_echo") >&5
5618 (eval "$ac_link") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest$ac_exeext && {
5628 test "$cross_compiling" = yes ||
5629 $as_test_x conftest$ac_exeext
5631 lt_cv_cc_needs_belf=yes
5633 $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 lt_cv_cc_needs_belf=no
5639 rm -rf conftest.dSYM
5640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5641 conftest$ac_exeext conftest.$ac_ext
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5650 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5651 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5652 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5653 CFLAGS="$SAVE_CFLAGS"
5657 # Find out which ABI we are using.
5658 echo 'int i;' > conftest.$ac_ext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>&5
5662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; then
5664 case `/usr/bin/file conftest.o` in
5666 case $lt_cv_prog_gnu_ld in
5667 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5669 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5683 need_locks="$enable_libtool_lock"
5687 for ac_header in dlfcn.h
5689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5691 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5692 $as_echo_n "checking for $ac_header... " >&6; }
5693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5694 $as_echo_n "(cached) " >&6
5696 ac_res=`eval 'as_val=${'$as_ac_Header'}
5697 $as_echo "$as_val"'`
5698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5699 $as_echo "$ac_res" >&6; }
5701 # Is the header compilable?
5702 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5703 $as_echo_n "checking $ac_header usability... " >&6; }
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 $ac_includes_default
5711 #include <$ac_header>
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5720 $as_echo "$ac_try_echo") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
5731 ac_header_compiler=yes
5733 $as_echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5736 ac_header_compiler=no
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5741 $as_echo "$ac_header_compiler" >&6; }
5743 # Is the header present?
5744 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5745 $as_echo_n "checking $ac_header presence... " >&6; }
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <$ac_header>
5754 if { (ac_try="$ac_cpp conftest.$ac_ext"
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5760 $as_echo "$ac_try_echo") >&5
5761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5763 grep -v '^ *+' conftest.er1 >conftest.err
5765 cat conftest.err >&5
5766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } >/dev/null && {
5768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5769 test ! -s conftest.err
5771 ac_header_preproc=yes
5773 $as_echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 ac_header_preproc=no
5779 rm -f conftest.err conftest.$ac_ext
5780 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5781 $as_echo "$ac_header_preproc" >&6; }
5783 # So? What about this header?
5784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5787 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5789 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5790 ac_header_preproc=yes
5793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5794 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5796 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5798 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5800 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5802 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5804 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5806 ## ----------------------------------------------- ##
5807 ## Report this to mznflapaf (at) 0pointer (dot) de ##
5808 ## ----------------------------------------------- ##
5810 ) | sed "s/^/$as_me: WARNING: /" >&2
5813 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5814 $as_echo_n "checking for $ac_header... " >&6; }
5815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5816 $as_echo_n "(cached) " >&6
5818 eval "$as_ac_Header=\$ac_header_preproc"
5820 ac_res=`eval 'as_val=${'$as_ac_Header'}
5821 $as_echo "$as_val"'`
5822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5823 $as_echo "$ac_res" >&6; }
5826 as_val=`eval 'as_val=${'$as_ac_Header'}
5827 $as_echo "$as_val"'`
5828 if test "x$as_val" = x""yes; then
5829 cat >>confdefs.h <<_ACEOF
5830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5838 ac_cpp='$CXXCPP $CPPFLAGS'
5839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5842 if test -z "$CXX"; then
5843 if test -n "$CCC"; then
5846 if test -n "$ac_tool_prefix"; then
5847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_CXX+set}" = set; then
5854 $as_echo_n "(cached) " >&6
5856 if test -n "$CXX"; then
5857 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 if test -n "$CXX"; then
5878 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5879 $as_echo "$CXX" >&6; }
5881 { $as_echo "$as_me:$LINENO: result: no" >&5
5882 $as_echo "no" >&6; }
5886 test -n "$CXX" && break
5889 if test -z "$CXX"; then
5891 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5893 # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$ac_ct_CXX"; then
5901 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_ac_ct_CXX="$ac_prog"
5911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5921 if test -n "$ac_ct_CXX"; then
5922 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5923 $as_echo "$ac_ct_CXX" >&6; }
5925 { $as_echo "$as_me:$LINENO: result: no" >&5
5926 $as_echo "no" >&6; }
5930 test -n "$ac_ct_CXX" && break
5933 if test "x$ac_ct_CXX" = x; then
5936 case $cross_compiling:$ac_tool_warned in
5938 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5948 # Provide some information about the compiler.
5949 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5952 { (ac_try="$ac_compiler --version >&5"
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5958 $as_echo "$ac_try_echo") >&5
5959 (eval "$ac_compiler --version >&5") 2>&5
5961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }
5963 { (ac_try="$ac_compiler -v >&5"
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5969 $as_echo "$ac_try_echo") >&5
5970 (eval "$ac_compiler -v >&5") 2>&5
5972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }
5974 { (ac_try="$ac_compiler -V >&5"
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981 (eval "$ac_compiler -V >&5") 2>&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }
5986 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5987 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5988 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5989 $as_echo_n "(cached) " >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6016 $as_echo "$ac_try_echo") >&5
6017 (eval "$ac_compile") 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && {
6024 test -z "$ac_cxx_werror_flag" ||
6025 test ! -s conftest.err
6026 } && test -s conftest.$ac_objext; then
6029 $as_echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6039 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6040 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6041 if test $ac_compiler_gnu = yes; then
6046 ac_test_CXXFLAGS=${CXXFLAGS+set}
6047 ac_save_CXXFLAGS=$CXXFLAGS
6048 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6049 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6050 if test "${ac_cv_prog_cxx_g+set}" = set; then
6051 $as_echo_n "(cached) " >&6
6053 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6054 ac_cxx_werror_flag=yes
6057 cat >conftest.$ac_ext <<_ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6079 $as_echo "$ac_try_echo") >&5
6080 (eval "$ac_compile") 2>conftest.er1
6082 grep -v '^ *+' conftest.er1 >conftest.err
6084 cat conftest.err >&5
6085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_cxx_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest.$ac_objext; then
6090 ac_cv_prog_cxx_g=yes
6092 $as_echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6096 cat >conftest.$ac_ext <<_ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6118 $as_echo "$ac_try_echo") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_cxx_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.$ac_objext; then
6131 $as_echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_cxx_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6169 ac_cv_prog_cxx_g=yes
6171 $as_echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6186 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6187 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6188 if test "$ac_test_CXXFLAGS" = set; then
6189 CXXFLAGS=$ac_save_CXXFLAGS
6190 elif test $ac_cv_prog_cxx_g = yes; then
6191 if test "$GXX" = yes; then
6197 if test "$GXX" = yes; then
6204 ac_cpp='$CXXCPP $CPPFLAGS'
6205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6209 depcc="$CXX" am_compiler_list=
6211 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6212 $as_echo_n "checking dependency style of $depcc... " >&6; }
6213 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6216 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6217 # We make a subdir and do the tests there. Otherwise we can end up
6218 # making bogus files that we don't know about and never remove. For
6219 # instance it was reported that on HP-UX the gcc test will end up
6220 # making a dummy file named `D' -- because `-MD' means `put the output
6223 # Copy depcomp to subdir because otherwise we won't find it if we're
6224 # using a relative directory.
6225 cp "$am_depcomp" conftest.dir
6227 # We will build objects and dependencies in a subdirectory because
6228 # it helps to detect inapplicable dependency modes. For instance
6229 # both Tru64's cc and ICC support -MD to output dependencies as a
6230 # side effect of compilation, but ICC will put the dependencies in
6231 # the current directory while Tru64 will put them in the object
6235 am_cv_CXX_dependencies_compiler_type=none
6236 if test "$am_compiler_list" = ""; then
6237 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6239 for depmode in $am_compiler_list; do
6240 # Setup a source with many dependencies, because some compilers
6241 # like to wrap large dependency lists on column 80 (with \), and
6242 # we should not choose a depcomp mode which is confused by this.
6244 # We need to recreate these files for each test, as the compiler may
6245 # overwrite some of them when testing with obscure command lines.
6246 # This happens at least with the AIX C compiler.
6248 for i in 1 2 3 4 5 6; do
6249 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6250 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6251 # Solaris 8's {/usr,}/bin/sh.
6252 touch sub/conftst$i.h
6254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6258 # after this tag, mechanisms are not by side-effect, so they'll
6259 # only be used when explicitly requested
6260 if test "x$enable_dependency_tracking" = xyes; then
6268 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6269 # mode. It turns out that the SunPro C++ compiler does not properly
6270 # handle `-M -o', and we need to detect this.
6271 if depmode=$depmode \
6272 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6274 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6275 >/dev/null 2>conftest.err &&
6276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6278 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6280 # icc doesn't choke on unknown options, it will just issue warnings
6281 # or remarks (even with -Werror). So we grep stderr for any message
6282 # that says an option was ignored or not supported.
6283 # When given -MP, icc 7.0 and 7.1 complain thusly:
6284 # icc: Command line warning: ignoring option '-M'; no argument required
6285 # The diagnosis changed in icc 8.0:
6286 # icc: Command line remark: option '-MP' not supported
6287 if (grep 'ignoring option' conftest.err ||
6288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6289 am_cv_CXX_dependencies_compiler_type=$depmode
6298 am_cv_CXX_dependencies_compiler_type=none
6302 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6303 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6304 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6307 test "x$enable_dependency_tracking" != xno \
6308 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6309 am__fastdepCXX_TRUE=
6310 am__fastdepCXX_FALSE='#'
6312 am__fastdepCXX_TRUE='#'
6313 am__fastdepCXX_FALSE=
6319 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6320 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6321 (test "X$CXX" != "Xg++"))) ; then
6323 ac_cpp='$CXXCPP $CPPFLAGS'
6324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6328 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6329 if test -z "$CXXCPP"; then
6330 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6333 # Double quotes because CXXCPP needs to be expanded
6334 for CXXCPP in "$CXX -E" "/lib/cpp"
6337 for ac_cxx_preproc_warn_flag in '' yes
6339 # Use a header file that comes with gcc, so configuring glibc
6340 # with a fresh cross-compiler works.
6341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342 # <limits.h> exists even on freestanding compilers.
6343 # On the NeXT, cc -E runs the code through the compiler's parser,
6344 # not just through cpp. "Syntax error" is here to catch this case.
6345 cat >conftest.$ac_ext <<_ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6352 # include <limits.h>
6354 # include <assert.h>
6358 if { (ac_try="$ac_cpp conftest.$ac_ext"
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6367 grep -v '^ *+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } >/dev/null && {
6372 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6373 test ! -s conftest.err
6377 $as_echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 # Broken: fails on valid input.
6384 rm -f conftest.err conftest.$ac_ext
6386 # OK, works on sane cases. Now check whether nonexistent headers
6387 # can be detected and how.
6388 cat >conftest.$ac_ext <<_ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <ac_nonexistent.h>
6396 if { (ac_try="$ac_cpp conftest.$ac_ext"
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6402 $as_echo "$ac_try_echo") >&5
6403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } >/dev/null && {
6410 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6411 test ! -s conftest.err
6413 # Broken: success on invalid input.
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 # Passes both tests.
6424 rm -f conftest.err conftest.$ac_ext
6427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6428 rm -f conftest.err conftest.$ac_ext
6429 if $ac_preproc_ok; then
6434 ac_cv_prog_CXXCPP=$CXXCPP
6437 CXXCPP=$ac_cv_prog_CXXCPP
6439 ac_cv_prog_CXXCPP=$CXXCPP
6441 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6442 $as_echo "$CXXCPP" >&6; }
6444 for ac_cxx_preproc_warn_flag in '' yes
6446 # Use a header file that comes with gcc, so configuring glibc
6447 # with a fresh cross-compiler works.
6448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6449 # <limits.h> exists even on freestanding compilers.
6450 # On the NeXT, cc -E runs the code through the compiler's parser,
6451 # not just through cpp. "Syntax error" is here to catch this case.
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6459 # include <limits.h>
6461 # include <assert.h>
6465 if { (ac_try="$ac_cpp conftest.$ac_ext"
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6471 $as_echo "$ac_try_echo") >&5
6472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } >/dev/null && {
6479 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6480 test ! -s conftest.err
6484 $as_echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 # Broken: fails on valid input.
6491 rm -f conftest.err conftest.$ac_ext
6493 # OK, works on sane cases. Now check whether nonexistent headers
6494 # can be detected and how.
6495 cat >conftest.$ac_ext <<_ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6501 #include <ac_nonexistent.h>
6503 if { (ac_try="$ac_cpp conftest.$ac_ext"
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6509 $as_echo "$ac_try_echo") >&5
6510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6512 grep -v '^ *+' conftest.er1 >conftest.err
6514 cat conftest.err >&5
6515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } >/dev/null && {
6517 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6518 test ! -s conftest.err
6520 # Broken: success on invalid input.
6523 $as_echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 # Passes both tests.
6531 rm -f conftest.err conftest.$ac_ext
6534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6535 rm -f conftest.err conftest.$ac_ext
6536 if $ac_preproc_ok; then
6539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6541 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6542 See \`config.log' for more details." >&5
6543 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6544 See \`config.log' for more details." >&2;}
6545 { (exit 1); exit 1; }; }; }
6549 ac_cpp='$CXXCPP $CPPFLAGS'
6550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6558 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6559 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6560 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6561 if test -n "$ac_tool_prefix"; then
6562 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
6564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_F77+set}" = set; then
6569 $as_echo_n "(cached) " >&6
6571 if test -n "$F77"; then
6572 ac_cv_prog_F77="$F77" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 if test -n "$F77"; then
6593 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6594 $as_echo "$F77" >&6; }
6596 { $as_echo "$as_me:$LINENO: result: no" >&5
6597 $as_echo "no" >&6; }
6601 test -n "$F77" && break
6604 if test -z "$F77"; then
6606 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
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$ac_ct_F77"; then
6616 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_ac_ct_F77="$ac_prog"
6626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6636 if test -n "$ac_ct_F77"; then
6637 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6638 $as_echo "$ac_ct_F77" >&6; }
6640 { $as_echo "$as_me:$LINENO: result: no" >&5
6641 $as_echo "no" >&6; }
6645 test -n "$ac_ct_F77" && break
6648 if test "x$ac_ct_F77" = x; then
6651 case $cross_compiling:$ac_tool_warned in
6653 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6662 # Provide some information about the compiler.
6663 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6666 { (ac_try="$ac_compiler --version >&5"
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_compiler --version >&5") 2>&5
6675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }
6677 { (ac_try="$ac_compiler -v >&5"
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683 $as_echo "$ac_try_echo") >&5
6684 (eval "$ac_compiler -v >&5") 2>&5
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }
6688 { (ac_try="$ac_compiler -V >&5"
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694 $as_echo "$ac_try_echo") >&5
6695 (eval "$ac_compiler -V >&5") 2>&5
6697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }
6701 # If we don't use `.F' as extension, the preprocessor is not run on the
6702 # input file. (Note that this only needs to work for GNU compilers.)
6705 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6706 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6707 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6708 $as_echo_n "(cached) " >&6
6710 cat >conftest.$ac_ext <<_ACEOF
6718 rm -f conftest.$ac_objext
6719 if { (ac_try="$ac_compile"
6721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6725 $as_echo "$ac_try_echo") >&5
6726 (eval "$ac_compile") 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && {
6733 test -z "$ac_f77_werror_flag" ||
6734 test ! -s conftest.err
6735 } && test -s conftest.$ac_objext; then
6738 $as_echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6748 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6749 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6751 ac_test_FFLAGS=${FFLAGS+set}
6752 ac_save_FFLAGS=$FFLAGS
6754 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6755 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6756 if test "${ac_cv_prog_f77_g+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6760 cat >conftest.$ac_ext <<_ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (ac_try="$ac_compile"
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6772 $as_echo "$ac_try_echo") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6775 grep -v '^ *+' conftest.er1 >conftest.err
6777 cat conftest.err >&5
6778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_f77_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest.$ac_objext; then
6783 ac_cv_prog_f77_g=yes
6785 $as_echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6795 $as_echo "$ac_cv_prog_f77_g" >&6; }
6796 if test "$ac_test_FFLAGS" = set; then
6797 FFLAGS=$ac_save_FFLAGS
6798 elif test $ac_cv_prog_f77_g = yes; then
6799 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6805 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6812 if test $ac_compiler_gnu = yes; then
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6826 # find the maximum length of command line arguments
6827 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6828 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6829 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6830 $as_echo_n "(cached) " >&6
6837 # On DJGPP, this test can blow up pretty badly due to problems in libc
6838 # (any single argument exceeding 2000 bytes causes a buffer overrun
6839 # during glob expansion). Even if it were fixed, the result of this
6840 # check would be larger than it should be.
6841 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6845 # Under GNU Hurd, this test is not required because there is
6846 # no limit to the length of command line arguments.
6847 # Libtool will interpret -1 as no limit whatsoever
6848 lt_cv_sys_max_cmd_len=-1;
6852 # On Win9x/ME, this test blows up -- it succeeds, but takes
6853 # about 5 minutes as the teststring grows exponentially.
6854 # Worse, since 9x/ME are not pre-emptively multitasking,
6855 # you end up with a "frozen" computer, even though with patience
6856 # the test eventually succeeds (with a max line length of 256k).
6857 # Instead, let's just punt: use the minimum linelength reported by
6858 # all of the supported platforms: 8192 (on NT/2K/XP).
6859 lt_cv_sys_max_cmd_len=8192;
6863 # On AmigaOS with pdksh, this test takes hours, literally.
6864 # So we just punt and use a minimum line length of 8192.
6865 lt_cv_sys_max_cmd_len=8192;
6868 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6869 # This has been around since 386BSD, at least. Likely further.
6870 if test -x /sbin/sysctl; then
6871 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6872 elif test -x /usr/sbin/sysctl; then
6873 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6875 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6877 # And add a safety zone
6878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6883 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6884 lt_cv_sys_max_cmd_len=196608
6888 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6889 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6890 # nice to cause kernel panics so lets avoid the loop below.
6891 # First set a reasonable default.
6892 lt_cv_sys_max_cmd_len=16384
6894 if test -x /sbin/sysconfig; then
6895 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6896 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6901 lt_cv_sys_max_cmd_len=102400
6903 sysv5* | sco5v6* | sysv4.2uw2*)
6904 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6905 if test -n "$kargmax"; then
6906 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6908 lt_cv_sys_max_cmd_len=32768
6912 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6913 if test -n "$lt_cv_sys_max_cmd_len"; then
6914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6917 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6918 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6919 = "XX$teststring") >/dev/null 2>&1 &&
6920 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6921 lt_cv_sys_max_cmd_len=$new_result &&
6922 test $i != 17 # 1/2 MB should be enough
6925 teststring=$teststring$teststring
6928 # Add a significant safety factor because C++ compilers can tack on massive
6929 # amounts of additional arguments before passing them to the linker.
6930 # It appears as though 1/2 is a usable value.
6931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6938 if test -n $lt_cv_sys_max_cmd_len ; then
6939 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6940 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6942 { $as_echo "$as_me:$LINENO: result: none" >&5
6943 $as_echo "none" >&6; }
6950 # Check for command to grab the raw symbol name followed by C symbol from nm.
6951 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6952 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6953 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6954 $as_echo_n "(cached) " >&6
6957 # These are sane defaults that work on at least a few old systems.
6958 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6960 # Character class describing NM global symbol codes.
6961 symcode='[BCDEGRST]'
6963 # Regexp to match symbols that can be accessed directly from C.
6964 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6966 # Transform an extracted symbol line into a proper C declaration
6967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6969 # Transform an extracted symbol line into symbol name and symbol address
6970 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'"
6972 # Define system-specific variables.
6977 cygwin* | mingw* | pw32*)
6978 symcode='[ABCDGISTW]'
6980 hpux*) # Its linker distinguishes data from code symbols
6981 if test "$host_cpu" = ia64; then
6982 symcode='[ABCDEGRST]'
6984 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6985 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'"
6987 linux* | k*bsd*-gnu)
6988 if test "$host_cpu" = ia64; then
6989 symcode='[ABCDGIRSTW]'
6990 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6991 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'"
6995 symcode='[BCDEGRST]'
6998 symcode='[BCDEGQRST]'
7009 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7017 # Handle CRLF in mingw tool chain
7021 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7025 # If we're using GNU nm, then use its standard symbol codes.
7026 case `$NM -V 2>&1` in
7027 *GNU* | *'with BFD'*)
7028 symcode='[ABCDGIRSTW]' ;;
7031 # Try without a prefix undercore, then with it.
7032 for ac_symprfx in "" "_"; do
7034 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7035 symxfrm="\\1 $ac_symprfx\\2 \\2"
7037 # Write the raw and C identifiers.
7038 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7040 # Check to see that the pipe works correctly.
7044 cat > conftest.$ac_ext <<EOF
7049 void nm_test_func(){}
7053 int main(){nm_test_var='a';nm_test_func();return(0);}
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; then
7061 # Now try to grab the symbols.
7063 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7064 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } && test -s "$nlist"; then
7068 # Try sorting and uniquifying the output.
7069 if sort "$nlist" | uniq > "$nlist"T; then
7070 mv -f "$nlist"T "$nlist"
7075 # Make sure that we snagged all the symbols we need.
7076 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7077 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7078 cat <<EOF > conftest.$ac_ext
7084 # Now generate the symbol file.
7085 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7087 cat <<EOF >> conftest.$ac_ext
7088 #if defined (__STDC__) && __STDC__
7089 # define lt_ptr_t void *
7091 # define lt_ptr_t char *
7095 /* The mapping between symbol names and symbols. */
7100 lt_preloaded_symbols[] =
7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7104 cat <<\EOF >> conftest.$ac_ext
7112 # Now try linking the two files.
7113 mv conftest.$ac_objext conftstm.$ac_objext
7114 lt_save_LIBS="$LIBS"
7115 lt_save_CFLAGS="$CFLAGS"
7116 LIBS="conftstm.$ac_objext"
7117 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>&5
7121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7125 LIBS="$lt_save_LIBS"
7126 CFLAGS="$lt_save_CFLAGS"
7128 echo "cannot find nm_test_func in $nlist" >&5
7131 echo "cannot find nm_test_var in $nlist" >&5
7134 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7137 echo "$progname: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7140 rm -rf conftest* conftst*
7142 # Do not use the global_symbol_pipe unless it works.
7143 if test "$pipe_works" = yes; then
7146 lt_cv_sys_global_symbol_pipe=
7152 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7153 lt_cv_sys_global_symbol_to_cdecl=
7155 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7156 { $as_echo "$as_me:$LINENO: result: failed" >&5
7157 $as_echo "failed" >&6; }
7159 { $as_echo "$as_me:$LINENO: result: ok" >&5
7160 $as_echo "ok" >&6; }
7163 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7164 $as_echo_n "checking for objdir... " >&6; }
7165 if test "${lt_cv_objdir+set}" = set; then
7166 $as_echo_n "(cached) " >&6
7168 rm -f .libs 2>/dev/null
7169 mkdir .libs 2>/dev/null
7170 if test -d .libs; then
7173 # MS-DOS does not allow filenames that begin with a dot.
7176 rmdir .libs 2>/dev/null
7178 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7179 $as_echo "$lt_cv_objdir" >&6; }
7180 objdir=$lt_cv_objdir
7188 # AIX sometimes has problems with the GCC collect2 program. For some
7189 # reason, if we set the COLLECT_NAMES environment variable, the problems
7190 # vanish in a puff of smoke.
7191 if test "X${COLLECT_NAMES+set}" != Xset; then
7193 export COLLECT_NAMES
7198 # Sed substitution that helps us do robust quoting. It backslashifies
7199 # metacharacters that are still active within double-quoted strings.
7200 Xsed='sed -e 1s/^X//'
7201 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7203 # Same as above, but do not quote variable references.
7204 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7206 # Sed substitution to delay expansion of an escaped shell variable in a
7207 # double_quote_subst'ed string.
7208 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7210 # Sed substitution to avoid accidental globbing in evaled expressions
7211 no_glob_subst='s/\*/\\\*/g'
7217 default_ofile=libtool
7218 can_build_shared=yes
7220 # All known linkers require a `.a' archive for static linking (except MSVC,
7221 # which needs '.lib').
7223 ltmain="$ac_aux_dir/ltmain.sh"
7224 ofile="$default_ofile"
7225 with_gnu_ld="$lt_cv_prog_gnu_ld"
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}ar; ac_word=$2
7230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_AR+set}" = set; then
7233 $as_echo_n "(cached) " >&6
7235 if test -n "$AR"; then
7236 ac_cv_prog_AR="$AR" # Let the user override the test.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_AR="${ac_tool_prefix}ar"
7246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 if test -n "$AR"; then
7257 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7258 $as_echo "$AR" >&6; }
7260 { $as_echo "$as_me:$LINENO: result: no" >&5
7261 $as_echo "no" >&6; }
7266 if test -z "$ac_cv_prog_AR"; then
7268 # Extract the first word of "ar", so it can be a program name with args.
7269 set dummy ar; ac_word=$2
7270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7273 $as_echo_n "(cached) " >&6
7275 if test -n "$ac_ct_AR"; then
7276 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_AR="ar"
7286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7296 if test -n "$ac_ct_AR"; then
7297 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7298 $as_echo "$ac_ct_AR" >&6; }
7300 { $as_echo "$as_me:$LINENO: result: no" >&5
7301 $as_echo "no" >&6; }
7304 if test "x$ac_ct_AR" = x; then
7307 case $cross_compiling:$ac_tool_warned in
7309 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_RANLIB+set}" = set; then
7325 $as_echo_n "(cached) " >&6
7327 if test -n "$RANLIB"; then
7328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 RANLIB=$ac_cv_prog_RANLIB
7348 if test -n "$RANLIB"; then
7349 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7350 $as_echo "$RANLIB" >&6; }
7352 { $as_echo "$as_me:$LINENO: result: no" >&5
7353 $as_echo "no" >&6; }
7358 if test -z "$ac_cv_prog_RANLIB"; then
7359 ac_ct_RANLIB=$RANLIB
7360 # Extract the first word of "ranlib", so it can be a program name with args.
7361 set dummy ranlib; ac_word=$2
7362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7365 $as_echo_n "(cached) " >&6
7367 if test -n "$ac_ct_RANLIB"; then
7368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_ac_ct_RANLIB="ranlib"
7378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7388 if test -n "$ac_ct_RANLIB"; then
7389 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7390 $as_echo "$ac_ct_RANLIB" >&6; }
7392 { $as_echo "$as_me:$LINENO: result: no" >&5
7393 $as_echo "no" >&6; }
7396 if test "x$ac_ct_RANLIB" = x; then
7399 case $cross_compiling:$ac_tool_warned in
7401 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7405 RANLIB=$ac_ct_RANLIB
7408 RANLIB="$ac_cv_prog_RANLIB"
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}strip; ac_word=$2
7414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_STRIP+set}" = set; then
7417 $as_echo_n "(cached) " >&6
7419 if test -n "$STRIP"; then
7420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 STRIP=$ac_cv_prog_STRIP
7440 if test -n "$STRIP"; then
7441 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7442 $as_echo "$STRIP" >&6; }
7444 { $as_echo "$as_me:$LINENO: result: no" >&5
7445 $as_echo "no" >&6; }
7450 if test -z "$ac_cv_prog_STRIP"; then
7452 # Extract the first word of "strip", so it can be a program name with args.
7453 set dummy strip; ac_word=$2
7454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7457 $as_echo_n "(cached) " >&6
7459 if test -n "$ac_ct_STRIP"; then
7460 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_ac_ct_STRIP="strip"
7470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7480 if test -n "$ac_ct_STRIP"; then
7481 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7482 $as_echo "$ac_ct_STRIP" >&6; }
7484 { $as_echo "$as_me:$LINENO: result: no" >&5
7485 $as_echo "no" >&6; }
7488 if test "x$ac_ct_STRIP" = x; then
7491 case $cross_compiling:$ac_tool_warned in
7493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7500 STRIP="$ac_cv_prog_STRIP"
7505 old_CFLAGS="$CFLAGS"
7507 # Set sane defaults for various variables
7508 test -z "$AR" && AR=ar
7509 test -z "$AR_FLAGS" && AR_FLAGS=cru
7510 test -z "$AS" && AS=as
7511 test -z "$CC" && CC=cc
7512 test -z "$LTCC" && LTCC=$CC
7513 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7514 test -z "$DLLTOOL" && DLLTOOL=dlltool
7515 test -z "$LD" && LD=ld
7516 test -z "$LN_S" && LN_S="ln -s"
7517 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7518 test -z "$NM" && NM=nm
7519 test -z "$SED" && SED=sed
7520 test -z "$OBJDUMP" && OBJDUMP=objdump
7521 test -z "$RANLIB" && RANLIB=:
7522 test -z "$STRIP" && STRIP=:
7523 test -z "$ac_objext" && ac_objext=o
7525 # Determine commands to create old-style static archives.
7526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7527 old_postinstall_cmds='chmod 644 $oldlib'
7528 old_postuninstall_cmds=
7530 if test -n "$RANLIB"; then
7533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7542 for cc_temp in $compiler""; do
7544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7550 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7553 # Only perform the check for file, if the check method requires it
7554 case $deplibs_check_method in
7556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7557 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7558 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7560 $as_echo_n "(cached) " >&6
7564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7567 lt_save_MAGIC_CMD="$MAGIC_CMD"
7568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570 for ac_dir in $ac_dummy; do
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/${ac_tool_prefix}file; then
7574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7575 if test -n "$file_magic_test_file"; then
7576 case $deplibs_check_method in
7578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581 $EGREP "$file_magic_regex" > /dev/null; then
7586 *** Warning: the command libtool uses to detect shared libraries,
7587 *** $file_magic_cmd, produces output that libtool cannot recognize.
7588 *** The result is that libtool may fail to recognize shared libraries
7589 *** as such. This will affect the creation of libtool libraries that
7590 *** depend on shared libraries, but programs linked with such libtool
7591 *** libraries will work regardless of this problem. Nevertheless, you
7592 *** may want to report the problem to your system manager and/or to
7593 *** bug-libtool@gnu.org
7603 MAGIC_CMD="$lt_save_MAGIC_CMD"
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609 if test -n "$MAGIC_CMD"; then
7610 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7611 $as_echo "$MAGIC_CMD" >&6; }
7613 { $as_echo "$as_me:$LINENO: result: no" >&5
7614 $as_echo "no" >&6; }
7617 if test -z "$lt_cv_path_MAGIC_CMD"; then
7618 if test -n "$ac_tool_prefix"; then
7619 { $as_echo "$as_me:$LINENO: checking for file" >&5
7620 $as_echo_n "checking for file... " >&6; }
7621 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7622 $as_echo_n "(cached) " >&6
7626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7629 lt_save_MAGIC_CMD="$MAGIC_CMD"
7630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632 for ac_dir in $ac_dummy; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/file; then
7636 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7637 if test -n "$file_magic_test_file"; then
7638 case $deplibs_check_method in
7640 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643 $EGREP "$file_magic_regex" > /dev/null; then
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such. This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem. Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7665 MAGIC_CMD="$lt_save_MAGIC_CMD"
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7673 $as_echo "$MAGIC_CMD" >&6; }
7675 { $as_echo "$as_me:$LINENO: result: no" >&5
7676 $as_echo "no" >&6; }
7690 rhapsody* | darwin*)
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7697 $as_echo_n "(cached) " >&6
7699 if test -n "$DSYMUTIL"; then
7700 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7720 if test -n "$DSYMUTIL"; then
7721 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7722 $as_echo "$DSYMUTIL" >&6; }
7724 { $as_echo "$as_me:$LINENO: result: no" >&5
7725 $as_echo "no" >&6; }
7730 if test -z "$ac_cv_prog_DSYMUTIL"; then
7731 ac_ct_DSYMUTIL=$DSYMUTIL
7732 # Extract the first word of "dsymutil", so it can be a program name with args.
7733 set dummy dsymutil; ac_word=$2
7734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7737 $as_echo_n "(cached) " >&6
7739 if test -n "$ac_ct_DSYMUTIL"; then
7740 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7762 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7764 { $as_echo "$as_me:$LINENO: result: no" >&5
7765 $as_echo "no" >&6; }
7768 if test "x$ac_ct_DSYMUTIL" = x; then
7771 case $cross_compiling:$ac_tool_warned in
7773 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7777 DSYMUTIL=$ac_ct_DSYMUTIL
7780 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7783 if test -n "$ac_tool_prefix"; then
7784 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7785 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7789 $as_echo_n "(cached) " >&6
7791 if test -n "$NMEDIT"; then
7792 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 NMEDIT=$ac_cv_prog_NMEDIT
7812 if test -n "$NMEDIT"; then
7813 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7814 $as_echo "$NMEDIT" >&6; }
7816 { $as_echo "$as_me:$LINENO: result: no" >&5
7817 $as_echo "no" >&6; }
7822 if test -z "$ac_cv_prog_NMEDIT"; then
7823 ac_ct_NMEDIT=$NMEDIT
7824 # Extract the first word of "nmedit", so it can be a program name with args.
7825 set dummy nmedit; ac_word=$2
7826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7829 $as_echo_n "(cached) " >&6
7831 if test -n "$ac_ct_NMEDIT"; then
7832 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7852 if test -n "$ac_ct_NMEDIT"; then
7853 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7854 $as_echo "$ac_ct_NMEDIT" >&6; }
7856 { $as_echo "$as_me:$LINENO: result: no" >&5
7857 $as_echo "no" >&6; }
7860 if test "x$ac_ct_NMEDIT" = x; then
7863 case $cross_compiling:$ac_tool_warned in
7865 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7869 NMEDIT=$ac_ct_NMEDIT
7872 NMEDIT="$ac_cv_prog_NMEDIT"
7876 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7877 $as_echo_n "checking for -single_module linker flag... " >&6; }
7878 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7879 $as_echo_n "(cached) " >&6
7881 lt_cv_apple_cc_single_mod=no
7882 if test -z "${LT_MULTI_MODULE}"; then
7883 # By default we will add the -single_module flag. You can override
7884 # by either setting the environment variable LT_MULTI_MODULE
7885 # non-empty at configure time, or by adding -multi_module to the
7887 echo "int foo(void){return 1;}" > conftest.c
7888 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7889 -dynamiclib ${wl}-single_module conftest.c
7890 if test -f libconftest.dylib; then
7891 lt_cv_apple_cc_single_mod=yes
7892 rm -rf libconftest.dylib*
7897 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7898 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7899 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7900 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7901 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7902 $as_echo_n "(cached) " >&6
7904 lt_cv_ld_exported_symbols_list=no
7905 save_LDFLAGS=$LDFLAGS
7906 echo "_main" > conftest.sym
7907 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7908 cat >conftest.$ac_ext <<_ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931 (eval "$ac_link") 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest$ac_exeext && {
7941 test "$cross_compiling" = yes ||
7942 $as_test_x conftest$ac_exeext
7944 lt_cv_ld_exported_symbols_list=yes
7946 $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 lt_cv_ld_exported_symbols_list=no
7952 rm -rf conftest.dSYM
7953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7954 conftest$ac_exeext conftest.$ac_ext
7955 LDFLAGS="$save_LDFLAGS"
7958 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7959 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7961 rhapsody* | darwin1.[0123])
7962 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7964 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7966 # if running on 10.5 or later, the deployment target defaults
7967 # to the OS version, if on x86, and 10.4, the deployment
7968 # target defaults to 10.4. Don't you love it?
7969 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7970 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7971 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7973 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7975 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7979 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7980 _lt_dar_single_mod='$single_module'
7982 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7983 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7985 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7987 if test "$DSYMUTIL" != ":"; then
7988 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7999 # Check whether --enable-libtool-lock was given.
8000 if test "${enable_libtool_lock+set}" = set; then
8001 enableval=$enable_libtool_lock;
8004 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8007 # Check whether --with-pic was given.
8008 if test "${with_pic+set}" = set; then
8009 withval=$with_pic; pic_mode="$withval"
8014 test -z "$pic_mode" && pic_mode=default
8016 # Use C for the default configuration in the libtool script
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026 # Source file extension for C test sources.
8029 # Object file extension for compiled C test sources.
8033 # Code to be used in simple compile tests
8034 lt_simple_compile_test_code="int some_variable = 0;"
8036 # Code to be used in simple link tests
8037 lt_simple_link_test_code='int main(){return(0);}'
8040 # If no C compiler was specified, use CC.
8043 # If no C compiler flags were specified, use CFLAGS.
8044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8046 # Allow CC to be a program name with arguments.
8050 # save warnings/boilerplate of simple test code
8051 ac_outfile=conftest.$ac_objext
8052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8054 _lt_compiler_boilerplate=`cat conftest.err`
8057 ac_outfile=conftest.$ac_objext
8058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8060 _lt_linker_boilerplate=`cat conftest.err`
8065 lt_prog_compiler_no_builtin_flag=
8067 if test "$GCC" = yes; then
8068 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8071 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8072 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8073 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8074 $as_echo_n "(cached) " >&6
8076 lt_cv_prog_compiler_rtti_exceptions=no
8077 ac_outfile=conftest.$ac_objext
8078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8079 lt_compiler_flag="-fno-rtti -fno-exceptions"
8080 # Insert the option either (1) after the last *FLAGS variable, or
8081 # (2) before a word containing "conftest.", or (3) at the end.
8082 # Note that $ac_compile itself does not contain backslashes and begins
8083 # with a dollar sign (not a hyphen), so the echo should work correctly.
8084 # The option is referenced via a variable to avoid confusing sed.
8085 lt_compile=`echo "$ac_compile" | $SED \
8086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8088 -e 's:$: $lt_compiler_flag:'`
8089 (eval echo "\"\$as_me:8089: $lt_compile\"" >&5)
8090 (eval "$lt_compile" 2>conftest.err)
8092 cat conftest.err >&5
8093 echo "$as_me:8093: \$? = $ac_status" >&5
8094 if (exit $ac_status) && test -s "$ac_outfile"; then
8095 # The compiler can only warn and ignore the option if not recognized
8096 # So say no if there are warnings other than the usual output.
8097 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8100 lt_cv_prog_compiler_rtti_exceptions=yes
8106 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8107 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8109 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8117 lt_prog_compiler_wl=
8118 lt_prog_compiler_pic=
8119 lt_prog_compiler_static=
8121 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8122 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8124 if test "$GCC" = yes; then
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_static='-static'
8130 # All AIX code is PIC.
8131 if test "$host_cpu" = ia64; then
8132 # AIX 5 now supports IA64 processor
8133 lt_prog_compiler_static='-Bstatic'
8138 # FIXME: we need at least 68020 code to build shared libraries, but
8139 # adding the `-m68020' flag to GCC prevents building anything better,
8141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8144 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8145 # PIC is the default for these OSes.
8148 mingw* | cygwin* | pw32* | os2*)
8149 # This hack is so that the source file can tell whether it is being
8150 # built for inclusion in a dll (and should export symbols for example).
8151 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8152 # (--disable-auto-import) libraries
8153 lt_prog_compiler_pic='-DDLL_EXPORT'
8156 darwin* | rhapsody*)
8157 # PIC is the default on this platform
8158 # Common symbols not allowed in MH_DYLIB files
8159 lt_prog_compiler_pic='-fno-common'
8163 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8164 # Instead, we relocate shared libraries at runtime.
8168 # Just because we use GCC doesn't mean we suddenly get shared libraries
8169 # on systems that don't support them.
8170 lt_prog_compiler_can_build_shared=no
8175 if test -d /usr/nec; then
8176 lt_prog_compiler_pic=-Kconform_pic
8181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8188 lt_prog_compiler_pic='-fPIC'
8194 lt_prog_compiler_pic='-fPIC'
8198 # PORTME Check for flag to pass linker flags through the system compiler.
8201 lt_prog_compiler_wl='-Wl,'
8202 if test "$host_cpu" = ia64; then
8203 # AIX 5 now supports IA64 processor
8204 lt_prog_compiler_static='-Bstatic'
8206 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8210 # PIC is the default on this platform
8211 # Common symbols not allowed in MH_DYLIB files
8212 case $cc_basename in
8214 lt_prog_compiler_pic='-qnocommon'
8215 lt_prog_compiler_wl='-Wl,'
8220 mingw* | cygwin* | pw32* | os2*)
8221 # This hack is so that the source file can tell whether it is being
8222 # built for inclusion in a dll (and should export symbols for example).
8223 lt_prog_compiler_pic='-DDLL_EXPORT'
8226 hpux9* | hpux10* | hpux11*)
8227 lt_prog_compiler_wl='-Wl,'
8228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8235 lt_prog_compiler_pic='+Z'
8238 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8239 lt_prog_compiler_static='${wl}-a ${wl}archive'
8242 irix5* | irix6* | nonstopux*)
8243 lt_prog_compiler_wl='-Wl,'
8244 # PIC (with -KPIC) is the default.
8245 lt_prog_compiler_static='-non_shared'
8249 lt_prog_compiler_pic='-KPIC'
8250 lt_prog_compiler_static='-Bstatic'
8253 linux* | k*bsd*-gnu)
8254 case $cc_basename in
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-static'
8260 pgcc* | pgf77* | pgf90* | pgf95*)
8261 # Portland Group compilers (*not* the Pentium gcc compiler,
8262 # which looks to be a dead project)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-fpic'
8265 lt_prog_compiler_static='-Bstatic'
8268 lt_prog_compiler_wl='-Wl,'
8269 # All Alpha code is PIC.
8270 lt_prog_compiler_static='-non_shared'
8273 case `$CC -V 2>&1 | sed 5q` in
8276 lt_prog_compiler_pic='-KPIC'
8277 lt_prog_compiler_static='-Bstatic'
8278 lt_prog_compiler_wl='-Wl,'
8281 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8282 lt_prog_compiler_pic='-KPIC'
8283 lt_prog_compiler_static='-Bstatic'
8284 lt_prog_compiler_wl=''
8291 osf3* | osf4* | osf5*)
8292 lt_prog_compiler_wl='-Wl,'
8293 # All OSF/1 code is PIC.
8294 lt_prog_compiler_static='-non_shared'
8298 lt_prog_compiler_static='-non_shared'
8302 lt_prog_compiler_pic='-KPIC'
8303 lt_prog_compiler_static='-Bstatic'
8304 case $cc_basename in
8306 lt_prog_compiler_wl='-Qoption ld ';;
8308 lt_prog_compiler_wl='-Wl,';;
8313 lt_prog_compiler_wl='-Qoption ld '
8314 lt_prog_compiler_pic='-PIC'
8315 lt_prog_compiler_static='-Bstatic'
8318 sysv4 | sysv4.2uw2* | sysv4.3*)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-KPIC'
8321 lt_prog_compiler_static='-Bstatic'
8325 if test -d /usr/nec ;then
8326 lt_prog_compiler_pic='-Kconform_pic'
8327 lt_prog_compiler_static='-Bstatic'
8331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_pic='-KPIC'
8334 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_wl='-Wl,'
8339 lt_prog_compiler_can_build_shared=no
8343 lt_prog_compiler_pic='-pic'
8344 lt_prog_compiler_static='-Bstatic'
8348 lt_prog_compiler_can_build_shared=no
8353 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8354 $as_echo "$lt_prog_compiler_pic" >&6; }
8357 # Check to make sure the PIC flag actually works.
8359 if test -n "$lt_prog_compiler_pic"; then
8361 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8363 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8364 $as_echo_n "(cached) " >&6
8366 lt_cv_prog_compiler_pic_works=no
8367 ac_outfile=conftest.$ac_objext
8368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8369 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8370 # Insert the option either (1) after the last *FLAGS variable, or
8371 # (2) before a word containing "conftest.", or (3) at the end.
8372 # Note that $ac_compile itself does not contain backslashes and begins
8373 # with a dollar sign (not a hyphen), so the echo should work correctly.
8374 # The option is referenced via a variable to avoid confusing sed.
8375 lt_compile=`echo "$ac_compile" | $SED \
8376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8378 -e 's:$: $lt_compiler_flag:'`
8379 (eval echo "\"\$as_me:8379: $lt_compile\"" >&5)
8380 (eval "$lt_compile" 2>conftest.err)
8382 cat conftest.err >&5
8383 echo "$as_me:8383: \$? = $ac_status" >&5
8384 if (exit $ac_status) && test -s "$ac_outfile"; then
8385 # The compiler can only warn and ignore the option if not recognized
8386 # So say no if there are warnings other than the usual output.
8387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8390 lt_cv_prog_compiler_pic_works=yes
8396 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8397 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8399 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8400 case $lt_prog_compiler_pic in
8402 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8405 lt_prog_compiler_pic=
8406 lt_prog_compiler_can_build_shared=no
8411 # For platforms which do not support PIC, -DPIC is meaningless:
8413 lt_prog_compiler_pic=
8416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8421 # Check to make sure the static flag actually works.
8423 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8424 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8425 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8426 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8427 $as_echo_n "(cached) " >&6
8429 lt_cv_prog_compiler_static_works=no
8430 save_LDFLAGS="$LDFLAGS"
8431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8434 # The linker can only warn and ignore the option if not recognized
8435 # So say no if there are warnings
8436 if test -s conftest.err; then
8437 # Append any errors to the config.log.
8438 cat conftest.err 1>&5
8439 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8441 if diff conftest.exp conftest.er2 >/dev/null; then
8442 lt_cv_prog_compiler_static_works=yes
8445 lt_cv_prog_compiler_static_works=yes
8449 LDFLAGS="$save_LDFLAGS"
8452 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8453 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8455 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8458 lt_prog_compiler_static=
8462 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8464 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8465 $as_echo_n "(cached) " >&6
8467 lt_cv_prog_compiler_c_o=no
8468 $rm -r conftest 2>/dev/null
8472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8474 lt_compiler_flag="-o out/conftest2.$ac_objext"
8475 # Insert the option either (1) after the last *FLAGS variable, or
8476 # (2) before a word containing "conftest.", or (3) at the end.
8477 # Note that $ac_compile itself does not contain backslashes and begins
8478 # with a dollar sign (not a hyphen), so the echo should work correctly.
8479 lt_compile=`echo "$ac_compile" | $SED \
8480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8482 -e 's:$: $lt_compiler_flag:'`
8483 (eval echo "\"\$as_me:8483: $lt_compile\"" >&5)
8484 (eval "$lt_compile" 2>out/conftest.err)
8486 cat out/conftest.err >&5
8487 echo "$as_me:8487: \$? = $ac_status" >&5
8488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8490 # The compiler can only warn and ignore the option if not recognized
8491 # So say no if there are warnings
8492 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8495 lt_cv_prog_compiler_c_o=yes
8500 # SGI C++ compiler will create directory out/ii_files/ for
8501 # template instantiation
8502 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8503 $rm out/* && rmdir out
8509 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8510 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8513 hard_links="nottested"
8514 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8515 # do not overwrite the value of need_locks provided by the user
8516 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8517 $as_echo_n "checking if we can lock with hard links... " >&6; }
8520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8522 ln conftest.a conftest.b 2>&5 || hard_links=no
8523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8525 $as_echo "$hard_links" >&6; }
8526 if test "$hard_links" = no; then
8527 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8528 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8535 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8539 allow_undefined_flag=
8540 enable_shared_with_static_runtimes=no
8542 archive_expsym_cmds=
8543 old_archive_From_new_cmds=
8544 old_archive_from_expsyms_cmds=
8545 export_dynamic_flag_spec=
8546 whole_archive_flag_spec=
8547 thread_safe_flag_spec=
8548 hardcode_libdir_flag_spec=
8549 hardcode_libdir_flag_spec_ld=
8550 hardcode_libdir_separator=
8553 hardcode_shlibpath_var=unsupported
8554 link_all_deplibs=unknown
8555 hardcode_automatic=no
8558 always_export_symbols=no
8559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8560 # include_expsyms should be a list of space-separated symbols to be *always*
8561 # included in the symbol list
8563 # exclude_expsyms can be an extended regexp of symbols to exclude
8564 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8565 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8566 # as well as any symbol that contains `d'.
8567 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8569 # platforms (ab)use it in PIC code, but their linkers get confused if
8570 # the symbol is explicitly referenced. Since portable code cannot
8571 # rely on this symbol name, it's probably fine to never include it in
8572 # preloaded symbol tables.
8573 # Exclude shared library initialization/finalization symbols.
8574 extract_expsyms_cmds=
8575 # Just being paranoid about ensuring that cc_basename is set.
8576 for cc_temp in $compiler""; do
8578 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8579 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8584 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8587 cygwin* | mingw* | pw32*)
8588 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8589 # When not using gcc, we currently assume that we are using
8590 # Microsoft Visual C++.
8591 if test "$GCC" != yes; then
8596 # we just hope/assume this is gcc and not c89 (= MSVC++)
8605 if test "$with_gnu_ld" = yes; then
8606 # If archive_cmds runs LD, not CC, wlarc should be empty
8609 # Set some defaults for GNU ld with shared library support. These
8610 # are reset later if shared libraries are not supported. Putting them
8611 # here allows them to be overridden if necessary.
8612 runpath_var=LD_RUN_PATH
8613 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8614 export_dynamic_flag_spec='${wl}--export-dynamic'
8615 # ancient GNU ld didn't support --whole-archive et. al.
8616 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8617 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8619 whole_archive_flag_spec=
8621 supports_anon_versioning=no
8622 case `$LD -v 2>/dev/null` in
8623 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8626 *\ 2.11.*) ;; # other 2.11 versions
8627 *) supports_anon_versioning=yes ;;
8630 # See if GNU ld supports shared libraries.
8633 # On AIX/PPC, the GNU linker is very broken
8634 if test "$host_cpu" != ia64; then
8638 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8639 *** to be unable to reliably create shared libraries on AIX.
8640 *** Therefore, libtool is disabling shared libraries support. If you
8641 *** really care for shared libraries, you may want to modify your PATH
8642 *** so that a non-GNU linker is found, and then restart.
8649 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)'
8650 hardcode_libdir_flag_spec='-L$libdir'
8651 hardcode_minus_L=yes
8653 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8654 # that the semantics of dynamic libraries on AmigaOS, at least up
8655 # to version 4, is to share data among multiple programs linked
8656 # with the same dynamic library. Since this doesn't match the
8657 # behavior of shared libraries on other platforms, we can't use
8663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8664 allow_undefined_flag=unsupported
8665 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8666 # support --undefined. This deserves some investigation. FIXME
8667 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673 cygwin* | mingw* | pw32*)
8674 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8675 # as there is no search path for DLLs.
8676 hardcode_libdir_flag_spec='-L$libdir'
8677 allow_undefined_flag=unsupported
8678 always_export_symbols=no
8679 enable_shared_with_static_runtimes=yes
8680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8682 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8684 # If the export-symbols file already is a .def file (1st line
8685 # is EXPORTS), use it as is; otherwise, prepend...
8686 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8687 cp $export_symbols $output_objdir/$soname.def;
8689 echo EXPORTS > $output_objdir/$soname.def;
8690 cat $export_symbols >> $output_objdir/$soname.def;
8692 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8700 hardcode_shlibpath_var=no
8701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8702 export_dynamic_flag_spec='${wl}-E'
8703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8704 # Instead, shared libraries are loaded at an image base (0x10000000 by
8705 # default) and relocated if they conflict, which is a slow very memory
8706 # consuming and fragmenting process. To avoid this, we pick a random,
8707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8708 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8710 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'
8713 gnu* | linux* | k*bsd*-gnu)
8714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8716 case $cc_basename,$host_cpu in
8717 pgcc*) # Portland Group C compiler
8718 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'
8719 tmp_addflag=' $pic_flag'
8721 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8722 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'
8723 tmp_addflag=' $pic_flag -Mnomain' ;;
8724 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8725 tmp_addflag=' -i_dynamic' ;;
8726 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8727 tmp_addflag=' -i_dynamic -nofor_main' ;;
8728 ifc* | ifort*) # Intel Fortran compiler
8729 tmp_addflag=' -nofor_main' ;;
8731 case `$CC -V 2>&1 | sed 5q` in
8732 *Sun\ C*) # Sun C 5.9
8733 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8734 tmp_sharedflag='-G' ;;
8735 *Sun\ F*) # Sun Fortran 8.3
8736 tmp_sharedflag='-G' ;;
8738 tmp_sharedflag='-shared' ;;
8740 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742 if test $supports_anon_versioning = yes; then
8743 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8745 $echo "local: *; };" >> $output_objdir/$libname.ver~
8746 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8755 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8769 *** create shared libraries on Solaris systems. Therefore, libtool
8770 *** is disabling shared libraries support. We urge you to upgrade GNU
8771 *** binutils to release 2.9.1 or newer. Another option is to modify
8772 *** your PATH or compiler configuration so that the native linker is
8773 *** used, and then restart.
8776 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8785 case `$LD -v 2>&1` in
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8790 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8791 *** reliably create shared libraries on SCO systems. Therefore, libtool
8792 *** is disabling shared libraries support. We urge you to upgrade GNU
8793 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8794 *** your PATH or compiler configuration so that the native linker is
8795 *** used, and then restart.
8800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8801 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8812 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8815 hardcode_shlibpath_var=no
8819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8828 if test "$ld_shlibs" = no; then
8830 hardcode_libdir_flag_spec=
8831 export_dynamic_flag_spec=
8832 whole_archive_flag_spec=
8835 # PORTME fill in a description of your system's linker (not GNU ld)
8838 allow_undefined_flag=unsupported
8839 always_export_symbols=yes
8840 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'
8841 # Note: this linker hardcodes the directories in LIBPATH if there
8842 # are no directories specified by -L.
8843 hardcode_minus_L=yes
8844 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8845 # Neither direct hardcoding nor static linking is supported with a
8847 hardcode_direct=unsupported
8852 if test "$host_cpu" = ia64; then
8853 # On IA64, the linker does run time linking by default, so we don't
8854 # have to do anything special.
8855 aix_use_runtimelinking=no
8856 exp_sym_flag='-Bexport'
8859 # If we're using GNU nm, then we don't want the "-C" option.
8860 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8862 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'
8864 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'
8866 aix_use_runtimelinking=no
8868 # Test if we are trying to use run time linking or normal
8869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8870 # need to do runtime linking.
8871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8872 for ld_flag in $LDFLAGS; do
8873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8874 aix_use_runtimelinking=yes
8881 exp_sym_flag='-bexport'
8882 no_entry_flag='-bnoentry'
8885 # When large executables or shared objects are built, AIX ld can
8886 # have problems creating the table of contents. If linking a library
8887 # or program results in "error TOC overflow" add -mminimal-toc to
8888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8893 hardcode_libdir_separator=':'
8894 link_all_deplibs=yes
8896 if test "$GCC" = yes; then
8897 case $host_os in aix4.[012]|aix4.[012].*)
8898 # We only want to do this on AIX 4.2 and lower, the check
8899 # below for broken collect2 doesn't work under 4.3+
8900 collect2name=`${CC} -print-prog-name=collect2`
8901 if test -f "$collect2name" && \
8902 strings "$collect2name" | grep resolve_lib_name >/dev/null
8904 # We have reworked collect2
8907 # We have old collect2
8908 hardcode_direct=unsupported
8909 # It fails to find uninstalled libraries when the uninstalled
8910 # path is not listed in the libpath. Setting hardcode_minus_L
8911 # to unsupported forces relinking
8912 hardcode_minus_L=yes
8913 hardcode_libdir_flag_spec='-L$libdir'
8914 hardcode_libdir_separator=
8918 shared_flag='-shared'
8919 if test "$aix_use_runtimelinking" = yes; then
8920 shared_flag="$shared_flag "'${wl}-G'
8924 if test "$host_cpu" = ia64; then
8925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8926 # chokes on -Wl,-G. The following line is correct:
8929 if test "$aix_use_runtimelinking" = yes; then
8930 shared_flag='${wl}-G'
8932 shared_flag='${wl}-bM:SRE'
8937 # It seems that -bexpall does not export symbols beginning with
8938 # underscore (_), so it is better to generate a list of symbols to export.
8939 always_export_symbols=yes
8940 if test "$aix_use_runtimelinking" = yes; then
8941 # Warning - without using the other runtime loading flags (-brtl),
8942 # -berok will link without error, but may produce a broken library.
8943 allow_undefined_flag='-berok'
8944 # Determine the default libpath from the value encoded in an empty executable.
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (ac_try="$ac_link"
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8967 $as_echo "$ac_try_echo") >&5
8968 (eval "$ac_link") 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } && {
8975 test -z "$ac_c_werror_flag" ||
8976 test ! -s conftest.err
8977 } && test -s conftest$ac_exeext && {
8978 test "$cross_compiling" = yes ||
8979 $as_test_x conftest$ac_exeext
8982 lt_aix_libpath_sed='
8983 /Import File Strings/,/^$/ {
8989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8990 # Check for a 64-bit object if we didn't find anything.
8991 if test -z "$aix_libpath"; then
8992 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8995 $as_echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
9001 rm -rf conftest.dSYM
9002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9003 conftest$ac_exeext conftest.$ac_ext
9004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9007 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"
9009 if test "$host_cpu" = ia64; then
9010 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9011 allow_undefined_flag="-z nodefs"
9012 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"
9014 # Determine the default libpath from the value encoded in an empty executable.
9015 cat >conftest.$ac_ext <<_ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (ac_try="$ac_link"
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037 $as_echo "$ac_try_echo") >&5
9038 (eval "$ac_link") 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest$ac_exeext && {
9048 test "$cross_compiling" = yes ||
9049 $as_test_x conftest$ac_exeext
9052 lt_aix_libpath_sed='
9053 /Import File Strings/,/^$/ {
9059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9060 # Check for a 64-bit object if we didn't find anything.
9061 if test -z "$aix_libpath"; then
9062 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9065 $as_echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9071 rm -rf conftest.dSYM
9072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9073 conftest$ac_exeext conftest.$ac_ext
9074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9076 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9077 # Warning - without using the other run time loading flags,
9078 # -berok will link without error, but may produce a broken library.
9079 no_undefined_flag=' ${wl}-bernotok'
9080 allow_undefined_flag=' ${wl}-berok'
9081 # Exported symbols can be pulled into shared objects from archives
9082 whole_archive_flag_spec='$convenience'
9083 archive_cmds_need_lc=yes
9084 # This is similar to how AIX traditionally builds its shared libraries.
9085 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'
9091 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)'
9092 hardcode_libdir_flag_spec='-L$libdir'
9093 hardcode_minus_L=yes
9094 # see comment about different semantics on the GNU ld section
9099 export_dynamic_flag_spec=-rdynamic
9102 cygwin* | mingw* | pw32*)
9103 # When not using gcc, we currently assume that we are using
9104 # Microsoft Visual C++.
9105 # hardcode_libdir_flag_spec is actually meaningless, as there is
9106 # no search path for DLLs.
9107 hardcode_libdir_flag_spec=' '
9108 allow_undefined_flag=unsupported
9109 # Tell ltmain to make .lib files, not .a files.
9111 # Tell ltmain to make .dll files, not .so files.
9113 # FIXME: Setting linknames here is a bad hack.
9114 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9115 # The linker will automatically build a .lib file if we build a DLL.
9116 old_archive_From_new_cmds='true'
9117 # FIXME: Should let the user specify the lib program.
9118 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9119 fix_srcfile_path='`cygpath -w "$srcfile"`'
9120 enable_shared_with_static_runtimes=yes
9123 darwin* | rhapsody*)
9125 rhapsody* | darwin1.[012])
9126 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9130 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9132 case ${MACOSX_DEPLOYMENT_TARGET} in
9134 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9137 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9143 archive_cmds_need_lc=no
9145 hardcode_automatic=yes
9146 hardcode_shlibpath_var=unsupported
9147 whole_archive_flag_spec=''
9148 link_all_deplibs=yes
9149 if test "$GCC" = yes ; then
9150 output_verbose_link_cmd='echo'
9151 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9152 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9153 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9154 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9156 case $cc_basename in
9158 output_verbose_link_cmd='echo'
9159 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9160 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9161 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9162 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9163 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}'
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_libdir_flag_spec='-L$libdir'
9175 hardcode_shlibpath_var=no
9182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9183 # support. Future versions do this automatically, but an explicit c++rt0.o
9184 # does not break anything, and helps significantly (at the cost of a little
9187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9188 hardcode_libdir_flag_spec='-R$libdir'
9190 hardcode_shlibpath_var=no
9193 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9197 hardcode_minus_L=yes
9198 hardcode_shlibpath_var=no
9201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9202 freebsd* | dragonfly*)
9203 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9204 hardcode_libdir_flag_spec='-R$libdir'
9206 hardcode_shlibpath_var=no
9210 if test "$GCC" = yes; then
9211 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'
9213 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'
9215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9216 hardcode_libdir_separator=:
9219 # hardcode_minus_L: Not really in the search PATH,
9220 # but as the default location of the library.
9221 hardcode_minus_L=yes
9222 export_dynamic_flag_spec='${wl}-E'
9226 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9229 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9231 if test "$with_gnu_ld" = no; then
9232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9233 hardcode_libdir_separator=:
9236 export_dynamic_flag_spec='${wl}-E'
9238 # hardcode_minus_L: Not really in the search PATH,
9239 # but as the default location of the library.
9240 hardcode_minus_L=yes
9245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9248 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9251 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9254 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9260 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9270 if test "$with_gnu_ld" = no; then
9271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272 hardcode_libdir_separator=:
9276 hardcode_libdir_flag_spec_ld='+b $libdir'
9278 hardcode_shlibpath_var=no
9282 export_dynamic_flag_spec='${wl}-E'
9284 # hardcode_minus_L: Not really in the search PATH,
9285 # but as the default location of the library.
9286 hardcode_minus_L=yes
9292 irix5* | irix6* | nonstopux*)
9293 if test "$GCC" = yes; then
9294 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'
9296 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'
9297 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300 hardcode_libdir_separator=:
9301 link_all_deplibs=yes
9305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9308 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9310 hardcode_libdir_flag_spec='-R$libdir'
9312 hardcode_shlibpath_var=no
9316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319 hardcode_libdir_separator=:
9320 hardcode_shlibpath_var=no
9324 if test -f /usr/libexec/ld.so; then
9326 hardcode_shlibpath_var=no
9327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9330 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9331 export_dynamic_flag_spec='${wl}-E'
9334 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_libdir_flag_spec='-R$libdir'
9339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_minus_L=yes
9352 allow_undefined_flag=unsupported
9353 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'
9354 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9358 if test "$GCC" = yes; then
9359 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9360 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'
9362 allow_undefined_flag=' -expect_unresolved \*'
9363 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'
9365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366 hardcode_libdir_separator=:
9369 osf4* | osf5*) # as osf3* with the addition of -msym flag
9370 if test "$GCC" = yes; then
9371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9372 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'
9373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9375 allow_undefined_flag=' -expect_unresolved \*'
9376 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'
9377 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9378 $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'
9380 # Both c and cxx compiler support -rpath directly
9381 hardcode_libdir_flag_spec='-rpath $libdir'
9383 hardcode_libdir_separator=:
9387 no_undefined_flag=' -z text'
9388 if test "$GCC" = yes; then
9390 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9392 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9395 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9399 hardcode_libdir_flag_spec='-R$libdir'
9400 hardcode_shlibpath_var=no
9402 solaris2.[0-5] | solaris2.[0-5].*) ;;
9404 # The compiler driver will combine and reorder linker options,
9405 # but understands `-z linker_flag'. GCC discards it without `$wl',
9406 # but is careful enough not to reorder.
9407 # Supported since Solaris 2.6 (maybe 2.5.1?)
9408 if test "$GCC" = yes; then
9409 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9411 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9415 link_all_deplibs=yes
9419 if test "x$host_vendor" = xsequent; then
9420 # Use $CC to link under sequent, because it throws in some extra .o
9421 # files that make .init and .fini sections work.
9422 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9426 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_minus_L=yes
9429 hardcode_shlibpath_var=no
9433 case $host_vendor in
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=yes # is this really true???
9439 ## LD is ld it makes a PLAMLIB
9440 ## CC just makes a GrossModule.
9441 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9442 reload_cmds='$CC -r -o $output$reload_objs'
9446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9450 runpath_var='LD_RUN_PATH'
9451 hardcode_shlibpath_var=no
9455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_shlibpath_var=no
9457 export_dynamic_flag_spec='-Bexport'
9461 if test -d /usr/nec; then
9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463 hardcode_shlibpath_var=no
9464 runpath_var=LD_RUN_PATH
9465 hardcode_runpath_var=yes
9470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9471 no_undefined_flag='${wl}-z,text'
9472 archive_cmds_need_lc=no
9473 hardcode_shlibpath_var=no
9474 runpath_var='LD_RUN_PATH'
9476 if test "$GCC" = yes; then
9477 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 sysv5* | sco3.2v5* | sco5v6*)
9486 # Note: We can NOT use -z defs as we might desire, because we do not
9487 # link with -lc, and that would cause any symbols used from libc to
9488 # always be unresolved, which means just about no library would
9489 # ever link correctly. If we're not using GNU ld we use -z text
9490 # though, which does catch some bad symbols but isn't as heavy-handed
9492 no_undefined_flag='${wl}-z,text'
9493 allow_undefined_flag='${wl}-z,nodefs'
9494 archive_cmds_need_lc=no
9495 hardcode_shlibpath_var=no
9496 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9497 hardcode_libdir_separator=':'
9498 link_all_deplibs=yes
9499 export_dynamic_flag_spec='${wl}-Bexport'
9500 runpath_var='LD_RUN_PATH'
9502 if test "$GCC" = yes; then
9503 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_shlibpath_var=no
9523 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9524 $as_echo "$ld_shlibs" >&6; }
9525 test "$ld_shlibs" = no && can_build_shared=no
9528 # Do we need to explicitly link libc?
9530 case "x$archive_cmds_need_lc" in
9532 # Assume -lc should be added
9533 archive_cmds_need_lc=yes
9535 if test "$enable_shared" = yes && test "$GCC" = yes; then
9536 case $archive_cmds in
9538 # FIXME: we may have to deal with multi-command sequences.
9541 # Test whether the compiler implicitly links with -lc since on some
9542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9543 # to ld, don't add -lc before -lgcc.
9544 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550 (eval $ac_compile) 2>&5
9552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } 2>conftest.err; then
9556 libobjs=conftest.$ac_objext
9558 wl=$lt_prog_compiler_wl
9559 pic_flag=$lt_prog_compiler_pic
9565 lt_save_allow_undefined_flag=$allow_undefined_flag
9566 allow_undefined_flag=
9567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9568 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }
9573 archive_cmds_need_lc=no
9575 archive_cmds_need_lc=yes
9577 allow_undefined_flag=$lt_save_allow_undefined_flag
9579 cat conftest.err 1>&5
9582 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9583 $as_echo "$archive_cmds_need_lc" >&6; }
9590 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9593 libname_spec='lib$name'
9601 shlibpath_overrides_runpath=unknown
9603 dynamic_linker="$host_os ld.so"
9604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9606 if test "$GCC" = yes; then
9608 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9609 *) lt_awk_arg="/^libraries:/" ;;
9611 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9612 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9613 # if the path contains ";" then we assume it to be the separator
9614 # otherwise default to the standard path separator (i.e. ":") - it is
9615 # assumed that no part of a normal pathname contains ";" but that should
9616 # okay in the real world where ";" in dirpaths is itself problematic.
9617 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9619 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9621 # Ok, now we have the path, separated by spaces, we can step through it
9622 # and add multilib dir if necessary.
9623 lt_tmp_lt_search_path_spec=
9624 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9625 for lt_sys_path in $lt_search_path_spec; do
9626 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9627 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9629 test -d "$lt_sys_path" && \
9630 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9633 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9634 BEGIN {RS=" "; FS="/|\n";} {
9637 for (lt_i = NF; lt_i > 0; lt_i--) {
9638 if ($lt_i != "" && $lt_i != ".") {
9639 if ($lt_i == "..") {
9642 if (lt_count == 0) {
9643 lt_foo="/" $lt_i lt_foo;
9650 if (lt_foo != "") { lt_freq[lt_foo]++; }
9651 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9653 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9655 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9657 need_lib_prefix=unknown
9658 hardcode_into_libs=no
9660 # when you set need_version to no, make sure it does not cause -set_version
9661 # flags to be left without arguments
9662 need_version=unknown
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9668 shlibpath_var=LIBPATH
9670 # AIX 3 has no versioning support, so we append a major version to the name.
9671 soname_spec='${libname}${release}${shared_ext}$major'
9678 hardcode_into_libs=yes
9679 if test "$host_cpu" = ia64; then
9680 # AIX 5 supports IA64
9681 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9682 shlibpath_var=LD_LIBRARY_PATH
9684 # With GCC up to 2.95.x, collect2 would create an import file
9685 # for dependence libraries. The import file would start with
9686 # the line `#! .'. This would cause the generated library to
9687 # depend on `.', always an invalid library. This was fixed in
9688 # development snapshots of GCC prior to 3.0.
9690 aix4 | aix4.[01] | aix4.[01].*)
9691 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9693 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9700 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9701 # soname into executable. Probably we can add versioning support to
9702 # collect2, so additional links can be useful in future.
9703 if test "$aix_use_runtimelinking" = yes; then
9704 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9705 # instead of lib<name>.a to let people know that these are not
9706 # typical AIX shared libraries.
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709 # We preserve .a as extension for shared libraries through AIX4.2
9710 # and later when we are not doing run time linking.
9711 library_names_spec='${libname}${release}.a $libname.a'
9712 soname_spec='${libname}${release}${shared_ext}$major'
9714 shlibpath_var=LIBPATH
9719 library_names_spec='$libname.ixlibrary $libname.a'
9720 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9721 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'
9725 library_names_spec='${libname}${shared_ext}'
9726 dynamic_linker="$host_os ld.so"
9727 shlibpath_var=LIBRARY_PATH
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9736 shlibpath_var=LD_LIBRARY_PATH
9737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9739 # the default ld.so.conf also contains /usr/contrib/lib and
9740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9741 # libtool to hard-code these into programs
9744 cygwin* | mingw* | pw32*)
9745 version_type=windows
9750 case $GCC,$host_os in
9751 yes,cygwin* | yes,mingw* | yes,pw32*)
9752 library_names_spec='$libname.dll.a'
9753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9754 postinstall_cmds='base_file=`basename \${file}`~
9755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9756 dldir=$destdir/`dirname \$dlpath`~
9757 test -d \$dldir || mkdir -p \$dldir~
9758 $install_prog $dir/$dlname \$dldir/$dlname~
9759 chmod a+x \$dldir/$dlname'
9760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9761 dlpath=$dir/\$dldll~
9763 shlibpath_overrides_runpath=yes
9767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9772 # MinGW DLLs use traditional 'lib' prefix
9773 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9775 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9776 # It is most probably a Windows format PATH printed by
9777 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9778 # path with ; separators, and with drive letters. We can handle the
9779 # drive letters (cygwin fileutils understands them), so leave them,
9780 # especially as we might pass files found there to a mingw objdump,
9781 # which wouldn't understand a cygwinified path. Ahh.
9782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9788 # pw32 DLLs use 'pw' prefix rather than 'lib'
9789 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9795 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9798 dynamic_linker='Win32 ld.exe'
9799 # FIXME: first we should search . and the directory the executable is in
9803 darwin* | rhapsody*)
9804 dynamic_linker="$host_os dyld"
9808 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9809 soname_spec='${libname}${release}${major}$shared_ext'
9810 shlibpath_overrides_runpath=yes
9811 shlibpath_var=DYLD_LIBRARY_PATH
9812 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9815 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 shlibpath_var=LD_LIBRARY_PATH
9831 freebsd* | dragonfly*)
9832 # DragonFly does not have aout. When/if they implement a new
9833 # versioning mechanism, adjust this.
9834 if test -x /usr/bin/objformat; then
9835 objformat=`/usr/bin/objformat`
9838 freebsd[123]*) objformat=aout ;;
9842 version_type=freebsd-$objformat
9843 case $version_type in
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9854 shlibpath_var=LD_LIBRARY_PATH
9857 shlibpath_overrides_runpath=yes
9859 freebsd3.[01]* | freebsdelf3.[01]*)
9860 shlibpath_overrides_runpath=yes
9861 hardcode_into_libs=yes
9863 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9864 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9865 shlibpath_overrides_runpath=no
9866 hardcode_into_libs=yes
9868 *) # from 4.6 on, and DragonFly
9869 shlibpath_overrides_runpath=yes
9870 hardcode_into_libs=yes
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 hardcode_into_libs=yes
9885 hpux9* | hpux10* | hpux11*)
9886 # Give a soname corresponding to the major version so that dld.sl refuses to
9887 # link against other versions.
9894 hardcode_into_libs=yes
9895 dynamic_linker="$host_os dld.so"
9896 shlibpath_var=LD_LIBRARY_PATH
9897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 soname_spec='${libname}${release}${shared_ext}$major'
9900 if test "X$HPUX_IA64_MODE" = X32; then
9901 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9903 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9909 hardcode_into_libs=yes
9910 dynamic_linker="$host_os dld.sl"
9911 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9920 dynamic_linker="$host_os dld.sl"
9921 shlibpath_var=SHLIB_PATH
9922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9927 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9928 postinstall_cmds='chmod 555 $lib'
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=no
9940 hardcode_into_libs=yes
9943 irix5* | irix6* | nonstopux*)
9945 nonstopux*) version_type=nonstopux ;;
9947 if test "$lt_cv_prog_gnu_ld" = yes; then
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9958 irix5* | nonstopux*)
9962 case $LD in # libtool.m4 will add one of these switches to LD
9963 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9964 libsuff= shlibsuff= libmagic=32-bit;;
9965 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9966 libsuff=32 shlibsuff=N32 libmagic=N32;;
9967 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9968 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9969 *) libsuff= shlibsuff= libmagic=never-match;;
9973 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9974 shlibpath_overrides_runpath=no
9975 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9976 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9977 hardcode_into_libs=yes
9980 # No shared lib support for Linux oldld, aout, or coff.
9981 linux*oldld* | linux*aout* | linux*coff*)
9985 # This must be Linux ELF.
9986 linux* | k*bsd*-gnu)
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 shlibpath_overrides_runpath=no
9995 # This implies no fast_install, which is unacceptable.
9996 # Some rework will be needed to allow for fast_install
9997 # before this can be enabled.
9998 hardcode_into_libs=yes
9999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10002 # Append ld.so.conf contents to the search path
10003 if test -f /etc/ld.so.conf; then
10004 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10005 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10008 # We used to test for /lib/ld.so.1 and disable shared libraries on
10009 # powerpc, because MkLinux only supported shared libraries with the
10010 # GNU dynamic linker. Since this was broken with cross compilers,
10011 # most powerpc-linux boxes support dynamic linking these days and
10012 # people can always --disable-shared, the test was removed, and we
10013 # assume the GNU/Linux dynamic linker is in use.
10014 dynamic_linker='GNU/Linux ld.so'
10021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10024 dynamic_linker='NetBSD (a.out) ld.so'
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 dynamic_linker='NetBSD ld.elf_so'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 shlibpath_overrides_runpath=yes
10032 hardcode_into_libs=yes
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=yes
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=yes
10054 sys_lib_dlsearch_path_spec="/usr/lib"
10056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10058 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10059 *) need_version=no ;;
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10066 openbsd2.[89] | openbsd2.[89].*)
10067 shlibpath_overrides_runpath=no
10070 shlibpath_overrides_runpath=yes
10074 shlibpath_overrides_runpath=yes
10079 libname_spec='$name'
10082 library_names_spec='$libname${shared_ext} $libname.a'
10083 dynamic_linker='OS/2 ld.exe'
10084 shlibpath_var=LIBPATH
10087 osf3* | osf4* | osf5*)
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107 soname_spec='${libname}${release}${shared_ext}$major'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 shlibpath_overrides_runpath=yes
10110 hardcode_into_libs=yes
10111 # ldd complains unless libraries are executable
10112 postinstall_cmds='chmod +x $lib'
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes
10121 if test "$with_gnu_ld" = yes; then
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 case $host_vendor in
10134 shlibpath_overrides_runpath=no
10136 export_dynamic_flag_spec='${wl}-Blargedynsym'
10137 runpath_var=LD_RUN_PATH
10145 shlibpath_overrides_runpath=no
10146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10152 if test -d /usr/nec ;then
10154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10155 soname_spec='$libname${shared_ext}.$major'
10156 shlibpath_var=LD_LIBRARY_PATH
10160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10161 version_type=freebsd-elf
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 hardcode_into_libs=yes
10168 if test "$with_gnu_ld" = yes; then
10169 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10170 shlibpath_overrides_runpath=no
10172 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10173 shlibpath_overrides_runpath=yes
10176 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10180 sys_lib_dlsearch_path_spec='/usr/lib'
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 shlibpath_var=LD_LIBRARY_PATH
10194 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10195 $as_echo "$dynamic_linker" >&6; }
10196 test "$dynamic_linker" = no && can_build_shared=no
10198 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10199 $as_echo_n "(cached) " >&6
10201 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10204 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10205 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10206 $as_echo_n "(cached) " >&6
10208 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10211 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10214 if test "$GCC" = yes; then
10215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10218 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10219 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10221 if test -n "$hardcode_libdir_flag_spec" || \
10222 test -n "$runpath_var" || \
10223 test "X$hardcode_automatic" = "Xyes" ; then
10225 # We can hardcode non-existant directories.
10226 if test "$hardcode_direct" != no &&
10227 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10228 # have to relink, otherwise we might link with an installed library
10229 # when we should be linking with a yet-to-be-installed one
10230 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10231 test "$hardcode_minus_L" != no; then
10232 # Linking always hardcodes the temporary library directory.
10233 hardcode_action=relink
10235 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10236 hardcode_action=immediate
10239 # We cannot hardcode anything, or else we can only hardcode existing
10241 hardcode_action=unsupported
10243 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10244 $as_echo "$hardcode_action" >&6; }
10246 if test "$hardcode_action" = relink; then
10247 # Fast installation is not supported
10248 enable_fast_install=no
10249 elif test "$shlibpath_overrides_runpath" = yes ||
10250 test "$enable_shared" = no; then
10251 # Fast installation is not necessary
10252 enable_fast_install=needless
10257 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10258 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10259 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10260 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10261 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10262 { $as_echo "$as_me:$LINENO: result: yes" >&5
10263 $as_echo "yes" >&6; }
10265 # FIXME - insert some real tests, host_os isn't really good enough
10268 if test -n "$STRIP" ; then
10269 striplib="$STRIP -x"
10270 old_striplib="$STRIP -S"
10271 { $as_echo "$as_me:$LINENO: result: yes" >&5
10272 $as_echo "yes" >&6; }
10274 { $as_echo "$as_me:$LINENO: result: no" >&5
10275 $as_echo "no" >&6; }
10279 { $as_echo "$as_me:$LINENO: result: no" >&5
10280 $as_echo "no" >&6; }
10285 if test "x$enable_dlopen" != xyes; then
10286 enable_dlopen=unknown
10287 enable_dlopen_self=unknown
10288 enable_dlopen_self_static=unknown
10295 lt_cv_dlopen="load_add_on"
10297 lt_cv_dlopen_self=yes
10301 lt_cv_dlopen="LoadLibrary"
10306 lt_cv_dlopen="dlopen"
10311 # if libdl is installed we need to link against it
10312 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10315 $as_echo_n "(cached) " >&6
10317 ac_check_lib_save_LIBS=$LIBS
10319 cat >conftest.$ac_ext <<_ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10326 /* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (ac_try="$ac_link"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10348 $as_echo "$ac_try_echo") >&5
10349 (eval "$ac_link") 2>conftest.er1
10351 grep -v '^ *+' conftest.er1 >conftest.err
10353 cat conftest.err >&5
10354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } && {
10356 test -z "$ac_c_werror_flag" ||
10357 test ! -s conftest.err
10358 } && test -s conftest$ac_exeext && {
10359 test "$cross_compiling" = yes ||
10360 $as_test_x conftest$ac_exeext
10362 ac_cv_lib_dl_dlopen=yes
10364 $as_echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10367 ac_cv_lib_dl_dlopen=no
10370 rm -rf conftest.dSYM
10371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10376 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10377 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10381 lt_cv_dlopen="dyld"
10383 lt_cv_dlopen_self=yes
10390 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10391 $as_echo_n "checking for shl_load... " >&6; }
10392 if test "${ac_cv_func_shl_load+set}" = set; then
10393 $as_echo_n "(cached) " >&6
10395 cat >conftest.$ac_ext <<_ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10403 #define shl_load innocuous_shl_load
10405 /* System header to define __stub macros and hopefully few prototypes,
10406 which can conflict with char shl_load (); below.
10407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408 <limits.h> exists even on freestanding compilers. */
10411 # include <limits.h>
10413 # include <assert.h>
10418 /* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10425 /* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428 #if defined __stub_shl_load || defined __stub___shl_load
10435 return shl_load ();
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10447 $as_echo "$ac_try_echo") >&5
10448 (eval "$ac_link") 2>conftest.er1
10450 grep -v '^ *+' conftest.er1 >conftest.err
10452 cat conftest.err >&5
10453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 } && test -s conftest$ac_exeext && {
10458 test "$cross_compiling" = yes ||
10459 $as_test_x conftest$ac_exeext
10461 ac_cv_func_shl_load=yes
10463 $as_echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10466 ac_cv_func_shl_load=no
10469 rm -rf conftest.dSYM
10470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10473 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10474 $as_echo "$ac_cv_func_shl_load" >&6; }
10475 if test "x$ac_cv_func_shl_load" = x""yes; then
10476 lt_cv_dlopen="shl_load"
10478 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10479 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10480 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10481 $as_echo_n "(cached) " >&6
10483 ac_check_lib_save_LIBS=$LIBS
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10502 return shl_load ();
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10514 $as_echo "$ac_try_echo") >&5
10515 (eval "$ac_link") 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext && {
10525 test "$cross_compiling" = yes ||
10526 $as_test_x conftest$ac_exeext
10528 ac_cv_lib_dld_shl_load=yes
10530 $as_echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10533 ac_cv_lib_dld_shl_load=no
10536 rm -rf conftest.dSYM
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10542 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10543 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10544 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10546 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10547 $as_echo_n "checking for dlopen... " >&6; }
10548 if test "${ac_cv_func_dlopen+set}" = set; then
10549 $as_echo_n "(cached) " >&6
10551 cat >conftest.$ac_ext <<_ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10559 #define dlopen innocuous_dlopen
10561 /* System header to define __stub macros and hopefully few prototypes,
10562 which can conflict with char dlopen (); below.
10563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10564 <limits.h> exists even on freestanding compilers. */
10567 # include <limits.h>
10569 # include <assert.h>
10574 /* Override any GCC internal prototype to avoid an error.
10575 Use char because int might match the return type of a GCC
10576 builtin and then its argument prototype would still apply. */
10581 /* The GNU C library defines this for functions which it implements
10582 to always fail with ENOSYS. Some functions are actually named
10583 something starting with __ and the normal name is an alias. */
10584 #if defined __stub_dlopen || defined __stub___dlopen
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10603 $as_echo "$ac_try_echo") >&5
10604 (eval "$ac_link") 2>conftest.er1
10606 grep -v '^ *+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext && {
10614 test "$cross_compiling" = yes ||
10615 $as_test_x conftest$ac_exeext
10617 ac_cv_func_dlopen=yes
10619 $as_echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_func_dlopen=no
10625 rm -rf conftest.dSYM
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10629 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10630 $as_echo "$ac_cv_func_dlopen" >&6; }
10631 if test "x$ac_cv_func_dlopen" = x""yes; then
10632 lt_cv_dlopen="dlopen"
10634 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10635 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10636 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10637 $as_echo_n "(cached) " >&6
10639 ac_check_lib_save_LIBS=$LIBS
10641 cat >conftest.$ac_ext <<_ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10670 $as_echo "$ac_try_echo") >&5
10671 (eval "$ac_link") 2>conftest.er1
10673 grep -v '^ *+' conftest.er1 >conftest.err
10675 cat conftest.err >&5
10676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest$ac_exeext && {
10681 test "$cross_compiling" = yes ||
10682 $as_test_x conftest$ac_exeext
10684 ac_cv_lib_dl_dlopen=yes
10686 $as_echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 ac_cv_lib_dl_dlopen=no
10692 rm -rf conftest.dSYM
10693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10698 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10702 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10703 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10704 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10705 $as_echo_n "(cached) " >&6
10707 ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-lsvld $LIBS"
10709 cat >conftest.$ac_ext <<_ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10716 /* Override any GCC internal prototype to avoid an error.
10717 Use char because int might match the return type of a GCC
10718 builtin and then its argument prototype would still apply. */
10731 rm -f conftest.$ac_objext conftest$ac_exeext
10732 if { (ac_try="$ac_link"
10733 case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10738 $as_echo "$ac_try_echo") >&5
10739 (eval "$ac_link") 2>conftest.er1
10741 grep -v '^ *+' conftest.er1 >conftest.err
10743 cat conftest.err >&5
10744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } && {
10746 test -z "$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10748 } && test -s conftest$ac_exeext && {
10749 test "$cross_compiling" = yes ||
10750 $as_test_x conftest$ac_exeext
10752 ac_cv_lib_svld_dlopen=yes
10754 $as_echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10757 ac_cv_lib_svld_dlopen=no
10760 rm -rf conftest.dSYM
10761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10762 conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10765 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10766 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10767 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10770 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10771 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10772 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10773 $as_echo_n "(cached) " >&6
10775 ac_check_lib_save_LIBS=$LIBS
10777 cat >conftest.$ac_ext <<_ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10794 return dld_link ();
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (ac_try="$ac_link"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806 $as_echo "$ac_try_echo") >&5
10807 (eval "$ac_link") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext && {
10817 test "$cross_compiling" = yes ||
10818 $as_test_x conftest$ac_exeext
10820 ac_cv_lib_dld_dld_link=yes
10822 $as_echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10825 ac_cv_lib_dld_dld_link=no
10828 rm -rf conftest.dSYM
10829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10834 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10835 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10836 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10857 if test "x$lt_cv_dlopen" != xno; then
10863 case $lt_cv_dlopen in
10865 save_CPPFLAGS="$CPPFLAGS"
10866 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10868 save_LDFLAGS="$LDFLAGS"
10869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10872 LIBS="$lt_cv_dlopen_libs $LIBS"
10874 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10875 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10876 if test "${lt_cv_dlopen_self+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10879 if test "$cross_compiling" = yes; then :
10880 lt_cv_dlopen_self=cross
10882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883 lt_status=$lt_dlunknown
10884 cat > conftest.$ac_ext <<EOF
10885 #line 10885 "configure"
10886 #include "confdefs.h"
10895 # define LT_DLGLOBAL RTLD_GLOBAL
10898 # define LT_DLGLOBAL DL_GLOBAL
10900 # define LT_DLGLOBAL 0
10904 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905 find out it does not work in some platform. */
10906 #ifndef LT_DLLAZY_OR_NOW
10908 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10911 # define LT_DLLAZY_OR_NOW DL_LAZY
10914 # define LT_DLLAZY_OR_NOW RTLD_NOW
10917 # define LT_DLLAZY_OR_NOW DL_NOW
10919 # define LT_DLLAZY_OR_NOW 0
10927 extern "C" void exit (int);
10930 void fnord() { int i=42;}
10933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934 int status = $lt_dlunknown;
10938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10939 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10940 /* dlclose (self); */
10948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949 (eval $ac_link) 2>&5
10951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10953 (./conftest; exit; ) >&5 2>/dev/null
10955 case x$lt_status in
10956 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10957 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10958 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10961 # compilation failed
10962 lt_cv_dlopen_self=no
10969 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10970 $as_echo "$lt_cv_dlopen_self" >&6; }
10972 if test "x$lt_cv_dlopen_self" = xyes; then
10973 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10974 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10975 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10976 if test "${lt_cv_dlopen_self_static+set}" = set; then
10977 $as_echo_n "(cached) " >&6
10979 if test "$cross_compiling" = yes; then :
10980 lt_cv_dlopen_self_static=cross
10982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10983 lt_status=$lt_dlunknown
10984 cat > conftest.$ac_ext <<EOF
10985 #line 10985 "configure"
10986 #include "confdefs.h"
10995 # define LT_DLGLOBAL RTLD_GLOBAL
10998 # define LT_DLGLOBAL DL_GLOBAL
11000 # define LT_DLGLOBAL 0
11004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11005 find out it does not work in some platform. */
11006 #ifndef LT_DLLAZY_OR_NOW
11008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11011 # define LT_DLLAZY_OR_NOW DL_LAZY
11014 # define LT_DLLAZY_OR_NOW RTLD_NOW
11017 # define LT_DLLAZY_OR_NOW DL_NOW
11019 # define LT_DLLAZY_OR_NOW 0
11027 extern "C" void exit (int);
11030 void fnord() { int i=42;}
11033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11034 int status = $lt_dlunknown;
11038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11039 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11040 /* dlclose (self); */
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049 (eval $ac_link) 2>&5
11051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11053 (./conftest; exit; ) >&5 2>/dev/null
11055 case x$lt_status in
11056 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11057 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11058 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11061 # compilation failed
11062 lt_cv_dlopen_self_static=no
11069 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11070 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11073 CPPFLAGS="$save_CPPFLAGS"
11074 LDFLAGS="$save_LDFLAGS"
11079 case $lt_cv_dlopen_self in
11080 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11081 *) enable_dlopen_self=unknown ;;
11084 case $lt_cv_dlopen_self_static in
11085 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11086 *) enable_dlopen_self_static=unknown ;;
11091 # Report which library types will actually be built
11092 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11093 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11094 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11095 $as_echo "$can_build_shared" >&6; }
11097 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11098 $as_echo_n "checking whether to build shared libraries... " >&6; }
11099 test "$can_build_shared" = "no" && enable_shared=no
11101 # On AIX, shared libraries and static libraries use the same namespace, and
11102 # are all built from PIC.
11105 test "$enable_shared" = yes && enable_static=no
11106 if test -n "$RANLIB"; then
11107 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11108 postinstall_cmds='$RANLIB $lib'
11113 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11114 test "$enable_shared" = yes && enable_static=no
11118 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11119 $as_echo "$enable_shared" >&6; }
11121 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11122 $as_echo_n "checking whether to build static libraries... " >&6; }
11123 # Make sure either enable_shared or enable_static is yes.
11124 test "$enable_shared" = yes || enable_static=yes
11125 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11126 $as_echo "$enable_static" >&6; }
11128 # The else clause should only fire when bootstrapping the
11129 # libtool distribution, otherwise you forgot to ship ltmain.sh
11130 # with your package, and you will get complaints that there are
11131 # no rules to generate ltmain.sh.
11132 if test -f "$ltmain"; then
11133 # See if we are running on zsh, and set the options which allow our commands through
11134 # without removal of \ escapes.
11135 if test -n "${ZSH_VERSION+set}" ; then
11136 setopt NO_GLOB_SUBST
11138 # Now quote all the things that may contain metacharacters while being
11139 # careful not to overquote the AC_SUBSTed values. We take copies of the
11140 # variables and quote the copies for generation of the libtool script.
11141 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11143 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11144 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11145 deplibs_check_method reload_flag reload_cmds need_locks \
11146 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11147 lt_cv_sys_global_symbol_to_c_name_address \
11148 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11149 old_postinstall_cmds old_postuninstall_cmds \
11153 lt_prog_compiler_wl \
11154 lt_prog_compiler_pic \
11155 lt_prog_compiler_static \
11156 lt_prog_compiler_no_builtin_flag \
11157 export_dynamic_flag_spec \
11158 thread_safe_flag_spec \
11159 whole_archive_flag_spec \
11160 enable_shared_with_static_runtimes \
11162 old_archive_from_new_cmds \
11167 compiler_lib_search_path \
11168 compiler_lib_search_dirs \
11170 archive_expsym_cmds \
11172 postuninstall_cmds \
11173 old_archive_from_expsyms_cmds \
11174 allow_undefined_flag \
11175 no_undefined_flag \
11176 export_symbols_cmds \
11177 hardcode_libdir_flag_spec \
11178 hardcode_libdir_flag_spec_ld \
11179 hardcode_libdir_separator \
11180 hardcode_automatic \
11182 module_expsym_cmds \
11183 lt_cv_prog_compiler_c_o \
11186 include_expsyms; do
11189 old_archive_cmds | \
11190 old_archive_from_new_cmds | \
11192 archive_expsym_cmds | \
11194 module_expsym_cmds | \
11195 old_archive_from_expsyms_cmds | \
11196 export_symbols_cmds | \
11197 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11198 postinstall_cmds | postuninstall_cmds | \
11199 old_postinstall_cmds | old_postuninstall_cmds | \
11200 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11201 # Double-quote double-evaled strings.
11202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11211 *'\$0 --fallback-echo"')
11212 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11216 cfgfile="${ofile}T"
11217 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11219 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
11220 $as_echo "$as_me: creating $ofile" >&6;}
11222 cat <<__EOF__ >> "$cfgfile"
11225 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11226 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11227 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11229 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11230 # Free Software Foundation, Inc.
11232 # This file is part of GNU Libtool:
11233 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11235 # This program is free software; you can redistribute it and/or modify
11236 # it under the terms of the GNU General Public License as published by
11237 # the Free Software Foundation; either version 2 of the License, or
11238 # (at your option) any later version.
11240 # This program is distributed in the hope that it will be useful, but
11241 # WITHOUT ANY WARRANTY; without even the implied warranty of
11242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11243 # General Public License for more details.
11245 # You should have received a copy of the GNU General Public License
11246 # along with this program; if not, write to the Free Software
11247 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11249 # As a special exception to the GNU General Public License, if you
11250 # distribute this file as part of a program that contains a
11251 # configuration script generated by Autoconf, you may include it under
11252 # the same distribution terms that you use for the rest of that program.
11254 # A sed program that does not truncate output.
11257 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11258 Xsed="$SED -e 1s/^X//"
11260 # The HP-UX ksh and POSIX shell print the target directory to stdout
11261 # if CDPATH is set.
11262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11264 # The names of the tagged configurations supported by this script.
11267 # ### BEGIN LIBTOOL CONFIG
11269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11271 # Shell to use when invoking shell scripts.
11274 # Whether or not to build shared libraries.
11275 build_libtool_libs=$enable_shared
11277 # Whether or not to build static libraries.
11278 build_old_libs=$enable_static
11280 # Whether or not to add -lc for building shared libraries.
11281 build_libtool_need_lc=$archive_cmds_need_lc
11283 # Whether or not to disallow shared libs when runtime libs are static
11284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11286 # Whether or not to optimize for fast installation.
11287 fast_install=$enable_fast_install
11290 host_alias=$host_alias
11294 # The build system.
11295 build_alias=$build_alias
11299 # An echo program that does not interpret backslashes.
11304 AR_FLAGS=$lt_AR_FLAGS
11309 # LTCC compiler flags.
11310 LTCFLAGS=$lt_LTCFLAGS
11312 # A language-specific compiler.
11315 # Is the compiler the GNU C compiler?
11321 # The linker used to build libraries.
11324 # Whether we need hard or soft links.
11327 # A BSD-compatible nm program.
11330 # A symbol stripping program
11333 # Used to examine libraries when file_magic_cmd begins "file"
11334 MAGIC_CMD=$MAGIC_CMD
11336 # Used on cygwin: DLL creation program.
11339 # Used on cygwin: object dumper.
11342 # Used on cygwin: assembler.
11345 # The name of the directory that contains temporary libtool files.
11348 # How to create reloadable object files.
11349 reload_flag=$lt_reload_flag
11350 reload_cmds=$lt_reload_cmds
11352 # How to pass a linker flag through the compiler.
11353 wl=$lt_lt_prog_compiler_wl
11355 # Object file suffix (normally "o").
11356 objext="$ac_objext"
11358 # Old archive suffix (normally "a").
11361 # Shared library suffix (normally ".so").
11362 shrext_cmds='$shrext_cmds'
11364 # Executable file suffix (normally "").
11367 # Additional compiler flags for building library objects.
11368 pic_flag=$lt_lt_prog_compiler_pic
11371 # What is the maximum length of a command?
11372 max_cmd_len=$lt_cv_sys_max_cmd_len
11374 # Does compiler simultaneously support -c and -o options?
11375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11377 # Must we lock files when doing compilation?
11378 need_locks=$lt_need_locks
11380 # Do we need the lib prefix for modules?
11381 need_lib_prefix=$need_lib_prefix
11383 # Do we need a version for libraries?
11384 need_version=$need_version
11386 # Whether dlopen is supported.
11387 dlopen_support=$enable_dlopen
11389 # Whether dlopen of programs is supported.
11390 dlopen_self=$enable_dlopen_self
11392 # Whether dlopen of statically linked programs is supported.
11393 dlopen_self_static=$enable_dlopen_self_static
11395 # Compiler flag to prevent dynamic linking.
11396 link_static_flag=$lt_lt_prog_compiler_static
11398 # Compiler flag to turn off builtin functions.
11399 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11401 # Compiler flag to allow reflexive dlopens.
11402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11404 # Compiler flag to generate shared objects directly from archives.
11405 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11407 # Compiler flag to generate thread-safe objects.
11408 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11410 # Library versioning type.
11411 version_type=$version_type
11413 # Format of library name prefix.
11414 libname_spec=$lt_libname_spec
11416 # List of archive names. First name is the real one, the rest are links.
11417 # The last name is the one that the linker finds with -lNAME.
11418 library_names_spec=$lt_library_names_spec
11420 # The coded name of the library, if different from the real name.
11421 soname_spec=$lt_soname_spec
11423 # Commands used to build and install an old-style archive.
11425 old_archive_cmds=$lt_old_archive_cmds
11426 old_postinstall_cmds=$lt_old_postinstall_cmds
11427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11429 # Create an old-style archive from a shared archive.
11430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11432 # Create a temporary old-style archive to link instead of a shared archive.
11433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11435 # Commands used to build and install a shared archive.
11436 archive_cmds=$lt_archive_cmds
11437 archive_expsym_cmds=$lt_archive_expsym_cmds
11438 postinstall_cmds=$lt_postinstall_cmds
11439 postuninstall_cmds=$lt_postuninstall_cmds
11441 # Commands used to build a loadable module (assumed same as above if empty)
11442 module_cmds=$lt_module_cmds
11443 module_expsym_cmds=$lt_module_expsym_cmds
11445 # Commands to strip libraries.
11446 old_striplib=$lt_old_striplib
11447 striplib=$lt_striplib
11449 # Dependencies to place before the objects being linked to create a
11451 predep_objects=$lt_predep_objects
11453 # Dependencies to place after the objects being linked to create a
11455 postdep_objects=$lt_postdep_objects
11457 # Dependencies to place before the objects being linked to create a
11459 predeps=$lt_predeps
11461 # Dependencies to place after the objects being linked to create a
11463 postdeps=$lt_postdeps
11465 # The directories searched by this compiler when creating a shared
11467 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11469 # The library search path used internally by the compiler when linking
11470 # a shared library.
11471 compiler_lib_search_path=$lt_compiler_lib_search_path
11473 # Method to check whether dependent libraries are shared objects.
11474 deplibs_check_method=$lt_deplibs_check_method
11476 # Command to use when deplibs_check_method == file_magic.
11477 file_magic_cmd=$lt_file_magic_cmd
11479 # Flag that allows shared libraries with undefined symbols to be built.
11480 allow_undefined_flag=$lt_allow_undefined_flag
11482 # Flag that forces no undefined symbols.
11483 no_undefined_flag=$lt_no_undefined_flag
11485 # Commands used to finish a libtool library installation in a directory.
11486 finish_cmds=$lt_finish_cmds
11488 # Same as above, but a single script fragment to be evaled but not shown.
11489 finish_eval=$lt_finish_eval
11491 # Take the output of nm and produce a listing of raw symbols and C names.
11492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11494 # Transform the output of nm in a proper C declaration
11495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11497 # Transform the output of nm in a C name address pair
11498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11500 # This is the shared library runtime path variable.
11501 runpath_var=$runpath_var
11503 # This is the shared library path variable.
11504 shlibpath_var=$shlibpath_var
11506 # Is shlibpath searched before the hard-coded library search path?
11507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11509 # How to hardcode a shared library path into an executable.
11510 hardcode_action=$hardcode_action
11512 # Whether we should hardcode library paths into libraries.
11513 hardcode_into_libs=$hardcode_into_libs
11515 # Flag to hardcode \$libdir into a binary during linking.
11516 # This must work even if \$libdir does not exist.
11517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11519 # If ld is used when linking, flag to hardcode \$libdir into
11520 # a binary during linking. This must work even if \$libdir does
11522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11524 # Whether we need a single -rpath flag with a separated argument.
11525 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11528 # resulting binary.
11529 hardcode_direct=$hardcode_direct
11531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11532 # resulting binary.
11533 hardcode_minus_L=$hardcode_minus_L
11535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11536 # the resulting binary.
11537 hardcode_shlibpath_var=$hardcode_shlibpath_var
11539 # Set to yes if building a shared library automatically hardcodes DIR into the library
11540 # and all subsequent libraries and executables linked against it.
11541 hardcode_automatic=$hardcode_automatic
11543 # Variables whose values should be saved in libtool wrapper scripts and
11544 # restored at relink time.
11545 variables_saved_for_relink="$variables_saved_for_relink"
11547 # Whether libtool must link a program against all its dependency libraries.
11548 link_all_deplibs=$link_all_deplibs
11550 # Compile-time system search path for libraries
11551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11553 # Run-time system search path for libraries
11554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11556 # Fix the shell variable \$srcfile for the compiler.
11557 fix_srcfile_path=$lt_fix_srcfile_path
11559 # Set to yes if exported symbols are required.
11560 always_export_symbols=$always_export_symbols
11562 # The commands to list exported symbols.
11563 export_symbols_cmds=$lt_export_symbols_cmds
11565 # The commands to extract the exported symbol list from a shared archive.
11566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11568 # Symbols that should not be listed in the preloaded symbols.
11569 exclude_expsyms=$lt_exclude_expsyms
11571 # Symbols that must always be exported.
11572 include_expsyms=$lt_include_expsyms
11574 # ### END LIBTOOL CONFIG
11581 cat <<\EOF >> "$cfgfile"
11583 # AIX sometimes has problems with the GCC collect2 program. For some
11584 # reason, if we set the COLLECT_NAMES environment variable, the problems
11585 # vanish in a puff of smoke.
11586 if test "X${COLLECT_NAMES+set}" != Xset; then
11588 export COLLECT_NAMES
11594 # We use sed instead of cat because bash on DJGPP gets confused if
11595 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11596 # text mode, it properly converts lines to CR/LF. This bash problem
11597 # is reportedly fixed, but why not run on old versions too?
11598 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11600 mv -f "$cfgfile" "$ofile" || \
11601 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11605 # If there is no Makefile yet, we rely on a make rule to execute
11606 # `config.status --recheck' to rerun these tests and create the
11607 # libtool script then.
11608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11609 if test -f "$ltmain_in"; then
11610 test -f Makefile && make "$ltmain"
11616 ac_cpp='$CPP $CPPFLAGS'
11617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11624 # Check whether --with-tags was given.
11625 if test "${with_tags+set}" = set; then
11626 withval=$with_tags; tagnames="$withval"
11630 if test -f "$ltmain" && test -n "$tagnames"; then
11631 if test ! -f "${ofile}"; then
11632 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11633 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11636 if test -z "$LTCC"; then
11637 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11638 if test -z "$LTCC"; then
11639 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11640 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11642 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11643 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11646 if test -z "$LTCFLAGS"; then
11647 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11650 # Extract list of available tagged configurations in $ofile.
11651 # Note that this assumes the entire list is on one line.
11652 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11655 for tagname in $tagnames; do
11657 # Check whether tagname contains only valid characters
11658 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11660 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11661 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11662 { (exit 1); exit 1; }; }
11666 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11668 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11669 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11670 { (exit 1); exit 1; }; }
11673 # Update the list of available tags.
11674 if test -n "$tagname"; then
11675 echo appending configuration tag \"$tagname\" to $ofile
11679 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11680 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11681 (test "X$CXX" != "Xg++"))) ; then
11683 ac_cpp='$CXXCPP $CPPFLAGS'
11684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11691 archive_cmds_need_lc_CXX=no
11692 allow_undefined_flag_CXX=
11693 always_export_symbols_CXX=no
11694 archive_expsym_cmds_CXX=
11695 export_dynamic_flag_spec_CXX=
11696 hardcode_direct_CXX=no
11697 hardcode_libdir_flag_spec_CXX=
11698 hardcode_libdir_flag_spec_ld_CXX=
11699 hardcode_libdir_separator_CXX=
11700 hardcode_minus_L_CXX=no
11701 hardcode_shlibpath_var_CXX=unsupported
11702 hardcode_automatic_CXX=no
11704 module_expsym_cmds_CXX=
11705 link_all_deplibs_CXX=unknown
11706 old_archive_cmds_CXX=$old_archive_cmds
11707 no_undefined_flag_CXX=
11708 whole_archive_flag_spec_CXX=
11709 enable_shared_with_static_runtimes_CXX=no
11711 # Dependencies to place before and after the object being linked:
11712 predep_objects_CXX=
11713 postdep_objects_CXX=
11716 compiler_lib_search_path_CXX=
11717 compiler_lib_search_dirs_CXX=
11719 # Source file extension for C++ test sources.
11722 # Object file extension for compiled C++ test sources.
11726 # Code to be used in simple compile tests
11727 lt_simple_compile_test_code="int some_variable = 0;"
11729 # Code to be used in simple link tests
11730 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11734 # If no C compiler was specified, use CC.
11737 # If no C compiler flags were specified, use CFLAGS.
11738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11740 # Allow CC to be a program name with arguments.
11744 # save warnings/boilerplate of simple test code
11745 ac_outfile=conftest.$ac_objext
11746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11748 _lt_compiler_boilerplate=`cat conftest.err`
11751 ac_outfile=conftest.$ac_objext
11752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11754 _lt_linker_boilerplate=`cat conftest.err`
11758 # Allow CC to be a program name with arguments.
11763 lt_save_with_gnu_ld=$with_gnu_ld
11764 lt_save_path_LD=$lt_cv_path_LD
11765 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11766 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11768 $as_unset lt_cv_prog_gnu_ld
11770 if test -n "${lt_cv_path_LDCXX+set}"; then
11771 lt_cv_path_LD=$lt_cv_path_LDCXX
11773 $as_unset lt_cv_path_LD
11775 test -z "${LDCXX+set}" || LD=$LDCXX
11779 for cc_temp in $compiler""; do
11781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11787 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11790 # We don't want -fno-exception wen compiling C++ code, so set the
11791 # no_builtin_flag separately
11792 if test "$GXX" = yes; then
11793 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11795 lt_prog_compiler_no_builtin_flag_CXX=
11798 if test "$GXX" = yes; then
11799 # Set up default GNU C++ configuration
11802 # Check whether --with-gnu-ld was given.
11803 if test "${with_gnu_ld+set}" = set; then
11804 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11810 if test "$GCC" = yes; then
11811 # Check if gcc -print-prog-name=ld gives a path.
11812 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11813 $as_echo_n "checking for ld used by $CC... " >&6; }
11816 # gcc leaves a trailing carriage return which upsets mingw
11817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11822 # Accept absolute paths.
11824 re_direlt='/[^/][^/]*/\.\./'
11825 # Canonicalize the pathname of ld
11826 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11828 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11830 test -z "$LD" && LD="$ac_prog"
11833 # If it fails, then pretend we aren't using GCC.
11837 # If it is relative, then search for the first ld in PATH.
11838 with_gnu_ld=unknown
11841 elif test "$with_gnu_ld" = yes; then
11842 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11843 $as_echo_n "checking for GNU ld... " >&6; }
11845 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11846 $as_echo_n "checking for non-GNU ld... " >&6; }
11848 if test "${lt_cv_path_LD+set}" = set; then
11849 $as_echo_n "(cached) " >&6
11851 if test -z "$LD"; then
11852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11853 for ac_dir in $PATH; do
11855 test -z "$ac_dir" && ac_dir=.
11856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11857 lt_cv_path_LD="$ac_dir/$ac_prog"
11858 # Check to see if the program is GNU ld. I'd rather use --version,
11859 # but apparently some variants of GNU ld only accept -v.
11860 # Break only if it was the GNU/non-GNU ld that we prefer.
11861 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11862 *GNU* | *'with BFD'*)
11863 test "$with_gnu_ld" != no && break
11866 test "$with_gnu_ld" != yes && break
11873 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11877 LD="$lt_cv_path_LD"
11878 if test -n "$LD"; then
11879 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11880 $as_echo "$LD" >&6; }
11882 { $as_echo "$as_me:$LINENO: result: no" >&5
11883 $as_echo "no" >&6; }
11885 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11886 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11887 { (exit 1); exit 1; }; }
11888 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11889 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11890 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11891 $as_echo_n "(cached) " >&6
11893 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11894 case `$LD -v 2>&1 </dev/null` in
11895 *GNU* | *'with BFD'*)
11896 lt_cv_prog_gnu_ld=yes
11899 lt_cv_prog_gnu_ld=no
11903 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11904 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11905 with_gnu_ld=$lt_cv_prog_gnu_ld
11909 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11910 # archiving commands below assume that GNU ld is being used.
11911 if test "$with_gnu_ld" = yes; then
11912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11913 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'
11915 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11918 # If archive_cmds runs LD, not CC, wlarc should be empty
11919 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11920 # investigate it a little bit more. (MM)
11923 # ancient GNU ld didn't support --whole-archive et. al.
11924 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11925 grep 'no-whole-archive' > /dev/null; then
11926 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11928 whole_archive_flag_spec_CXX=
11934 # A generic and very simple default shared library creation
11935 # command for GNU C++ for the case where it uses the native
11936 # linker, instead of GNU ld. If possible, this setting should
11937 # overridden to take advantage of the native linker features on
11938 # the platform it is being used on.
11939 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11942 # Commands to make compiler produce verbose output that lists
11943 # what "hidden" libraries, object files and flags are used when
11944 # linking a shared library.
11945 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11953 # PORTME: fill in a description of your system's C++ link characteristics
11954 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11955 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11959 # FIXME: insert proper C++ library support
11963 if test "$host_cpu" = ia64; then
11964 # On IA64, the linker does run time linking by default, so we don't
11965 # have to do anything special.
11966 aix_use_runtimelinking=no
11967 exp_sym_flag='-Bexport'
11970 aix_use_runtimelinking=no
11972 # Test if we are trying to use run time linking or normal
11973 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11974 # need to do runtime linking.
11975 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11976 for ld_flag in $LDFLAGS; do
11979 aix_use_runtimelinking=yes
11987 exp_sym_flag='-bexport'
11988 no_entry_flag='-bnoentry'
11991 # When large executables or shared objects are built, AIX ld can
11992 # have problems creating the table of contents. If linking a library
11993 # or program results in "error TOC overflow" add -mminimal-toc to
11994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11997 archive_cmds_CXX=''
11998 hardcode_direct_CXX=yes
11999 hardcode_libdir_separator_CXX=':'
12000 link_all_deplibs_CXX=yes
12002 if test "$GXX" = yes; then
12003 case $host_os in aix4.[012]|aix4.[012].*)
12004 # We only want to do this on AIX 4.2 and lower, the check
12005 # below for broken collect2 doesn't work under 4.3+
12006 collect2name=`${CC} -print-prog-name=collect2`
12007 if test -f "$collect2name" && \
12008 strings "$collect2name" | grep resolve_lib_name >/dev/null
12010 # We have reworked collect2
12013 # We have old collect2
12014 hardcode_direct_CXX=unsupported
12015 # It fails to find uninstalled libraries when the uninstalled
12016 # path is not listed in the libpath. Setting hardcode_minus_L
12017 # to unsupported forces relinking
12018 hardcode_minus_L_CXX=yes
12019 hardcode_libdir_flag_spec_CXX='-L$libdir'
12020 hardcode_libdir_separator_CXX=
12024 shared_flag='-shared'
12025 if test "$aix_use_runtimelinking" = yes; then
12026 shared_flag="$shared_flag "'${wl}-G'
12030 if test "$host_cpu" = ia64; then
12031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12032 # chokes on -Wl,-G. The following line is correct:
12035 if test "$aix_use_runtimelinking" = yes; then
12036 shared_flag='${wl}-G'
12038 shared_flag='${wl}-bM:SRE'
12043 # It seems that -bexpall does not export symbols beginning with
12044 # underscore (_), so it is better to generate a list of symbols to export.
12045 always_export_symbols_CXX=yes
12046 if test "$aix_use_runtimelinking" = yes; then
12047 # Warning - without using the other runtime loading flags (-brtl),
12048 # -berok will link without error, but may produce a broken library.
12049 allow_undefined_flag_CXX='-berok'
12050 # Determine the default libpath from the value encoded in an empty executable.
12051 cat >conftest.$ac_ext <<_ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (ac_try="$ac_link"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074 (eval "$ac_link") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_cxx_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest$ac_exeext && {
12084 test "$cross_compiling" = yes ||
12085 $as_test_x conftest$ac_exeext
12088 lt_aix_libpath_sed='
12089 /Import File Strings/,/^$/ {
12095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12096 # Check for a 64-bit object if we didn't find anything.
12097 if test -z "$aix_libpath"; then
12098 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12101 $as_echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12107 rm -rf conftest.dSYM
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109 conftest$ac_exeext conftest.$ac_ext
12110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12112 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12114 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"
12116 if test "$host_cpu" = ia64; then
12117 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12118 allow_undefined_flag_CXX="-z nodefs"
12119 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"
12121 # Determine the default libpath from the value encoded in an empty executable.
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12137 rm -f conftest.$ac_objext conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12144 $as_echo "$ac_try_echo") >&5
12145 (eval "$ac_link") 2>conftest.er1
12147 grep -v '^ *+' conftest.er1 >conftest.err
12149 cat conftest.err >&5
12150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_cxx_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest$ac_exeext && {
12155 test "$cross_compiling" = yes ||
12156 $as_test_x conftest$ac_exeext
12159 lt_aix_libpath_sed='
12160 /Import File Strings/,/^$/ {
12166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12167 # Check for a 64-bit object if we didn't find anything.
12168 if test -z "$aix_libpath"; then
12169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12172 $as_echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12178 rm -rf conftest.dSYM
12179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12180 conftest$ac_exeext conftest.$ac_ext
12181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12183 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12184 # Warning - without using the other run time loading flags,
12185 # -berok will link without error, but may produce a broken library.
12186 no_undefined_flag_CXX=' ${wl}-bernotok'
12187 allow_undefined_flag_CXX=' ${wl}-berok'
12188 # Exported symbols can be pulled into shared objects from archives
12189 whole_archive_flag_spec_CXX='$convenience'
12190 archive_cmds_need_lc_CXX=yes
12191 # This is similar to how AIX traditionally builds its shared libraries.
12192 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'
12198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12199 allow_undefined_flag_CXX=unsupported
12200 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12201 # support --undefined. This deserves some investigation. FIXME
12202 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12209 case $cc_basename in
12211 # FIXME: insert proper C++ library support
12217 cygwin* | mingw* | pw32*)
12218 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12219 # as there is no search path for DLLs.
12220 hardcode_libdir_flag_spec_CXX='-L$libdir'
12221 allow_undefined_flag_CXX=unsupported
12222 always_export_symbols_CXX=no
12223 enable_shared_with_static_runtimes_CXX=yes
12225 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12226 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'
12227 # If the export-symbols file already is a .def file (1st line
12228 # is EXPORTS), use it as is; otherwise, prepend...
12229 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12230 cp $export_symbols $output_objdir/$soname.def;
12232 echo EXPORTS > $output_objdir/$soname.def;
12233 cat $export_symbols >> $output_objdir/$soname.def;
12235 $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'
12240 darwin* | rhapsody*)
12241 archive_cmds_need_lc_CXX=no
12242 hardcode_direct_CXX=no
12243 hardcode_automatic_CXX=yes
12244 hardcode_shlibpath_var_CXX=unsupported
12245 whole_archive_flag_spec_CXX=''
12246 link_all_deplibs_CXX=yes
12247 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12248 if test "$GXX" = yes ; then
12249 output_verbose_link_cmd='echo'
12250 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12251 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12252 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12253 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12254 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12255 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12256 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12259 case $cc_basename in
12261 output_verbose_link_cmd='echo'
12262 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12263 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12264 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12265 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12266 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}'
12276 case $cc_basename in
12278 # FIXME: insert proper C++ library support
12282 # Green Hills C++ Compiler
12283 # FIXME: insert proper C++ library support
12287 # FIXME: insert proper C++ library support
12293 # C++ shared libraries reported to be fairly broken before switch to ELF
12297 archive_cmds_need_lc_CXX=no
12299 freebsd* | dragonfly*)
12300 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12307 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12308 hardcode_libdir_separator_CXX=:
12309 export_dynamic_flag_spec_CXX='${wl}-E'
12310 hardcode_direct_CXX=yes
12311 hardcode_minus_L_CXX=yes # Not in the search PATH,
12312 # but as the default
12313 # location of the library.
12315 case $cc_basename in
12317 # FIXME: insert proper C++ library support
12321 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'
12322 # Commands to make compiler produce verbose output that lists
12323 # what "hidden" libraries, object files and flags are used when
12324 # linking a shared library.
12326 # There doesn't appear to be a way to prevent this compiler from
12327 # explicitly linking system object files so we need to strip them
12328 # from the output so that they don't get included in the library
12330 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'
12333 if test "$GXX" = yes; then
12334 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'
12336 # FIXME: insert proper C++ library support
12343 if test $with_gnu_ld = no; then
12344 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12345 hardcode_libdir_separator_CXX=:
12350 export_dynamic_flag_spec_CXX='${wl}-E'
12356 hardcode_direct_CXX=no
12357 hardcode_shlibpath_var_CXX=no
12360 hardcode_direct_CXX=yes
12361 hardcode_minus_L_CXX=yes # Not in the search PATH,
12362 # but as the default
12363 # location of the library.
12367 case $cc_basename in
12369 # FIXME: insert proper C++ library support
12375 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12378 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12381 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12384 # Commands to make compiler produce verbose output that lists
12385 # what "hidden" libraries, object files and flags are used when
12386 # linking a shared library.
12388 # There doesn't appear to be a way to prevent this compiler from
12389 # explicitly linking system object files so we need to strip them
12390 # from the output so that they don't get included in the library
12392 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'
12395 if test "$GXX" = yes; then
12396 if test $with_gnu_ld = no; then
12399 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12402 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12405 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'
12410 # FIXME: insert proper C++ library support
12417 hardcode_direct_CXX=no
12418 hardcode_shlibpath_var_CXX=no
12419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12420 export_dynamic_flag_spec_CXX='${wl}-E'
12421 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12422 # Instead, shared libraries are loaded at an image base (0x10000000 by
12423 # default) and relocated if they conflict, which is a slow very memory
12424 # consuming and fragmenting process. To avoid this, we pick a random,
12425 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12426 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12427 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'
12428 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'
12431 case $cc_basename in
12434 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'
12436 # Archives containing C++ object files must be created using
12437 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12438 # necessary to make sure instantiated templates are included
12440 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12443 if test "$GXX" = yes; then
12444 if test "$with_gnu_ld" = no; then
12445 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'
12447 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'
12450 link_all_deplibs_CXX=yes
12453 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12454 hardcode_libdir_separator_CXX=:
12456 linux* | k*bsd*-gnu)
12457 case $cc_basename in
12459 # Kuck and Associates, Inc. (KAI) C++ Compiler
12461 # KCC will only create a shared library if the output file
12462 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12463 # to its proper name (with version) after linking.
12464 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'
12465 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'
12466 # Commands to make compiler produce verbose output that lists
12467 # what "hidden" libraries, object files and flags are used when
12468 # linking a shared library.
12470 # There doesn't appear to be a way to prevent this compiler from
12471 # explicitly linking system object files so we need to strip them
12472 # from the output so that they don't get included in the library
12474 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'
12476 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12479 # Archives containing C++ object files must be created using
12480 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12481 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12486 # version 8.0 and above of icpc choke on multiply defined symbols
12487 # if we add $predep_objects and $postdep_objects, however 7.1 and
12488 # earlier do not add the objects themselves.
12489 case `$CC -V 2>&1` in
12491 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12492 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'
12494 *) # Version 8.0 or newer
12497 ia64*) tmp_idyn=' -i_dynamic';;
12499 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12500 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'
12503 archive_cmds_need_lc_CXX=no
12504 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12505 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12506 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12509 # Portland Group C++ compiler
12510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12511 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'
12513 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12514 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12515 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'
12519 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12520 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'
12522 runpath_var=LD_RUN_PATH
12523 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12524 hardcode_libdir_separator_CXX=:
12526 # Commands to make compiler produce verbose output that lists
12527 # what "hidden" libraries, object files and flags are used when
12528 # linking a shared library.
12530 # There doesn't appear to be a way to prevent this compiler from
12531 # explicitly linking system object files so we need to strip them
12532 # from the output so that they don't get included in the library
12534 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'
12537 case `$CC -V 2>&1 | sed 5q` in
12540 no_undefined_flag_CXX=' -zdefs'
12541 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12543 hardcode_libdir_flag_spec_CXX='-R$libdir'
12544 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12546 # Not sure whether something based on
12547 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12549 output_verbose_link_cmd='echo'
12551 # Archives containing C++ object files must be created using
12552 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12553 # necessary to make sure instantiated templates are included
12555 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12562 # FIXME: insert proper C++ library support
12566 # FIXME: insert proper C++ library support
12570 case $cc_basename in
12572 # FIXME: insert proper C++ library support
12576 # FIXME: insert proper C++ library support
12582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12583 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12585 hardcode_libdir_flag_spec_CXX='-R$libdir'
12586 hardcode_direct_CXX=yes
12587 hardcode_shlibpath_var_CXX=no
12589 # Workaround some broken pre-1.5 toolchains
12590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12593 # C++ shared libraries are fairly broken
12597 if test -f /usr/libexec/ld.so; then
12598 hardcode_direct_CXX=yes
12599 hardcode_shlibpath_var_CXX=no
12600 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12603 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12604 export_dynamic_flag_spec_CXX='${wl}-E'
12605 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12607 output_verbose_link_cmd='echo'
12613 case $cc_basename in
12615 # Kuck and Associates, Inc. (KAI) C++ Compiler
12617 # KCC will only create a shared library if the output file
12618 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12619 # to its proper name (with version) after linking.
12620 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'
12622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12623 hardcode_libdir_separator_CXX=:
12625 # Archives containing C++ object files must be created using
12626 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12627 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12631 # Rational C++ 2.4.1
12632 # FIXME: insert proper C++ library support
12636 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12637 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'
12639 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12640 hardcode_libdir_separator_CXX=:
12642 # Commands to make compiler produce verbose output that lists
12643 # what "hidden" libraries, object files and flags are used when
12644 # linking a shared library.
12646 # There doesn't appear to be a way to prevent this compiler from
12647 # explicitly linking system object files so we need to strip them
12648 # from the output so that they don't get included in the library
12650 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'
12653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12654 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12655 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'
12657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12658 hardcode_libdir_separator_CXX=:
12660 # Commands to make compiler produce verbose output that lists
12661 # what "hidden" libraries, object files and flags are used when
12662 # linking a shared library.
12663 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12666 # FIXME: insert proper C++ library support
12673 case $cc_basename in
12675 # Kuck and Associates, Inc. (KAI) C++ Compiler
12677 # KCC will only create a shared library if the output file
12678 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12679 # to its proper name (with version) after linking.
12680 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'
12682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12683 hardcode_libdir_separator_CXX=:
12685 # Archives containing C++ object files must be created using
12686 # the KAI C++ compiler.
12687 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12690 # Rational C++ 2.4.1
12691 # FIXME: insert proper C++ library support
12695 allow_undefined_flag_CXX=' -expect_unresolved \*'
12696 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'
12697 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12698 echo "-hidden">> $lib.exp~
12699 $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~
12702 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12703 hardcode_libdir_separator_CXX=:
12705 # Commands to make compiler produce verbose output that lists
12706 # what "hidden" libraries, object files and flags are used when
12707 # linking a shared library.
12709 # There doesn't appear to be a way to prevent this compiler from
12710 # explicitly linking system object files so we need to strip them
12711 # from the output so that they don't get included in the library
12713 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'
12716 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12717 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12718 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'
12720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12721 hardcode_libdir_separator_CXX=:
12723 # Commands to make compiler produce verbose output that lists
12724 # what "hidden" libraries, object files and flags are used when
12725 # linking a shared library.
12726 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12729 # FIXME: insert proper C++ library support
12736 # FIXME: insert proper C++ library support
12740 case $cc_basename in
12743 # FIXME: insert proper C++ library support
12748 # FIXME: insert proper C++ library support
12752 # FIXME: insert proper C++ library support
12758 case $cc_basename in
12760 # Sun C++ 4.2, 5.x and Centerline C++
12761 archive_cmds_need_lc_CXX=yes
12762 no_undefined_flag_CXX=' -zdefs'
12763 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12764 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12765 $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'
12767 hardcode_libdir_flag_spec_CXX='-R$libdir'
12768 hardcode_shlibpath_var_CXX=no
12770 solaris2.[0-5] | solaris2.[0-5].*) ;;
12772 # The compiler driver will combine and reorder linker options,
12773 # but understands `-z linker_flag'.
12774 # Supported since Solaris 2.6 (maybe 2.5.1?)
12775 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12778 link_all_deplibs_CXX=yes
12780 output_verbose_link_cmd='echo'
12782 # Archives containing C++ object files must be created using
12783 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12784 # necessary to make sure instantiated templates are included
12786 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12789 # Green Hills C++ Compiler
12790 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12792 # The C++ compiler must be used to create the archive.
12793 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12796 # GNU C++ compiler with Solaris linker
12797 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12798 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12799 if $CC --version | grep -v '^2\.7' > /dev/null; then
12800 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12801 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12802 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12804 # Commands to make compiler produce verbose output that lists
12805 # what "hidden" libraries, object files and flags are used when
12806 # linking a shared library.
12807 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12809 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12811 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12812 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12813 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12815 # Commands to make compiler produce verbose output that lists
12816 # what "hidden" libraries, object files and flags are used when
12817 # linking a shared library.
12818 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12821 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12823 solaris2.[0-5] | solaris2.[0-5].*) ;;
12825 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12833 no_undefined_flag_CXX='${wl}-z,text'
12834 archive_cmds_need_lc_CXX=no
12835 hardcode_shlibpath_var_CXX=no
12836 runpath_var='LD_RUN_PATH'
12838 case $cc_basename in
12840 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12841 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12844 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12849 sysv5* | sco3.2v5* | sco5v6*)
12850 # Note: We can NOT use -z defs as we might desire, because we do not
12851 # link with -lc, and that would cause any symbols used from libc to
12852 # always be unresolved, which means just about no library would
12853 # ever link correctly. If we're not using GNU ld we use -z text
12854 # though, which does catch some bad symbols but isn't as heavy-handed
12856 # For security reasons, it is highly recommended that you always
12857 # use absolute paths for naming shared libraries, and exclude the
12858 # DT_RUNPATH tag from executables and libraries. But doing so
12859 # requires that you compile everything twice, which is a pain.
12860 # So that behaviour is only enabled if SCOABSPATH is set to a
12861 # non-empty value in the environment. Most likely only useful for
12862 # creating official distributions of packages.
12863 # This is a hack until libtool officially supports absolute path
12864 # names for shared libraries.
12865 no_undefined_flag_CXX='${wl}-z,text'
12866 allow_undefined_flag_CXX='${wl}-z,nodefs'
12867 archive_cmds_need_lc_CXX=no
12868 hardcode_shlibpath_var_CXX=no
12869 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12870 hardcode_libdir_separator_CXX=':'
12871 link_all_deplibs_CXX=yes
12872 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12873 runpath_var='LD_RUN_PATH'
12875 case $cc_basename in
12877 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12878 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12881 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12882 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12887 case $cc_basename in
12889 # NonStop-UX NCC 3.20
12890 # FIXME: insert proper C++ library support
12894 # FIXME: insert proper C++ library support
12900 # FIXME: insert proper C++ library support
12904 # FIXME: insert proper C++ library support
12908 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12909 $as_echo "$ld_shlibs_CXX" >&6; }
12910 test "$ld_shlibs_CXX" = no && can_build_shared=no
12915 cat > conftest.$ac_ext <<EOF
12919 Foo (void) { a = 0; }
12925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926 (eval $ac_compile) 2>&5
12928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; then
12930 # Parse the compiler output and extract the necessary
12931 # objects, libraries and library flags.
12933 # Sentinel used to keep track of whether or not we are before
12934 # the conftest object file.
12935 pre_test_object_deps_done=no
12937 # The `*' in the case matches for architectures that use `case' in
12938 # $output_verbose_cmd can trigger glob expansion during the loop
12939 # eval without this substitution.
12940 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12942 for p in `eval $output_verbose_link_cmd`; do
12946 # Some compilers place space between "-{L,R}" and the path.
12947 # Remove the space.
12948 if test $p = "-L" \
12949 || test $p = "-R"; then
12956 if test "$pre_test_object_deps_done" = no; then
12959 # Internal compiler library paths should come after those
12960 # provided the user. The postdeps already come after the
12961 # user supplied libs so there is no need to process them.
12962 if test -z "$compiler_lib_search_path_CXX"; then
12963 compiler_lib_search_path_CXX="${prev}${p}"
12965 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12968 # The "-l" case would never come before the object being
12969 # linked, so don't bother handling this case.
12972 if test -z "$postdeps_CXX"; then
12973 postdeps_CXX="${prev}${p}"
12975 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12981 # This assumes that the test object file only shows up
12982 # once in the compiler output.
12983 if test "$p" = "conftest.$objext"; then
12984 pre_test_object_deps_done=yes
12988 if test "$pre_test_object_deps_done" = no; then
12989 if test -z "$predep_objects_CXX"; then
12990 predep_objects_CXX="$p"
12992 predep_objects_CXX="$predep_objects_CXX $p"
12995 if test -z "$postdep_objects_CXX"; then
12996 postdep_objects_CXX="$p"
12998 postdep_objects_CXX="$postdep_objects_CXX $p"
13003 *) ;; # Ignore the rest.
13011 echo "libtool.m4: error: problem compiling CXX test program"
13014 $rm -f confest.$objext
13016 compiler_lib_search_dirs_CXX=
13017 if test -n "$compiler_lib_search_path_CXX"; then
13018 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13021 # PORTME: override above test on systems where it is broken
13024 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13025 # hack all around it, let's just trust "g++" to DTRT.
13026 predep_objects_CXX=
13027 postdep_objects_CXX=
13032 case `$CC -V 2>&1 | sed 5q` in
13036 # The more standards-conforming stlport4 library is
13037 # incompatible with the Cstd library. Avoid specifying
13038 # it if it's in CXXFLAGS. Ignore libCrun as
13039 # -library=stlport4 depends on it.
13040 case " $CXX $CXXFLAGS " in
13041 *" -library=stlport4 "*)
13042 solaris_use_stlport4=yes
13045 if test "$solaris_use_stlport4" != yes; then
13046 postdeps_CXX='-library=Cstd -library=Crun'
13053 case $cc_basename in
13055 # The more standards-conforming stlport4 library is
13056 # incompatible with the Cstd library. Avoid specifying
13057 # it if it's in CXXFLAGS. Ignore libCrun as
13058 # -library=stlport4 depends on it.
13059 case " $CXX $CXXFLAGS " in
13060 *" -library=stlport4 "*)
13061 solaris_use_stlport4=yes
13065 # Adding this requires a known-good setup of shared libraries for
13066 # Sun compiler versions before 5.6, else PIC objects from an old
13067 # archive will be linked into the output, leading to subtle bugs.
13068 if test "$solaris_use_stlport4" != yes; then
13069 postdeps_CXX='-library=Cstd -library=Crun'
13076 case " $postdeps_CXX " in
13077 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13080 lt_prog_compiler_wl_CXX=
13081 lt_prog_compiler_pic_CXX=
13082 lt_prog_compiler_static_CXX=
13084 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13085 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13087 # C++ specific cases for pic, static, wl, etc.
13088 if test "$GXX" = yes; then
13089 lt_prog_compiler_wl_CXX='-Wl,'
13090 lt_prog_compiler_static_CXX='-static'
13094 # All AIX code is PIC.
13095 if test "$host_cpu" = ia64; then
13096 # AIX 5 now supports IA64 processor
13097 lt_prog_compiler_static_CXX='-Bstatic'
13101 # FIXME: we need at least 68020 code to build shared libraries, but
13102 # adding the `-m68020' flag to GCC prevents building anything better,
13104 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13107 # PIC is the default for these OSes.
13109 mingw* | cygwin* | os2* | pw32*)
13110 # This hack is so that the source file can tell whether it is being
13111 # built for inclusion in a dll (and should export symbols for example).
13112 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13113 # (--disable-auto-import) libraries
13114 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13116 darwin* | rhapsody*)
13117 # PIC is the default on this platform
13118 # Common symbols not allowed in MH_DYLIB files
13119 lt_prog_compiler_pic_CXX='-fno-common'
13122 # DJGPP does not support shared libraries at all
13123 lt_prog_compiler_pic_CXX=
13126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13127 # Instead, we relocate shared libraries at runtime.
13130 if test -d /usr/nec; then
13131 lt_prog_compiler_pic_CXX=-Kconform_pic
13135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13136 # not for PA HP-UX.
13141 lt_prog_compiler_pic_CXX='-fPIC'
13146 lt_prog_compiler_pic_CXX='-fPIC'
13152 # All AIX code is PIC.
13153 if test "$host_cpu" = ia64; then
13154 # AIX 5 now supports IA64 processor
13155 lt_prog_compiler_static_CXX='-Bstatic'
13157 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13161 case $cc_basename in
13163 # Green Hills C++ Compiler
13164 # _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"
13169 # PIC is the default on this platform
13170 # Common symbols not allowed in MH_DYLIB files
13171 case $cc_basename in
13173 lt_prog_compiler_pic_CXX='-qnocommon'
13174 lt_prog_compiler_wl_CXX='-Wl,'
13179 case $cc_basename in
13181 lt_prog_compiler_pic_CXX='-KPIC'
13184 # Green Hills C++ Compiler
13185 lt_prog_compiler_pic_CXX='-pic'
13191 freebsd* | dragonfly*)
13192 # FreeBSD uses GNU C++
13194 hpux9* | hpux10* | hpux11*)
13195 case $cc_basename in
13197 lt_prog_compiler_wl_CXX='-Wl,'
13198 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13199 if test "$host_cpu" != ia64; then
13200 lt_prog_compiler_pic_CXX='+Z'
13204 lt_prog_compiler_wl_CXX='-Wl,'
13205 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13211 lt_prog_compiler_pic_CXX='+Z'
13220 # This is c89, which is MS Visual C++ (no shared libs)
13221 # Anyone wants to do a port?
13223 irix5* | irix6* | nonstopux*)
13224 case $cc_basename in
13226 lt_prog_compiler_wl_CXX='-Wl,'
13227 lt_prog_compiler_static_CXX='-non_shared'
13228 # CC pic flag -KPIC is the default.
13234 linux* | k*bsd*-gnu)
13235 case $cc_basename in
13238 lt_prog_compiler_wl_CXX='--backend -Wl,'
13239 lt_prog_compiler_pic_CXX='-fPIC'
13243 lt_prog_compiler_wl_CXX='-Wl,'
13244 lt_prog_compiler_pic_CXX='-KPIC'
13245 lt_prog_compiler_static_CXX='-static'
13248 # Portland Group C++ compiler.
13249 lt_prog_compiler_wl_CXX='-Wl,'
13250 lt_prog_compiler_pic_CXX='-fpic'
13251 lt_prog_compiler_static_CXX='-Bstatic'
13255 # Make sure the PIC flag is empty. It appears that all Alpha
13256 # Linux and Compaq Tru64 Unix objects are PIC.
13257 lt_prog_compiler_pic_CXX=
13258 lt_prog_compiler_static_CXX='-non_shared'
13261 case `$CC -V 2>&1 | sed 5q` in
13264 lt_prog_compiler_pic_CXX='-KPIC'
13265 lt_prog_compiler_static_CXX='-Bstatic'
13266 lt_prog_compiler_wl_CXX='-Qoption ld '
13277 case $cc_basename in
13279 lt_prog_compiler_pic_CXX='-W c,exportall'
13287 osf3* | osf4* | osf5*)
13288 case $cc_basename in
13290 lt_prog_compiler_wl_CXX='--backend -Wl,'
13293 # Rational C++ 2.4.1
13294 lt_prog_compiler_pic_CXX='-pic'
13297 # Digital/Compaq C++
13298 lt_prog_compiler_wl_CXX='-Wl,'
13299 # Make sure the PIC flag is empty. It appears that all Alpha
13300 # Linux and Compaq Tru64 Unix objects are PIC.
13301 lt_prog_compiler_pic_CXX=
13302 lt_prog_compiler_static_CXX='-non_shared'
13311 case $cc_basename in
13313 # Sun C++ 4.2, 5.x and Centerline C++
13314 lt_prog_compiler_pic_CXX='-KPIC'
13315 lt_prog_compiler_static_CXX='-Bstatic'
13316 lt_prog_compiler_wl_CXX='-Qoption ld '
13319 # Green Hills C++ Compiler
13320 lt_prog_compiler_pic_CXX='-PIC'
13327 case $cc_basename in
13330 lt_prog_compiler_pic_CXX='-pic'
13331 lt_prog_compiler_static_CXX='-Bstatic'
13335 lt_prog_compiler_pic_CXX='-pic'
13342 case $cc_basename in
13344 # NonStop-UX NCC 3.20
13345 lt_prog_compiler_pic_CXX='-KPIC'
13351 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13352 case $cc_basename in
13354 lt_prog_compiler_wl_CXX='-Wl,'
13355 lt_prog_compiler_pic_CXX='-KPIC'
13356 lt_prog_compiler_static_CXX='-Bstatic'
13363 lt_prog_compiler_can_build_shared_CXX=no
13368 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13369 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13372 # Check to make sure the PIC flag actually works.
13374 if test -n "$lt_prog_compiler_pic_CXX"; then
13376 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13378 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13379 $as_echo_n "(cached) " >&6
13381 lt_cv_prog_compiler_pic_works_CXX=no
13382 ac_outfile=conftest.$ac_objext
13383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13384 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13385 # Insert the option either (1) after the last *FLAGS variable, or
13386 # (2) before a word containing "conftest.", or (3) at the end.
13387 # Note that $ac_compile itself does not contain backslashes and begins
13388 # with a dollar sign (not a hyphen), so the echo should work correctly.
13389 # The option is referenced via a variable to avoid confusing sed.
13390 lt_compile=`echo "$ac_compile" | $SED \
13391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13393 -e 's:$: $lt_compiler_flag:'`
13394 (eval echo "\"\$as_me:13394: $lt_compile\"" >&5)
13395 (eval "$lt_compile" 2>conftest.err)
13397 cat conftest.err >&5
13398 echo "$as_me:13398: \$? = $ac_status" >&5
13399 if (exit $ac_status) && test -s "$ac_outfile"; then
13400 # The compiler can only warn and ignore the option if not recognized
13401 # So say no if there are warnings other than the usual output.
13402 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13405 lt_cv_prog_compiler_pic_works_CXX=yes
13411 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13412 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13414 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13415 case $lt_prog_compiler_pic_CXX in
13417 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13420 lt_prog_compiler_pic_CXX=
13421 lt_prog_compiler_can_build_shared_CXX=no
13426 # For platforms which do not support PIC, -DPIC is meaningless:
13428 lt_prog_compiler_pic_CXX=
13431 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13436 # Check to make sure the static flag actually works.
13438 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13439 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13440 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13441 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13442 $as_echo_n "(cached) " >&6
13444 lt_cv_prog_compiler_static_works_CXX=no
13445 save_LDFLAGS="$LDFLAGS"
13446 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13447 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13449 # The linker can only warn and ignore the option if not recognized
13450 # So say no if there are warnings
13451 if test -s conftest.err; then
13452 # Append any errors to the config.log.
13453 cat conftest.err 1>&5
13454 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13456 if diff conftest.exp conftest.er2 >/dev/null; then
13457 lt_cv_prog_compiler_static_works_CXX=yes
13460 lt_cv_prog_compiler_static_works_CXX=yes
13464 LDFLAGS="$save_LDFLAGS"
13467 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13468 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13470 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13473 lt_prog_compiler_static_CXX=
13477 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13479 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13480 $as_echo_n "(cached) " >&6
13482 lt_cv_prog_compiler_c_o_CXX=no
13483 $rm -r conftest 2>/dev/null
13487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13489 lt_compiler_flag="-o out/conftest2.$ac_objext"
13490 # Insert the option either (1) after the last *FLAGS variable, or
13491 # (2) before a word containing "conftest.", or (3) at the end.
13492 # Note that $ac_compile itself does not contain backslashes and begins
13493 # with a dollar sign (not a hyphen), so the echo should work correctly.
13494 lt_compile=`echo "$ac_compile" | $SED \
13495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13497 -e 's:$: $lt_compiler_flag:'`
13498 (eval echo "\"\$as_me:13498: $lt_compile\"" >&5)
13499 (eval "$lt_compile" 2>out/conftest.err)
13501 cat out/conftest.err >&5
13502 echo "$as_me:13502: \$? = $ac_status" >&5
13503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13505 # The compiler can only warn and ignore the option if not recognized
13506 # So say no if there are warnings
13507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13510 lt_cv_prog_compiler_c_o_CXX=yes
13515 # SGI C++ compiler will create directory out/ii_files/ for
13516 # template instantiation
13517 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13518 $rm out/* && rmdir out
13524 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13525 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13528 hard_links="nottested"
13529 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13530 # do not overwrite the value of need_locks provided by the user
13531 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13532 $as_echo_n "checking if we can lock with hard links... " >&6; }
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13537 ln conftest.a conftest.b 2>&5 || hard_links=no
13538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13539 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13540 $as_echo "$hard_links" >&6; }
13541 if test "$hard_links" = no; then
13542 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13550 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13551 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13553 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13556 # If we're using GNU nm, then we don't want the "-C" option.
13557 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13558 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13559 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'
13561 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'
13565 export_symbols_cmds_CXX="$ltdll_cmds"
13568 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'
13571 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13574 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13576 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13577 $as_echo "$ld_shlibs_CXX" >&6; }
13578 test "$ld_shlibs_CXX" = no && can_build_shared=no
13581 # Do we need to explicitly link libc?
13583 case "x$archive_cmds_need_lc_CXX" in
13585 # Assume -lc should be added
13586 archive_cmds_need_lc_CXX=yes
13588 if test "$enable_shared" = yes && test "$GCC" = yes; then
13589 case $archive_cmds_CXX in
13591 # FIXME: we may have to deal with multi-command sequences.
13594 # Test whether the compiler implicitly links with -lc since on some
13595 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13596 # to ld, don't add -lc before -lgcc.
13597 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603 (eval $ac_compile) 2>&5
13605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } 2>conftest.err; then
13609 libobjs=conftest.$ac_objext
13611 wl=$lt_prog_compiler_wl_CXX
13612 pic_flag=$lt_prog_compiler_pic_CXX
13618 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13619 allow_undefined_flag_CXX=
13620 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13621 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }
13626 archive_cmds_need_lc_CXX=no
13628 archive_cmds_need_lc_CXX=yes
13630 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13632 cat conftest.err 1>&5
13635 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13636 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13643 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13645 library_names_spec=
13646 libname_spec='lib$name'
13650 postuninstall_cmds=
13654 shlibpath_overrides_runpath=unknown
13656 dynamic_linker="$host_os ld.so"
13657 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13659 need_lib_prefix=unknown
13660 hardcode_into_libs=no
13662 # when you set need_version to no, make sure it does not cause -set_version
13663 # flags to be left without arguments
13664 need_version=unknown
13669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13670 shlibpath_var=LIBPATH
13672 # AIX 3 has no versioning support, so we append a major version to the name.
13673 soname_spec='${libname}${release}${shared_ext}$major'
13680 hardcode_into_libs=yes
13681 if test "$host_cpu" = ia64; then
13682 # AIX 5 supports IA64
13683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13684 shlibpath_var=LD_LIBRARY_PATH
13686 # With GCC up to 2.95.x, collect2 would create an import file
13687 # for dependence libraries. The import file would start with
13688 # the line `#! .'. This would cause the generated library to
13689 # depend on `.', always an invalid library. This was fixed in
13690 # development snapshots of GCC prior to 3.0.
13692 aix4 | aix4.[01] | aix4.[01].*)
13693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13695 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13698 can_build_shared=no
13702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13703 # soname into executable. Probably we can add versioning support to
13704 # collect2, so additional links can be useful in future.
13705 if test "$aix_use_runtimelinking" = yes; then
13706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13707 # instead of lib<name>.a to let people know that these are not
13708 # typical AIX shared libraries.
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711 # We preserve .a as extension for shared libraries through AIX4.2
13712 # and later when we are not doing run time linking.
13713 library_names_spec='${libname}${release}.a $libname.a'
13714 soname_spec='${libname}${release}${shared_ext}$major'
13716 shlibpath_var=LIBPATH
13721 library_names_spec='$libname.ixlibrary $libname.a'
13722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13723 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'
13727 library_names_spec='${libname}${shared_ext}'
13728 dynamic_linker="$host_os ld.so"
13729 shlibpath_var=LIBRARY_PATH
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736 soname_spec='${libname}${release}${shared_ext}$major'
13737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13738 shlibpath_var=LD_LIBRARY_PATH
13739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13741 # the default ld.so.conf also contains /usr/contrib/lib and
13742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13743 # libtool to hard-code these into programs
13746 cygwin* | mingw* | pw32*)
13747 version_type=windows
13752 case $GCC,$host_os in
13753 yes,cygwin* | yes,mingw* | yes,pw32*)
13754 library_names_spec='$libname.dll.a'
13755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13756 postinstall_cmds='base_file=`basename \${file}`~
13757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13758 dldir=$destdir/`dirname \$dlpath`~
13759 test -d \$dldir || mkdir -p \$dldir~
13760 $install_prog $dir/$dlname \$dldir/$dlname~
13761 chmod a+x \$dldir/$dlname'
13762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13763 dlpath=$dir/\$dldll~
13765 shlibpath_overrides_runpath=yes
13769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13771 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13774 # MinGW DLLs use traditional 'lib' prefix
13775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13776 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13777 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13778 # It is most probably a Windows format PATH printed by
13779 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13780 # path with ; separators, and with drive letters. We can handle the
13781 # drive letters (cygwin fileutils understands them), so leave them,
13782 # especially as we might pass files found there to a mingw objdump,
13783 # which wouldn't understand a cygwinified path. Ahh.
13784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13790 # pw32 DLLs use 'pw' prefix rather than 'lib'
13791 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13797 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13800 dynamic_linker='Win32 ld.exe'
13801 # FIXME: first we should search . and the directory the executable is in
13805 darwin* | rhapsody*)
13806 dynamic_linker="$host_os dyld"
13807 version_type=darwin
13810 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13811 soname_spec='${libname}${release}${major}$shared_ext'
13812 shlibpath_overrides_runpath=yes
13813 shlibpath_var=DYLD_LIBRARY_PATH
13814 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13824 soname_spec='${libname}${release}${shared_ext}$major'
13825 shlibpath_var=LD_LIBRARY_PATH
13832 freebsd* | dragonfly*)
13833 # DragonFly does not have aout. When/if they implement a new
13834 # versioning mechanism, adjust this.
13835 if test -x /usr/bin/objformat; then
13836 objformat=`/usr/bin/objformat`
13839 freebsd[123]*) objformat=aout ;;
13840 *) objformat=elf ;;
13843 version_type=freebsd-$objformat
13844 case $version_type in
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13855 shlibpath_var=LD_LIBRARY_PATH
13858 shlibpath_overrides_runpath=yes
13860 freebsd3.[01]* | freebsdelf3.[01]*)
13861 shlibpath_overrides_runpath=yes
13862 hardcode_into_libs=yes
13864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13866 shlibpath_overrides_runpath=no
13867 hardcode_into_libs=yes
13869 *) # from 4.6 on, and DragonFly
13870 shlibpath_overrides_runpath=yes
13871 hardcode_into_libs=yes
13880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13881 soname_spec='${libname}${release}${shared_ext}$major'
13882 shlibpath_var=LD_LIBRARY_PATH
13883 hardcode_into_libs=yes
13886 hpux9* | hpux10* | hpux11*)
13887 # Give a soname corresponding to the major version so that dld.sl refuses to
13888 # link against other versions.
13895 hardcode_into_libs=yes
13896 dynamic_linker="$host_os dld.so"
13897 shlibpath_var=LD_LIBRARY_PATH
13898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13900 soname_spec='${libname}${release}${shared_ext}$major'
13901 if test "X$HPUX_IA64_MODE" = X32; then
13902 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13904 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13910 hardcode_into_libs=yes
13911 dynamic_linker="$host_os dld.sl"
13912 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13915 soname_spec='${libname}${release}${shared_ext}$major'
13916 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13921 dynamic_linker="$host_os dld.sl"
13922 shlibpath_var=SHLIB_PATH
13923 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13925 soname_spec='${libname}${release}${shared_ext}$major'
13928 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13929 postinstall_cmds='chmod 555 $lib'
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13939 shlibpath_var=LD_LIBRARY_PATH
13940 shlibpath_overrides_runpath=no
13941 hardcode_into_libs=yes
13944 irix5* | irix6* | nonstopux*)
13946 nonstopux*) version_type=nonstopux ;;
13948 if test "$lt_cv_prog_gnu_ld" = yes; then
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13959 irix5* | nonstopux*)
13960 libsuff= shlibsuff=
13963 case $LD in # libtool.m4 will add one of these switches to LD
13964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13965 libsuff= shlibsuff= libmagic=32-bit;;
13966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13967 libsuff=32 shlibsuff=N32 libmagic=N32;;
13968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13970 *) libsuff= shlibsuff= libmagic=never-match;;
13974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13975 shlibpath_overrides_runpath=no
13976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13978 hardcode_into_libs=yes
13981 # No shared lib support for Linux oldld, aout, or coff.
13982 linux*oldld* | linux*aout* | linux*coff*)
13986 # This must be Linux ELF.
13987 linux* | k*bsd*-gnu)
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13992 soname_spec='${libname}${release}${shared_ext}$major'
13993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13994 shlibpath_var=LD_LIBRARY_PATH
13995 shlibpath_overrides_runpath=no
13996 # This implies no fast_install, which is unacceptable.
13997 # Some rework will be needed to allow for fast_install
13998 # before this can be enabled.
13999 hardcode_into_libs=yes
14000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14003 # Append ld.so.conf contents to the search path
14004 if test -f /etc/ld.so.conf; then
14005 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14006 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14009 # We used to test for /lib/ld.so.1 and disable shared libraries on
14010 # powerpc, because MkLinux only supported shared libraries with the
14011 # GNU dynamic linker. Since this was broken with cross compilers,
14012 # most powerpc-linux boxes support dynamic linking these days and
14013 # people can always --disable-shared, the test was removed, and we
14014 # assume the GNU/Linux dynamic linker is in use.
14015 dynamic_linker='GNU/Linux ld.so'
14022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14025 dynamic_linker='NetBSD (a.out) ld.so'
14027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14028 soname_spec='${libname}${release}${shared_ext}$major'
14029 dynamic_linker='NetBSD ld.elf_so'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 shlibpath_overrides_runpath=yes
14033 hardcode_into_libs=yes
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 shlibpath_overrides_runpath=yes
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14048 soname_spec='${libname}${release}${shared_ext}$major'
14049 shlibpath_var=LD_LIBRARY_PATH
14050 shlibpath_overrides_runpath=yes
14055 sys_lib_dlsearch_path_spec="/usr/lib"
14057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14060 *) need_version=no ;;
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14067 openbsd2.[89] | openbsd2.[89].*)
14068 shlibpath_overrides_runpath=no
14071 shlibpath_overrides_runpath=yes
14075 shlibpath_overrides_runpath=yes
14080 libname_spec='$name'
14083 library_names_spec='$libname${shared_ext} $libname.a'
14084 dynamic_linker='OS/2 ld.exe'
14085 shlibpath_var=LIBPATH
14088 osf3* | osf4* | osf5*)
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 shlibpath_var=LD_LIBRARY_PATH
14095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108 soname_spec='${libname}${release}${shared_ext}$major'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 shlibpath_overrides_runpath=yes
14111 hardcode_into_libs=yes
14112 # ldd complains unless libraries are executable
14113 postinstall_cmds='chmod +x $lib'
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14120 shlibpath_var=LD_LIBRARY_PATH
14121 shlibpath_overrides_runpath=yes
14122 if test "$with_gnu_ld" = yes; then
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 case $host_vendor in
14135 shlibpath_overrides_runpath=no
14137 export_dynamic_flag_spec='${wl}-Blargedynsym'
14138 runpath_var=LD_RUN_PATH
14146 shlibpath_overrides_runpath=no
14147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14153 if test -d /usr/nec ;then
14155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14156 soname_spec='$libname${shared_ext}.$major'
14157 shlibpath_var=LD_LIBRARY_PATH
14161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14162 version_type=freebsd-elf
14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14166 soname_spec='${libname}${release}${shared_ext}$major'
14167 shlibpath_var=LD_LIBRARY_PATH
14168 hardcode_into_libs=yes
14169 if test "$with_gnu_ld" = yes; then
14170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14171 shlibpath_overrides_runpath=no
14173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14174 shlibpath_overrides_runpath=yes
14177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14181 sys_lib_dlsearch_path_spec='/usr/lib'
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 shlibpath_var=LD_LIBRARY_PATH
14195 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14196 $as_echo "$dynamic_linker" >&6; }
14197 test "$dynamic_linker" = no && can_build_shared=no
14199 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14200 $as_echo_n "(cached) " >&6
14202 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14205 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14206 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14207 $as_echo_n "(cached) " >&6
14209 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14212 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14215 if test "$GCC" = yes; then
14216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14219 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14220 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14221 hardcode_action_CXX=
14222 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14223 test -n "$runpath_var_CXX" || \
14224 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14226 # We can hardcode non-existant directories.
14227 if test "$hardcode_direct_CXX" != no &&
14228 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14229 # have to relink, otherwise we might link with an installed library
14230 # when we should be linking with a yet-to-be-installed one
14231 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14232 test "$hardcode_minus_L_CXX" != no; then
14233 # Linking always hardcodes the temporary library directory.
14234 hardcode_action_CXX=relink
14236 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14237 hardcode_action_CXX=immediate
14240 # We cannot hardcode anything, or else we can only hardcode existing
14242 hardcode_action_CXX=unsupported
14244 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14245 $as_echo "$hardcode_action_CXX" >&6; }
14247 if test "$hardcode_action_CXX" = relink; then
14248 # Fast installation is not supported
14249 enable_fast_install=no
14250 elif test "$shlibpath_overrides_runpath" = yes ||
14251 test "$enable_shared" = no; then
14252 # Fast installation is not necessary
14253 enable_fast_install=needless
14257 # The else clause should only fire when bootstrapping the
14258 # libtool distribution, otherwise you forgot to ship ltmain.sh
14259 # with your package, and you will get complaints that there are
14260 # no rules to generate ltmain.sh.
14261 if test -f "$ltmain"; then
14262 # See if we are running on zsh, and set the options which allow our commands through
14263 # without removal of \ escapes.
14264 if test -n "${ZSH_VERSION+set}" ; then
14265 setopt NO_GLOB_SUBST
14267 # Now quote all the things that may contain metacharacters while being
14268 # careful not to overquote the AC_SUBSTed values. We take copies of the
14269 # variables and quote the copies for generation of the libtool script.
14270 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14272 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14273 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14274 deplibs_check_method reload_flag reload_cmds need_locks \
14275 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14276 lt_cv_sys_global_symbol_to_c_name_address \
14277 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14278 old_postinstall_cmds old_postuninstall_cmds \
14282 lt_prog_compiler_wl_CXX \
14283 lt_prog_compiler_pic_CXX \
14284 lt_prog_compiler_static_CXX \
14285 lt_prog_compiler_no_builtin_flag_CXX \
14286 export_dynamic_flag_spec_CXX \
14287 thread_safe_flag_spec_CXX \
14288 whole_archive_flag_spec_CXX \
14289 enable_shared_with_static_runtimes_CXX \
14290 old_archive_cmds_CXX \
14291 old_archive_from_new_cmds_CXX \
14292 predep_objects_CXX \
14293 postdep_objects_CXX \
14296 compiler_lib_search_path_CXX \
14297 compiler_lib_search_dirs_CXX \
14299 archive_expsym_cmds_CXX \
14300 postinstall_cmds_CXX \
14301 postuninstall_cmds_CXX \
14302 old_archive_from_expsyms_cmds_CXX \
14303 allow_undefined_flag_CXX \
14304 no_undefined_flag_CXX \
14305 export_symbols_cmds_CXX \
14306 hardcode_libdir_flag_spec_CXX \
14307 hardcode_libdir_flag_spec_ld_CXX \
14308 hardcode_libdir_separator_CXX \
14309 hardcode_automatic_CXX \
14311 module_expsym_cmds_CXX \
14312 lt_cv_prog_compiler_c_o_CXX \
14313 fix_srcfile_path_CXX \
14314 exclude_expsyms_CXX \
14315 include_expsyms_CXX; do
14318 old_archive_cmds_CXX | \
14319 old_archive_from_new_cmds_CXX | \
14320 archive_cmds_CXX | \
14321 archive_expsym_cmds_CXX | \
14322 module_cmds_CXX | \
14323 module_expsym_cmds_CXX | \
14324 old_archive_from_expsyms_cmds_CXX | \
14325 export_symbols_cmds_CXX | \
14326 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14327 postinstall_cmds | postuninstall_cmds | \
14328 old_postinstall_cmds | old_postuninstall_cmds | \
14329 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14330 # Double-quote double-evaled strings.
14331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14340 *'\$0 --fallback-echo"')
14341 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14347 cat <<__EOF__ >> "$cfgfile"
14348 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14350 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14352 # Shell to use when invoking shell scripts.
14355 # Whether or not to build shared libraries.
14356 build_libtool_libs=$enable_shared
14358 # Whether or not to build static libraries.
14359 build_old_libs=$enable_static
14361 # Whether or not to add -lc for building shared libraries.
14362 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14364 # Whether or not to disallow shared libs when runtime libs are static
14365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14367 # Whether or not to optimize for fast installation.
14368 fast_install=$enable_fast_install
14371 host_alias=$host_alias
14375 # The build system.
14376 build_alias=$build_alias
14380 # An echo program that does not interpret backslashes.
14385 AR_FLAGS=$lt_AR_FLAGS
14390 # LTCC compiler flags.
14391 LTCFLAGS=$lt_LTCFLAGS
14393 # A language-specific compiler.
14394 CC=$lt_compiler_CXX
14396 # Is the compiler the GNU C compiler?
14402 # The linker used to build libraries.
14405 # Whether we need hard or soft links.
14408 # A BSD-compatible nm program.
14411 # A symbol stripping program
14414 # Used to examine libraries when file_magic_cmd begins "file"
14415 MAGIC_CMD=$MAGIC_CMD
14417 # Used on cygwin: DLL creation program.
14420 # Used on cygwin: object dumper.
14423 # Used on cygwin: assembler.
14426 # The name of the directory that contains temporary libtool files.
14429 # How to create reloadable object files.
14430 reload_flag=$lt_reload_flag
14431 reload_cmds=$lt_reload_cmds
14433 # How to pass a linker flag through the compiler.
14434 wl=$lt_lt_prog_compiler_wl_CXX
14436 # Object file suffix (normally "o").
14437 objext="$ac_objext"
14439 # Old archive suffix (normally "a").
14442 # Shared library suffix (normally ".so").
14443 shrext_cmds='$shrext_cmds'
14445 # Executable file suffix (normally "").
14448 # Additional compiler flags for building library objects.
14449 pic_flag=$lt_lt_prog_compiler_pic_CXX
14452 # What is the maximum length of a command?
14453 max_cmd_len=$lt_cv_sys_max_cmd_len
14455 # Does compiler simultaneously support -c and -o options?
14456 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14458 # Must we lock files when doing compilation?
14459 need_locks=$lt_need_locks
14461 # Do we need the lib prefix for modules?
14462 need_lib_prefix=$need_lib_prefix
14464 # Do we need a version for libraries?
14465 need_version=$need_version
14467 # Whether dlopen is supported.
14468 dlopen_support=$enable_dlopen
14470 # Whether dlopen of programs is supported.
14471 dlopen_self=$enable_dlopen_self
14473 # Whether dlopen of statically linked programs is supported.
14474 dlopen_self_static=$enable_dlopen_self_static
14476 # Compiler flag to prevent dynamic linking.
14477 link_static_flag=$lt_lt_prog_compiler_static_CXX
14479 # Compiler flag to turn off builtin functions.
14480 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14482 # Compiler flag to allow reflexive dlopens.
14483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14485 # Compiler flag to generate shared objects directly from archives.
14486 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14488 # Compiler flag to generate thread-safe objects.
14489 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14491 # Library versioning type.
14492 version_type=$version_type
14494 # Format of library name prefix.
14495 libname_spec=$lt_libname_spec
14497 # List of archive names. First name is the real one, the rest are links.
14498 # The last name is the one that the linker finds with -lNAME.
14499 library_names_spec=$lt_library_names_spec
14501 # The coded name of the library, if different from the real name.
14502 soname_spec=$lt_soname_spec
14504 # Commands used to build and install an old-style archive.
14506 old_archive_cmds=$lt_old_archive_cmds_CXX
14507 old_postinstall_cmds=$lt_old_postinstall_cmds
14508 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14510 # Create an old-style archive from a shared archive.
14511 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14513 # Create a temporary old-style archive to link instead of a shared archive.
14514 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14516 # Commands used to build and install a shared archive.
14517 archive_cmds=$lt_archive_cmds_CXX
14518 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14519 postinstall_cmds=$lt_postinstall_cmds
14520 postuninstall_cmds=$lt_postuninstall_cmds
14522 # Commands used to build a loadable module (assumed same as above if empty)
14523 module_cmds=$lt_module_cmds_CXX
14524 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14526 # Commands to strip libraries.
14527 old_striplib=$lt_old_striplib
14528 striplib=$lt_striplib
14530 # Dependencies to place before the objects being linked to create a
14532 predep_objects=$lt_predep_objects_CXX
14534 # Dependencies to place after the objects being linked to create a
14536 postdep_objects=$lt_postdep_objects_CXX
14538 # Dependencies to place before the objects being linked to create a
14540 predeps=$lt_predeps_CXX
14542 # Dependencies to place after the objects being linked to create a
14544 postdeps=$lt_postdeps_CXX
14546 # The directories searched by this compiler when creating a shared
14548 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14550 # The library search path used internally by the compiler when linking
14551 # a shared library.
14552 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14554 # Method to check whether dependent libraries are shared objects.
14555 deplibs_check_method=$lt_deplibs_check_method
14557 # Command to use when deplibs_check_method == file_magic.
14558 file_magic_cmd=$lt_file_magic_cmd
14560 # Flag that allows shared libraries with undefined symbols to be built.
14561 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14563 # Flag that forces no undefined symbols.
14564 no_undefined_flag=$lt_no_undefined_flag_CXX
14566 # Commands used to finish a libtool library installation in a directory.
14567 finish_cmds=$lt_finish_cmds
14569 # Same as above, but a single script fragment to be evaled but not shown.
14570 finish_eval=$lt_finish_eval
14572 # Take the output of nm and produce a listing of raw symbols and C names.
14573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14575 # Transform the output of nm in a proper C declaration
14576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14578 # Transform the output of nm in a C name address pair
14579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14581 # This is the shared library runtime path variable.
14582 runpath_var=$runpath_var
14584 # This is the shared library path variable.
14585 shlibpath_var=$shlibpath_var
14587 # Is shlibpath searched before the hard-coded library search path?
14588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14590 # How to hardcode a shared library path into an executable.
14591 hardcode_action=$hardcode_action_CXX
14593 # Whether we should hardcode library paths into libraries.
14594 hardcode_into_libs=$hardcode_into_libs
14596 # Flag to hardcode \$libdir into a binary during linking.
14597 # This must work even if \$libdir does not exist.
14598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14600 # If ld is used when linking, flag to hardcode \$libdir into
14601 # a binary during linking. This must work even if \$libdir does
14603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14605 # Whether we need a single -rpath flag with a separated argument.
14606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14609 # resulting binary.
14610 hardcode_direct=$hardcode_direct_CXX
14612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14613 # resulting binary.
14614 hardcode_minus_L=$hardcode_minus_L_CXX
14616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14617 # the resulting binary.
14618 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14620 # Set to yes if building a shared library automatically hardcodes DIR into the library
14621 # and all subsequent libraries and executables linked against it.
14622 hardcode_automatic=$hardcode_automatic_CXX
14624 # Variables whose values should be saved in libtool wrapper scripts and
14625 # restored at relink time.
14626 variables_saved_for_relink="$variables_saved_for_relink"
14628 # Whether libtool must link a program against all its dependency libraries.
14629 link_all_deplibs=$link_all_deplibs_CXX
14631 # Compile-time system search path for libraries
14632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14634 # Run-time system search path for libraries
14635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14637 # Fix the shell variable \$srcfile for the compiler.
14638 fix_srcfile_path=$lt_fix_srcfile_path
14640 # Set to yes if exported symbols are required.
14641 always_export_symbols=$always_export_symbols_CXX
14643 # The commands to list exported symbols.
14644 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14646 # The commands to extract the exported symbol list from a shared archive.
14647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14649 # Symbols that should not be listed in the preloaded symbols.
14650 exclude_expsyms=$lt_exclude_expsyms_CXX
14652 # Symbols that must always be exported.
14653 include_expsyms=$lt_include_expsyms_CXX
14655 # ### END LIBTOOL TAG CONFIG: $tagname
14661 # If there is no Makefile yet, we rely on a make rule to execute
14662 # `config.status --recheck' to rerun these tests and create the
14663 # libtool script then.
14664 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14665 if test -f "$ltmain_in"; then
14666 test -f Makefile && make "$ltmain"
14672 ac_cpp='$CPP $CPPFLAGS'
14673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14681 with_gnu_ldcxx=$with_gnu_ld
14682 with_gnu_ld=$lt_save_with_gnu_ld
14683 lt_cv_path_LDCXX=$lt_cv_path_LD
14684 lt_cv_path_LD=$lt_save_path_LD
14685 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14686 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14694 if test -n "$F77" && test "X$F77" != "Xno"; then
14697 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14698 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14699 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14702 archive_cmds_need_lc_F77=no
14703 allow_undefined_flag_F77=
14704 always_export_symbols_F77=no
14705 archive_expsym_cmds_F77=
14706 export_dynamic_flag_spec_F77=
14707 hardcode_direct_F77=no
14708 hardcode_libdir_flag_spec_F77=
14709 hardcode_libdir_flag_spec_ld_F77=
14710 hardcode_libdir_separator_F77=
14711 hardcode_minus_L_F77=no
14712 hardcode_automatic_F77=no
14714 module_expsym_cmds_F77=
14715 link_all_deplibs_F77=unknown
14716 old_archive_cmds_F77=$old_archive_cmds
14717 no_undefined_flag_F77=
14718 whole_archive_flag_spec_F77=
14719 enable_shared_with_static_runtimes_F77=no
14721 # Source file extension for f77 test sources.
14724 # Object file extension for compiled f77 test sources.
14728 # Code to be used in simple compile tests
14729 lt_simple_compile_test_code="\
14735 # Code to be used in simple link tests
14736 lt_simple_link_test_code="\
14741 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14743 # If no C compiler was specified, use CC.
14746 # If no C compiler flags were specified, use CFLAGS.
14747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14749 # Allow CC to be a program name with arguments.
14753 # save warnings/boilerplate of simple test code
14754 ac_outfile=conftest.$ac_objext
14755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14757 _lt_compiler_boilerplate=`cat conftest.err`
14760 ac_outfile=conftest.$ac_objext
14761 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14763 _lt_linker_boilerplate=`cat conftest.err`
14767 # Allow CC to be a program name with arguments.
14772 for cc_temp in $compiler""; do
14774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14783 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14785 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14786 $as_echo "$can_build_shared" >&6; }
14788 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14789 $as_echo_n "checking whether to build shared libraries... " >&6; }
14790 test "$can_build_shared" = "no" && enable_shared=no
14792 # On AIX, shared libraries and static libraries use the same namespace, and
14793 # are all built from PIC.
14796 test "$enable_shared" = yes && enable_static=no
14797 if test -n "$RANLIB"; then
14798 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14799 postinstall_cmds='$RANLIB $lib'
14803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14804 test "$enable_shared" = yes && enable_static=no
14808 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14809 $as_echo "$enable_shared" >&6; }
14811 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14812 $as_echo_n "checking whether to build static libraries... " >&6; }
14813 # Make sure either enable_shared or enable_static is yes.
14814 test "$enable_shared" = yes || enable_static=yes
14815 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14816 $as_echo "$enable_static" >&6; }
14821 lt_prog_compiler_wl_F77=
14822 lt_prog_compiler_pic_F77=
14823 lt_prog_compiler_static_F77=
14825 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14826 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14828 if test "$GCC" = yes; then
14829 lt_prog_compiler_wl_F77='-Wl,'
14830 lt_prog_compiler_static_F77='-static'
14834 # All AIX code is PIC.
14835 if test "$host_cpu" = ia64; then
14836 # AIX 5 now supports IA64 processor
14837 lt_prog_compiler_static_F77='-Bstatic'
14842 # FIXME: we need at least 68020 code to build shared libraries, but
14843 # adding the `-m68020' flag to GCC prevents building anything better,
14845 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14848 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14849 # PIC is the default for these OSes.
14852 mingw* | cygwin* | pw32* | os2*)
14853 # This hack is so that the source file can tell whether it is being
14854 # built for inclusion in a dll (and should export symbols for example).
14855 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14856 # (--disable-auto-import) libraries
14857 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14860 darwin* | rhapsody*)
14861 # PIC is the default on this platform
14862 # Common symbols not allowed in MH_DYLIB files
14863 lt_prog_compiler_pic_F77='-fno-common'
14867 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14868 # Instead, we relocate shared libraries at runtime.
14872 # Just because we use GCC doesn't mean we suddenly get shared libraries
14873 # on systems that don't support them.
14874 lt_prog_compiler_can_build_shared_F77=no
14879 if test -d /usr/nec; then
14880 lt_prog_compiler_pic_F77=-Kconform_pic
14885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14886 # not for PA HP-UX.
14892 lt_prog_compiler_pic_F77='-fPIC'
14898 lt_prog_compiler_pic_F77='-fPIC'
14902 # PORTME Check for flag to pass linker flags through the system compiler.
14905 lt_prog_compiler_wl_F77='-Wl,'
14906 if test "$host_cpu" = ia64; then
14907 # AIX 5 now supports IA64 processor
14908 lt_prog_compiler_static_F77='-Bstatic'
14910 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14914 # PIC is the default on this platform
14915 # Common symbols not allowed in MH_DYLIB files
14916 case $cc_basename in
14918 lt_prog_compiler_pic_F77='-qnocommon'
14919 lt_prog_compiler_wl_F77='-Wl,'
14924 mingw* | cygwin* | pw32* | os2*)
14925 # This hack is so that the source file can tell whether it is being
14926 # built for inclusion in a dll (and should export symbols for example).
14927 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14930 hpux9* | hpux10* | hpux11*)
14931 lt_prog_compiler_wl_F77='-Wl,'
14932 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14933 # not for PA HP-UX.
14939 lt_prog_compiler_pic_F77='+Z'
14942 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14943 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14946 irix5* | irix6* | nonstopux*)
14947 lt_prog_compiler_wl_F77='-Wl,'
14948 # PIC (with -KPIC) is the default.
14949 lt_prog_compiler_static_F77='-non_shared'
14953 lt_prog_compiler_pic_F77='-KPIC'
14954 lt_prog_compiler_static_F77='-Bstatic'
14957 linux* | k*bsd*-gnu)
14958 case $cc_basename in
14960 lt_prog_compiler_wl_F77='-Wl,'
14961 lt_prog_compiler_pic_F77='-KPIC'
14962 lt_prog_compiler_static_F77='-static'
14964 pgcc* | pgf77* | pgf90* | pgf95*)
14965 # Portland Group compilers (*not* the Pentium gcc compiler,
14966 # which looks to be a dead project)
14967 lt_prog_compiler_wl_F77='-Wl,'
14968 lt_prog_compiler_pic_F77='-fpic'
14969 lt_prog_compiler_static_F77='-Bstatic'
14972 lt_prog_compiler_wl_F77='-Wl,'
14973 # All Alpha code is PIC.
14974 lt_prog_compiler_static_F77='-non_shared'
14977 case `$CC -V 2>&1 | sed 5q` in
14980 lt_prog_compiler_pic_F77='-KPIC'
14981 lt_prog_compiler_static_F77='-Bstatic'
14982 lt_prog_compiler_wl_F77='-Wl,'
14985 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14986 lt_prog_compiler_pic_F77='-KPIC'
14987 lt_prog_compiler_static_F77='-Bstatic'
14988 lt_prog_compiler_wl_F77=''
14995 osf3* | osf4* | osf5*)
14996 lt_prog_compiler_wl_F77='-Wl,'
14997 # All OSF/1 code is PIC.
14998 lt_prog_compiler_static_F77='-non_shared'
15002 lt_prog_compiler_static_F77='-non_shared'
15006 lt_prog_compiler_pic_F77='-KPIC'
15007 lt_prog_compiler_static_F77='-Bstatic'
15008 case $cc_basename in
15009 f77* | f90* | f95*)
15010 lt_prog_compiler_wl_F77='-Qoption ld ';;
15012 lt_prog_compiler_wl_F77='-Wl,';;
15017 lt_prog_compiler_wl_F77='-Qoption ld '
15018 lt_prog_compiler_pic_F77='-PIC'
15019 lt_prog_compiler_static_F77='-Bstatic'
15022 sysv4 | sysv4.2uw2* | sysv4.3*)
15023 lt_prog_compiler_wl_F77='-Wl,'
15024 lt_prog_compiler_pic_F77='-KPIC'
15025 lt_prog_compiler_static_F77='-Bstatic'
15029 if test -d /usr/nec ;then
15030 lt_prog_compiler_pic_F77='-Kconform_pic'
15031 lt_prog_compiler_static_F77='-Bstatic'
15035 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15036 lt_prog_compiler_wl_F77='-Wl,'
15037 lt_prog_compiler_pic_F77='-KPIC'
15038 lt_prog_compiler_static_F77='-Bstatic'
15042 lt_prog_compiler_wl_F77='-Wl,'
15043 lt_prog_compiler_can_build_shared_F77=no
15047 lt_prog_compiler_pic_F77='-pic'
15048 lt_prog_compiler_static_F77='-Bstatic'
15052 lt_prog_compiler_can_build_shared_F77=no
15057 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15058 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
15061 # Check to make sure the PIC flag actually works.
15063 if test -n "$lt_prog_compiler_pic_F77"; then
15065 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15066 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15067 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15068 $as_echo_n "(cached) " >&6
15070 lt_cv_prog_compiler_pic_works_F77=no
15071 ac_outfile=conftest.$ac_objext
15072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15073 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15074 # Insert the option either (1) after the last *FLAGS variable, or
15075 # (2) before a word containing "conftest.", or (3) at the end.
15076 # Note that $ac_compile itself does not contain backslashes and begins
15077 # with a dollar sign (not a hyphen), so the echo should work correctly.
15078 # The option is referenced via a variable to avoid confusing sed.
15079 lt_compile=`echo "$ac_compile" | $SED \
15080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15082 -e 's:$: $lt_compiler_flag:'`
15083 (eval echo "\"\$as_me:15083: $lt_compile\"" >&5)
15084 (eval "$lt_compile" 2>conftest.err)
15086 cat conftest.err >&5
15087 echo "$as_me:15087: \$? = $ac_status" >&5
15088 if (exit $ac_status) && test -s "$ac_outfile"; then
15089 # The compiler can only warn and ignore the option if not recognized
15090 # So say no if there are warnings other than the usual output.
15091 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15094 lt_cv_prog_compiler_pic_works_F77=yes
15100 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15101 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
15103 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15104 case $lt_prog_compiler_pic_F77 in
15106 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15109 lt_prog_compiler_pic_F77=
15110 lt_prog_compiler_can_build_shared_F77=no
15115 # For platforms which do not support PIC, -DPIC is meaningless:
15117 lt_prog_compiler_pic_F77=
15120 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15125 # Check to make sure the static flag actually works.
15127 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15128 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15129 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15130 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15131 $as_echo_n "(cached) " >&6
15133 lt_cv_prog_compiler_static_works_F77=no
15134 save_LDFLAGS="$LDFLAGS"
15135 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15136 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15138 # The linker can only warn and ignore the option if not recognized
15139 # So say no if there are warnings
15140 if test -s conftest.err; then
15141 # Append any errors to the config.log.
15142 cat conftest.err 1>&5
15143 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15145 if diff conftest.exp conftest.er2 >/dev/null; then
15146 lt_cv_prog_compiler_static_works_F77=yes
15149 lt_cv_prog_compiler_static_works_F77=yes
15153 LDFLAGS="$save_LDFLAGS"
15156 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15157 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
15159 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15162 lt_prog_compiler_static_F77=
15166 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15167 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15168 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15169 $as_echo_n "(cached) " >&6
15171 lt_cv_prog_compiler_c_o_F77=no
15172 $rm -r conftest 2>/dev/null
15176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15178 lt_compiler_flag="-o out/conftest2.$ac_objext"
15179 # Insert the option either (1) after the last *FLAGS variable, or
15180 # (2) before a word containing "conftest.", or (3) at the end.
15181 # Note that $ac_compile itself does not contain backslashes and begins
15182 # with a dollar sign (not a hyphen), so the echo should work correctly.
15183 lt_compile=`echo "$ac_compile" | $SED \
15184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15186 -e 's:$: $lt_compiler_flag:'`
15187 (eval echo "\"\$as_me:15187: $lt_compile\"" >&5)
15188 (eval "$lt_compile" 2>out/conftest.err)
15190 cat out/conftest.err >&5
15191 echo "$as_me:15191: \$? = $ac_status" >&5
15192 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15194 # The compiler can only warn and ignore the option if not recognized
15195 # So say no if there are warnings
15196 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15199 lt_cv_prog_compiler_c_o_F77=yes
15204 # SGI C++ compiler will create directory out/ii_files/ for
15205 # template instantiation
15206 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15207 $rm out/* && rmdir out
15213 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15214 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15217 hard_links="nottested"
15218 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15219 # do not overwrite the value of need_locks provided by the user
15220 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15221 $as_echo_n "checking if we can lock with hard links... " >&6; }
15224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15226 ln conftest.a conftest.b 2>&5 || hard_links=no
15227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15228 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15229 $as_echo "$hard_links" >&6; }
15230 if test "$hard_links" = no; then
15231 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15232 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15239 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15240 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15243 allow_undefined_flag_F77=
15244 enable_shared_with_static_runtimes_F77=no
15246 archive_expsym_cmds_F77=
15247 old_archive_From_new_cmds_F77=
15248 old_archive_from_expsyms_cmds_F77=
15249 export_dynamic_flag_spec_F77=
15250 whole_archive_flag_spec_F77=
15251 thread_safe_flag_spec_F77=
15252 hardcode_libdir_flag_spec_F77=
15253 hardcode_libdir_flag_spec_ld_F77=
15254 hardcode_libdir_separator_F77=
15255 hardcode_direct_F77=no
15256 hardcode_minus_L_F77=no
15257 hardcode_shlibpath_var_F77=unsupported
15258 link_all_deplibs_F77=unknown
15259 hardcode_automatic_F77=no
15261 module_expsym_cmds_F77=
15262 always_export_symbols_F77=no
15263 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15264 # include_expsyms should be a list of space-separated symbols to be *always*
15265 # included in the symbol list
15266 include_expsyms_F77=
15267 # exclude_expsyms can be an extended regexp of symbols to exclude
15268 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15269 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15270 # as well as any symbol that contains `d'.
15271 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15272 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15273 # platforms (ab)use it in PIC code, but their linkers get confused if
15274 # the symbol is explicitly referenced. Since portable code cannot
15275 # rely on this symbol name, it's probably fine to never include it in
15276 # preloaded symbol tables.
15277 # Exclude shared library initialization/finalization symbols.
15278 extract_expsyms_cmds=
15279 # Just being paranoid about ensuring that cc_basename is set.
15280 for cc_temp in $compiler""; do
15282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15288 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15291 cygwin* | mingw* | pw32*)
15292 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15293 # When not using gcc, we currently assume that we are using
15294 # Microsoft Visual C++.
15295 if test "$GCC" != yes; then
15300 # we just hope/assume this is gcc and not c89 (= MSVC++)
15309 if test "$with_gnu_ld" = yes; then
15310 # If archive_cmds runs LD, not CC, wlarc should be empty
15313 # Set some defaults for GNU ld with shared library support. These
15314 # are reset later if shared libraries are not supported. Putting them
15315 # here allows them to be overridden if necessary.
15316 runpath_var=LD_RUN_PATH
15317 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15318 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15319 # ancient GNU ld didn't support --whole-archive et. al.
15320 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15321 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15323 whole_archive_flag_spec_F77=
15325 supports_anon_versioning=no
15326 case `$LD -v 2>/dev/null` in
15327 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15330 *\ 2.11.*) ;; # other 2.11 versions
15331 *) supports_anon_versioning=yes ;;
15334 # See if GNU ld supports shared libraries.
15337 # On AIX/PPC, the GNU linker is very broken
15338 if test "$host_cpu" != ia64; then
15342 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15343 *** to be unable to reliably create shared libraries on AIX.
15344 *** Therefore, libtool is disabling shared libraries support. If you
15345 *** really care for shared libraries, you may want to modify your PATH
15346 *** so that a non-GNU linker is found, and then restart.
15353 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)'
15354 hardcode_libdir_flag_spec_F77='-L$libdir'
15355 hardcode_minus_L_F77=yes
15357 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15358 # that the semantics of dynamic libraries on AmigaOS, at least up
15359 # to version 4, is to share data among multiple programs linked
15360 # with the same dynamic library. Since this doesn't match the
15361 # behavior of shared libraries on other platforms, we can't use
15367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15368 allow_undefined_flag_F77=unsupported
15369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15370 # support --undefined. This deserves some investigation. FIXME
15371 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15377 cygwin* | mingw* | pw32*)
15378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15379 # as there is no search path for DLLs.
15380 hardcode_libdir_flag_spec_F77='-L$libdir'
15381 allow_undefined_flag_F77=unsupported
15382 always_export_symbols_F77=no
15383 enable_shared_with_static_runtimes_F77=yes
15384 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15386 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15387 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15388 # If the export-symbols file already is a .def file (1st line
15389 # is EXPORTS), use it as is; otherwise, prepend...
15390 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15391 cp $export_symbols $output_objdir/$soname.def;
15393 echo EXPORTS > $output_objdir/$soname.def;
15394 cat $export_symbols >> $output_objdir/$soname.def;
15396 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15403 hardcode_direct_F77=no
15404 hardcode_shlibpath_var_F77=no
15405 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15406 export_dynamic_flag_spec_F77='${wl}-E'
15407 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15408 # Instead, shared libraries are loaded at an image base (0x10000000 by
15409 # default) and relocated if they conflict, which is a slow very memory
15410 # consuming and fragmenting process. To avoid this, we pick a random,
15411 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15412 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15413 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'
15414 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'
15417 gnu* | linux* | k*bsd*-gnu)
15418 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15420 case $cc_basename,$host_cpu in
15421 pgcc*) # Portland Group C compiler
15422 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'
15423 tmp_addflag=' $pic_flag'
15425 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15426 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'
15427 tmp_addflag=' $pic_flag -Mnomain' ;;
15428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15429 tmp_addflag=' -i_dynamic' ;;
15430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15431 tmp_addflag=' -i_dynamic -nofor_main' ;;
15432 ifc* | ifort*) # Intel Fortran compiler
15433 tmp_addflag=' -nofor_main' ;;
15435 case `$CC -V 2>&1 | sed 5q` in
15436 *Sun\ C*) # Sun C 5.9
15437 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15438 tmp_sharedflag='-G' ;;
15439 *Sun\ F*) # Sun Fortran 8.3
15440 tmp_sharedflag='-G' ;;
15442 tmp_sharedflag='-shared' ;;
15444 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15446 if test $supports_anon_versioning = yes; then
15447 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15449 $echo "local: *; };" >> $output_objdir/$libname.ver~
15450 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15459 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15462 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15463 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15468 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15472 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15473 *** create shared libraries on Solaris systems. Therefore, libtool
15474 *** is disabling shared libraries support. We urge you to upgrade GNU
15475 *** binutils to release 2.9.1 or newer. Another option is to modify
15476 *** your PATH or compiler configuration so that the native linker is
15477 *** used, and then restart.
15480 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15481 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15489 case `$LD -v 2>&1` in
15490 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15494 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15495 *** reliably create shared libraries on SCO systems. Therefore, libtool
15496 *** is disabling shared libraries support. We urge you to upgrade GNU
15497 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15498 *** your PATH or compiler configuration so that the native linker is
15499 *** used, and then restart.
15504 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15505 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15506 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15507 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15516 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15518 hardcode_direct_F77=yes
15519 hardcode_shlibpath_var_F77=no
15523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15524 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15532 if test "$ld_shlibs_F77" = no; then
15534 hardcode_libdir_flag_spec_F77=
15535 export_dynamic_flag_spec_F77=
15536 whole_archive_flag_spec_F77=
15539 # PORTME fill in a description of your system's linker (not GNU ld)
15542 allow_undefined_flag_F77=unsupported
15543 always_export_symbols_F77=yes
15544 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'
15545 # Note: this linker hardcodes the directories in LIBPATH if there
15546 # are no directories specified by -L.
15547 hardcode_minus_L_F77=yes
15548 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15549 # Neither direct hardcoding nor static linking is supported with a
15551 hardcode_direct_F77=unsupported
15556 if test "$host_cpu" = ia64; then
15557 # On IA64, the linker does run time linking by default, so we don't
15558 # have to do anything special.
15559 aix_use_runtimelinking=no
15560 exp_sym_flag='-Bexport'
15563 # If we're using GNU nm, then we don't want the "-C" option.
15564 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15565 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15566 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'
15568 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'
15570 aix_use_runtimelinking=no
15572 # Test if we are trying to use run time linking or normal
15573 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15574 # need to do runtime linking.
15575 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15576 for ld_flag in $LDFLAGS; do
15577 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15578 aix_use_runtimelinking=yes
15585 exp_sym_flag='-bexport'
15586 no_entry_flag='-bnoentry'
15589 # When large executables or shared objects are built, AIX ld can
15590 # have problems creating the table of contents. If linking a library
15591 # or program results in "error TOC overflow" add -mminimal-toc to
15592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15595 archive_cmds_F77=''
15596 hardcode_direct_F77=yes
15597 hardcode_libdir_separator_F77=':'
15598 link_all_deplibs_F77=yes
15600 if test "$GCC" = yes; then
15601 case $host_os in aix4.[012]|aix4.[012].*)
15602 # We only want to do this on AIX 4.2 and lower, the check
15603 # below for broken collect2 doesn't work under 4.3+
15604 collect2name=`${CC} -print-prog-name=collect2`
15605 if test -f "$collect2name" && \
15606 strings "$collect2name" | grep resolve_lib_name >/dev/null
15608 # We have reworked collect2
15611 # We have old collect2
15612 hardcode_direct_F77=unsupported
15613 # It fails to find uninstalled libraries when the uninstalled
15614 # path is not listed in the libpath. Setting hardcode_minus_L
15615 # to unsupported forces relinking
15616 hardcode_minus_L_F77=yes
15617 hardcode_libdir_flag_spec_F77='-L$libdir'
15618 hardcode_libdir_separator_F77=
15622 shared_flag='-shared'
15623 if test "$aix_use_runtimelinking" = yes; then
15624 shared_flag="$shared_flag "'${wl}-G'
15628 if test "$host_cpu" = ia64; then
15629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15630 # chokes on -Wl,-G. The following line is correct:
15633 if test "$aix_use_runtimelinking" = yes; then
15634 shared_flag='${wl}-G'
15636 shared_flag='${wl}-bM:SRE'
15641 # It seems that -bexpall does not export symbols beginning with
15642 # underscore (_), so it is better to generate a list of symbols to export.
15643 always_export_symbols_F77=yes
15644 if test "$aix_use_runtimelinking" = yes; then
15645 # Warning - without using the other runtime loading flags (-brtl),
15646 # -berok will link without error, but may produce a broken library.
15647 allow_undefined_flag_F77='-berok'
15648 # Determine the default libpath from the value encoded in an empty executable.
15649 cat >conftest.$ac_ext <<_ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15661 $as_echo "$ac_try_echo") >&5
15662 (eval "$ac_link") 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } && {
15669 test -z "$ac_f77_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest$ac_exeext && {
15672 test "$cross_compiling" = yes ||
15673 $as_test_x conftest$ac_exeext
15676 lt_aix_libpath_sed='
15677 /Import File Strings/,/^$/ {
15683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15684 # Check for a 64-bit object if we didn't find anything.
15685 if test -z "$aix_libpath"; then
15686 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15689 $as_echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15695 rm -rf conftest.dSYM
15696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15697 conftest$ac_exeext conftest.$ac_ext
15698 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15700 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15701 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"
15703 if test "$host_cpu" = ia64; then
15704 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15705 allow_undefined_flag_F77="-z nodefs"
15706 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"
15708 # Determine the default libpath from the value encoded in an empty executable.
15709 cat >conftest.$ac_ext <<_ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15721 $as_echo "$ac_try_echo") >&5
15722 (eval "$ac_link") 2>conftest.er1
15724 grep -v '^ *+' conftest.er1 >conftest.err
15726 cat conftest.err >&5
15727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_f77_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest$ac_exeext && {
15732 test "$cross_compiling" = yes ||
15733 $as_test_x conftest$ac_exeext
15736 lt_aix_libpath_sed='
15737 /Import File Strings/,/^$/ {
15743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15744 # Check for a 64-bit object if we didn't find anything.
15745 if test -z "$aix_libpath"; then
15746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15749 $as_echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15755 rm -rf conftest.dSYM
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757 conftest$ac_exeext conftest.$ac_ext
15758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15760 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15761 # Warning - without using the other run time loading flags,
15762 # -berok will link without error, but may produce a broken library.
15763 no_undefined_flag_F77=' ${wl}-bernotok'
15764 allow_undefined_flag_F77=' ${wl}-berok'
15765 # Exported symbols can be pulled into shared objects from archives
15766 whole_archive_flag_spec_F77='$convenience'
15767 archive_cmds_need_lc_F77=yes
15768 # This is similar to how AIX traditionally builds its shared libraries.
15769 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'
15775 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)'
15776 hardcode_libdir_flag_spec_F77='-L$libdir'
15777 hardcode_minus_L_F77=yes
15778 # see comment about different semantics on the GNU ld section
15783 export_dynamic_flag_spec_F77=-rdynamic
15786 cygwin* | mingw* | pw32*)
15787 # When not using gcc, we currently assume that we are using
15788 # Microsoft Visual C++.
15789 # hardcode_libdir_flag_spec is actually meaningless, as there is
15790 # no search path for DLLs.
15791 hardcode_libdir_flag_spec_F77=' '
15792 allow_undefined_flag_F77=unsupported
15793 # Tell ltmain to make .lib files, not .a files.
15795 # Tell ltmain to make .dll files, not .so files.
15797 # FIXME: Setting linknames here is a bad hack.
15798 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15799 # The linker will automatically build a .lib file if we build a DLL.
15800 old_archive_From_new_cmds_F77='true'
15801 # FIXME: Should let the user specify the lib program.
15802 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15803 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15804 enable_shared_with_static_runtimes_F77=yes
15807 darwin* | rhapsody*)
15809 rhapsody* | darwin1.[012])
15810 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15813 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15814 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15816 case ${MACOSX_DEPLOYMENT_TARGET} in
15818 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15821 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15827 archive_cmds_need_lc_F77=no
15828 hardcode_direct_F77=no
15829 hardcode_automatic_F77=yes
15830 hardcode_shlibpath_var_F77=unsupported
15831 whole_archive_flag_spec_F77=''
15832 link_all_deplibs_F77=yes
15833 if test "$GCC" = yes ; then
15834 output_verbose_link_cmd='echo'
15835 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15836 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15837 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15838 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15840 case $cc_basename in
15842 output_verbose_link_cmd='echo'
15843 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15844 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15846 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15847 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}'
15857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15858 hardcode_libdir_flag_spec_F77='-L$libdir'
15859 hardcode_shlibpath_var_F77=no
15866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15867 # support. Future versions do this automatically, but an explicit c++rt0.o
15868 # does not break anything, and helps significantly (at the cost of a little
15871 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15872 hardcode_libdir_flag_spec_F77='-R$libdir'
15873 hardcode_direct_F77=yes
15874 hardcode_shlibpath_var_F77=no
15877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15879 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15880 hardcode_direct_F77=yes
15881 hardcode_minus_L_F77=yes
15882 hardcode_shlibpath_var_F77=no
15885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15886 freebsd* | dragonfly*)
15887 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15888 hardcode_libdir_flag_spec_F77='-R$libdir'
15889 hardcode_direct_F77=yes
15890 hardcode_shlibpath_var_F77=no
15894 if test "$GCC" = yes; then
15895 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'
15897 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'
15899 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15900 hardcode_libdir_separator_F77=:
15901 hardcode_direct_F77=yes
15903 # hardcode_minus_L: Not really in the search PATH,
15904 # but as the default location of the library.
15905 hardcode_minus_L_F77=yes
15906 export_dynamic_flag_spec_F77='${wl}-E'
15910 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15911 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15913 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15915 if test "$with_gnu_ld" = no; then
15916 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15917 hardcode_libdir_separator_F77=:
15919 hardcode_direct_F77=yes
15920 export_dynamic_flag_spec_F77='${wl}-E'
15922 # hardcode_minus_L: Not really in the search PATH,
15923 # but as the default location of the library.
15924 hardcode_minus_L_F77=yes
15929 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15932 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15935 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15938 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15944 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15947 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15950 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15954 if test "$with_gnu_ld" = no; then
15955 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15956 hardcode_libdir_separator_F77=:
15960 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15961 hardcode_direct_F77=no
15962 hardcode_shlibpath_var_F77=no
15965 hardcode_direct_F77=yes
15966 export_dynamic_flag_spec_F77='${wl}-E'
15968 # hardcode_minus_L: Not really in the search PATH,
15969 # but as the default location of the library.
15970 hardcode_minus_L_F77=yes
15976 irix5* | irix6* | nonstopux*)
15977 if test "$GCC" = yes; then
15978 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'
15980 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'
15981 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15983 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15984 hardcode_libdir_separator_F77=:
15985 link_all_deplibs_F77=yes
15989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15992 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15994 hardcode_libdir_flag_spec_F77='-R$libdir'
15995 hardcode_direct_F77=yes
15996 hardcode_shlibpath_var_F77=no
16000 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001 hardcode_direct_F77=yes
16002 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16003 hardcode_libdir_separator_F77=:
16004 hardcode_shlibpath_var_F77=no
16008 if test -f /usr/libexec/ld.so; then
16009 hardcode_direct_F77=yes
16010 hardcode_shlibpath_var_F77=no
16011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16012 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16013 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16014 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16015 export_dynamic_flag_spec_F77='${wl}-E'
16018 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16019 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16020 hardcode_libdir_flag_spec_F77='-R$libdir'
16023 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16024 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16034 hardcode_libdir_flag_spec_F77='-L$libdir'
16035 hardcode_minus_L_F77=yes
16036 allow_undefined_flag_F77=unsupported
16037 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'
16038 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16042 if test "$GCC" = yes; then
16043 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16044 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'
16046 allow_undefined_flag_F77=' -expect_unresolved \*'
16047 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'
16049 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16050 hardcode_libdir_separator_F77=:
16053 osf4* | osf5*) # as osf3* with the addition of -msym flag
16054 if test "$GCC" = yes; then
16055 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16056 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'
16057 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16059 allow_undefined_flag_F77=' -expect_unresolved \*'
16060 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'
16061 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~
16062 $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'
16064 # Both c and cxx compiler support -rpath directly
16065 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16067 hardcode_libdir_separator_F77=:
16071 no_undefined_flag_F77=' -z text'
16072 if test "$GCC" = yes; then
16074 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16075 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16076 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16079 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16080 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16083 hardcode_libdir_flag_spec_F77='-R$libdir'
16084 hardcode_shlibpath_var_F77=no
16086 solaris2.[0-5] | solaris2.[0-5].*) ;;
16088 # The compiler driver will combine and reorder linker options,
16089 # but understands `-z linker_flag'. GCC discards it without `$wl',
16090 # but is careful enough not to reorder.
16091 # Supported since Solaris 2.6 (maybe 2.5.1?)
16092 if test "$GCC" = yes; then
16093 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16095 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16099 link_all_deplibs_F77=yes
16103 if test "x$host_vendor" = xsequent; then
16104 # Use $CC to link under sequent, because it throws in some extra .o
16105 # files that make .init and .fini sections work.
16106 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16108 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16110 hardcode_libdir_flag_spec_F77='-L$libdir'
16111 hardcode_direct_F77=yes
16112 hardcode_minus_L_F77=yes
16113 hardcode_shlibpath_var_F77=no
16117 case $host_vendor in
16119 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120 hardcode_direct_F77=yes # is this really true???
16123 ## LD is ld it makes a PLAMLIB
16124 ## CC just makes a GrossModule.
16125 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16126 reload_cmds_F77='$CC -r -o $output$reload_objs'
16127 hardcode_direct_F77=no
16130 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16134 runpath_var='LD_RUN_PATH'
16135 hardcode_shlibpath_var_F77=no
16139 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16140 hardcode_shlibpath_var_F77=no
16141 export_dynamic_flag_spec_F77='-Bexport'
16145 if test -d /usr/nec; then
16146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147 hardcode_shlibpath_var_F77=no
16148 runpath_var=LD_RUN_PATH
16149 hardcode_runpath_var=yes
16154 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16155 no_undefined_flag_F77='${wl}-z,text'
16156 archive_cmds_need_lc_F77=no
16157 hardcode_shlibpath_var_F77=no
16158 runpath_var='LD_RUN_PATH'
16160 if test "$GCC" = yes; then
16161 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 sysv5* | sco3.2v5* | sco5v6*)
16170 # Note: We can NOT use -z defs as we might desire, because we do not
16171 # link with -lc, and that would cause any symbols used from libc to
16172 # always be unresolved, which means just about no library would
16173 # ever link correctly. If we're not using GNU ld we use -z text
16174 # though, which does catch some bad symbols but isn't as heavy-handed
16176 no_undefined_flag_F77='${wl}-z,text'
16177 allow_undefined_flag_F77='${wl}-z,nodefs'
16178 archive_cmds_need_lc_F77=no
16179 hardcode_shlibpath_var_F77=no
16180 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16181 hardcode_libdir_separator_F77=':'
16182 link_all_deplibs_F77=yes
16183 export_dynamic_flag_spec_F77='${wl}-Bexport'
16184 runpath_var='LD_RUN_PATH'
16186 if test "$GCC" = yes; then
16187 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16188 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16190 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16191 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16196 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197 hardcode_libdir_flag_spec_F77='-L$libdir'
16198 hardcode_shlibpath_var_F77=no
16207 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16208 $as_echo "$ld_shlibs_F77" >&6; }
16209 test "$ld_shlibs_F77" = no && can_build_shared=no
16212 # Do we need to explicitly link libc?
16214 case "x$archive_cmds_need_lc_F77" in
16216 # Assume -lc should be added
16217 archive_cmds_need_lc_F77=yes
16219 if test "$enable_shared" = yes && test "$GCC" = yes; then
16220 case $archive_cmds_F77 in
16222 # FIXME: we may have to deal with multi-command sequences.
16225 # Test whether the compiler implicitly links with -lc since on some
16226 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16227 # to ld, don't add -lc before -lgcc.
16228 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16229 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 (eval $ac_compile) 2>&5
16236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } 2>conftest.err; then
16240 libobjs=conftest.$ac_objext
16242 wl=$lt_prog_compiler_wl_F77
16243 pic_flag=$lt_prog_compiler_pic_F77
16249 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16250 allow_undefined_flag_F77=
16251 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16252 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }
16257 archive_cmds_need_lc_F77=no
16259 archive_cmds_need_lc_F77=yes
16261 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16263 cat conftest.err 1>&5
16266 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16267 $as_echo "$archive_cmds_need_lc_F77" >&6; }
16274 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16276 library_names_spec=
16277 libname_spec='lib$name'
16281 postuninstall_cmds=
16285 shlibpath_overrides_runpath=unknown
16287 dynamic_linker="$host_os ld.so"
16288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16290 need_lib_prefix=unknown
16291 hardcode_into_libs=no
16293 # when you set need_version to no, make sure it does not cause -set_version
16294 # flags to be left without arguments
16295 need_version=unknown
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16301 shlibpath_var=LIBPATH
16303 # AIX 3 has no versioning support, so we append a major version to the name.
16304 soname_spec='${libname}${release}${shared_ext}$major'
16311 hardcode_into_libs=yes
16312 if test "$host_cpu" = ia64; then
16313 # AIX 5 supports IA64
16314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16315 shlibpath_var=LD_LIBRARY_PATH
16317 # With GCC up to 2.95.x, collect2 would create an import file
16318 # for dependence libraries. The import file would start with
16319 # the line `#! .'. This would cause the generated library to
16320 # depend on `.', always an invalid library. This was fixed in
16321 # development snapshots of GCC prior to 3.0.
16323 aix4 | aix4.[01] | aix4.[01].*)
16324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16326 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16329 can_build_shared=no
16333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16334 # soname into executable. Probably we can add versioning support to
16335 # collect2, so additional links can be useful in future.
16336 if test "$aix_use_runtimelinking" = yes; then
16337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16338 # instead of lib<name>.a to let people know that these are not
16339 # typical AIX shared libraries.
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 # We preserve .a as extension for shared libraries through AIX4.2
16343 # and later when we are not doing run time linking.
16344 library_names_spec='${libname}${release}.a $libname.a'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16347 shlibpath_var=LIBPATH
16352 library_names_spec='$libname.ixlibrary $libname.a'
16353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16354 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'
16358 library_names_spec='${libname}${shared_ext}'
16359 dynamic_linker="$host_os ld.so"
16360 shlibpath_var=LIBRARY_PATH
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 soname_spec='${libname}${release}${shared_ext}$major'
16368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16372 # the default ld.so.conf also contains /usr/contrib/lib and
16373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16374 # libtool to hard-code these into programs
16377 cygwin* | mingw* | pw32*)
16378 version_type=windows
16383 case $GCC,$host_os in
16384 yes,cygwin* | yes,mingw* | yes,pw32*)
16385 library_names_spec='$libname.dll.a'
16386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16387 postinstall_cmds='base_file=`basename \${file}`~
16388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16389 dldir=$destdir/`dirname \$dlpath`~
16390 test -d \$dldir || mkdir -p \$dldir~
16391 $install_prog $dir/$dlname \$dldir/$dlname~
16392 chmod a+x \$dldir/$dlname'
16393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16394 dlpath=$dir/\$dldll~
16396 shlibpath_overrides_runpath=yes
16400 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16405 # MinGW DLLs use traditional 'lib' prefix
16406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16408 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16409 # It is most probably a Windows format PATH printed by
16410 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16411 # path with ; separators, and with drive letters. We can handle the
16412 # drive letters (cygwin fileutils understands them), so leave them,
16413 # especially as we might pass files found there to a mingw objdump,
16414 # which wouldn't understand a cygwinified path. Ahh.
16415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16421 # pw32 DLLs use 'pw' prefix rather than 'lib'
16422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16431 dynamic_linker='Win32 ld.exe'
16432 # FIXME: first we should search . and the directory the executable is in
16436 darwin* | rhapsody*)
16437 dynamic_linker="$host_os dyld"
16438 version_type=darwin
16441 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16442 soname_spec='${libname}${release}${major}$shared_ext'
16443 shlibpath_overrides_runpath=yes
16444 shlibpath_var=DYLD_LIBRARY_PATH
16445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 shlibpath_var=LD_LIBRARY_PATH
16463 freebsd* | dragonfly*)
16464 # DragonFly does not have aout. When/if they implement a new
16465 # versioning mechanism, adjust this.
16466 if test -x /usr/bin/objformat; then
16467 objformat=`/usr/bin/objformat`
16470 freebsd[123]*) objformat=aout ;;
16471 *) objformat=elf ;;
16474 version_type=freebsd-$objformat
16475 case $version_type in
16477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16486 shlibpath_var=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes
16491 freebsd3.[01]* | freebsdelf3.[01]*)
16492 shlibpath_overrides_runpath=yes
16493 hardcode_into_libs=yes
16495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16497 shlibpath_overrides_runpath=no
16498 hardcode_into_libs=yes
16500 *) # from 4.6 on, and DragonFly
16501 shlibpath_overrides_runpath=yes
16502 hardcode_into_libs=yes
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 hardcode_into_libs=yes
16517 hpux9* | hpux10* | hpux11*)
16518 # Give a soname corresponding to the major version so that dld.sl refuses to
16519 # link against other versions.
16526 hardcode_into_libs=yes
16527 dynamic_linker="$host_os dld.so"
16528 shlibpath_var=LD_LIBRARY_PATH
16529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 if test "X$HPUX_IA64_MODE" = X32; then
16533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16541 hardcode_into_libs=yes
16542 dynamic_linker="$host_os dld.sl"
16543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546 soname_spec='${libname}${release}${shared_ext}$major'
16547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16552 dynamic_linker="$host_os dld.sl"
16553 shlibpath_var=SHLIB_PATH
16554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16560 postinstall_cmds='chmod 555 $lib'
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath=no
16572 hardcode_into_libs=yes
16575 irix5* | irix6* | nonstopux*)
16577 nonstopux*) version_type=nonstopux ;;
16579 if test "$lt_cv_prog_gnu_ld" = yes; then
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16590 irix5* | nonstopux*)
16591 libsuff= shlibsuff=
16594 case $LD in # libtool.m4 will add one of these switches to LD
16595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16596 libsuff= shlibsuff= libmagic=32-bit;;
16597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16598 libsuff=32 shlibsuff=N32 libmagic=N32;;
16599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16601 *) libsuff= shlibsuff= libmagic=never-match;;
16605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16606 shlibpath_overrides_runpath=no
16607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16609 hardcode_into_libs=yes
16612 # No shared lib support for Linux oldld, aout, or coff.
16613 linux*oldld* | linux*aout* | linux*coff*)
16617 # This must be Linux ELF.
16618 linux* | k*bsd*-gnu)
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=no
16627 # This implies no fast_install, which is unacceptable.
16628 # Some rework will be needed to allow for fast_install
16629 # before this can be enabled.
16630 hardcode_into_libs=yes
16631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16634 # Append ld.so.conf contents to the search path
16635 if test -f /etc/ld.so.conf; then
16636 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16637 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16640 # We used to test for /lib/ld.so.1 and disable shared libraries on
16641 # powerpc, because MkLinux only supported shared libraries with the
16642 # GNU dynamic linker. Since this was broken with cross compilers,
16643 # most powerpc-linux boxes support dynamic linking these days and
16644 # people can always --disable-shared, the test was removed, and we
16645 # assume the GNU/Linux dynamic linker is in use.
16646 dynamic_linker='GNU/Linux ld.so'
16653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16656 dynamic_linker='NetBSD (a.out) ld.so'
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 dynamic_linker='NetBSD ld.elf_so'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=yes
16664 hardcode_into_libs=yes
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670 shlibpath_var=LD_LIBRARY_PATH
16671 shlibpath_overrides_runpath=yes
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=yes
16686 sys_lib_dlsearch_path_spec="/usr/lib"
16688 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16690 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16691 *) need_version=no ;;
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16698 openbsd2.[89] | openbsd2.[89].*)
16699 shlibpath_overrides_runpath=no
16702 shlibpath_overrides_runpath=yes
16706 shlibpath_overrides_runpath=yes
16711 libname_spec='$name'
16714 library_names_spec='$libname${shared_ext} $libname.a'
16715 dynamic_linker='OS/2 ld.exe'
16716 shlibpath_var=LIBPATH
16719 osf3* | osf4* | osf5*)
16723 soname_spec='${libname}${release}${shared_ext}$major'
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725 shlibpath_var=LD_LIBRARY_PATH
16726 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16727 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739 soname_spec='${libname}${release}${shared_ext}$major'
16740 shlibpath_var=LD_LIBRARY_PATH
16741 shlibpath_overrides_runpath=yes
16742 hardcode_into_libs=yes
16743 # ldd complains unless libraries are executable
16744 postinstall_cmds='chmod +x $lib'
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16751 shlibpath_var=LD_LIBRARY_PATH
16752 shlibpath_overrides_runpath=yes
16753 if test "$with_gnu_ld" = yes; then
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 soname_spec='${libname}${release}${shared_ext}$major'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 case $host_vendor in
16766 shlibpath_overrides_runpath=no
16768 export_dynamic_flag_spec='${wl}-Blargedynsym'
16769 runpath_var=LD_RUN_PATH
16777 shlibpath_overrides_runpath=no
16778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16784 if test -d /usr/nec ;then
16786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16787 soname_spec='$libname${shared_ext}.$major'
16788 shlibpath_var=LD_LIBRARY_PATH
16792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16793 version_type=freebsd-elf
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16797 soname_spec='${libname}${release}${shared_ext}$major'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 hardcode_into_libs=yes
16800 if test "$with_gnu_ld" = yes; then
16801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16802 shlibpath_overrides_runpath=no
16804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16805 shlibpath_overrides_runpath=yes
16808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16812 sys_lib_dlsearch_path_spec='/usr/lib'
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 soname_spec='${libname}${release}${shared_ext}$major'
16819 shlibpath_var=LD_LIBRARY_PATH
16826 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16827 $as_echo "$dynamic_linker" >&6; }
16828 test "$dynamic_linker" = no && can_build_shared=no
16830 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16831 $as_echo_n "(cached) " >&6
16833 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16836 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16837 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16838 $as_echo_n "(cached) " >&6
16840 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16843 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16846 if test "$GCC" = yes; then
16847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16850 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16851 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16852 hardcode_action_F77=
16853 if test -n "$hardcode_libdir_flag_spec_F77" || \
16854 test -n "$runpath_var_F77" || \
16855 test "X$hardcode_automatic_F77" = "Xyes" ; then
16857 # We can hardcode non-existant directories.
16858 if test "$hardcode_direct_F77" != no &&
16859 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16860 # have to relink, otherwise we might link with an installed library
16861 # when we should be linking with a yet-to-be-installed one
16862 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16863 test "$hardcode_minus_L_F77" != no; then
16864 # Linking always hardcodes the temporary library directory.
16865 hardcode_action_F77=relink
16867 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16868 hardcode_action_F77=immediate
16871 # We cannot hardcode anything, or else we can only hardcode existing
16873 hardcode_action_F77=unsupported
16875 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16876 $as_echo "$hardcode_action_F77" >&6; }
16878 if test "$hardcode_action_F77" = relink; then
16879 # Fast installation is not supported
16880 enable_fast_install=no
16881 elif test "$shlibpath_overrides_runpath" = yes ||
16882 test "$enable_shared" = no; then
16883 # Fast installation is not necessary
16884 enable_fast_install=needless
16888 # The else clause should only fire when bootstrapping the
16889 # libtool distribution, otherwise you forgot to ship ltmain.sh
16890 # with your package, and you will get complaints that there are
16891 # no rules to generate ltmain.sh.
16892 if test -f "$ltmain"; then
16893 # See if we are running on zsh, and set the options which allow our commands through
16894 # without removal of \ escapes.
16895 if test -n "${ZSH_VERSION+set}" ; then
16896 setopt NO_GLOB_SUBST
16898 # Now quote all the things that may contain metacharacters while being
16899 # careful not to overquote the AC_SUBSTed values. We take copies of the
16900 # variables and quote the copies for generation of the libtool script.
16901 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16903 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16904 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16905 deplibs_check_method reload_flag reload_cmds need_locks \
16906 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16907 lt_cv_sys_global_symbol_to_c_name_address \
16908 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16909 old_postinstall_cmds old_postuninstall_cmds \
16913 lt_prog_compiler_wl_F77 \
16914 lt_prog_compiler_pic_F77 \
16915 lt_prog_compiler_static_F77 \
16916 lt_prog_compiler_no_builtin_flag_F77 \
16917 export_dynamic_flag_spec_F77 \
16918 thread_safe_flag_spec_F77 \
16919 whole_archive_flag_spec_F77 \
16920 enable_shared_with_static_runtimes_F77 \
16921 old_archive_cmds_F77 \
16922 old_archive_from_new_cmds_F77 \
16923 predep_objects_F77 \
16924 postdep_objects_F77 \
16927 compiler_lib_search_path_F77 \
16928 compiler_lib_search_dirs_F77 \
16930 archive_expsym_cmds_F77 \
16931 postinstall_cmds_F77 \
16932 postuninstall_cmds_F77 \
16933 old_archive_from_expsyms_cmds_F77 \
16934 allow_undefined_flag_F77 \
16935 no_undefined_flag_F77 \
16936 export_symbols_cmds_F77 \
16937 hardcode_libdir_flag_spec_F77 \
16938 hardcode_libdir_flag_spec_ld_F77 \
16939 hardcode_libdir_separator_F77 \
16940 hardcode_automatic_F77 \
16942 module_expsym_cmds_F77 \
16943 lt_cv_prog_compiler_c_o_F77 \
16944 fix_srcfile_path_F77 \
16945 exclude_expsyms_F77 \
16946 include_expsyms_F77; do
16949 old_archive_cmds_F77 | \
16950 old_archive_from_new_cmds_F77 | \
16951 archive_cmds_F77 | \
16952 archive_expsym_cmds_F77 | \
16953 module_cmds_F77 | \
16954 module_expsym_cmds_F77 | \
16955 old_archive_from_expsyms_cmds_F77 | \
16956 export_symbols_cmds_F77 | \
16957 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16958 postinstall_cmds | postuninstall_cmds | \
16959 old_postinstall_cmds | old_postuninstall_cmds | \
16960 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16961 # Double-quote double-evaled strings.
16962 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16965 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16971 *'\$0 --fallback-echo"')
16972 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16978 cat <<__EOF__ >> "$cfgfile"
16979 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16981 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16983 # Shell to use when invoking shell scripts.
16986 # Whether or not to build shared libraries.
16987 build_libtool_libs=$enable_shared
16989 # Whether or not to build static libraries.
16990 build_old_libs=$enable_static
16992 # Whether or not to add -lc for building shared libraries.
16993 build_libtool_need_lc=$archive_cmds_need_lc_F77
16995 # Whether or not to disallow shared libs when runtime libs are static
16996 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16998 # Whether or not to optimize for fast installation.
16999 fast_install=$enable_fast_install
17002 host_alias=$host_alias
17006 # The build system.
17007 build_alias=$build_alias
17011 # An echo program that does not interpret backslashes.
17016 AR_FLAGS=$lt_AR_FLAGS
17021 # LTCC compiler flags.
17022 LTCFLAGS=$lt_LTCFLAGS
17024 # A language-specific compiler.
17025 CC=$lt_compiler_F77
17027 # Is the compiler the GNU C compiler?
17033 # The linker used to build libraries.
17036 # Whether we need hard or soft links.
17039 # A BSD-compatible nm program.
17042 # A symbol stripping program
17045 # Used to examine libraries when file_magic_cmd begins "file"
17046 MAGIC_CMD=$MAGIC_CMD
17048 # Used on cygwin: DLL creation program.
17051 # Used on cygwin: object dumper.
17054 # Used on cygwin: assembler.
17057 # The name of the directory that contains temporary libtool files.
17060 # How to create reloadable object files.
17061 reload_flag=$lt_reload_flag
17062 reload_cmds=$lt_reload_cmds
17064 # How to pass a linker flag through the compiler.
17065 wl=$lt_lt_prog_compiler_wl_F77
17067 # Object file suffix (normally "o").
17068 objext="$ac_objext"
17070 # Old archive suffix (normally "a").
17073 # Shared library suffix (normally ".so").
17074 shrext_cmds='$shrext_cmds'
17076 # Executable file suffix (normally "").
17079 # Additional compiler flags for building library objects.
17080 pic_flag=$lt_lt_prog_compiler_pic_F77
17083 # What is the maximum length of a command?
17084 max_cmd_len=$lt_cv_sys_max_cmd_len
17086 # Does compiler simultaneously support -c and -o options?
17087 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17089 # Must we lock files when doing compilation?
17090 need_locks=$lt_need_locks
17092 # Do we need the lib prefix for modules?
17093 need_lib_prefix=$need_lib_prefix
17095 # Do we need a version for libraries?
17096 need_version=$need_version
17098 # Whether dlopen is supported.
17099 dlopen_support=$enable_dlopen
17101 # Whether dlopen of programs is supported.
17102 dlopen_self=$enable_dlopen_self
17104 # Whether dlopen of statically linked programs is supported.
17105 dlopen_self_static=$enable_dlopen_self_static
17107 # Compiler flag to prevent dynamic linking.
17108 link_static_flag=$lt_lt_prog_compiler_static_F77
17110 # Compiler flag to turn off builtin functions.
17111 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17113 # Compiler flag to allow reflexive dlopens.
17114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17116 # Compiler flag to generate shared objects directly from archives.
17117 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17119 # Compiler flag to generate thread-safe objects.
17120 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17122 # Library versioning type.
17123 version_type=$version_type
17125 # Format of library name prefix.
17126 libname_spec=$lt_libname_spec
17128 # List of archive names. First name is the real one, the rest are links.
17129 # The last name is the one that the linker finds with -lNAME.
17130 library_names_spec=$lt_library_names_spec
17132 # The coded name of the library, if different from the real name.
17133 soname_spec=$lt_soname_spec
17135 # Commands used to build and install an old-style archive.
17137 old_archive_cmds=$lt_old_archive_cmds_F77
17138 old_postinstall_cmds=$lt_old_postinstall_cmds
17139 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17141 # Create an old-style archive from a shared archive.
17142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17144 # Create a temporary old-style archive to link instead of a shared archive.
17145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17147 # Commands used to build and install a shared archive.
17148 archive_cmds=$lt_archive_cmds_F77
17149 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17150 postinstall_cmds=$lt_postinstall_cmds
17151 postuninstall_cmds=$lt_postuninstall_cmds
17153 # Commands used to build a loadable module (assumed same as above if empty)
17154 module_cmds=$lt_module_cmds_F77
17155 module_expsym_cmds=$lt_module_expsym_cmds_F77
17157 # Commands to strip libraries.
17158 old_striplib=$lt_old_striplib
17159 striplib=$lt_striplib
17161 # Dependencies to place before the objects being linked to create a
17163 predep_objects=$lt_predep_objects_F77
17165 # Dependencies to place after the objects being linked to create a
17167 postdep_objects=$lt_postdep_objects_F77
17169 # Dependencies to place before the objects being linked to create a
17171 predeps=$lt_predeps_F77
17173 # Dependencies to place after the objects being linked to create a
17175 postdeps=$lt_postdeps_F77
17177 # The directories searched by this compiler when creating a shared
17179 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17181 # The library search path used internally by the compiler when linking
17182 # a shared library.
17183 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17185 # Method to check whether dependent libraries are shared objects.
17186 deplibs_check_method=$lt_deplibs_check_method
17188 # Command to use when deplibs_check_method == file_magic.
17189 file_magic_cmd=$lt_file_magic_cmd
17191 # Flag that allows shared libraries with undefined symbols to be built.
17192 allow_undefined_flag=$lt_allow_undefined_flag_F77
17194 # Flag that forces no undefined symbols.
17195 no_undefined_flag=$lt_no_undefined_flag_F77
17197 # Commands used to finish a libtool library installation in a directory.
17198 finish_cmds=$lt_finish_cmds
17200 # Same as above, but a single script fragment to be evaled but not shown.
17201 finish_eval=$lt_finish_eval
17203 # Take the output of nm and produce a listing of raw symbols and C names.
17204 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17206 # Transform the output of nm in a proper C declaration
17207 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17209 # Transform the output of nm in a C name address pair
17210 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17212 # This is the shared library runtime path variable.
17213 runpath_var=$runpath_var
17215 # This is the shared library path variable.
17216 shlibpath_var=$shlibpath_var
17218 # Is shlibpath searched before the hard-coded library search path?
17219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17221 # How to hardcode a shared library path into an executable.
17222 hardcode_action=$hardcode_action_F77
17224 # Whether we should hardcode library paths into libraries.
17225 hardcode_into_libs=$hardcode_into_libs
17227 # Flag to hardcode \$libdir into a binary during linking.
17228 # This must work even if \$libdir does not exist.
17229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17231 # If ld is used when linking, flag to hardcode \$libdir into
17232 # a binary during linking. This must work even if \$libdir does
17234 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17236 # Whether we need a single -rpath flag with a separated argument.
17237 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17239 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17240 # resulting binary.
17241 hardcode_direct=$hardcode_direct_F77
17243 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17244 # resulting binary.
17245 hardcode_minus_L=$hardcode_minus_L_F77
17247 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17248 # the resulting binary.
17249 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17251 # Set to yes if building a shared library automatically hardcodes DIR into the library
17252 # and all subsequent libraries and executables linked against it.
17253 hardcode_automatic=$hardcode_automatic_F77
17255 # Variables whose values should be saved in libtool wrapper scripts and
17256 # restored at relink time.
17257 variables_saved_for_relink="$variables_saved_for_relink"
17259 # Whether libtool must link a program against all its dependency libraries.
17260 link_all_deplibs=$link_all_deplibs_F77
17262 # Compile-time system search path for libraries
17263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17265 # Run-time system search path for libraries
17266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17268 # Fix the shell variable \$srcfile for the compiler.
17269 fix_srcfile_path=$lt_fix_srcfile_path
17271 # Set to yes if exported symbols are required.
17272 always_export_symbols=$always_export_symbols_F77
17274 # The commands to list exported symbols.
17275 export_symbols_cmds=$lt_export_symbols_cmds_F77
17277 # The commands to extract the exported symbol list from a shared archive.
17278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17280 # Symbols that should not be listed in the preloaded symbols.
17281 exclude_expsyms=$lt_exclude_expsyms_F77
17283 # Symbols that must always be exported.
17284 include_expsyms=$lt_include_expsyms_F77
17286 # ### END LIBTOOL TAG CONFIG: $tagname
17292 # If there is no Makefile yet, we rely on a make rule to execute
17293 # `config.status --recheck' to rerun these tests and create the
17294 # libtool script then.
17295 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17296 if test -f "$ltmain_in"; then
17297 test -f Makefile && make "$ltmain"
17303 ac_cpp='$CPP $CPPFLAGS'
17304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17316 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17319 # Source file extension for Java test sources.
17322 # Object file extension for compiled Java test sources.
17326 # Code to be used in simple compile tests
17327 lt_simple_compile_test_code="class foo {}"
17329 # Code to be used in simple link tests
17330 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17334 # If no C compiler was specified, use CC.
17337 # If no C compiler flags were specified, use CFLAGS.
17338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17340 # Allow CC to be a program name with arguments.
17344 # save warnings/boilerplate of simple test code
17345 ac_outfile=conftest.$ac_objext
17346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17348 _lt_compiler_boilerplate=`cat conftest.err`
17351 ac_outfile=conftest.$ac_objext
17352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17354 _lt_linker_boilerplate=`cat conftest.err`
17358 # Allow CC to be a program name with arguments.
17363 for cc_temp in $compiler""; do
17365 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17366 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17371 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17374 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17375 archive_cmds_need_lc_GCJ=no
17377 old_archive_cmds_GCJ=$old_archive_cmds
17380 lt_prog_compiler_no_builtin_flag_GCJ=
17382 if test "$GCC" = yes; then
17383 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17386 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17387 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17388 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17389 $as_echo_n "(cached) " >&6
17391 lt_cv_prog_compiler_rtti_exceptions=no
17392 ac_outfile=conftest.$ac_objext
17393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17394 lt_compiler_flag="-fno-rtti -fno-exceptions"
17395 # Insert the option either (1) after the last *FLAGS variable, or
17396 # (2) before a word containing "conftest.", or (3) at the end.
17397 # Note that $ac_compile itself does not contain backslashes and begins
17398 # with a dollar sign (not a hyphen), so the echo should work correctly.
17399 # The option is referenced via a variable to avoid confusing sed.
17400 lt_compile=`echo "$ac_compile" | $SED \
17401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17403 -e 's:$: $lt_compiler_flag:'`
17404 (eval echo "\"\$as_me:17404: $lt_compile\"" >&5)
17405 (eval "$lt_compile" 2>conftest.err)
17407 cat conftest.err >&5
17408 echo "$as_me:17408: \$? = $ac_status" >&5
17409 if (exit $ac_status) && test -s "$ac_outfile"; then
17410 # The compiler can only warn and ignore the option if not recognized
17411 # So say no if there are warnings other than the usual output.
17412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17414 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17415 lt_cv_prog_compiler_rtti_exceptions=yes
17421 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17422 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17424 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17425 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17432 lt_prog_compiler_wl_GCJ=
17433 lt_prog_compiler_pic_GCJ=
17434 lt_prog_compiler_static_GCJ=
17436 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17439 if test "$GCC" = yes; then
17440 lt_prog_compiler_wl_GCJ='-Wl,'
17441 lt_prog_compiler_static_GCJ='-static'
17445 # All AIX code is PIC.
17446 if test "$host_cpu" = ia64; then
17447 # AIX 5 now supports IA64 processor
17448 lt_prog_compiler_static_GCJ='-Bstatic'
17453 # FIXME: we need at least 68020 code to build shared libraries, but
17454 # adding the `-m68020' flag to GCC prevents building anything better,
17456 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17460 # PIC is the default for these OSes.
17463 mingw* | cygwin* | pw32* | os2*)
17464 # This hack is so that the source file can tell whether it is being
17465 # built for inclusion in a dll (and should export symbols for example).
17466 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17467 # (--disable-auto-import) libraries
17471 darwin* | rhapsody*)
17472 # PIC is the default on this platform
17473 # Common symbols not allowed in MH_DYLIB files
17474 lt_prog_compiler_pic_GCJ='-fno-common'
17478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17479 # Instead, we relocate shared libraries at runtime.
17483 # Just because we use GCC doesn't mean we suddenly get shared libraries
17484 # on systems that don't support them.
17485 lt_prog_compiler_can_build_shared_GCJ=no
17490 if test -d /usr/nec; then
17491 lt_prog_compiler_pic_GCJ=-Kconform_pic
17496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17497 # not for PA HP-UX.
17503 lt_prog_compiler_pic_GCJ='-fPIC'
17509 lt_prog_compiler_pic_GCJ='-fPIC'
17513 # PORTME Check for flag to pass linker flags through the system compiler.
17516 lt_prog_compiler_wl_GCJ='-Wl,'
17517 if test "$host_cpu" = ia64; then
17518 # AIX 5 now supports IA64 processor
17519 lt_prog_compiler_static_GCJ='-Bstatic'
17521 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17525 # PIC is the default on this platform
17526 # Common symbols not allowed in MH_DYLIB files
17527 case $cc_basename in
17529 lt_prog_compiler_pic_GCJ='-qnocommon'
17530 lt_prog_compiler_wl_GCJ='-Wl,'
17535 mingw* | cygwin* | pw32* | os2*)
17536 # This hack is so that the source file can tell whether it is being
17537 # built for inclusion in a dll (and should export symbols for example).
17541 hpux9* | hpux10* | hpux11*)
17542 lt_prog_compiler_wl_GCJ='-Wl,'
17543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17544 # not for PA HP-UX.
17550 lt_prog_compiler_pic_GCJ='+Z'
17553 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17554 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17557 irix5* | irix6* | nonstopux*)
17558 lt_prog_compiler_wl_GCJ='-Wl,'
17559 # PIC (with -KPIC) is the default.
17560 lt_prog_compiler_static_GCJ='-non_shared'
17564 lt_prog_compiler_pic_GCJ='-KPIC'
17565 lt_prog_compiler_static_GCJ='-Bstatic'
17568 linux* | k*bsd*-gnu)
17569 case $cc_basename in
17571 lt_prog_compiler_wl_GCJ='-Wl,'
17572 lt_prog_compiler_pic_GCJ='-KPIC'
17573 lt_prog_compiler_static_GCJ='-static'
17575 pgcc* | pgf77* | pgf90* | pgf95*)
17576 # Portland Group compilers (*not* the Pentium gcc compiler,
17577 # which looks to be a dead project)
17578 lt_prog_compiler_wl_GCJ='-Wl,'
17579 lt_prog_compiler_pic_GCJ='-fpic'
17580 lt_prog_compiler_static_GCJ='-Bstatic'
17583 lt_prog_compiler_wl_GCJ='-Wl,'
17584 # All Alpha code is PIC.
17585 lt_prog_compiler_static_GCJ='-non_shared'
17588 case `$CC -V 2>&1 | sed 5q` in
17591 lt_prog_compiler_pic_GCJ='-KPIC'
17592 lt_prog_compiler_static_GCJ='-Bstatic'
17593 lt_prog_compiler_wl_GCJ='-Wl,'
17596 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17597 lt_prog_compiler_pic_GCJ='-KPIC'
17598 lt_prog_compiler_static_GCJ='-Bstatic'
17599 lt_prog_compiler_wl_GCJ=''
17606 osf3* | osf4* | osf5*)
17607 lt_prog_compiler_wl_GCJ='-Wl,'
17608 # All OSF/1 code is PIC.
17609 lt_prog_compiler_static_GCJ='-non_shared'
17613 lt_prog_compiler_static_GCJ='-non_shared'
17617 lt_prog_compiler_pic_GCJ='-KPIC'
17618 lt_prog_compiler_static_GCJ='-Bstatic'
17619 case $cc_basename in
17620 f77* | f90* | f95*)
17621 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17623 lt_prog_compiler_wl_GCJ='-Wl,';;
17628 lt_prog_compiler_wl_GCJ='-Qoption ld '
17629 lt_prog_compiler_pic_GCJ='-PIC'
17630 lt_prog_compiler_static_GCJ='-Bstatic'
17633 sysv4 | sysv4.2uw2* | sysv4.3*)
17634 lt_prog_compiler_wl_GCJ='-Wl,'
17635 lt_prog_compiler_pic_GCJ='-KPIC'
17636 lt_prog_compiler_static_GCJ='-Bstatic'
17640 if test -d /usr/nec ;then
17641 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17642 lt_prog_compiler_static_GCJ='-Bstatic'
17646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17647 lt_prog_compiler_wl_GCJ='-Wl,'
17648 lt_prog_compiler_pic_GCJ='-KPIC'
17649 lt_prog_compiler_static_GCJ='-Bstatic'
17653 lt_prog_compiler_wl_GCJ='-Wl,'
17654 lt_prog_compiler_can_build_shared_GCJ=no
17658 lt_prog_compiler_pic_GCJ='-pic'
17659 lt_prog_compiler_static_GCJ='-Bstatic'
17663 lt_prog_compiler_can_build_shared_GCJ=no
17668 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17669 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17672 # Check to make sure the PIC flag actually works.
17674 if test -n "$lt_prog_compiler_pic_GCJ"; then
17676 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17678 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17679 $as_echo_n "(cached) " >&6
17681 lt_cv_prog_compiler_pic_works_GCJ=no
17682 ac_outfile=conftest.$ac_objext
17683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17684 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17685 # Insert the option either (1) after the last *FLAGS variable, or
17686 # (2) before a word containing "conftest.", or (3) at the end.
17687 # Note that $ac_compile itself does not contain backslashes and begins
17688 # with a dollar sign (not a hyphen), so the echo should work correctly.
17689 # The option is referenced via a variable to avoid confusing sed.
17690 lt_compile=`echo "$ac_compile" | $SED \
17691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17693 -e 's:$: $lt_compiler_flag:'`
17694 (eval echo "\"\$as_me:17694: $lt_compile\"" >&5)
17695 (eval "$lt_compile" 2>conftest.err)
17697 cat conftest.err >&5
17698 echo "$as_me:17698: \$? = $ac_status" >&5
17699 if (exit $ac_status) && test -s "$ac_outfile"; then
17700 # The compiler can only warn and ignore the option if not recognized
17701 # So say no if there are warnings other than the usual output.
17702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17705 lt_cv_prog_compiler_pic_works_GCJ=yes
17711 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17712 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17714 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17715 case $lt_prog_compiler_pic_GCJ in
17717 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17720 lt_prog_compiler_pic_GCJ=
17721 lt_prog_compiler_can_build_shared_GCJ=no
17726 # For platforms which do not support PIC, -DPIC is meaningless:
17728 lt_prog_compiler_pic_GCJ=
17731 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17736 # Check to make sure the static flag actually works.
17738 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17739 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17741 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17742 $as_echo_n "(cached) " >&6
17744 lt_cv_prog_compiler_static_works_GCJ=no
17745 save_LDFLAGS="$LDFLAGS"
17746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17749 # The linker can only warn and ignore the option if not recognized
17750 # So say no if there are warnings
17751 if test -s conftest.err; then
17752 # Append any errors to the config.log.
17753 cat conftest.err 1>&5
17754 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17756 if diff conftest.exp conftest.er2 >/dev/null; then
17757 lt_cv_prog_compiler_static_works_GCJ=yes
17760 lt_cv_prog_compiler_static_works_GCJ=yes
17764 LDFLAGS="$save_LDFLAGS"
17767 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17768 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17770 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17773 lt_prog_compiler_static_GCJ=
17777 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17780 $as_echo_n "(cached) " >&6
17782 lt_cv_prog_compiler_c_o_GCJ=no
17783 $rm -r conftest 2>/dev/null
17787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17789 lt_compiler_flag="-o out/conftest2.$ac_objext"
17790 # Insert the option either (1) after the last *FLAGS variable, or
17791 # (2) before a word containing "conftest.", or (3) at the end.
17792 # Note that $ac_compile itself does not contain backslashes and begins
17793 # with a dollar sign (not a hyphen), so the echo should work correctly.
17794 lt_compile=`echo "$ac_compile" | $SED \
17795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17797 -e 's:$: $lt_compiler_flag:'`
17798 (eval echo "\"\$as_me:17798: $lt_compile\"" >&5)
17799 (eval "$lt_compile" 2>out/conftest.err)
17801 cat out/conftest.err >&5
17802 echo "$as_me:17802: \$? = $ac_status" >&5
17803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17805 # The compiler can only warn and ignore the option if not recognized
17806 # So say no if there are warnings
17807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17810 lt_cv_prog_compiler_c_o_GCJ=yes
17815 # SGI C++ compiler will create directory out/ii_files/ for
17816 # template instantiation
17817 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17818 $rm out/* && rmdir out
17824 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17825 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17828 hard_links="nottested"
17829 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17830 # do not overwrite the value of need_locks provided by the user
17831 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17832 $as_echo_n "checking if we can lock with hard links... " >&6; }
17835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17837 ln conftest.a conftest.b 2>&5 || hard_links=no
17838 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17839 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17840 $as_echo "$hard_links" >&6; }
17841 if test "$hard_links" = no; then
17842 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17843 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17850 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17851 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17854 allow_undefined_flag_GCJ=
17855 enable_shared_with_static_runtimes_GCJ=no
17857 archive_expsym_cmds_GCJ=
17858 old_archive_From_new_cmds_GCJ=
17859 old_archive_from_expsyms_cmds_GCJ=
17860 export_dynamic_flag_spec_GCJ=
17861 whole_archive_flag_spec_GCJ=
17862 thread_safe_flag_spec_GCJ=
17863 hardcode_libdir_flag_spec_GCJ=
17864 hardcode_libdir_flag_spec_ld_GCJ=
17865 hardcode_libdir_separator_GCJ=
17866 hardcode_direct_GCJ=no
17867 hardcode_minus_L_GCJ=no
17868 hardcode_shlibpath_var_GCJ=unsupported
17869 link_all_deplibs_GCJ=unknown
17870 hardcode_automatic_GCJ=no
17872 module_expsym_cmds_GCJ=
17873 always_export_symbols_GCJ=no
17874 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17875 # include_expsyms should be a list of space-separated symbols to be *always*
17876 # included in the symbol list
17877 include_expsyms_GCJ=
17878 # exclude_expsyms can be an extended regexp of symbols to exclude
17879 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17881 # as well as any symbol that contains `d'.
17882 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17884 # platforms (ab)use it in PIC code, but their linkers get confused if
17885 # the symbol is explicitly referenced. Since portable code cannot
17886 # rely on this symbol name, it's probably fine to never include it in
17887 # preloaded symbol tables.
17888 # Exclude shared library initialization/finalization symbols.
17889 extract_expsyms_cmds=
17890 # Just being paranoid about ensuring that cc_basename is set.
17891 for cc_temp in $compiler""; do
17893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17902 cygwin* | mingw* | pw32*)
17903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17904 # When not using gcc, we currently assume that we are using
17905 # Microsoft Visual C++.
17906 if test "$GCC" != yes; then
17911 # we just hope/assume this is gcc and not c89 (= MSVC++)
17920 if test "$with_gnu_ld" = yes; then
17921 # If archive_cmds runs LD, not CC, wlarc should be empty
17924 # Set some defaults for GNU ld with shared library support. These
17925 # are reset later if shared libraries are not supported. Putting them
17926 # here allows them to be overridden if necessary.
17927 runpath_var=LD_RUN_PATH
17928 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17929 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17930 # ancient GNU ld didn't support --whole-archive et. al.
17931 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17932 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17934 whole_archive_flag_spec_GCJ=
17936 supports_anon_versioning=no
17937 case `$LD -v 2>/dev/null` in
17938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17941 *\ 2.11.*) ;; # other 2.11 versions
17942 *) supports_anon_versioning=yes ;;
17945 # See if GNU ld supports shared libraries.
17948 # On AIX/PPC, the GNU linker is very broken
17949 if test "$host_cpu" != ia64; then
17953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17954 *** to be unable to reliably create shared libraries on AIX.
17955 *** Therefore, libtool is disabling shared libraries support. If you
17956 *** really care for shared libraries, you may want to modify your PATH
17957 *** so that a non-GNU linker is found, and then restart.
17964 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)'
17965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17966 hardcode_minus_L_GCJ=yes
17968 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17969 # that the semantics of dynamic libraries on AmigaOS, at least up
17970 # to version 4, is to share data among multiple programs linked
17971 # with the same dynamic library. Since this doesn't match the
17972 # behavior of shared libraries on other platforms, we can't use
17978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17979 allow_undefined_flag_GCJ=unsupported
17980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17981 # support --undefined. This deserves some investigation. FIXME
17982 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17988 cygwin* | mingw* | pw32*)
17989 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17990 # as there is no search path for DLLs.
17991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992 allow_undefined_flag_GCJ=unsupported
17993 always_export_symbols_GCJ=no
17994 enable_shared_with_static_runtimes_GCJ=yes
17995 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17997 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17998 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17999 # If the export-symbols file already is a .def file (1st line
18000 # is EXPORTS), use it as is; otherwise, prepend...
18001 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18002 cp $export_symbols $output_objdir/$soname.def;
18004 echo EXPORTS > $output_objdir/$soname.def;
18005 cat $export_symbols >> $output_objdir/$soname.def;
18007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18014 hardcode_direct_GCJ=no
18015 hardcode_shlibpath_var_GCJ=no
18016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18017 export_dynamic_flag_spec_GCJ='${wl}-E'
18018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18019 # Instead, shared libraries are loaded at an image base (0x10000000 by
18020 # default) and relocated if they conflict, which is a slow very memory
18021 # consuming and fragmenting process. To avoid this, we pick a random,
18022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18024 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'
18025 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'
18028 gnu* | linux* | k*bsd*-gnu)
18029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18031 case $cc_basename,$host_cpu in
18032 pgcc*) # Portland Group C compiler
18033 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'
18034 tmp_addflag=' $pic_flag'
18036 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18037 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'
18038 tmp_addflag=' $pic_flag -Mnomain' ;;
18039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18040 tmp_addflag=' -i_dynamic' ;;
18041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18042 tmp_addflag=' -i_dynamic -nofor_main' ;;
18043 ifc* | ifort*) # Intel Fortran compiler
18044 tmp_addflag=' -nofor_main' ;;
18046 case `$CC -V 2>&1 | sed 5q` in
18047 *Sun\ C*) # Sun C 5.9
18048 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18049 tmp_sharedflag='-G' ;;
18050 *Sun\ F*) # Sun Fortran 8.3
18051 tmp_sharedflag='-G' ;;
18053 tmp_sharedflag='-shared' ;;
18055 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18057 if test $supports_anon_versioning = yes; then
18058 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18060 $echo "local: *; };" >> $output_objdir/$libname.ver~
18061 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18070 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18073 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18074 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18079 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18084 *** create shared libraries on Solaris systems. Therefore, libtool
18085 *** is disabling shared libraries support. We urge you to upgrade GNU
18086 *** binutils to release 2.9.1 or newer. Another option is to modify
18087 *** your PATH or compiler configuration so that the native linker is
18088 *** used, and then restart.
18091 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18092 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18093 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18100 case `$LD -v 2>&1` in
18101 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18106 *** reliably create shared libraries on SCO systems. Therefore, libtool
18107 *** is disabling shared libraries support. We urge you to upgrade GNU
18108 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18109 *** your PATH or compiler configuration so that the native linker is
18110 *** used, and then restart.
18115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18116 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18117 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18118 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18127 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18129 hardcode_direct_GCJ=yes
18130 hardcode_shlibpath_var_GCJ=no
18134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18135 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18136 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18143 if test "$ld_shlibs_GCJ" = no; then
18145 hardcode_libdir_flag_spec_GCJ=
18146 export_dynamic_flag_spec_GCJ=
18147 whole_archive_flag_spec_GCJ=
18150 # PORTME fill in a description of your system's linker (not GNU ld)
18153 allow_undefined_flag_GCJ=unsupported
18154 always_export_symbols_GCJ=yes
18155 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'
18156 # Note: this linker hardcodes the directories in LIBPATH if there
18157 # are no directories specified by -L.
18158 hardcode_minus_L_GCJ=yes
18159 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18160 # Neither direct hardcoding nor static linking is supported with a
18162 hardcode_direct_GCJ=unsupported
18167 if test "$host_cpu" = ia64; then
18168 # On IA64, the linker does run time linking by default, so we don't
18169 # have to do anything special.
18170 aix_use_runtimelinking=no
18171 exp_sym_flag='-Bexport'
18174 # If we're using GNU nm, then we don't want the "-C" option.
18175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18176 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18177 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'
18179 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'
18181 aix_use_runtimelinking=no
18183 # Test if we are trying to use run time linking or normal
18184 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18185 # need to do runtime linking.
18186 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18187 for ld_flag in $LDFLAGS; do
18188 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18189 aix_use_runtimelinking=yes
18196 exp_sym_flag='-bexport'
18197 no_entry_flag='-bnoentry'
18200 # When large executables or shared objects are built, AIX ld can
18201 # have problems creating the table of contents. If linking a library
18202 # or program results in "error TOC overflow" add -mminimal-toc to
18203 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18204 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18206 archive_cmds_GCJ=''
18207 hardcode_direct_GCJ=yes
18208 hardcode_libdir_separator_GCJ=':'
18209 link_all_deplibs_GCJ=yes
18211 if test "$GCC" = yes; then
18212 case $host_os in aix4.[012]|aix4.[012].*)
18213 # We only want to do this on AIX 4.2 and lower, the check
18214 # below for broken collect2 doesn't work under 4.3+
18215 collect2name=`${CC} -print-prog-name=collect2`
18216 if test -f "$collect2name" && \
18217 strings "$collect2name" | grep resolve_lib_name >/dev/null
18219 # We have reworked collect2
18222 # We have old collect2
18223 hardcode_direct_GCJ=unsupported
18224 # It fails to find uninstalled libraries when the uninstalled
18225 # path is not listed in the libpath. Setting hardcode_minus_L
18226 # to unsupported forces relinking
18227 hardcode_minus_L_GCJ=yes
18228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18229 hardcode_libdir_separator_GCJ=
18233 shared_flag='-shared'
18234 if test "$aix_use_runtimelinking" = yes; then
18235 shared_flag="$shared_flag "'${wl}-G'
18239 if test "$host_cpu" = ia64; then
18240 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18241 # chokes on -Wl,-G. The following line is correct:
18244 if test "$aix_use_runtimelinking" = yes; then
18245 shared_flag='${wl}-G'
18247 shared_flag='${wl}-bM:SRE'
18252 # It seems that -bexpall does not export symbols beginning with
18253 # underscore (_), so it is better to generate a list of symbols to export.
18254 always_export_symbols_GCJ=yes
18255 if test "$aix_use_runtimelinking" = yes; then
18256 # Warning - without using the other runtime loading flags (-brtl),
18257 # -berok will link without error, but may produce a broken library.
18258 allow_undefined_flag_GCJ='-berok'
18259 # Determine the default libpath from the value encoded in an empty executable.
18260 cat >conftest.$ac_ext <<_ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18282 $as_echo "$ac_try_echo") >&5
18283 (eval "$ac_link") 2>conftest.er1
18285 grep -v '^ *+' conftest.er1 >conftest.err
18287 cat conftest.err >&5
18288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } && {
18290 test -z "$ac_c_werror_flag" ||
18291 test ! -s conftest.err
18292 } && test -s conftest$ac_exeext && {
18293 test "$cross_compiling" = yes ||
18294 $as_test_x conftest$ac_exeext
18297 lt_aix_libpath_sed='
18298 /Import File Strings/,/^$/ {
18304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18305 # Check for a 64-bit object if we didn't find anything.
18306 if test -z "$aix_libpath"; then
18307 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18310 $as_echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18316 rm -rf conftest.dSYM
18317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18318 conftest$ac_exeext conftest.$ac_ext
18319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18321 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18322 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"
18324 if test "$host_cpu" = ia64; then
18325 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18326 allow_undefined_flag_GCJ="-z nodefs"
18327 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"
18329 # Determine the default libpath from the value encoded in an empty executable.
18330 cat >conftest.$ac_ext <<_ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18345 rm -f conftest.$ac_objext conftest$ac_exeext
18346 if { (ac_try="$ac_link"
18347 case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18352 $as_echo "$ac_try_echo") >&5
18353 (eval "$ac_link") 2>conftest.er1
18355 grep -v '^ *+' conftest.er1 >conftest.err
18357 cat conftest.err >&5
18358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } && {
18360 test -z "$ac_c_werror_flag" ||
18361 test ! -s conftest.err
18362 } && test -s conftest$ac_exeext && {
18363 test "$cross_compiling" = yes ||
18364 $as_test_x conftest$ac_exeext
18367 lt_aix_libpath_sed='
18368 /Import File Strings/,/^$/ {
18374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18375 # Check for a 64-bit object if we didn't find anything.
18376 if test -z "$aix_libpath"; then
18377 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18380 $as_echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18386 rm -rf conftest.dSYM
18387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18388 conftest$ac_exeext conftest.$ac_ext
18389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18391 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18392 # Warning - without using the other run time loading flags,
18393 # -berok will link without error, but may produce a broken library.
18394 no_undefined_flag_GCJ=' ${wl}-bernotok'
18395 allow_undefined_flag_GCJ=' ${wl}-berok'
18396 # Exported symbols can be pulled into shared objects from archives
18397 whole_archive_flag_spec_GCJ='$convenience'
18398 archive_cmds_need_lc_GCJ=yes
18399 # This is similar to how AIX traditionally builds its shared libraries.
18400 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'
18406 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)'
18407 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18408 hardcode_minus_L_GCJ=yes
18409 # see comment about different semantics on the GNU ld section
18414 export_dynamic_flag_spec_GCJ=-rdynamic
18417 cygwin* | mingw* | pw32*)
18418 # When not using gcc, we currently assume that we are using
18419 # Microsoft Visual C++.
18420 # hardcode_libdir_flag_spec is actually meaningless, as there is
18421 # no search path for DLLs.
18422 hardcode_libdir_flag_spec_GCJ=' '
18423 allow_undefined_flag_GCJ=unsupported
18424 # Tell ltmain to make .lib files, not .a files.
18426 # Tell ltmain to make .dll files, not .so files.
18428 # FIXME: Setting linknames here is a bad hack.
18429 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18430 # The linker will automatically build a .lib file if we build a DLL.
18431 old_archive_From_new_cmds_GCJ='true'
18432 # FIXME: Should let the user specify the lib program.
18433 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18434 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18435 enable_shared_with_static_runtimes_GCJ=yes
18438 darwin* | rhapsody*)
18440 rhapsody* | darwin1.[012])
18441 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18444 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18445 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18447 case ${MACOSX_DEPLOYMENT_TARGET} in
18449 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18452 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18458 archive_cmds_need_lc_GCJ=no
18459 hardcode_direct_GCJ=no
18460 hardcode_automatic_GCJ=yes
18461 hardcode_shlibpath_var_GCJ=unsupported
18462 whole_archive_flag_spec_GCJ=''
18463 link_all_deplibs_GCJ=yes
18464 if test "$GCC" = yes ; then
18465 output_verbose_link_cmd='echo'
18466 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18467 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18468 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18469 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18471 case $cc_basename in
18473 output_verbose_link_cmd='echo'
18474 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18475 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18477 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18478 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}'
18488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18490 hardcode_shlibpath_var_GCJ=no
18497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18498 # support. Future versions do this automatically, but an explicit c++rt0.o
18499 # does not break anything, and helps significantly (at the cost of a little
18502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18503 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18504 hardcode_direct_GCJ=yes
18505 hardcode_shlibpath_var_GCJ=no
18508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18510 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18511 hardcode_direct_GCJ=yes
18512 hardcode_minus_L_GCJ=yes
18513 hardcode_shlibpath_var_GCJ=no
18516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18517 freebsd* | dragonfly*)
18518 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18519 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18520 hardcode_direct_GCJ=yes
18521 hardcode_shlibpath_var_GCJ=no
18525 if test "$GCC" = yes; then
18526 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'
18528 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'
18530 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18531 hardcode_libdir_separator_GCJ=:
18532 hardcode_direct_GCJ=yes
18534 # hardcode_minus_L: Not really in the search PATH,
18535 # but as the default location of the library.
18536 hardcode_minus_L_GCJ=yes
18537 export_dynamic_flag_spec_GCJ='${wl}-E'
18541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18542 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18544 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18546 if test "$with_gnu_ld" = no; then
18547 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18548 hardcode_libdir_separator_GCJ=:
18550 hardcode_direct_GCJ=yes
18551 export_dynamic_flag_spec_GCJ='${wl}-E'
18553 # hardcode_minus_L: Not really in the search PATH,
18554 # but as the default location of the library.
18555 hardcode_minus_L_GCJ=yes
18560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18563 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18566 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18569 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18575 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18578 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18581 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18585 if test "$with_gnu_ld" = no; then
18586 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18587 hardcode_libdir_separator_GCJ=:
18591 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18592 hardcode_direct_GCJ=no
18593 hardcode_shlibpath_var_GCJ=no
18596 hardcode_direct_GCJ=yes
18597 export_dynamic_flag_spec_GCJ='${wl}-E'
18599 # hardcode_minus_L: Not really in the search PATH,
18600 # but as the default location of the library.
18601 hardcode_minus_L_GCJ=yes
18607 irix5* | irix6* | nonstopux*)
18608 if test "$GCC" = yes; then
18609 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'
18611 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'
18612 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18615 hardcode_libdir_separator_GCJ=:
18616 link_all_deplibs_GCJ=yes
18620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18623 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18625 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18626 hardcode_direct_GCJ=yes
18627 hardcode_shlibpath_var_GCJ=no
18631 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18632 hardcode_direct_GCJ=yes
18633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18634 hardcode_libdir_separator_GCJ=:
18635 hardcode_shlibpath_var_GCJ=no
18639 if test -f /usr/libexec/ld.so; then
18640 hardcode_direct_GCJ=yes
18641 hardcode_shlibpath_var_GCJ=no
18642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18643 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18644 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18645 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18646 export_dynamic_flag_spec_GCJ='${wl}-E'
18649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18654 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18665 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18666 hardcode_minus_L_GCJ=yes
18667 allow_undefined_flag_GCJ=unsupported
18668 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'
18669 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18673 if test "$GCC" = yes; then
18674 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18675 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'
18677 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18678 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'
18680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18681 hardcode_libdir_separator_GCJ=:
18684 osf4* | osf5*) # as osf3* with the addition of -msym flag
18685 if test "$GCC" = yes; then
18686 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18687 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'
18688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18690 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18691 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'
18692 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~
18693 $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'
18695 # Both c and cxx compiler support -rpath directly
18696 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18698 hardcode_libdir_separator_GCJ=:
18702 no_undefined_flag_GCJ=' -z text'
18703 if test "$GCC" = yes; then
18705 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18706 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18707 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18710 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18711 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18712 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18715 hardcode_shlibpath_var_GCJ=no
18717 solaris2.[0-5] | solaris2.[0-5].*) ;;
18719 # The compiler driver will combine and reorder linker options,
18720 # but understands `-z linker_flag'. GCC discards it without `$wl',
18721 # but is careful enough not to reorder.
18722 # Supported since Solaris 2.6 (maybe 2.5.1?)
18723 if test "$GCC" = yes; then
18724 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18726 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18730 link_all_deplibs_GCJ=yes
18734 if test "x$host_vendor" = xsequent; then
18735 # Use $CC to link under sequent, because it throws in some extra .o
18736 # files that make .init and .fini sections work.
18737 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18739 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18742 hardcode_direct_GCJ=yes
18743 hardcode_minus_L_GCJ=yes
18744 hardcode_shlibpath_var_GCJ=no
18748 case $host_vendor in
18750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18751 hardcode_direct_GCJ=yes # is this really true???
18754 ## LD is ld it makes a PLAMLIB
18755 ## CC just makes a GrossModule.
18756 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18757 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18758 hardcode_direct_GCJ=no
18761 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18762 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18765 runpath_var='LD_RUN_PATH'
18766 hardcode_shlibpath_var_GCJ=no
18770 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18771 hardcode_shlibpath_var_GCJ=no
18772 export_dynamic_flag_spec_GCJ='-Bexport'
18776 if test -d /usr/nec; then
18777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18778 hardcode_shlibpath_var_GCJ=no
18779 runpath_var=LD_RUN_PATH
18780 hardcode_runpath_var=yes
18785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18786 no_undefined_flag_GCJ='${wl}-z,text'
18787 archive_cmds_need_lc_GCJ=no
18788 hardcode_shlibpath_var_GCJ=no
18789 runpath_var='LD_RUN_PATH'
18791 if test "$GCC" = yes; then
18792 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18793 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18795 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18796 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18800 sysv5* | sco3.2v5* | sco5v6*)
18801 # Note: We can NOT use -z defs as we might desire, because we do not
18802 # link with -lc, and that would cause any symbols used from libc to
18803 # always be unresolved, which means just about no library would
18804 # ever link correctly. If we're not using GNU ld we use -z text
18805 # though, which does catch some bad symbols but isn't as heavy-handed
18807 no_undefined_flag_GCJ='${wl}-z,text'
18808 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18809 archive_cmds_need_lc_GCJ=no
18810 hardcode_shlibpath_var_GCJ=no
18811 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18812 hardcode_libdir_separator_GCJ=':'
18813 link_all_deplibs_GCJ=yes
18814 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18815 runpath_var='LD_RUN_PATH'
18817 if test "$GCC" = yes; then
18818 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18819 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18821 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18822 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18829 hardcode_shlibpath_var_GCJ=no
18838 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18839 $as_echo "$ld_shlibs_GCJ" >&6; }
18840 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18843 # Do we need to explicitly link libc?
18845 case "x$archive_cmds_need_lc_GCJ" in
18847 # Assume -lc should be added
18848 archive_cmds_need_lc_GCJ=yes
18850 if test "$enable_shared" = yes && test "$GCC" = yes; then
18851 case $archive_cmds_GCJ in
18853 # FIXME: we may have to deal with multi-command sequences.
18856 # Test whether the compiler implicitly links with -lc since on some
18857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18858 # to ld, don't add -lc before -lgcc.
18859 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18865 (eval $ac_compile) 2>&5
18867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } 2>conftest.err; then
18871 libobjs=conftest.$ac_objext
18873 wl=$lt_prog_compiler_wl_GCJ
18874 pic_flag=$lt_prog_compiler_pic_GCJ
18880 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18881 allow_undefined_flag_GCJ=
18882 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18883 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }
18888 archive_cmds_need_lc_GCJ=no
18890 archive_cmds_need_lc_GCJ=yes
18892 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18894 cat conftest.err 1>&5
18897 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18898 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18905 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18906 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18907 library_names_spec=
18908 libname_spec='lib$name'
18912 postuninstall_cmds=
18916 shlibpath_overrides_runpath=unknown
18918 dynamic_linker="$host_os ld.so"
18919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18921 need_lib_prefix=unknown
18922 hardcode_into_libs=no
18924 # when you set need_version to no, make sure it does not cause -set_version
18925 # flags to be left without arguments
18926 need_version=unknown
18931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18932 shlibpath_var=LIBPATH
18934 # AIX 3 has no versioning support, so we append a major version to the name.
18935 soname_spec='${libname}${release}${shared_ext}$major'
18942 hardcode_into_libs=yes
18943 if test "$host_cpu" = ia64; then
18944 # AIX 5 supports IA64
18945 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18946 shlibpath_var=LD_LIBRARY_PATH
18948 # With GCC up to 2.95.x, collect2 would create an import file
18949 # for dependence libraries. The import file would start with
18950 # the line `#! .'. This would cause the generated library to
18951 # depend on `.', always an invalid library. This was fixed in
18952 # development snapshots of GCC prior to 3.0.
18954 aix4 | aix4.[01] | aix4.[01].*)
18955 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18957 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18960 can_build_shared=no
18964 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18965 # soname into executable. Probably we can add versioning support to
18966 # collect2, so additional links can be useful in future.
18967 if test "$aix_use_runtimelinking" = yes; then
18968 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18969 # instead of lib<name>.a to let people know that these are not
18970 # typical AIX shared libraries.
18971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18973 # We preserve .a as extension for shared libraries through AIX4.2
18974 # and later when we are not doing run time linking.
18975 library_names_spec='${libname}${release}.a $libname.a'
18976 soname_spec='${libname}${release}${shared_ext}$major'
18978 shlibpath_var=LIBPATH
18983 library_names_spec='$libname.ixlibrary $libname.a'
18984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18985 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'
18989 library_names_spec='${libname}${shared_ext}'
18990 dynamic_linker="$host_os ld.so"
18991 shlibpath_var=LIBRARY_PATH
18997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18998 soname_spec='${libname}${release}${shared_ext}$major'
18999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19000 shlibpath_var=LD_LIBRARY_PATH
19001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19003 # the default ld.so.conf also contains /usr/contrib/lib and
19004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19005 # libtool to hard-code these into programs
19008 cygwin* | mingw* | pw32*)
19009 version_type=windows
19014 case $GCC,$host_os in
19015 yes,cygwin* | yes,mingw* | yes,pw32*)
19016 library_names_spec='$libname.dll.a'
19017 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19018 postinstall_cmds='base_file=`basename \${file}`~
19019 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19020 dldir=$destdir/`dirname \$dlpath`~
19021 test -d \$dldir || mkdir -p \$dldir~
19022 $install_prog $dir/$dlname \$dldir/$dlname~
19023 chmod a+x \$dldir/$dlname'
19024 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19025 dlpath=$dir/\$dldll~
19027 shlibpath_overrides_runpath=yes
19031 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19032 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19033 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19036 # MinGW DLLs use traditional 'lib' prefix
19037 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19038 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19039 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19040 # It is most probably a Windows format PATH printed by
19041 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19042 # path with ; separators, and with drive letters. We can handle the
19043 # drive letters (cygwin fileutils understands them), so leave them,
19044 # especially as we might pass files found there to a mingw objdump,
19045 # which wouldn't understand a cygwinified path. Ahh.
19046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19052 # pw32 DLLs use 'pw' prefix rather than 'lib'
19053 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19062 dynamic_linker='Win32 ld.exe'
19063 # FIXME: first we should search . and the directory the executable is in
19067 darwin* | rhapsody*)
19068 dynamic_linker="$host_os dyld"
19069 version_type=darwin
19072 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19073 soname_spec='${libname}${release}${major}$shared_ext'
19074 shlibpath_overrides_runpath=yes
19075 shlibpath_var=DYLD_LIBRARY_PATH
19076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19086 soname_spec='${libname}${release}${shared_ext}$major'
19087 shlibpath_var=LD_LIBRARY_PATH
19094 freebsd* | dragonfly*)
19095 # DragonFly does not have aout. When/if they implement a new
19096 # versioning mechanism, adjust this.
19097 if test -x /usr/bin/objformat; then
19098 objformat=`/usr/bin/objformat`
19101 freebsd[123]*) objformat=aout ;;
19102 *) objformat=elf ;;
19105 version_type=freebsd-$objformat
19106 case $version_type in
19108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19117 shlibpath_var=LD_LIBRARY_PATH
19120 shlibpath_overrides_runpath=yes
19122 freebsd3.[01]* | freebsdelf3.[01]*)
19123 shlibpath_overrides_runpath=yes
19124 hardcode_into_libs=yes
19126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19128 shlibpath_overrides_runpath=no
19129 hardcode_into_libs=yes
19131 *) # from 4.6 on, and DragonFly
19132 shlibpath_overrides_runpath=yes
19133 hardcode_into_libs=yes
19142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19143 soname_spec='${libname}${release}${shared_ext}$major'
19144 shlibpath_var=LD_LIBRARY_PATH
19145 hardcode_into_libs=yes
19148 hpux9* | hpux10* | hpux11*)
19149 # Give a soname corresponding to the major version so that dld.sl refuses to
19150 # link against other versions.
19157 hardcode_into_libs=yes
19158 dynamic_linker="$host_os dld.so"
19159 shlibpath_var=LD_LIBRARY_PATH
19160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19162 soname_spec='${libname}${release}${shared_ext}$major'
19163 if test "X$HPUX_IA64_MODE" = X32; then
19164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19172 hardcode_into_libs=yes
19173 dynamic_linker="$host_os dld.sl"
19174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19177 soname_spec='${libname}${release}${shared_ext}$major'
19178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19183 dynamic_linker="$host_os dld.sl"
19184 shlibpath_var=SHLIB_PATH
19185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19187 soname_spec='${libname}${release}${shared_ext}$major'
19190 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19191 postinstall_cmds='chmod 555 $lib'
19198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19199 soname_spec='${libname}${release}${shared_ext}$major'
19200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19201 shlibpath_var=LD_LIBRARY_PATH
19202 shlibpath_overrides_runpath=no
19203 hardcode_into_libs=yes
19206 irix5* | irix6* | nonstopux*)
19208 nonstopux*) version_type=nonstopux ;;
19210 if test "$lt_cv_prog_gnu_ld" = yes; then
19218 soname_spec='${libname}${release}${shared_ext}$major'
19219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19221 irix5* | nonstopux*)
19222 libsuff= shlibsuff=
19225 case $LD in # libtool.m4 will add one of these switches to LD
19226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19227 libsuff= shlibsuff= libmagic=32-bit;;
19228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19229 libsuff=32 shlibsuff=N32 libmagic=N32;;
19230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19232 *) libsuff= shlibsuff= libmagic=never-match;;
19236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19237 shlibpath_overrides_runpath=no
19238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19240 hardcode_into_libs=yes
19243 # No shared lib support for Linux oldld, aout, or coff.
19244 linux*oldld* | linux*aout* | linux*coff*)
19248 # This must be Linux ELF.
19249 linux* | k*bsd*-gnu)
19253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19254 soname_spec='${libname}${release}${shared_ext}$major'
19255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19256 shlibpath_var=LD_LIBRARY_PATH
19257 shlibpath_overrides_runpath=no
19258 # This implies no fast_install, which is unacceptable.
19259 # Some rework will be needed to allow for fast_install
19260 # before this can be enabled.
19261 hardcode_into_libs=yes
19262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19265 # Append ld.so.conf contents to the search path
19266 if test -f /etc/ld.so.conf; then
19267 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19268 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19271 # We used to test for /lib/ld.so.1 and disable shared libraries on
19272 # powerpc, because MkLinux only supported shared libraries with the
19273 # GNU dynamic linker. Since this was broken with cross compilers,
19274 # most powerpc-linux boxes support dynamic linking these days and
19275 # people can always --disable-shared, the test was removed, and we
19276 # assume the GNU/Linux dynamic linker is in use.
19277 dynamic_linker='GNU/Linux ld.so'
19284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19287 dynamic_linker='NetBSD (a.out) ld.so'
19289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19290 soname_spec='${libname}${release}${shared_ext}$major'
19291 dynamic_linker='NetBSD ld.elf_so'
19293 shlibpath_var=LD_LIBRARY_PATH
19294 shlibpath_overrides_runpath=yes
19295 hardcode_into_libs=yes
19300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19301 shlibpath_var=LD_LIBRARY_PATH
19302 shlibpath_overrides_runpath=yes
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 shlibpath_var=LD_LIBRARY_PATH
19312 shlibpath_overrides_runpath=yes
19317 sys_lib_dlsearch_path_spec="/usr/lib"
19319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19322 *) need_version=no ;;
19324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19326 shlibpath_var=LD_LIBRARY_PATH
19327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19329 openbsd2.[89] | openbsd2.[89].*)
19330 shlibpath_overrides_runpath=no
19333 shlibpath_overrides_runpath=yes
19337 shlibpath_overrides_runpath=yes
19342 libname_spec='$name'
19345 library_names_spec='$libname${shared_ext} $libname.a'
19346 dynamic_linker='OS/2 ld.exe'
19347 shlibpath_var=LIBPATH
19350 osf3* | osf4* | osf5*)
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19356 shlibpath_var=LD_LIBRARY_PATH
19357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19370 soname_spec='${libname}${release}${shared_ext}$major'
19371 shlibpath_var=LD_LIBRARY_PATH
19372 shlibpath_overrides_runpath=yes
19373 hardcode_into_libs=yes
19374 # ldd complains unless libraries are executable
19375 postinstall_cmds='chmod +x $lib'
19380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19382 shlibpath_var=LD_LIBRARY_PATH
19383 shlibpath_overrides_runpath=yes
19384 if test "$with_gnu_ld" = yes; then
19392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19393 soname_spec='${libname}${release}${shared_ext}$major'
19394 shlibpath_var=LD_LIBRARY_PATH
19395 case $host_vendor in
19397 shlibpath_overrides_runpath=no
19399 export_dynamic_flag_spec='${wl}-Blargedynsym'
19400 runpath_var=LD_RUN_PATH
19408 shlibpath_overrides_runpath=no
19409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19415 if test -d /usr/nec ;then
19417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19418 soname_spec='$libname${shared_ext}.$major'
19419 shlibpath_var=LD_LIBRARY_PATH
19423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19424 version_type=freebsd-elf
19427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19428 soname_spec='${libname}${release}${shared_ext}$major'
19429 shlibpath_var=LD_LIBRARY_PATH
19430 hardcode_into_libs=yes
19431 if test "$with_gnu_ld" = yes; then
19432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19433 shlibpath_overrides_runpath=no
19435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19436 shlibpath_overrides_runpath=yes
19439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19443 sys_lib_dlsearch_path_spec='/usr/lib'
19448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19449 soname_spec='${libname}${release}${shared_ext}$major'
19450 shlibpath_var=LD_LIBRARY_PATH
19457 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19458 $as_echo "$dynamic_linker" >&6; }
19459 test "$dynamic_linker" = no && can_build_shared=no
19461 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19462 $as_echo_n "(cached) " >&6
19464 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19467 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19469 $as_echo_n "(cached) " >&6
19471 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19476 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19477 if test "$GCC" = yes; then
19478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19481 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19482 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19483 hardcode_action_GCJ=
19484 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19485 test -n "$runpath_var_GCJ" || \
19486 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19488 # We can hardcode non-existant directories.
19489 if test "$hardcode_direct_GCJ" != no &&
19490 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19491 # have to relink, otherwise we might link with an installed library
19492 # when we should be linking with a yet-to-be-installed one
19493 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19494 test "$hardcode_minus_L_GCJ" != no; then
19495 # Linking always hardcodes the temporary library directory.
19496 hardcode_action_GCJ=relink
19498 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19499 hardcode_action_GCJ=immediate
19502 # We cannot hardcode anything, or else we can only hardcode existing
19504 hardcode_action_GCJ=unsupported
19506 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19507 $as_echo "$hardcode_action_GCJ" >&6; }
19509 if test "$hardcode_action_GCJ" = relink; then
19510 # Fast installation is not supported
19511 enable_fast_install=no
19512 elif test "$shlibpath_overrides_runpath" = yes ||
19513 test "$enable_shared" = no; then
19514 # Fast installation is not necessary
19515 enable_fast_install=needless
19519 # The else clause should only fire when bootstrapping the
19520 # libtool distribution, otherwise you forgot to ship ltmain.sh
19521 # with your package, and you will get complaints that there are
19522 # no rules to generate ltmain.sh.
19523 if test -f "$ltmain"; then
19524 # See if we are running on zsh, and set the options which allow our commands through
19525 # without removal of \ escapes.
19526 if test -n "${ZSH_VERSION+set}" ; then
19527 setopt NO_GLOB_SUBST
19529 # Now quote all the things that may contain metacharacters while being
19530 # careful not to overquote the AC_SUBSTed values. We take copies of the
19531 # variables and quote the copies for generation of the libtool script.
19532 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19534 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19535 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19536 deplibs_check_method reload_flag reload_cmds need_locks \
19537 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19538 lt_cv_sys_global_symbol_to_c_name_address \
19539 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19540 old_postinstall_cmds old_postuninstall_cmds \
19544 lt_prog_compiler_wl_GCJ \
19545 lt_prog_compiler_pic_GCJ \
19546 lt_prog_compiler_static_GCJ \
19547 lt_prog_compiler_no_builtin_flag_GCJ \
19548 export_dynamic_flag_spec_GCJ \
19549 thread_safe_flag_spec_GCJ \
19550 whole_archive_flag_spec_GCJ \
19551 enable_shared_with_static_runtimes_GCJ \
19552 old_archive_cmds_GCJ \
19553 old_archive_from_new_cmds_GCJ \
19554 predep_objects_GCJ \
19555 postdep_objects_GCJ \
19558 compiler_lib_search_path_GCJ \
19559 compiler_lib_search_dirs_GCJ \
19561 archive_expsym_cmds_GCJ \
19562 postinstall_cmds_GCJ \
19563 postuninstall_cmds_GCJ \
19564 old_archive_from_expsyms_cmds_GCJ \
19565 allow_undefined_flag_GCJ \
19566 no_undefined_flag_GCJ \
19567 export_symbols_cmds_GCJ \
19568 hardcode_libdir_flag_spec_GCJ \
19569 hardcode_libdir_flag_spec_ld_GCJ \
19570 hardcode_libdir_separator_GCJ \
19571 hardcode_automatic_GCJ \
19573 module_expsym_cmds_GCJ \
19574 lt_cv_prog_compiler_c_o_GCJ \
19575 fix_srcfile_path_GCJ \
19576 exclude_expsyms_GCJ \
19577 include_expsyms_GCJ; do
19580 old_archive_cmds_GCJ | \
19581 old_archive_from_new_cmds_GCJ | \
19582 archive_cmds_GCJ | \
19583 archive_expsym_cmds_GCJ | \
19584 module_cmds_GCJ | \
19585 module_expsym_cmds_GCJ | \
19586 old_archive_from_expsyms_cmds_GCJ | \
19587 export_symbols_cmds_GCJ | \
19588 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19589 postinstall_cmds | postuninstall_cmds | \
19590 old_postinstall_cmds | old_postuninstall_cmds | \
19591 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19592 # Double-quote double-evaled strings.
19593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19596 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19602 *'\$0 --fallback-echo"')
19603 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19609 cat <<__EOF__ >> "$cfgfile"
19610 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19612 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19614 # Shell to use when invoking shell scripts.
19617 # Whether or not to build shared libraries.
19618 build_libtool_libs=$enable_shared
19620 # Whether or not to build static libraries.
19621 build_old_libs=$enable_static
19623 # Whether or not to add -lc for building shared libraries.
19624 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19626 # Whether or not to disallow shared libs when runtime libs are static
19627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19629 # Whether or not to optimize for fast installation.
19630 fast_install=$enable_fast_install
19633 host_alias=$host_alias
19637 # The build system.
19638 build_alias=$build_alias
19642 # An echo program that does not interpret backslashes.
19647 AR_FLAGS=$lt_AR_FLAGS
19652 # LTCC compiler flags.
19653 LTCFLAGS=$lt_LTCFLAGS
19655 # A language-specific compiler.
19656 CC=$lt_compiler_GCJ
19658 # Is the compiler the GNU C compiler?
19664 # The linker used to build libraries.
19667 # Whether we need hard or soft links.
19670 # A BSD-compatible nm program.
19673 # A symbol stripping program
19676 # Used to examine libraries when file_magic_cmd begins "file"
19677 MAGIC_CMD=$MAGIC_CMD
19679 # Used on cygwin: DLL creation program.
19682 # Used on cygwin: object dumper.
19685 # Used on cygwin: assembler.
19688 # The name of the directory that contains temporary libtool files.
19691 # How to create reloadable object files.
19692 reload_flag=$lt_reload_flag
19693 reload_cmds=$lt_reload_cmds
19695 # How to pass a linker flag through the compiler.
19696 wl=$lt_lt_prog_compiler_wl_GCJ
19698 # Object file suffix (normally "o").
19699 objext="$ac_objext"
19701 # Old archive suffix (normally "a").
19704 # Shared library suffix (normally ".so").
19705 shrext_cmds='$shrext_cmds'
19707 # Executable file suffix (normally "").
19710 # Additional compiler flags for building library objects.
19711 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19714 # What is the maximum length of a command?
19715 max_cmd_len=$lt_cv_sys_max_cmd_len
19717 # Does compiler simultaneously support -c and -o options?
19718 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19720 # Must we lock files when doing compilation?
19721 need_locks=$lt_need_locks
19723 # Do we need the lib prefix for modules?
19724 need_lib_prefix=$need_lib_prefix
19726 # Do we need a version for libraries?
19727 need_version=$need_version
19729 # Whether dlopen is supported.
19730 dlopen_support=$enable_dlopen
19732 # Whether dlopen of programs is supported.
19733 dlopen_self=$enable_dlopen_self
19735 # Whether dlopen of statically linked programs is supported.
19736 dlopen_self_static=$enable_dlopen_self_static
19738 # Compiler flag to prevent dynamic linking.
19739 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19741 # Compiler flag to turn off builtin functions.
19742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19744 # Compiler flag to allow reflexive dlopens.
19745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19747 # Compiler flag to generate shared objects directly from archives.
19748 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19750 # Compiler flag to generate thread-safe objects.
19751 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19753 # Library versioning type.
19754 version_type=$version_type
19756 # Format of library name prefix.
19757 libname_spec=$lt_libname_spec
19759 # List of archive names. First name is the real one, the rest are links.
19760 # The last name is the one that the linker finds with -lNAME.
19761 library_names_spec=$lt_library_names_spec
19763 # The coded name of the library, if different from the real name.
19764 soname_spec=$lt_soname_spec
19766 # Commands used to build and install an old-style archive.
19768 old_archive_cmds=$lt_old_archive_cmds_GCJ
19769 old_postinstall_cmds=$lt_old_postinstall_cmds
19770 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19772 # Create an old-style archive from a shared archive.
19773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19775 # Create a temporary old-style archive to link instead of a shared archive.
19776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19778 # Commands used to build and install a shared archive.
19779 archive_cmds=$lt_archive_cmds_GCJ
19780 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19781 postinstall_cmds=$lt_postinstall_cmds
19782 postuninstall_cmds=$lt_postuninstall_cmds
19784 # Commands used to build a loadable module (assumed same as above if empty)
19785 module_cmds=$lt_module_cmds_GCJ
19786 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19788 # Commands to strip libraries.
19789 old_striplib=$lt_old_striplib
19790 striplib=$lt_striplib
19792 # Dependencies to place before the objects being linked to create a
19794 predep_objects=$lt_predep_objects_GCJ
19796 # Dependencies to place after the objects being linked to create a
19798 postdep_objects=$lt_postdep_objects_GCJ
19800 # Dependencies to place before the objects being linked to create a
19802 predeps=$lt_predeps_GCJ
19804 # Dependencies to place after the objects being linked to create a
19806 postdeps=$lt_postdeps_GCJ
19808 # The directories searched by this compiler when creating a shared
19810 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19812 # The library search path used internally by the compiler when linking
19813 # a shared library.
19814 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19816 # Method to check whether dependent libraries are shared objects.
19817 deplibs_check_method=$lt_deplibs_check_method
19819 # Command to use when deplibs_check_method == file_magic.
19820 file_magic_cmd=$lt_file_magic_cmd
19822 # Flag that allows shared libraries with undefined symbols to be built.
19823 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19825 # Flag that forces no undefined symbols.
19826 no_undefined_flag=$lt_no_undefined_flag_GCJ
19828 # Commands used to finish a libtool library installation in a directory.
19829 finish_cmds=$lt_finish_cmds
19831 # Same as above, but a single script fragment to be evaled but not shown.
19832 finish_eval=$lt_finish_eval
19834 # Take the output of nm and produce a listing of raw symbols and C names.
19835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19837 # Transform the output of nm in a proper C declaration
19838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19840 # Transform the output of nm in a C name address pair
19841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19843 # This is the shared library runtime path variable.
19844 runpath_var=$runpath_var
19846 # This is the shared library path variable.
19847 shlibpath_var=$shlibpath_var
19849 # Is shlibpath searched before the hard-coded library search path?
19850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19852 # How to hardcode a shared library path into an executable.
19853 hardcode_action=$hardcode_action_GCJ
19855 # Whether we should hardcode library paths into libraries.
19856 hardcode_into_libs=$hardcode_into_libs
19858 # Flag to hardcode \$libdir into a binary during linking.
19859 # This must work even if \$libdir does not exist.
19860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19862 # If ld is used when linking, flag to hardcode \$libdir into
19863 # a binary during linking. This must work even if \$libdir does
19865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19867 # Whether we need a single -rpath flag with a separated argument.
19868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19871 # resulting binary.
19872 hardcode_direct=$hardcode_direct_GCJ
19874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19875 # resulting binary.
19876 hardcode_minus_L=$hardcode_minus_L_GCJ
19878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19879 # the resulting binary.
19880 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19882 # Set to yes if building a shared library automatically hardcodes DIR into the library
19883 # and all subsequent libraries and executables linked against it.
19884 hardcode_automatic=$hardcode_automatic_GCJ
19886 # Variables whose values should be saved in libtool wrapper scripts and
19887 # restored at relink time.
19888 variables_saved_for_relink="$variables_saved_for_relink"
19890 # Whether libtool must link a program against all its dependency libraries.
19891 link_all_deplibs=$link_all_deplibs_GCJ
19893 # Compile-time system search path for libraries
19894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19896 # Run-time system search path for libraries
19897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19899 # Fix the shell variable \$srcfile for the compiler.
19900 fix_srcfile_path=$lt_fix_srcfile_path
19902 # Set to yes if exported symbols are required.
19903 always_export_symbols=$always_export_symbols_GCJ
19905 # The commands to list exported symbols.
19906 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19908 # The commands to extract the exported symbol list from a shared archive.
19909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19911 # Symbols that should not be listed in the preloaded symbols.
19912 exclude_expsyms=$lt_exclude_expsyms_GCJ
19914 # Symbols that must always be exported.
19915 include_expsyms=$lt_include_expsyms_GCJ
19917 # ### END LIBTOOL TAG CONFIG: $tagname
19923 # If there is no Makefile yet, we rely on a make rule to execute
19924 # `config.status --recheck' to rerun these tests and create the
19925 # libtool script then.
19926 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19927 if test -f "$ltmain_in"; then
19928 test -f Makefile && make "$ltmain"
19934 ac_cpp='$CPP $CPPFLAGS'
19935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19949 # Source file extension for RC test sources.
19952 # Object file extension for compiled RC test sources.
19956 # Code to be used in simple compile tests
19957 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19959 # Code to be used in simple link tests
19960 lt_simple_link_test_code="$lt_simple_compile_test_code"
19962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19964 # If no C compiler was specified, use CC.
19967 # If no C compiler flags were specified, use CFLAGS.
19968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19970 # Allow CC to be a program name with arguments.
19974 # save warnings/boilerplate of simple test code
19975 ac_outfile=conftest.$ac_objext
19976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19978 _lt_compiler_boilerplate=`cat conftest.err`
19981 ac_outfile=conftest.$ac_objext
19982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19984 _lt_linker_boilerplate=`cat conftest.err`
19988 # Allow CC to be a program name with arguments.
19993 for cc_temp in $compiler""; do
19995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20001 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20003 lt_cv_prog_compiler_c_o_RC=yes
20005 # The else clause should only fire when bootstrapping the
20006 # libtool distribution, otherwise you forgot to ship ltmain.sh
20007 # with your package, and you will get complaints that there are
20008 # no rules to generate ltmain.sh.
20009 if test -f "$ltmain"; then
20010 # See if we are running on zsh, and set the options which allow our commands through
20011 # without removal of \ escapes.
20012 if test -n "${ZSH_VERSION+set}" ; then
20013 setopt NO_GLOB_SUBST
20015 # Now quote all the things that may contain metacharacters while being
20016 # careful not to overquote the AC_SUBSTed values. We take copies of the
20017 # variables and quote the copies for generation of the libtool script.
20018 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20020 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20021 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20022 deplibs_check_method reload_flag reload_cmds need_locks \
20023 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20024 lt_cv_sys_global_symbol_to_c_name_address \
20025 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20026 old_postinstall_cmds old_postuninstall_cmds \
20030 lt_prog_compiler_wl_RC \
20031 lt_prog_compiler_pic_RC \
20032 lt_prog_compiler_static_RC \
20033 lt_prog_compiler_no_builtin_flag_RC \
20034 export_dynamic_flag_spec_RC \
20035 thread_safe_flag_spec_RC \
20036 whole_archive_flag_spec_RC \
20037 enable_shared_with_static_runtimes_RC \
20038 old_archive_cmds_RC \
20039 old_archive_from_new_cmds_RC \
20040 predep_objects_RC \
20041 postdep_objects_RC \
20044 compiler_lib_search_path_RC \
20045 compiler_lib_search_dirs_RC \
20047 archive_expsym_cmds_RC \
20048 postinstall_cmds_RC \
20049 postuninstall_cmds_RC \
20050 old_archive_from_expsyms_cmds_RC \
20051 allow_undefined_flag_RC \
20052 no_undefined_flag_RC \
20053 export_symbols_cmds_RC \
20054 hardcode_libdir_flag_spec_RC \
20055 hardcode_libdir_flag_spec_ld_RC \
20056 hardcode_libdir_separator_RC \
20057 hardcode_automatic_RC \
20059 module_expsym_cmds_RC \
20060 lt_cv_prog_compiler_c_o_RC \
20061 fix_srcfile_path_RC \
20062 exclude_expsyms_RC \
20063 include_expsyms_RC; do
20066 old_archive_cmds_RC | \
20067 old_archive_from_new_cmds_RC | \
20068 archive_cmds_RC | \
20069 archive_expsym_cmds_RC | \
20071 module_expsym_cmds_RC | \
20072 old_archive_from_expsyms_cmds_RC | \
20073 export_symbols_cmds_RC | \
20074 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20075 postinstall_cmds | postuninstall_cmds | \
20076 old_postinstall_cmds | old_postuninstall_cmds | \
20077 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20078 # Double-quote double-evaled strings.
20079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20082 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20088 *'\$0 --fallback-echo"')
20089 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20095 cat <<__EOF__ >> "$cfgfile"
20096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20100 # Shell to use when invoking shell scripts.
20103 # Whether or not to build shared libraries.
20104 build_libtool_libs=$enable_shared
20106 # Whether or not to build static libraries.
20107 build_old_libs=$enable_static
20109 # Whether or not to add -lc for building shared libraries.
20110 build_libtool_need_lc=$archive_cmds_need_lc_RC
20112 # Whether or not to disallow shared libs when runtime libs are static
20113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20115 # Whether or not to optimize for fast installation.
20116 fast_install=$enable_fast_install
20119 host_alias=$host_alias
20123 # The build system.
20124 build_alias=$build_alias
20128 # An echo program that does not interpret backslashes.
20133 AR_FLAGS=$lt_AR_FLAGS
20138 # LTCC compiler flags.
20139 LTCFLAGS=$lt_LTCFLAGS
20141 # A language-specific compiler.
20144 # Is the compiler the GNU C compiler?
20150 # The linker used to build libraries.
20153 # Whether we need hard or soft links.
20156 # A BSD-compatible nm program.
20159 # A symbol stripping program
20162 # Used to examine libraries when file_magic_cmd begins "file"
20163 MAGIC_CMD=$MAGIC_CMD
20165 # Used on cygwin: DLL creation program.
20168 # Used on cygwin: object dumper.
20171 # Used on cygwin: assembler.
20174 # The name of the directory that contains temporary libtool files.
20177 # How to create reloadable object files.
20178 reload_flag=$lt_reload_flag
20179 reload_cmds=$lt_reload_cmds
20181 # How to pass a linker flag through the compiler.
20182 wl=$lt_lt_prog_compiler_wl_RC
20184 # Object file suffix (normally "o").
20185 objext="$ac_objext"
20187 # Old archive suffix (normally "a").
20190 # Shared library suffix (normally ".so").
20191 shrext_cmds='$shrext_cmds'
20193 # Executable file suffix (normally "").
20196 # Additional compiler flags for building library objects.
20197 pic_flag=$lt_lt_prog_compiler_pic_RC
20200 # What is the maximum length of a command?
20201 max_cmd_len=$lt_cv_sys_max_cmd_len
20203 # Does compiler simultaneously support -c and -o options?
20204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20206 # Must we lock files when doing compilation?
20207 need_locks=$lt_need_locks
20209 # Do we need the lib prefix for modules?
20210 need_lib_prefix=$need_lib_prefix
20212 # Do we need a version for libraries?
20213 need_version=$need_version
20215 # Whether dlopen is supported.
20216 dlopen_support=$enable_dlopen
20218 # Whether dlopen of programs is supported.
20219 dlopen_self=$enable_dlopen_self
20221 # Whether dlopen of statically linked programs is supported.
20222 dlopen_self_static=$enable_dlopen_self_static
20224 # Compiler flag to prevent dynamic linking.
20225 link_static_flag=$lt_lt_prog_compiler_static_RC
20227 # Compiler flag to turn off builtin functions.
20228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20230 # Compiler flag to allow reflexive dlopens.
20231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20233 # Compiler flag to generate shared objects directly from archives.
20234 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20236 # Compiler flag to generate thread-safe objects.
20237 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20239 # Library versioning type.
20240 version_type=$version_type
20242 # Format of library name prefix.
20243 libname_spec=$lt_libname_spec
20245 # List of archive names. First name is the real one, the rest are links.
20246 # The last name is the one that the linker finds with -lNAME.
20247 library_names_spec=$lt_library_names_spec
20249 # The coded name of the library, if different from the real name.
20250 soname_spec=$lt_soname_spec
20252 # Commands used to build and install an old-style archive.
20254 old_archive_cmds=$lt_old_archive_cmds_RC
20255 old_postinstall_cmds=$lt_old_postinstall_cmds
20256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20258 # Create an old-style archive from a shared archive.
20259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20261 # Create a temporary old-style archive to link instead of a shared archive.
20262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20264 # Commands used to build and install a shared archive.
20265 archive_cmds=$lt_archive_cmds_RC
20266 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20267 postinstall_cmds=$lt_postinstall_cmds
20268 postuninstall_cmds=$lt_postuninstall_cmds
20270 # Commands used to build a loadable module (assumed same as above if empty)
20271 module_cmds=$lt_module_cmds_RC
20272 module_expsym_cmds=$lt_module_expsym_cmds_RC
20274 # Commands to strip libraries.
20275 old_striplib=$lt_old_striplib
20276 striplib=$lt_striplib
20278 # Dependencies to place before the objects being linked to create a
20280 predep_objects=$lt_predep_objects_RC
20282 # Dependencies to place after the objects being linked to create a
20284 postdep_objects=$lt_postdep_objects_RC
20286 # Dependencies to place before the objects being linked to create a
20288 predeps=$lt_predeps_RC
20290 # Dependencies to place after the objects being linked to create a
20292 postdeps=$lt_postdeps_RC
20294 # The directories searched by this compiler when creating a shared
20296 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20298 # The library search path used internally by the compiler when linking
20299 # a shared library.
20300 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20302 # Method to check whether dependent libraries are shared objects.
20303 deplibs_check_method=$lt_deplibs_check_method
20305 # Command to use when deplibs_check_method == file_magic.
20306 file_magic_cmd=$lt_file_magic_cmd
20308 # Flag that allows shared libraries with undefined symbols to be built.
20309 allow_undefined_flag=$lt_allow_undefined_flag_RC
20311 # Flag that forces no undefined symbols.
20312 no_undefined_flag=$lt_no_undefined_flag_RC
20314 # Commands used to finish a libtool library installation in a directory.
20315 finish_cmds=$lt_finish_cmds
20317 # Same as above, but a single script fragment to be evaled but not shown.
20318 finish_eval=$lt_finish_eval
20320 # Take the output of nm and produce a listing of raw symbols and C names.
20321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20323 # Transform the output of nm in a proper C declaration
20324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20326 # Transform the output of nm in a C name address pair
20327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20329 # This is the shared library runtime path variable.
20330 runpath_var=$runpath_var
20332 # This is the shared library path variable.
20333 shlibpath_var=$shlibpath_var
20335 # Is shlibpath searched before the hard-coded library search path?
20336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20338 # How to hardcode a shared library path into an executable.
20339 hardcode_action=$hardcode_action_RC
20341 # Whether we should hardcode library paths into libraries.
20342 hardcode_into_libs=$hardcode_into_libs
20344 # Flag to hardcode \$libdir into a binary during linking.
20345 # This must work even if \$libdir does not exist.
20346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20348 # If ld is used when linking, flag to hardcode \$libdir into
20349 # a binary during linking. This must work even if \$libdir does
20351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20353 # Whether we need a single -rpath flag with a separated argument.
20354 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20356 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20357 # resulting binary.
20358 hardcode_direct=$hardcode_direct_RC
20360 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20361 # resulting binary.
20362 hardcode_minus_L=$hardcode_minus_L_RC
20364 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20365 # the resulting binary.
20366 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20368 # Set to yes if building a shared library automatically hardcodes DIR into the library
20369 # and all subsequent libraries and executables linked against it.
20370 hardcode_automatic=$hardcode_automatic_RC
20372 # Variables whose values should be saved in libtool wrapper scripts and
20373 # restored at relink time.
20374 variables_saved_for_relink="$variables_saved_for_relink"
20376 # Whether libtool must link a program against all its dependency libraries.
20377 link_all_deplibs=$link_all_deplibs_RC
20379 # Compile-time system search path for libraries
20380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20382 # Run-time system search path for libraries
20383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20385 # Fix the shell variable \$srcfile for the compiler.
20386 fix_srcfile_path=$lt_fix_srcfile_path
20388 # Set to yes if exported symbols are required.
20389 always_export_symbols=$always_export_symbols_RC
20391 # The commands to list exported symbols.
20392 export_symbols_cmds=$lt_export_symbols_cmds_RC
20394 # The commands to extract the exported symbol list from a shared archive.
20395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20397 # Symbols that should not be listed in the preloaded symbols.
20398 exclude_expsyms=$lt_exclude_expsyms_RC
20400 # Symbols that must always be exported.
20401 include_expsyms=$lt_include_expsyms_RC
20403 # ### END LIBTOOL TAG CONFIG: $tagname
20409 # If there is no Makefile yet, we rely on a make rule to execute
20410 # `config.status --recheck' to rerun these tests and create the
20411 # libtool script then.
20412 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20413 if test -f "$ltmain_in"; then
20414 test -f Makefile && make "$ltmain"
20420 ac_cpp='$CPP $CPPFLAGS'
20421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20430 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20431 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20432 { (exit 1); exit 1; }; }
20436 # Append the new tag name to the list of available tags.
20437 if test -n "$tagname" ; then
20438 available_tags="$available_tags $tagname"
20444 # Now substitute the updated list of available tags.
20445 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20446 mv "${ofile}T" "$ofile"
20450 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20451 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20452 { (exit 1); exit 1; }; }
20458 # This can be used to rebuild libtool when needed
20459 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20461 # Always use our own libtool.
20462 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20464 # Prevent multiple expansion
20486 DESIRED_FLAGS="-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"
20488 for flag in $DESIRED_FLAGS ; do
20490 { $as_echo "$as_me:$LINENO: checking if $CC supports $flag flag" >&5
20491 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
20492 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
20493 $as_echo_n "(cached) " >&6
20496 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
20497 $as_echo_n "(cached) " >&6
20499 ac_save_CFLAGS="$CFLAGS"
20500 CFLAGS="$CFLAGS $flag"
20501 cat >conftest.$ac_ext <<_ACEOF
20504 rm -f conftest.$ac_objext
20505 if { (ac_try="$ac_compile"
20506 case "(($ac_try" in
20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508 *) ac_try_echo=$ac_try;;
20510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20511 $as_echo "$ac_try_echo") >&5
20512 (eval "$ac_compile") 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && {
20519 test -z "$ac_c_werror_flag" ||
20520 test ! -s conftest.err
20521 } && test -s conftest.$ac_objext; then
20522 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
20524 $as_echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531 CFLAGS="$ac_save_CFLAGS"
20539 ac_res=`eval 'as_val=${'\`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh\`'}
20540 $as_echo "$as_val"'`
20541 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20542 $as_echo "$ac_res" >&6; }
20544 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then
20545 CFLAGS="$CFLAGS $flag"
20551 # Checks for header files.
20553 { $as_echo "$as_me:$LINENO: checking whether to enable assertions" >&5
20554 $as_echo_n "checking whether to enable assertions... " >&6; }
20555 # Check whether --enable-assert was given.
20556 if test "${enable_assert+set}" = set; then
20557 enableval=$enable_assert; { $as_echo "$as_me:$LINENO: result: no" >&5
20558 $as_echo "no" >&6; }
20560 cat >>confdefs.h <<\_ACEOF
20565 { $as_echo "$as_me:$LINENO: result: yes" >&5
20566 $as_echo "yes" >&6; }
20570 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20571 $as_echo_n "checking for ANSI C header files... " >&6; }
20572 if test "${ac_cv_header_stdc+set}" = set; then
20573 $as_echo_n "(cached) " >&6
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <stdlib.h>
20582 #include <stdarg.h>
20583 #include <string.h>
20594 rm -f conftest.$ac_objext
20595 if { (ac_try="$ac_compile"
20596 case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20601 $as_echo "$ac_try_echo") >&5
20602 (eval "$ac_compile") 2>conftest.er1
20604 grep -v '^ *+' conftest.er1 >conftest.err
20606 cat conftest.err >&5
20607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } && {
20609 test -z "$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20611 } && test -s conftest.$ac_objext; then
20612 ac_cv_header_stdc=yes
20614 $as_echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ac_cv_header_stdc=no
20620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622 if test $ac_cv_header_stdc = yes; then
20623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20624 cat >conftest.$ac_ext <<_ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20630 #include <string.h>
20633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20634 $EGREP "memchr" >/dev/null 2>&1; then
20637 ac_cv_header_stdc=no
20643 if test $ac_cv_header_stdc = yes; then
20644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20645 cat >conftest.$ac_ext <<_ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h. */
20651 #include <stdlib.h>
20654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20655 $EGREP "free" >/dev/null 2>&1; then
20658 ac_cv_header_stdc=no
20664 if test $ac_cv_header_stdc = yes; then
20665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20666 if test "$cross_compiling" = yes; then
20669 cat >conftest.$ac_ext <<_ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20676 #include <stdlib.h>
20677 #if ((' ' & 0x0FF) == 0x020)
20678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20681 # define ISLOWER(c) \
20682 (('a' <= (c) && (c) <= 'i') \
20683 || ('j' <= (c) && (c) <= 'r') \
20684 || ('s' <= (c) && (c) <= 'z'))
20685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20693 for (i = 0; i < 256; i++)
20694 if (XOR (islower (i), ISLOWER (i))
20695 || toupper (i) != TOUPPER (i))
20700 rm -f conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20707 $as_echo "$ac_try_echo") >&5
20708 (eval "$ac_link") 2>&5
20710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20712 { (case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20717 $as_echo "$ac_try_echo") >&5
20718 (eval "$ac_try") 2>&5
20720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20724 $as_echo "$as_me: program exited with status $ac_status" >&5
20725 $as_echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ( exit $ac_status )
20729 ac_cv_header_stdc=no
20731 rm -rf conftest.dSYM
20732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20738 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20739 $as_echo "$ac_cv_header_stdc" >&6; }
20740 if test $ac_cv_header_stdc = yes; then
20742 cat >>confdefs.h <<\_ACEOF
20743 #define STDC_HEADERS 1
20748 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20749 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20750 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20751 $as_echo_n "(cached) " >&6
20753 cat >conftest.$ac_ext <<_ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h. */
20759 #include <sys/types.h>
20760 #include <sys/wait.h>
20761 #ifndef WEXITSTATUS
20762 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20765 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20773 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20785 $as_echo "$ac_try_echo") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest.$ac_objext; then
20796 ac_cv_header_sys_wait_h=yes
20798 $as_echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 ac_cv_header_sys_wait_h=no
20804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20807 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20808 if test $ac_cv_header_sys_wait_h = yes; then
20810 cat >>confdefs.h <<\_ACEOF
20811 #define HAVE_SYS_WAIT_H 1
20826 for ac_header in arpa/inet.h fcntl.h netdb.h stdlib.h string.h sys/socket.h unistd.h sys/prctl.h netinet/in.h arpa/nameser_compat.h
20828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20831 $as_echo_n "checking for $ac_header... " >&6; }
20832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20833 $as_echo_n "(cached) " >&6
20835 ac_res=`eval 'as_val=${'$as_ac_Header'}
20836 $as_echo "$as_val"'`
20837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20838 $as_echo "$ac_res" >&6; }
20840 # Is the header compilable?
20841 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20842 $as_echo_n "checking $ac_header usability... " >&6; }
20843 cat >conftest.$ac_ext <<_ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20849 $ac_includes_default
20850 #include <$ac_header>
20852 rm -f conftest.$ac_objext
20853 if { (ac_try="$ac_compile"
20854 case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20859 $as_echo "$ac_try_echo") >&5
20860 (eval "$ac_compile") 2>conftest.er1
20862 grep -v '^ *+' conftest.er1 >conftest.err
20864 cat conftest.err >&5
20865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && {
20867 test -z "$ac_c_werror_flag" ||
20868 test ! -s conftest.err
20869 } && test -s conftest.$ac_objext; then
20870 ac_header_compiler=yes
20872 $as_echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_header_compiler=no
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20880 $as_echo "$ac_header_compiler" >&6; }
20882 # Is the header present?
20883 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20884 $as_echo_n "checking $ac_header presence... " >&6; }
20885 cat >conftest.$ac_ext <<_ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 #include <$ac_header>
20893 if { (ac_try="$ac_cpp conftest.$ac_ext"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20899 $as_echo "$ac_try_echo") >&5
20900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20902 grep -v '^ *+' conftest.er1 >conftest.err
20904 cat conftest.err >&5
20905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } >/dev/null && {
20907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20910 ac_header_preproc=yes
20912 $as_echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_header_preproc=no
20918 rm -f conftest.err conftest.$ac_ext
20919 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20920 $as_echo "$ac_header_preproc" >&6; }
20922 # So? What about this header?
20923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20926 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20928 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20929 ac_header_preproc=yes
20932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20933 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20935 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20937 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20939 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20943 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20945 ## ----------------------------------------------- ##
20946 ## Report this to mznflapaf (at) 0pointer (dot) de ##
20947 ## ----------------------------------------------- ##
20949 ) | sed "s/^/$as_me: WARNING: /" >&2
20952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20953 $as_echo_n "checking for $ac_header... " >&6; }
20954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20955 $as_echo_n "(cached) " >&6
20957 eval "$as_ac_Header=\$ac_header_preproc"
20959 ac_res=`eval 'as_val=${'$as_ac_Header'}
20960 $as_echo "$as_val"'`
20961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20962 $as_echo "$ac_res" >&6; }
20965 as_val=`eval 'as_val=${'$as_ac_Header'}
20966 $as_echo "$as_val"'`
20967 if test "x$as_val" = x""yes; then
20968 cat >>confdefs.h <<_ACEOF
20969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20977 # Checks for typedefs, structures, and compiler characteristics.
20978 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20979 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20980 if test "${ac_cv_c_const+set}" = set; then
20981 $as_echo_n "(cached) " >&6
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20993 /* FIXME: Include the comments suggested by Paul. */
20994 #ifndef __cplusplus
20995 /* Ultrix mips cc rejects this. */
20996 typedef int charset[2];
20998 /* SunOS 4.1.1 cc rejects this. */
20999 char const *const *pcpcc;
21001 /* NEC SVR4.0.2 mips cc rejects this. */
21002 struct point {int x, y;};
21003 static struct point const zero = {0,0};
21004 /* AIX XL C 1.02.0.0 rejects this.
21005 It does not let you subtract one const X* pointer from another in
21006 an arm of an if-expression whose if-part is not a constant
21008 const char *g = "string";
21009 pcpcc = &g + (g ? g-g : 0);
21010 /* HPUX 7.0 cc rejects these. */
21012 ppc = (char**) pcpcc;
21013 pcpcc = (char const *const *) ppc;
21014 { /* SCO 3.2v4 cc rejects this. */
21016 char const *s = 0 ? (char *) 0 : (char const *) 0;
21021 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21022 int x[] = {25, 17};
21023 const int *foo = &x[0];
21026 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21027 typedef const int *iptr;
21031 { /* AIX XL C 1.02.0.0 rejects this saying
21032 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21033 struct s { int j; const int *ap[3]; };
21034 struct s *b; b->j = 5;
21036 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21037 const int foo = 10;
21038 if (!foo) return 0;
21040 return !cs[0] && !zero.x;
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21054 $as_echo "$ac_try_echo") >&5
21055 (eval "$ac_compile") 2>conftest.er1
21057 grep -v '^ *+' conftest.er1 >conftest.err
21059 cat conftest.err >&5
21060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } && {
21062 test -z "$ac_c_werror_flag" ||
21063 test ! -s conftest.err
21064 } && test -s conftest.$ac_objext; then
21067 $as_echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21075 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21076 $as_echo "$ac_cv_c_const" >&6; }
21077 if test $ac_cv_c_const = no; then
21079 cat >>confdefs.h <<\_ACEOF
21085 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
21086 $as_echo_n "checking for pid_t... " >&6; }
21087 if test "${ac_cv_type_pid_t+set}" = set; then
21088 $as_echo_n "(cached) " >&6
21090 ac_cv_type_pid_t=no
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 $ac_includes_default
21101 if (sizeof (pid_t))
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21114 $as_echo "$ac_try_echo") >&5
21115 (eval "$ac_compile") 2>conftest.er1
21117 grep -v '^ *+' conftest.er1 >conftest.err
21119 cat conftest.err >&5
21120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest.$ac_objext; then
21125 cat >conftest.$ac_ext <<_ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 $ac_includes_default
21135 if (sizeof ((pid_t)))
21141 rm -f conftest.$ac_objext
21142 if { (ac_try="$ac_compile"
21143 case "(($ac_try" in
21144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145 *) ac_try_echo=$ac_try;;
21147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148 $as_echo "$ac_try_echo") >&5
21149 (eval "$ac_compile") 2>conftest.er1
21151 grep -v '^ *+' conftest.er1 >conftest.err
21153 cat conftest.err >&5
21154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } && {
21156 test -z "$ac_c_werror_flag" ||
21157 test ! -s conftest.err
21158 } && test -s conftest.$ac_objext; then
21161 $as_echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21164 ac_cv_type_pid_t=yes
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169 $as_echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21178 $as_echo "$ac_cv_type_pid_t" >&6; }
21179 if test "x$ac_cv_type_pid_t" = x""yes; then
21183 cat >>confdefs.h <<_ACEOF
21189 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21190 $as_echo_n "checking for size_t... " >&6; }
21191 if test "${ac_cv_type_size_t+set}" = set; then
21192 $as_echo_n "(cached) " >&6
21194 ac_cv_type_size_t=no
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 $ac_includes_default
21205 if (sizeof (size_t))
21211 rm -f conftest.$ac_objext
21212 if { (ac_try="$ac_compile"
21213 case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21218 $as_echo "$ac_try_echo") >&5
21219 (eval "$ac_compile") 2>conftest.er1
21221 grep -v '^ *+' conftest.er1 >conftest.err
21223 cat conftest.err >&5
21224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && {
21226 test -z "$ac_c_werror_flag" ||
21227 test ! -s conftest.err
21228 } && test -s conftest.$ac_objext; then
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 $ac_includes_default
21239 if (sizeof ((size_t)))
21245 rm -f conftest.$ac_objext
21246 if { (ac_try="$ac_compile"
21247 case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21252 $as_echo "$ac_try_echo") >&5
21253 (eval "$ac_compile") 2>conftest.er1
21255 grep -v '^ *+' conftest.er1 >conftest.err
21257 cat conftest.err >&5
21258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } && {
21260 test -z "$ac_c_werror_flag" ||
21261 test ! -s conftest.err
21262 } && test -s conftest.$ac_objext; then
21265 $as_echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 ac_cv_type_size_t=yes
21271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273 $as_echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21282 $as_echo "$ac_cv_type_size_t" >&6; }
21283 if test "x$ac_cv_type_size_t" = x""yes; then
21287 cat >>confdefs.h <<_ACEOF
21288 #define size_t unsigned int
21293 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
21294 $as_echo_n "checking for ssize_t... " >&6; }
21295 if test "${ac_cv_type_ssize_t+set}" = set; then
21296 $as_echo_n "(cached) " >&6
21298 ac_cv_type_ssize_t=no
21299 cat >conftest.$ac_ext <<_ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21309 if (sizeof (ssize_t))
21315 rm -f conftest.$ac_objext
21316 if { (ac_try="$ac_compile"
21317 case "(($ac_try" in
21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319 *) ac_try_echo=$ac_try;;
21321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21322 $as_echo "$ac_try_echo") >&5
21323 (eval "$ac_compile") 2>conftest.er1
21325 grep -v '^ *+' conftest.er1 >conftest.err
21327 cat conftest.err >&5
21328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } && {
21330 test -z "$ac_c_werror_flag" ||
21331 test ! -s conftest.err
21332 } && test -s conftest.$ac_objext; then
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 $ac_includes_default
21343 if (sizeof ((ssize_t)))
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21356 $as_echo "$ac_try_echo") >&5
21357 (eval "$ac_compile") 2>conftest.er1
21359 grep -v '^ *+' conftest.er1 >conftest.err
21361 cat conftest.err >&5
21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest.$ac_objext; then
21369 $as_echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ac_cv_type_ssize_t=yes
21375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21377 $as_echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21386 $as_echo "$ac_cv_type_ssize_t" >&6; }
21387 if test "x$ac_cv_type_ssize_t" = x""yes; then
21391 cat >>confdefs.h <<_ACEOF
21392 #define ssize_t int
21398 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
21399 $as_echo_n "checking for uint16_t... " >&6; }
21400 if test "${ac_cv_c_uint16_t+set}" = set; then
21401 $as_echo_n "(cached) " >&6
21403 ac_cv_c_uint16_t=no
21404 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21405 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 $ac_includes_default
21416 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21423 rm -f conftest.$ac_objext
21424 if { (ac_try="$ac_compile"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21430 $as_echo "$ac_try_echo") >&5
21431 (eval "$ac_compile") 2>conftest.er1
21433 grep -v '^ *+' conftest.er1 >conftest.err
21435 cat conftest.err >&5
21436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } && {
21438 test -z "$ac_c_werror_flag" ||
21439 test ! -s conftest.err
21440 } && test -s conftest.$ac_objext; then
21442 uint16_t) ac_cv_c_uint16_t=yes ;;
21443 *) ac_cv_c_uint16_t=$ac_type ;;
21447 $as_echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454 test "$ac_cv_c_uint16_t" != no && break
21457 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21458 $as_echo "$ac_cv_c_uint16_t" >&6; }
21459 case $ac_cv_c_uint16_t in #(
21464 cat >>confdefs.h <<_ACEOF
21465 #define uint16_t $ac_cv_c_uint16_t
21471 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
21472 $as_echo_n "checking for uint8_t... " >&6; }
21473 if test "${ac_cv_c_uint8_t+set}" = set; then
21474 $as_echo_n "(cached) " >&6
21477 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21478 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 $ac_includes_default
21489 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21496 rm -f conftest.$ac_objext
21497 if { (ac_try="$ac_compile"
21498 case "(($ac_try" in
21499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21503 $as_echo "$ac_try_echo") >&5
21504 (eval "$ac_compile") 2>conftest.er1
21506 grep -v '^ *+' conftest.er1 >conftest.err
21508 cat conftest.err >&5
21509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest.$ac_objext; then
21515 uint8_t) ac_cv_c_uint8_t=yes ;;
21516 *) ac_cv_c_uint8_t=$ac_type ;;
21520 $as_echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21527 test "$ac_cv_c_uint8_t" != no && break
21530 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21531 $as_echo "$ac_cv_c_uint8_t" >&6; }
21532 case $ac_cv_c_uint8_t in #(
21536 cat >>confdefs.h <<\_ACEOF
21541 cat >>confdefs.h <<_ACEOF
21542 #define uint8_t $ac_cv_c_uint8_t
21547 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21548 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21549 if test "${ac_cv_header_time+set}" = set; then
21550 $as_echo_n "(cached) " >&6
21552 cat >conftest.$ac_ext <<_ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 #include <sys/types.h>
21559 #include <sys/time.h>
21565 if ((struct tm *) 0)
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21578 $as_echo "$ac_try_echo") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21589 ac_cv_header_time=yes
21591 $as_echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_cv_header_time=no
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21600 $as_echo "$ac_cv_header_time" >&6; }
21601 if test $ac_cv_header_time = yes; then
21603 cat >>confdefs.h <<\_ACEOF
21604 #define TIME_WITH_SYS_TIME 1
21610 # Checks for library functions.
21612 for ac_header in vfork.h
21614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21616 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21617 $as_echo_n "checking for $ac_header... " >&6; }
21618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21619 $as_echo_n "(cached) " >&6
21621 ac_res=`eval 'as_val=${'$as_ac_Header'}
21622 $as_echo "$as_val"'`
21623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21624 $as_echo "$ac_res" >&6; }
21626 # Is the header compilable?
21627 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21628 $as_echo_n "checking $ac_header usability... " >&6; }
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 $ac_includes_default
21636 #include <$ac_header>
21638 rm -f conftest.$ac_objext
21639 if { (ac_try="$ac_compile"
21640 case "(($ac_try" in
21641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21645 $as_echo "$ac_try_echo") >&5
21646 (eval "$ac_compile") 2>conftest.er1
21648 grep -v '^ *+' conftest.er1 >conftest.err
21650 cat conftest.err >&5
21651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && {
21653 test -z "$ac_c_werror_flag" ||
21654 test ! -s conftest.err
21655 } && test -s conftest.$ac_objext; then
21656 ac_header_compiler=yes
21658 $as_echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21661 ac_header_compiler=no
21664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21666 $as_echo "$ac_header_compiler" >&6; }
21668 # Is the header present?
21669 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21670 $as_echo_n "checking $ac_header presence... " >&6; }
21671 cat >conftest.$ac_ext <<_ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 #include <$ac_header>
21679 if { (ac_try="$ac_cpp conftest.$ac_ext"
21680 case "(($ac_try" in
21681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682 *) ac_try_echo=$ac_try;;
21684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21685 $as_echo "$ac_try_echo") >&5
21686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } >/dev/null && {
21693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21696 ac_header_preproc=yes
21698 $as_echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ac_header_preproc=no
21704 rm -f conftest.err conftest.$ac_ext
21705 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21706 $as_echo "$ac_header_preproc" >&6; }
21708 # So? What about this header?
21709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21712 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21715 ac_header_preproc=yes
21718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21719 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21721 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21723 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21725 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21727 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21729 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21731 ## ----------------------------------------------- ##
21732 ## Report this to mznflapaf (at) 0pointer (dot) de ##
21733 ## ----------------------------------------------- ##
21735 ) | sed "s/^/$as_me: WARNING: /" >&2
21738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21739 $as_echo_n "checking for $ac_header... " >&6; }
21740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21741 $as_echo_n "(cached) " >&6
21743 eval "$as_ac_Header=\$ac_header_preproc"
21745 ac_res=`eval 'as_val=${'$as_ac_Header'}
21746 $as_echo "$as_val"'`
21747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21748 $as_echo "$ac_res" >&6; }
21751 as_val=`eval 'as_val=${'$as_ac_Header'}
21752 $as_echo "$as_val"'`
21753 if test "x$as_val" = x""yes; then
21754 cat >>confdefs.h <<_ACEOF
21755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21764 for ac_func in fork vfork
21766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21767 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21768 $as_echo_n "checking for $ac_func... " >&6; }
21769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21770 $as_echo_n "(cached) " >&6
21772 cat >conftest.$ac_ext <<_ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21780 #define $ac_func innocuous_$ac_func
21782 /* System header to define __stub macros and hopefully few prototypes,
21783 which can conflict with char $ac_func (); below.
21784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21785 <limits.h> exists even on freestanding compilers. */
21788 # include <limits.h>
21790 # include <assert.h>
21795 /* Override any GCC internal prototype to avoid an error.
21796 Use char because int might match the return type of a GCC
21797 builtin and then its argument prototype would still apply. */
21802 /* The GNU C library defines this for functions which it implements
21803 to always fail with ENOSYS. Some functions are actually named
21804 something starting with __ and the normal name is an alias. */
21805 #if defined __stub_$ac_func || defined __stub___$ac_func
21812 return $ac_func ();
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (ac_try="$ac_link"
21819 case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21824 $as_echo "$ac_try_echo") >&5
21825 (eval "$ac_link") 2>conftest.er1
21827 grep -v '^ *+' conftest.er1 >conftest.err
21829 cat conftest.err >&5
21830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && {
21832 test -z "$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21834 } && test -s conftest$ac_exeext && {
21835 test "$cross_compiling" = yes ||
21836 $as_test_x conftest$ac_exeext
21838 eval "$as_ac_var=yes"
21840 $as_echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 eval "$as_ac_var=no"
21846 rm -rf conftest.dSYM
21847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21848 conftest$ac_exeext conftest.$ac_ext
21850 ac_res=`eval 'as_val=${'$as_ac_var'}
21851 $as_echo "$as_val"'`
21852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21853 $as_echo "$ac_res" >&6; }
21854 as_val=`eval 'as_val=${'$as_ac_var'}
21855 $as_echo "$as_val"'`
21856 if test "x$as_val" = x""yes; then
21857 cat >>confdefs.h <<_ACEOF
21858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21864 if test "x$ac_cv_func_fork" = xyes; then
21865 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
21866 $as_echo_n "checking for working fork... " >&6; }
21867 if test "${ac_cv_func_fork_works+set}" = set; then
21868 $as_echo_n "(cached) " >&6
21870 if test "$cross_compiling" = yes; then
21871 ac_cv_func_fork_works=cross
21873 cat >conftest.$ac_ext <<_ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 $ac_includes_default
21884 /* By Ruediger Kuhlmann. */
21885 return fork () < 0;
21891 rm -f conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21898 $as_echo "$ac_try_echo") >&5
21899 (eval "$ac_link") 2>&5
21901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21903 { (case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21908 $as_echo "$ac_try_echo") >&5
21909 (eval "$ac_try") 2>&5
21911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 ac_cv_func_fork_works=yes
21915 $as_echo "$as_me: program exited with status $ac_status" >&5
21916 $as_echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21919 ( exit $ac_status )
21920 ac_cv_func_fork_works=no
21922 rm -rf conftest.dSYM
21923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21928 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21929 $as_echo "$ac_cv_func_fork_works" >&6; }
21932 ac_cv_func_fork_works=$ac_cv_func_fork
21934 if test "x$ac_cv_func_fork_works" = xcross; then
21936 *-*-amigaos* | *-*-msdosdjgpp*)
21937 # Override, as these systems have only a dummy fork() stub
21938 ac_cv_func_fork_works=no
21941 ac_cv_func_fork_works=yes
21944 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21945 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21947 ac_cv_func_vfork_works=$ac_cv_func_vfork
21948 if test "x$ac_cv_func_vfork" = xyes; then
21949 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
21950 $as_echo_n "checking for working vfork... " >&6; }
21951 if test "${ac_cv_func_vfork_works+set}" = set; then
21952 $as_echo_n "(cached) " >&6
21954 if test "$cross_compiling" = yes; then
21955 ac_cv_func_vfork_works=cross
21957 cat >conftest.$ac_ext <<_ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21963 /* Thanks to Paul Eggert for this test. */
21964 $ac_includes_default
21965 #include <sys/wait.h>
21966 #ifdef HAVE_VFORK_H
21967 # include <vfork.h>
21969 /* On some sparc systems, changes by the child to local and incoming
21970 argument registers are propagated back to the parent. The compiler
21971 is told about this with #include <vfork.h>, but some compilers
21972 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21973 static variable whose address is put into a register that is
21974 clobbered by the vfork. */
21977 sparc_address_test (int arg)
21979 sparc_address_test (arg) int arg;
21982 static pid_t child;
22000 pid_t parent = getpid ();
22003 sparc_address_test (0);
22008 /* Here is another test for sparc vfork register problems. This
22009 test uses lots of local variables, at least as many local
22010 variables as main has allocated so far including compiler
22011 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22012 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22013 reuse the register of parent for one of the local variables,
22014 since it will think that parent can't possibly be used any more
22015 in this routine. Assigning to the local variable will thus
22016 munge parent in the parent process. */
22018 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22019 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22020 /* Convince the compiler that p..p7 are live; otherwise, it might
22021 use the same hardware register for all 8 local variables. */
22022 if (p != p1 || p != p2 || p != p3 || p != p4
22023 || p != p5 || p != p6 || p != p7)
22026 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22027 from child file descriptors. If the child closes a descriptor
22028 before it execs or exits, this munges the parent's descriptor
22029 as well. Test for this by closing stdout in the child. */
22030 _exit(close(fileno(stdout)) != 0);
22035 while (wait(&status) != child)
22038 /* Was there some problem with vforking? */
22041 /* Did the child fail? (This shouldn't happen.) */
22044 /* Did the vfork/compiler bug occur? */
22045 || parent != getpid()
22047 /* Did the file descriptor bug occur? */
22048 || fstat(fileno(stdout), &st) != 0
22053 rm -f conftest$ac_exeext
22054 if { (ac_try="$ac_link"
22055 case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22060 $as_echo "$ac_try_echo") >&5
22061 (eval "$ac_link") 2>&5
22063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22065 { (case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22070 $as_echo "$ac_try_echo") >&5
22071 (eval "$ac_try") 2>&5
22073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22075 ac_cv_func_vfork_works=yes
22077 $as_echo "$as_me: program exited with status $ac_status" >&5
22078 $as_echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22081 ( exit $ac_status )
22082 ac_cv_func_vfork_works=no
22084 rm -rf conftest.dSYM
22085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22090 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22091 $as_echo "$ac_cv_func_vfork_works" >&6; }
22094 if test "x$ac_cv_func_fork_works" = xcross; then
22095 ac_cv_func_vfork_works=$ac_cv_func_vfork
22096 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22097 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22100 if test "x$ac_cv_func_vfork_works" = xyes; then
22102 cat >>confdefs.h <<\_ACEOF
22103 #define HAVE_WORKING_VFORK 1
22108 cat >>confdefs.h <<\_ACEOF
22113 if test "x$ac_cv_func_fork_works" = xyes; then
22115 cat >>confdefs.h <<\_ACEOF
22116 #define HAVE_WORKING_FORK 1
22122 for ac_header in stdlib.h
22124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22127 $as_echo_n "checking for $ac_header... " >&6; }
22128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22129 $as_echo_n "(cached) " >&6
22131 ac_res=`eval 'as_val=${'$as_ac_Header'}
22132 $as_echo "$as_val"'`
22133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22134 $as_echo "$ac_res" >&6; }
22136 # Is the header compilable?
22137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22138 $as_echo_n "checking $ac_header usability... " >&6; }
22139 cat >conftest.$ac_ext <<_ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 $ac_includes_default
22146 #include <$ac_header>
22148 rm -f conftest.$ac_objext
22149 if { (ac_try="$ac_compile"
22150 case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22155 $as_echo "$ac_try_echo") >&5
22156 (eval "$ac_compile") 2>conftest.er1
22158 grep -v '^ *+' conftest.er1 >conftest.err
22160 cat conftest.err >&5
22161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && {
22163 test -z "$ac_c_werror_flag" ||
22164 test ! -s conftest.err
22165 } && test -s conftest.$ac_objext; then
22166 ac_header_compiler=yes
22168 $as_echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22171 ac_header_compiler=no
22174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22176 $as_echo "$ac_header_compiler" >&6; }
22178 # Is the header present?
22179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22180 $as_echo_n "checking $ac_header presence... " >&6; }
22181 cat >conftest.$ac_ext <<_ACEOF
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h. */
22187 #include <$ac_header>
22189 if { (ac_try="$ac_cpp conftest.$ac_ext"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22195 $as_echo "$ac_try_echo") >&5
22196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22198 grep -v '^ *+' conftest.er1 >conftest.err
22200 cat conftest.err >&5
22201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } >/dev/null && {
22203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22204 test ! -s conftest.err
22206 ac_header_preproc=yes
22208 $as_echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ac_header_preproc=no
22214 rm -f conftest.err conftest.$ac_ext
22215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22216 $as_echo "$ac_header_preproc" >&6; }
22218 # So? What about this header?
22219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22225 ac_header_preproc=yes
22228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22231 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22235 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22241 ## ----------------------------------------------- ##
22242 ## Report this to mznflapaf (at) 0pointer (dot) de ##
22243 ## ----------------------------------------------- ##
22245 ) | sed "s/^/$as_me: WARNING: /" >&2
22248 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22249 $as_echo_n "checking for $ac_header... " >&6; }
22250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22251 $as_echo_n "(cached) " >&6
22253 eval "$as_ac_Header=\$ac_header_preproc"
22255 ac_res=`eval 'as_val=${'$as_ac_Header'}
22256 $as_echo "$as_val"'`
22257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22258 $as_echo "$ac_res" >&6; }
22261 as_val=`eval 'as_val=${'$as_ac_Header'}
22262 $as_echo "$as_val"'`
22263 if test "x$as_val" = x""yes; then
22264 cat >>confdefs.h <<_ACEOF
22265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22272 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22273 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22274 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22275 $as_echo_n "(cached) " >&6
22277 if test "$cross_compiling" = yes; then
22278 ac_cv_func_malloc_0_nonnull=no
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22287 # include <stdlib.h>
22295 return ! malloc (0);
22300 rm -f conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22307 $as_echo "$ac_try_echo") >&5
22308 (eval "$ac_link") 2>&5
22310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22312 { (case "(($ac_try" in
22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22317 $as_echo "$ac_try_echo") >&5
22318 (eval "$ac_try") 2>&5
22320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_func_malloc_0_nonnull=yes
22324 $as_echo "$as_me: program exited with status $ac_status" >&5
22325 $as_echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22328 ( exit $ac_status )
22329 ac_cv_func_malloc_0_nonnull=no
22331 rm -rf conftest.dSYM
22332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22338 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22339 if test $ac_cv_func_malloc_0_nonnull = yes; then
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_MALLOC 1
22346 cat >>confdefs.h <<\_ACEOF
22347 #define HAVE_MALLOC 0
22350 case " $LIBOBJS " in
22351 *" malloc.$ac_objext "* ) ;;
22352 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22357 cat >>confdefs.h <<\_ACEOF
22358 #define malloc rpl_malloc
22367 for ac_header in sys/select.h sys/socket.h
22369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22372 $as_echo_n "checking for $ac_header... " >&6; }
22373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22374 $as_echo_n "(cached) " >&6
22376 ac_res=`eval 'as_val=${'$as_ac_Header'}
22377 $as_echo "$as_val"'`
22378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22379 $as_echo "$ac_res" >&6; }
22381 # Is the header compilable?
22382 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22383 $as_echo_n "checking $ac_header usability... " >&6; }
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22390 $ac_includes_default
22391 #include <$ac_header>
22393 rm -f conftest.$ac_objext
22394 if { (ac_try="$ac_compile"
22395 case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22400 $as_echo "$ac_try_echo") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22403 grep -v '^ *+' conftest.er1 >conftest.err
22405 cat conftest.err >&5
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.$ac_objext; then
22411 ac_header_compiler=yes
22413 $as_echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 ac_header_compiler=no
22419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22420 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22421 $as_echo "$ac_header_compiler" >&6; }
22423 # Is the header present?
22424 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22425 $as_echo_n "checking $ac_header presence... " >&6; }
22426 cat >conftest.$ac_ext <<_ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 #include <$ac_header>
22434 if { (ac_try="$ac_cpp conftest.$ac_ext"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22440 $as_echo "$ac_try_echo") >&5
22441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22443 grep -v '^ *+' conftest.er1 >conftest.err
22445 cat conftest.err >&5
22446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } >/dev/null && {
22448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22451 ac_header_preproc=yes
22453 $as_echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ac_header_preproc=no
22459 rm -f conftest.err conftest.$ac_ext
22460 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22461 $as_echo "$ac_header_preproc" >&6; }
22463 # So? What about this header?
22464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22467 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22469 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22470 ac_header_preproc=yes
22473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22474 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22476 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22478 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22480 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22484 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22486 ## ----------------------------------------------- ##
22487 ## Report this to mznflapaf (at) 0pointer (dot) de ##
22488 ## ----------------------------------------------- ##
22490 ) | sed "s/^/$as_me: WARNING: /" >&2
22493 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22494 $as_echo_n "checking for $ac_header... " >&6; }
22495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22496 $as_echo_n "(cached) " >&6
22498 eval "$as_ac_Header=\$ac_header_preproc"
22500 ac_res=`eval 'as_val=${'$as_ac_Header'}
22501 $as_echo "$as_val"'`
22502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22503 $as_echo "$ac_res" >&6; }
22506 as_val=`eval 'as_val=${'$as_ac_Header'}
22507 $as_echo "$as_val"'`
22508 if test "x$as_val" = x""yes; then
22509 cat >>confdefs.h <<_ACEOF
22510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22517 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
22518 $as_echo_n "checking types of arguments for select... " >&6; }
22519 if test "${ac_cv_func_select_args+set}" = set; then
22520 $as_echo_n "(cached) " >&6
22522 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22523 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22524 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22525 cat >conftest.$ac_ext <<_ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 $ac_includes_default
22532 #ifdef HAVE_SYS_SELECT_H
22533 # include <sys/select.h>
22535 #ifdef HAVE_SYS_SOCKET_H
22536 # include <sys/socket.h>
22542 extern int select ($ac_arg1,
22543 $ac_arg234, $ac_arg234, $ac_arg234,
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22556 $as_echo "$ac_try_echo") >&5
22557 (eval "$ac_compile") 2>conftest.er1
22559 grep -v '^ *+' conftest.er1 >conftest.err
22561 cat conftest.err >&5
22562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest.$ac_objext; then
22567 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22569 $as_echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 # Provide a safe default value.
22580 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
22584 $as_echo "$ac_cv_func_select_args" >&6; }
22585 ac_save_IFS=$IFS; IFS=','
22586 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22590 cat >>confdefs.h <<_ACEOF
22591 #define SELECT_TYPE_ARG1 $1
22595 cat >>confdefs.h <<_ACEOF
22596 #define SELECT_TYPE_ARG234 ($2)
22600 cat >>confdefs.h <<_ACEOF
22601 #define SELECT_TYPE_ARG5 ($3)
22606 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22607 $as_echo_n "checking return type of signal handlers... " >&6; }
22608 if test "${ac_cv_type_signal+set}" = set; then
22609 $as_echo_n "(cached) " >&6
22611 cat >conftest.$ac_ext <<_ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 #include <sys/types.h>
22618 #include <signal.h>
22623 return *(signal (0, 0)) (0) == 1;
22628 rm -f conftest.$ac_objext
22629 if { (ac_try="$ac_compile"
22630 case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22635 $as_echo "$ac_try_echo") >&5
22636 (eval "$ac_compile") 2>conftest.er1
22638 grep -v '^ *+' conftest.er1 >conftest.err
22640 cat conftest.err >&5
22641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest.$ac_objext; then
22646 ac_cv_type_signal=int
22648 $as_echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 ac_cv_type_signal=void
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22656 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22657 $as_echo "$ac_cv_type_signal" >&6; }
22659 cat >>confdefs.h <<_ACEOF
22660 #define RETSIGTYPE $ac_cv_type_signal
22670 for ac_func in memset select strndup setresuid setreuid strerror
22672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22673 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22674 $as_echo_n "checking for $ac_func... " >&6; }
22675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22676 $as_echo_n "(cached) " >&6
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22686 #define $ac_func innocuous_$ac_func
22688 /* System header to define __stub macros and hopefully few prototypes,
22689 which can conflict with char $ac_func (); below.
22690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22691 <limits.h> exists even on freestanding compilers. */
22694 # include <limits.h>
22696 # include <assert.h>
22701 /* Override any GCC internal prototype to avoid an error.
22702 Use char because int might match the return type of a GCC
22703 builtin and then its argument prototype would still apply. */
22708 /* The GNU C library defines this for functions which it implements
22709 to always fail with ENOSYS. Some functions are actually named
22710 something starting with __ and the normal name is an alias. */
22711 #if defined __stub_$ac_func || defined __stub___$ac_func
22718 return $ac_func ();
22723 rm -f conftest.$ac_objext conftest$ac_exeext
22724 if { (ac_try="$ac_link"
22725 case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22730 $as_echo "$ac_try_echo") >&5
22731 (eval "$ac_link") 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest$ac_exeext && {
22741 test "$cross_compiling" = yes ||
22742 $as_test_x conftest$ac_exeext
22744 eval "$as_ac_var=yes"
22746 $as_echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22749 eval "$as_ac_var=no"
22752 rm -rf conftest.dSYM
22753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22754 conftest$ac_exeext conftest.$ac_ext
22756 ac_res=`eval 'as_val=${'$as_ac_var'}
22757 $as_echo "$as_val"'`
22758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22759 $as_echo "$ac_res" >&6; }
22760 as_val=`eval 'as_val=${'$as_ac_var'}
22761 $as_echo "$as_val"'`
22762 if test "x$as_val" = x""yes; then
22763 cat >>confdefs.h <<_ACEOF
22764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22772 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22773 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22774 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22775 $as_echo_n "(cached) " >&6
22777 ac_check_lib_save_LIBS=$LIBS
22779 cat >conftest.$ac_ext <<_ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22792 char gethostbyname ();
22796 return gethostbyname ();
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (ac_try="$ac_link"
22803 case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22808 $as_echo "$ac_try_echo") >&5
22809 (eval "$ac_link") 2>conftest.er1
22811 grep -v '^ *+' conftest.er1 >conftest.err
22813 cat conftest.err >&5
22814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest$ac_exeext && {
22819 test "$cross_compiling" = yes ||
22820 $as_test_x conftest$ac_exeext
22822 ac_cv_lib_nsl_gethostbyname=yes
22824 $as_echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22827 ac_cv_lib_nsl_gethostbyname=no
22830 rm -rf conftest.dSYM
22831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22832 conftest$ac_exeext conftest.$ac_ext
22833 LIBS=$ac_check_lib_save_LIBS
22835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22836 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22837 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
22838 cat >>confdefs.h <<_ACEOF
22839 #define HAVE_LIBNSL 1
22847 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22848 $as_echo_n "checking for connect in -lsocket... " >&6; }
22849 if test "${ac_cv_lib_socket_connect+set}" = set; then
22850 $as_echo_n "(cached) " >&6
22852 ac_check_lib_save_LIBS=$LIBS
22853 LIBS="-lsocket $LIBS"
22854 cat >conftest.$ac_ext <<_ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22861 /* Override any GCC internal prototype to avoid an error.
22862 Use char because int might match the return type of a GCC
22863 builtin and then its argument prototype would still apply. */
22876 rm -f conftest.$ac_objext conftest$ac_exeext
22877 if { (ac_try="$ac_link"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22883 $as_echo "$ac_try_echo") >&5
22884 (eval "$ac_link") 2>conftest.er1
22886 grep -v '^ *+' conftest.er1 >conftest.err
22888 cat conftest.err >&5
22889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest$ac_exeext && {
22894 test "$cross_compiling" = yes ||
22895 $as_test_x conftest$ac_exeext
22897 ac_cv_lib_socket_connect=yes
22899 $as_echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_cv_lib_socket_connect=no
22905 rm -rf conftest.dSYM
22906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22907 conftest$ac_exeext conftest.$ac_ext
22908 LIBS=$ac_check_lib_save_LIBS
22910 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22911 $as_echo "$ac_cv_lib_socket_connect" >&6; }
22912 if test "x$ac_cv_lib_socket_connect" = x""yes; then
22913 cat >>confdefs.h <<_ACEOF
22914 #define HAVE_LIBSOCKET 1
22917 LIBS="-lsocket $LIBS"
22922 { $as_echo "$as_me:$LINENO: checking for res_query" >&5
22923 $as_echo_n "checking for res_query... " >&6; }
22924 if test "${ac_cv_func_res_query+set}" = set; then
22925 $as_echo_n "(cached) " >&6
22927 cat >conftest.$ac_ext <<_ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 /* Define res_query to an innocuous variant, in case <limits.h> declares res_query.
22934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22935 #define res_query innocuous_res_query
22937 /* System header to define __stub macros and hopefully few prototypes,
22938 which can conflict with char res_query (); below.
22939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22940 <limits.h> exists even on freestanding compilers. */
22943 # include <limits.h>
22945 # include <assert.h>
22950 /* Override any GCC internal prototype to avoid an error.
22951 Use char because int might match the return type of a GCC
22952 builtin and then its argument prototype would still apply. */
22957 /* The GNU C library defines this for functions which it implements
22958 to always fail with ENOSYS. Some functions are actually named
22959 something starting with __ and the normal name is an alias. */
22960 #if defined __stub_res_query || defined __stub___res_query
22967 return res_query ();
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (ac_try="$ac_link"
22974 case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22979 $as_echo "$ac_try_echo") >&5
22980 (eval "$ac_link") 2>conftest.er1
22982 grep -v '^ *+' conftest.er1 >conftest.err
22984 cat conftest.err >&5
22985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } && {
22987 test -z "$ac_c_werror_flag" ||
22988 test ! -s conftest.err
22989 } && test -s conftest$ac_exeext && {
22990 test "$cross_compiling" = yes ||
22991 $as_test_x conftest$ac_exeext
22993 ac_cv_func_res_query=yes
22995 $as_echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_cv_func_res_query=no
23001 rm -rf conftest.dSYM
23002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23003 conftest$ac_exeext conftest.$ac_ext
23005 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_query" >&5
23006 $as_echo "$ac_cv_func_res_query" >&6; }
23007 if test "x$ac_cv_func_res_query" = x""yes; then
23011 { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
23012 $as_echo_n "checking for res_query in -lresolv... " >&6; }
23013 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
23014 $as_echo_n "(cached) " >&6
23016 ac_check_lib_save_LIBS=$LIBS
23017 LIBS="-lresolv $LIBS"
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23025 /* Override any GCC internal prototype to avoid an error.
23026 Use char because int might match the return type of a GCC
23027 builtin and then its argument prototype would still apply. */
23035 return res_query ();
23040 rm -f conftest.$ac_objext conftest$ac_exeext
23041 if { (ac_try="$ac_link"
23042 case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23047 $as_echo "$ac_try_echo") >&5
23048 (eval "$ac_link") 2>conftest.er1
23050 grep -v '^ *+' conftest.er1 >conftest.err
23052 cat conftest.err >&5
23053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest$ac_exeext && {
23058 test "$cross_compiling" = yes ||
23059 $as_test_x conftest$ac_exeext
23061 ac_cv_lib_resolv_res_query=yes
23063 $as_echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 ac_cv_lib_resolv_res_query=no
23069 rm -rf conftest.dSYM
23070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23071 conftest$ac_exeext conftest.$ac_ext
23072 LIBS=$ac_check_lib_save_LIBS
23074 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
23075 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
23076 if test "x$ac_cv_lib_resolv_res_query" = x""yes; then
23077 cat >>confdefs.h <<_ACEOF
23078 #define HAVE_LIBRESOLV 1
23081 LIBS="-lresolv $LIBS"
23085 LIBS="-lresolv $LIBS"
23086 { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv (alternate version)" >&5
23087 $as_echo_n "checking for res_query in -lresolv (alternate version)... " >&6; }
23088 cat >conftest.$ac_ext <<_ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23094 #include <resolv.h>
23098 res_query(0,0,0,0,0)
23103 rm -f conftest.$ac_objext conftest$ac_exeext
23104 if { (ac_try="$ac_link"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23110 $as_echo "$ac_try_echo") >&5
23111 (eval "$ac_link") 2>conftest.er1
23113 grep -v '^ *+' conftest.er1 >conftest.err
23115 cat conftest.err >&5
23116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } && {
23118 test -z "$ac_c_werror_flag" ||
23119 test ! -s conftest.err
23120 } && test -s conftest$ac_exeext && {
23121 test "$cross_compiling" = yes ||
23122 $as_test_x conftest$ac_exeext
23124 { $as_echo "$as_me:$LINENO: result: yes" >&5
23125 $as_echo "yes" >&6; }
23127 $as_echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23130 { $as_echo "$as_me:$LINENO: result: no" >&5
23131 $as_echo "no" >&6; }
23134 { $as_echo "$as_me:$LINENO: checking for res_query in -lbind" >&5
23135 $as_echo_n "checking for res_query in -lbind... " >&6; }
23136 if test "${ac_cv_lib_bind_res_query+set}" = set; then
23137 $as_echo_n "(cached) " >&6
23139 ac_check_lib_save_LIBS=$LIBS
23140 LIBS="-lbind $LIBS"
23141 cat >conftest.$ac_ext <<_ACEOF
23144 cat confdefs.h >>conftest.$ac_ext
23145 cat >>conftest.$ac_ext <<_ACEOF
23146 /* end confdefs.h. */
23148 /* Override any GCC internal prototype to avoid an error.
23149 Use char because int might match the return type of a GCC
23150 builtin and then its argument prototype would still apply. */
23158 return res_query ();
23163 rm -f conftest.$ac_objext conftest$ac_exeext
23164 if { (ac_try="$ac_link"
23165 case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23170 $as_echo "$ac_try_echo") >&5
23171 (eval "$ac_link") 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest$ac_exeext && {
23181 test "$cross_compiling" = yes ||
23182 $as_test_x conftest$ac_exeext
23184 ac_cv_lib_bind_res_query=yes
23186 $as_echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23189 ac_cv_lib_bind_res_query=no
23192 rm -rf conftest.dSYM
23193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23194 conftest$ac_exeext conftest.$ac_ext
23195 LIBS=$ac_check_lib_save_LIBS
23197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_query" >&5
23198 $as_echo "$ac_cv_lib_bind_res_query" >&6; }
23199 if test "x$ac_cv_lib_bind_res_query" = x""yes; then
23200 cat >>confdefs.h <<_ACEOF
23201 #define HAVE_LIBBIND 1
23204 LIBS="-lbind $LIBS"
23207 { { $as_echo "$as_me:$LINENO: error: res_query not found" >&5
23208 $as_echo "$as_me: error: res_query not found" >&2;}
23209 { (exit 1); exit 1; }; }
23214 rm -rf conftest.dSYM
23215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23216 conftest$ac_exeext conftest.$ac_ext
23228 ac_cpp='$CPP $CPPFLAGS'
23229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23235 # We used to check for pthread.h first, but this fails if pthread.h
23236 # requires special compiler flags (e.g. on True64 or Sequent).
23237 # It gets checked for in the link test anyway.
23239 # First of all, check if the user has set any of the PTHREAD_LIBS,
23240 # etcetera environment variables, and if threads linking works using
23242 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23243 save_CFLAGS="$CFLAGS"
23244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23246 LIBS="$PTHREAD_LIBS $LIBS"
23247 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23248 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23256 /* Override any GCC internal prototype to avoid an error.
23257 Use char because int might match the return type of a GCC
23258 builtin and then its argument prototype would still apply. */
23262 char pthread_join ();
23266 return pthread_join ();
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (ac_try="$ac_link"
23273 case "(($ac_try" in
23274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275 *) ac_try_echo=$ac_try;;
23277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23278 $as_echo "$ac_try_echo") >&5
23279 (eval "$ac_link") 2>conftest.er1
23281 grep -v '^ *+' conftest.er1 >conftest.err
23283 cat conftest.err >&5
23284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); } && {
23286 test -z "$ac_c_werror_flag" ||
23287 test ! -s conftest.err
23288 } && test -s conftest$ac_exeext && {
23289 test "$cross_compiling" = yes ||
23290 $as_test_x conftest$ac_exeext
23294 $as_echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23300 rm -rf conftest.dSYM
23301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23302 conftest$ac_exeext conftest.$ac_ext
23303 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23304 $as_echo "$acx_pthread_ok" >&6; }
23305 if test x"$acx_pthread_ok" = xno; then
23310 CFLAGS="$save_CFLAGS"
23313 # We must check for the threads library under a number of different
23314 # names; the ordering is very important because some systems
23315 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23316 # libraries is broken (non-POSIX).
23318 # Create a list of thread flags to try. Items starting with a "-" are
23319 # C compiler flags, and other items are library names, except for "none"
23320 # which indicates that we try without any flags at all, and "pthread-config"
23321 # which is a program returning the flags for the Pth emulation library.
23323 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23325 # The ordering *is* (sometimes) important. Some notes on the
23326 # individual items follow:
23328 # pthreads: AIX (must check this before -lpthread)
23329 # none: in case threads are in libc; should be tried before -Kthread and
23330 # other compiler flags to prevent continual compiler warnings
23331 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23332 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23333 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23334 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23335 # -pthreads: Solaris/gcc
23336 # -mthreads: Mingw32/gcc, Lynx/gcc
23337 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23338 # doesn't hurt to check since this sometimes defines pthreads too;
23339 # also defines -D_REENTRANT)
23340 # pthread: Linux, etcetera
23341 # --thread-safe: KAI C++
23342 # pthread-config: use pthread-config program (for GNU Pth library)
23344 case "${host_cpu}-${host_os}" in
23347 # On Solaris (at least, for some versions), libc contains stubbed
23348 # (non-functional) versions of the pthreads routines, so link-based
23349 # tests will erroneously succeed. (We need to link with -pthread or
23350 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23351 # a function called by this macro, so we could check for that, but
23352 # who knows whether they'll stub that too in a future libc.) So,
23353 # we'll just look for -pthreads and -lpthread first:
23355 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23359 if test x"$acx_pthread_ok" = xno; then
23360 for flag in $acx_pthread_flags; do
23364 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23365 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23369 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23370 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23371 PTHREAD_CFLAGS="$flag"
23375 # Extract the first word of "pthread-config", so it can be a program name with args.
23376 set dummy pthread-config; ac_word=$2
23377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23378 $as_echo_n "checking for $ac_word... " >&6; }
23379 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23380 $as_echo_n "(cached) " >&6
23382 if test -n "$acx_pthread_config"; then
23383 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23386 for as_dir in $PATH
23389 test -z "$as_dir" && as_dir=.
23390 for ac_exec_ext in '' $ac_executable_extensions; do
23391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23392 ac_cv_prog_acx_pthread_config="yes"
23393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23400 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23403 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23404 if test -n "$acx_pthread_config"; then
23405 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23406 $as_echo "$acx_pthread_config" >&6; }
23408 { $as_echo "$as_me:$LINENO: result: no" >&5
23409 $as_echo "no" >&6; }
23413 if test x"$acx_pthread_config" = xno; then continue; fi
23414 PTHREAD_CFLAGS="`pthread-config --cflags`"
23415 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23419 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23420 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23421 PTHREAD_LIBS="-l$flag"
23426 save_CFLAGS="$CFLAGS"
23427 LIBS="$PTHREAD_LIBS $LIBS"
23428 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23430 # Check for various functions. We must include pthread.h,
23431 # since some functions may be macros. (On the Sequent, we
23432 # need a special flag -Kthread to make this header compile.)
23433 # We check for pthread_join because it is in -lpthread on IRIX
23434 # while pthread_create is in libc. We check for pthread_attr_init
23435 # due to DEC craziness with -lpthreads. We check for
23436 # pthread_cleanup_push because it is one of the few pthread
23437 # functions on Solaris that doesn't have a non-functional libc stub.
23438 # We try pthread_create on general principles.
23439 cat >conftest.$ac_ext <<_ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23445 #include <pthread.h>
23449 pthread_t th; pthread_join(th, 0);
23450 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23451 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23456 rm -f conftest.$ac_objext conftest$ac_exeext
23457 if { (ac_try="$ac_link"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23463 $as_echo "$ac_try_echo") >&5
23464 (eval "$ac_link") 2>conftest.er1
23466 grep -v '^ *+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest$ac_exeext && {
23474 test "$cross_compiling" = yes ||
23475 $as_test_x conftest$ac_exeext
23479 $as_echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23485 rm -rf conftest.dSYM
23486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23487 conftest$ac_exeext conftest.$ac_ext
23490 CFLAGS="$save_CFLAGS"
23492 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23493 $as_echo "$acx_pthread_ok" >&6; }
23494 if test "x$acx_pthread_ok" = xyes; then
23503 # Various other checks:
23504 if test "x$acx_pthread_ok" = xyes; then
23506 LIBS="$PTHREAD_LIBS $LIBS"
23507 save_CFLAGS="$CFLAGS"
23508 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23510 # Detect AIX lossage: threads are created detached by default
23511 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23512 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23513 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23514 cat >conftest.$ac_ext <<_ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h. */
23520 #include <pthread.h>
23524 int attr=PTHREAD_CREATE_JOINABLE;
23529 rm -f conftest.$ac_objext conftest$ac_exeext
23530 if { (ac_try="$ac_link"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537 (eval "$ac_link") 2>conftest.er1
23539 grep -v '^ *+' conftest.er1 >conftest.err
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest$ac_exeext && {
23547 test "$cross_compiling" = yes ||
23548 $as_test_x conftest$ac_exeext
23550 ok=PTHREAD_CREATE_JOINABLE
23552 $as_echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23558 rm -rf conftest.dSYM
23559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23560 conftest$ac_exeext conftest.$ac_ext
23561 if test x"$ok" = xunknown; then
23562 cat >conftest.$ac_ext <<_ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23568 #include <pthread.h>
23572 int attr=PTHREAD_CREATE_UNDETACHED;
23577 rm -f conftest.$ac_objext conftest$ac_exeext
23578 if { (ac_try="$ac_link"
23579 case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23584 $as_echo "$ac_try_echo") >&5
23585 (eval "$ac_link") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest$ac_exeext && {
23595 test "$cross_compiling" = yes ||
23596 $as_test_x conftest$ac_exeext
23598 ok=PTHREAD_CREATE_UNDETACHED
23600 $as_echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23606 rm -rf conftest.dSYM
23607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23608 conftest$ac_exeext conftest.$ac_ext
23610 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23612 cat >>confdefs.h <<\_ACEOF
23613 #define PTHREAD_CREATE_JOINABLE $ok
23617 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23618 $as_echo "${ok}" >&6; }
23619 if test x"$ok" = xunknown; then
23620 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23621 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23624 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23625 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23627 case "${host_cpu}-${host_os}" in
23628 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23629 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23631 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23632 $as_echo "${flag}" >&6; }
23633 if test "x$flag" != xno; then
23634 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23638 CFLAGS="$save_CFLAGS"
23640 # More AIX lossage: must compile with cc_r
23641 # Extract the first word of "cc_r", so it can be a program name with args.
23642 set dummy cc_r; ac_word=$2
23643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23644 $as_echo_n "checking for $ac_word... " >&6; }
23645 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23646 $as_echo_n "(cached) " >&6
23648 if test -n "$PTHREAD_CC"; then
23649 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23652 for as_dir in $PATH
23655 test -z "$as_dir" && as_dir=.
23656 for ac_exec_ext in '' $ac_executable_extensions; do
23657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23658 ac_cv_prog_PTHREAD_CC="cc_r"
23659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23666 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23669 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23670 if test -n "$PTHREAD_CC"; then
23671 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23672 $as_echo "$PTHREAD_CC" >&6; }
23674 { $as_echo "$as_me:$LINENO: result: no" >&5
23675 $as_echo "no" >&6; }
23687 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23688 if test x"$acx_pthread_ok" = xyes; then
23690 cat >>confdefs.h <<\_ACEOF
23691 #define HAVE_PTHREAD 1
23700 ac_cpp='$CPP $CPPFLAGS'
23701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23708 # Check whether --enable-lynx was given.
23709 if test "${enable_lynx+set}" = set; then
23710 enableval=$enable_lynx;
23716 case "${enable_lynx}" in
23718 # Extract the first word of "lynx", so it can be a program name with args.
23719 set dummy lynx; ac_word=$2
23720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23721 $as_echo_n "checking for $ac_word... " >&6; }
23722 if test "${ac_cv_prog_have_lynx+set}" = set; then
23723 $as_echo_n "(cached) " >&6
23725 if test -n "$have_lynx"; then
23726 ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
23728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23729 for as_dir in $PATH
23732 test -z "$as_dir" && as_dir=.
23733 for ac_exec_ext in '' $ac_executable_extensions; do
23734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23735 ac_cv_prog_have_lynx="yes"
23736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23743 test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
23746 have_lynx=$ac_cv_prog_have_lynx
23747 if test -n "$have_lynx"; then
23748 { $as_echo "$as_me:$LINENO: result: $have_lynx" >&5
23749 $as_echo "$have_lynx" >&6; }
23751 { $as_echo "$as_me:$LINENO: result: no" >&5
23752 $as_echo "no" >&6; }
23757 if test x$have_lynx = xno ; then
23758 { $as_echo "$as_me:$LINENO: WARNING: *** lynx not found, plain text README will not be built ***" >&5
23759 $as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;}
23765 { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5
23766 $as_echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;}
23767 { (exit 1); exit 1; }; } ;;
23770 if test "x$have_lynx" = xyes; then
23780 ac_config_files="$ac_config_files Makefile libasyncns/Makefile doc/Makefile doc/README.html doxygen/Makefile doxygen/doxygen.conf libasyncns.pc"
23782 cat >confcache <<\_ACEOF
23783 # This file is a shell script that caches the results of configure
23784 # tests run on this system so they can be shared between configure
23785 # scripts and configure runs, see configure's option --config-cache.
23786 # It is not useful on other systems. If it contains results you don't
23787 # want to keep, you may remove or edit it.
23789 # config.status only pays attention to the cache file if you give it
23790 # the --recheck option to rerun configure.
23792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23794 # following values.
23798 # The following way of writing the cache mishandles newlines in values,
23799 # but we know of no workaround that is simple, portable, and efficient.
23800 # So, we kill variables containing newlines.
23801 # Ultrix sh set writes to stderr and can't be redirected directly,
23802 # and sets the high bit in the cache file unless we assign to the vars.
23804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23805 eval ac_val=\$$ac_var
23809 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23813 _ | IFS | as_nl) ;; #(
23814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23815 *) $as_unset $ac_var ;;
23821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23822 *${as_nl}ac_space=\ *)
23823 # `set' does not quote correctly, so add quotes (double-quote
23824 # substitution turns \\\\ into \\, and sed turns \\ into \).
23827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23830 # `set' quotes correctly as required by POSIX, so do not add quotes.
23831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23845 if test -w "$cache_file"; then
23846 test "x$cache_file" != "x/dev/null" &&
23847 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23848 $as_echo "$as_me: updating cache $cache_file" >&6;}
23849 cat confcache >$cache_file
23851 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23852 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23858 # Let make expand exec_prefix.
23859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23861 DEFS=-DHAVE_CONFIG_H
23865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23866 # 1. Remove the extension, and $U if already installed.
23867 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23868 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23869 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23870 # will be set to the directory where LIBOBJS objects are built.
23871 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23872 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23874 LIBOBJS=$ac_libobjs
23876 LTLIBOBJS=$ac_ltlibobjs
23879 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23880 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23881 Usually this means the macro was only invoked conditionally." >&5
23882 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23883 Usually this means the macro was only invoked conditionally." >&2;}
23884 { (exit 1); exit 1; }; }
23886 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23887 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23888 Usually this means the macro was only invoked conditionally." >&5
23889 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23890 Usually this means the macro was only invoked conditionally." >&2;}
23891 { (exit 1); exit 1; }; }
23893 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23894 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23895 Usually this means the macro was only invoked conditionally." >&5
23896 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23897 Usually this means the macro was only invoked conditionally." >&2;}
23898 { (exit 1); exit 1; }; }
23900 if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
23901 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined.
23902 Usually this means the macro was only invoked conditionally." >&5
23903 $as_echo "$as_me: error: conditional \"USE_LYNX\" was never defined.
23904 Usually this means the macro was only invoked conditionally." >&2;}
23905 { (exit 1); exit 1; }; }
23908 : ${CONFIG_STATUS=./config.status}
23910 ac_clean_files_save=$ac_clean_files
23911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23912 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23913 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23914 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23916 # Generated by $as_me.
23917 # Run this file to recreate the current configuration.
23918 # Compiler output produced by configure, useful for debugging
23919 # configure, is in config.log if it exists.
23922 ac_cs_recheck=false
23924 SHELL=\${CONFIG_SHELL-$SHELL}
23927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23928 ## --------------------- ##
23929 ## M4sh Initialization. ##
23930 ## --------------------- ##
23932 # Be more Bourne compatible
23933 DUALCASE=1; export DUALCASE # for MKS sh
23934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23938 # is contrary to our usage. Disable this feature.
23939 alias -g '${1+"$@"}'='"$@"'
23940 setopt NO_GLOB_SUBST
23942 case `(set -o) 2>/dev/null` in
23943 *posix*) set -o posix ;;
23952 # Avoid depending upon Character Ranges.
23953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23956 as_cr_digits='0123456789'
23957 as_cr_alnum=$as_cr_Letters$as_cr_digits
23962 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23963 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23966 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23967 as_echo='printf %s\n'
23968 as_echo_n='printf %s'
23970 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23971 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23972 as_echo_n='/usr/ucb/echo -n'
23974 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23975 as_echo_n_body='eval
23979 expr "X$arg" : "X\\(.*\\)$as_nl";
23980 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23982 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23984 export as_echo_n_body
23985 as_echo_n='sh -c $as_echo_n_body as_echo'
23987 export as_echo_body
23988 as_echo='sh -c $as_echo_body as_echo'
23991 # The user is always right.
23992 if test "${PATH_SEPARATOR+set}" != set; then
23994 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23995 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24000 # Support unset when possible.
24001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24009 # We need space, tab and new line, in precisely that order. Quoting is
24010 # there to prevent editors from complaining about space-tab.
24011 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24012 # splitting by setting IFS to empty value.)
24015 # Find who we are. Look in the path if we contain no directory separator.
24017 *[\\/]* ) as_myself=$0 ;;
24018 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24019 for as_dir in $PATH
24022 test -z "$as_dir" && as_dir=.
24023 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24029 # We did not find ourselves, most probably we were run as `sh COMMAND'
24030 # in which case we are not to be found in the path.
24031 if test "x$as_myself" = x; then
24034 if test ! -f "$as_myself"; then
24035 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24036 { (exit 1); exit 1; }
24039 # Work around bugs in pre-3.0 UWIN ksh.
24040 for as_var in ENV MAIL MAILPATH
24041 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24053 # Required to use basename.
24054 if expr a : '\(a\)' >/dev/null 2>&1 &&
24055 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24061 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24062 as_basename=basename
24068 # Name of the executable.
24069 as_me=`$as_basename -- "$0" ||
24070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24071 X"$0" : 'X\(//\)$' \| \
24072 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24074 sed '/^.*\/\([^/][^/]*\)\/*$/{
24093 as_lineno_1=$LINENO
24094 as_lineno_2=$LINENO
24095 test "x$as_lineno_1" != "x$as_lineno_2" &&
24096 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24099 # uniformly replaced by the line number. The first 'sed' inserts a
24100 # line-number line after each line using $LINENO; the second 'sed'
24101 # does the real work. The second script uses 'N' to pair each
24102 # line-number line with the line containing $LINENO, and appends
24103 # trailing '-' during substitution so that $LINENO is not a special
24104 # case at line end.
24105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24106 # scripts with optimization help from Paolo Bonzini. Blame Lee
24107 # E. McMahon (1931-1989) for sed's syntax. :-)
24119 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24122 ' >$as_me.lineno &&
24123 chmod +x "$as_me.lineno" ||
24124 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24125 { (exit 1); exit 1; }; }
24127 # Don't try to exec as it changes $[0], causing all sort of problems
24128 # (the dirname of $[0] is not the place where we might find the
24129 # original and so on. Autoconf is especially sensitive to this).
24130 . "./$as_me.lineno"
24131 # Exit status is that of the last command.
24136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24142 ECHO_C= ECHO_N= ECHO_T=
24143 case `echo -n x` in
24145 case `echo 'x\c'` in
24146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24152 if expr a : '\(a\)' >/dev/null 2>&1 &&
24153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24159 rm -f conf$$ conf$$.exe conf$$.file
24160 if test -d conf$$.dir; then
24161 rm -f conf$$.dir/conf$$.file
24164 mkdir conf$$.dir 2>/dev/null
24166 if (echo >conf$$.file) 2>/dev/null; then
24167 if ln -s conf$$.file conf$$ 2>/dev/null; then
24169 # ... but there are two gotchas:
24170 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24171 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24172 # In both cases, we have to default to `cp -p'.
24173 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24175 elif ln conf$$.file conf$$ 2>/dev/null; then
24183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24184 rmdir conf$$.dir 2>/dev/null
24186 if mkdir -p . 2>/dev/null; then
24189 test -d ./-p && rmdir ./-p
24193 if test -x / >/dev/null 2>&1; then
24194 as_test_x='test -x'
24196 if ls -dL / >/dev/null 2>&1; then
24203 if test -d "$1"; then
24209 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24210 ???[sx]*):;;*)false;;esac;fi
24214 as_executable_p=$as_test_x
24216 # Sed expression to map a string onto a valid CPP name.
24217 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24219 # Sed expression to map a string onto a valid variable name.
24220 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24225 # Save the log message, to keep $[0] and so on meaningful, and to
24226 # report actual input values of CONFIG_FILES etc. instead of their
24227 # values after options handling.
24229 This file was extended by libasyncns $as_me 0.7, which was
24230 generated by GNU Autoconf 2.63. Invocation command line was
24232 CONFIG_FILES = $CONFIG_FILES
24233 CONFIG_HEADERS = $CONFIG_HEADERS
24234 CONFIG_LINKS = $CONFIG_LINKS
24235 CONFIG_COMMANDS = $CONFIG_COMMANDS
24238 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24243 case $ac_config_files in *"
24244 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24247 case $ac_config_headers in *"
24248 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24253 # Files that config.status was made for.
24254 config_files="$ac_config_files"
24255 config_headers="$ac_config_headers"
24256 config_commands="$ac_config_commands"
24260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24262 \`$as_me' instantiates files from templates according to the
24263 current configuration.
24265 Usage: $0 [OPTION]... [FILE]...
24267 -h, --help print this help, then exit
24268 -V, --version print version number and configuration settings, then exit
24269 -q, --quiet, --silent
24270 do not print progress messages
24271 -d, --debug don't remove temporary files
24272 --recheck update $as_me by reconfiguring in the same conditions
24273 --file=FILE[:TEMPLATE]
24274 instantiate the configuration file FILE
24275 --header=FILE[:TEMPLATE]
24276 instantiate the configuration header FILE
24278 Configuration files:
24281 Configuration headers:
24284 Configuration commands:
24287 Report bugs to <bug-autoconf@gnu.org>."
24290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24292 libasyncns config.status 0.7
24293 configured by $0, generated by GNU Autoconf 2.63,
24294 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24296 Copyright (C) 2008 Free Software Foundation, Inc.
24297 This config.status script is free software; the Free Software Foundation
24298 gives unlimited permission to copy, distribute and modify it."
24305 test -n "\$AWK" || AWK=awk
24308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24309 # The default lists apply if the user does not specify any file.
24315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24327 # Handling of the options.
24328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24331 $as_echo "$ac_cs_version"; exit ;;
24332 --debug | --debu | --deb | --de | --d | -d )
24334 --file | --fil | --fi | --f )
24337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24339 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24340 ac_need_defaults=false;;
24341 --header | --heade | --head | --hea )
24344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24346 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24347 ac_need_defaults=false;;
24349 # Conflict between --help and --header
24350 { $as_echo "$as_me: error: ambiguous option: $1
24351 Try \`$0 --help' for more information." >&2
24352 { (exit 1); exit 1; }; };;
24353 --help | --hel | -h )
24354 $as_echo "$ac_cs_usage"; exit ;;
24355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24359 # This is an error.
24360 -*) { $as_echo "$as_me: error: unrecognized option: $1
24361 Try \`$0 --help' for more information." >&2
24362 { (exit 1); exit 1; }; } ;;
24364 *) ac_config_targets="$ac_config_targets $1"
24365 ac_need_defaults=false ;;
24371 ac_configure_extra_args=
24373 if $ac_cs_silent; then
24375 ac_configure_extra_args="$ac_configure_extra_args --silent"
24379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24380 if \$ac_cs_recheck; then
24381 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24383 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24384 CONFIG_SHELL='$SHELL'
24385 export CONFIG_SHELL
24390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24395 ## Running $as_me. ##
24401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24405 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24411 # Handling of arguments.
24412 for ac_config_target in $ac_config_targets
24414 case $ac_config_target in
24415 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24416 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24417 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24418 "libasyncns/Makefile") CONFIG_FILES="$CONFIG_FILES libasyncns/Makefile" ;;
24419 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24420 "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
24421 "doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doxygen/Makefile" ;;
24422 "doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen/doxygen.conf" ;;
24423 "libasyncns.pc") CONFIG_FILES="$CONFIG_FILES libasyncns.pc" ;;
24425 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24426 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24427 { (exit 1); exit 1; }; };;
24432 # If the user did not use the arguments to specify the items to instantiate,
24433 # then the envvar interface is used. Set only those that are not.
24434 # We use the long form for the default assignment because of an extremely
24435 # bizarre bug on SunOS 4.1.3.
24436 if $ac_need_defaults; then
24437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24438 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24439 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24442 # Have a temporary directory for convenience. Make it in the build tree
24443 # simply because there is no reason against having it here, and in addition,
24444 # creating and moving files from /tmp can sometimes cause problems.
24445 # Hook for its removal unless debugging.
24446 # Note that there is a small window in which the directory will not be cleaned:
24447 # after its creation but before its name has been assigned to `$tmp'.
24451 trap 'exit_status=$?
24452 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24454 trap '{ (exit 1); exit 1; }' 1 2 13 15
24456 # Create a (secure) tmp directory for tmp files.
24459 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24460 test -n "$tmp" && test -d "$tmp"
24463 tmp=./conf$$-$RANDOM
24464 (umask 077 && mkdir "$tmp")
24467 $as_echo "$as_me: cannot create a temporary directory in ." >&2
24468 { (exit 1); exit 1; }
24471 # Set up the scripts for CONFIG_FILES section.
24472 # No need to generate them if there are no CONFIG_FILES.
24473 # This happens for instance with `./config.status config.h'.
24474 if test -n "$CONFIG_FILES"; then
24478 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24479 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24482 ac_cs_awk_cr=$ac_cr
24485 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24490 echo "cat >conf$$subs.awk <<_ACEOF" &&
24491 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24493 } >conf$$subs.sh ||
24494 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24495 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24496 { (exit 1); exit 1; }; }
24497 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24499 for ac_last_try in false false false false false :; do
24500 . ./conf$$subs.sh ||
24501 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24502 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24503 { (exit 1); exit 1; }; }
24505 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24506 if test $ac_delim_n = $ac_delim_num; then
24508 elif $ac_last_try; then
24509 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24510 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24511 { (exit 1); exit 1; }; }
24513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24516 rm -f conf$$subs.sh
24518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24519 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24523 s/^/S["/; s/!.*/"]=/
24533 s/\(.\{148\}\).*/\1/
24535 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24547 s/\(.\{148\}\).*/\1/
24549 s/["\\]/\\&/g; s/^/"/; s/$/"/
24553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24558 ' <conf$$subs.awk | sed '
24563 ' >>$CONFIG_STATUS || ac_write_fail=1
24564 rm -f conf$$subs.awk
24565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24567 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24568 for (key in S) S_is_set[key] = 1
24574 nfields = split(line, field, "@")
24576 len = length(field[1])
24577 for (i = 2; i < nfields; i++) {
24579 keylen = length(key)
24580 if (S_is_set[key]) {
24582 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24583 len += length(value) + length(field[++i])
24594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24595 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24596 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24599 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24600 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24601 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
24602 { (exit 1); exit 1; }; }
24605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24607 # trailing colons and then remove the whole line if VPATH becomes empty
24608 # (actually we leave an empty line to preserve line numbers).
24609 if test "x$srcdir" = x.; then
24610 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24611 s/:*\$(srcdir):*/:/
24612 s/:*\${srcdir}:*/:/
24614 s/^\([^=]*=[ ]*\):*/\1/
24620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24621 fi # test -n "$CONFIG_FILES"
24623 # Set up the scripts for CONFIG_HEADERS section.
24624 # No need to generate them if there are no CONFIG_HEADERS.
24625 # This happens for instance with `./config.status Makefile'.
24626 if test -n "$CONFIG_HEADERS"; then
24627 cat >"$tmp/defines.awk" <<\_ACAWK ||
24631 # Transform confdefs.h into an awk script `defines.awk', embedded as
24632 # here-document in config.status, that substitutes the proper values into
24633 # config.h.in to produce config.h.
24635 # Create a delimiter string that does not exist in confdefs.h, to ease
24636 # handling of long lines.
24638 for ac_last_try in false false :; do
24639 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24640 if test -z "$ac_t"; then
24642 elif $ac_last_try; then
24643 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24644 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24645 { (exit 1); exit 1; }; }
24647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24651 # For the awk script, D is an array of macro values keyed by name,
24652 # likewise P contains macro parameters if any. Preserve backslash
24653 # newline sequences.
24655 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24657 s/.\{148\}/&'"$ac_delim"'/g
24660 s/^[ ]*#[ ]*define[ ][ ]*/ /
24667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24669 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24674 D["\1"]=" \3\\\\\\n"\\/p
24676 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24681 s/.\{148\}/&'"$ac_delim"'/g
24686 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24689 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24691 ' <confdefs.h | sed '
24692 s/'"$ac_delim"'/"\\\
24693 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24696 for (key in D) D_is_set[key] = 1
24699 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24701 split(line, arg, " ")
24702 if (arg[1] == "#") {
24706 defundef = substr(arg[1], 2)
24709 split(mac1, mac2, "(") #)
24711 prefix = substr(line, 1, index(line, defundef) - 1)
24712 if (D_is_set[macro]) {
24713 # Preserve the white space surrounding the "#".
24714 print prefix "define", macro P[macro] D[macro]
24717 # Replace #undef with comments. This is necessary, for example,
24718 # in the case of _POSIX_SOURCE, which is predefined and required
24719 # on some systems where configure will not decide to define it.
24720 if (defundef == "undef") {
24721 print "/*", prefix defundef, macro, "*/"
24729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24730 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24731 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24732 { (exit 1); exit 1; }; }
24733 fi # test -n "$CONFIG_HEADERS"
24736 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24741 :[FHLC]) ac_mode=$ac_tag; continue;;
24743 case $ac_mode$ac_tag in
24745 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24746 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24747 { (exit 1); exit 1; }; };;
24748 :[FH]-) ac_tag=-:-;;
24749 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24766 -) ac_f="$tmp/stdin";;
24767 *) # Look for the file first in the build tree, then in the source tree
24768 # (if the path is not absolute). The absolute path cannot be DOS-style,
24769 # because $ac_f cannot contain `:'.
24773 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24775 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24776 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24777 { (exit 1); exit 1; }; };;
24779 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24780 ac_file_inputs="$ac_file_inputs '$ac_f'"
24783 # Let's still pretend it is `configure' which instantiates (i.e., don't
24784 # use $as_me), people would be surprised to read:
24785 # /* config.h. Generated by config.status. */
24786 configure_input='Generated from '`
24787 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24789 if test x"$ac_file" != x-; then
24790 configure_input="$ac_file. $configure_input"
24791 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24792 $as_echo "$as_me: creating $ac_file" >&6;}
24794 # Neutralize special characters interpreted by sed in replacement strings.
24795 case $configure_input in #(
24796 *\&* | *\|* | *\\* )
24797 ac_sed_conf_input=`$as_echo "$configure_input" |
24798 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24799 *) ac_sed_conf_input=$configure_input;;
24803 *:-:* | *:-) cat >"$tmp/stdin" \
24804 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24805 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24806 { (exit 1); exit 1; }; } ;;
24811 ac_dir=`$as_dirname -- "$ac_file" ||
24812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24813 X"$ac_file" : 'X\(//\)[^/]' \| \
24814 X"$ac_file" : 'X\(//\)$' \| \
24815 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24816 $as_echo X"$ac_file" |
24817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24821 /^X\(\/\/\)[^/].*/{
24836 -*) as_dir=./$as_dir;;
24838 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24842 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24843 *) as_qdir=$as_dir;;
24845 as_dirs="'$as_qdir' $as_dirs"
24846 as_dir=`$as_dirname -- "$as_dir" ||
24847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24848 X"$as_dir" : 'X\(//\)[^/]' \| \
24849 X"$as_dir" : 'X\(//\)$' \| \
24850 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24851 $as_echo X"$as_dir" |
24852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24856 /^X\(\/\/\)[^/].*/{
24869 test -d "$as_dir" && break
24871 test -z "$as_dirs" || eval "mkdir $as_dirs"
24872 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24873 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24874 { (exit 1); exit 1; }; }; }
24878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24881 # A ".." for each directory in $ac_dir_suffix.
24882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24883 case $ac_top_builddir_sub in
24884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24888 ac_abs_top_builddir=$ac_pwd
24889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24890 # for backward compatibility:
24891 ac_top_builddir=$ac_top_build_prefix
24894 .) # We are building in place.
24896 ac_top_srcdir=$ac_top_builddir_sub
24897 ac_abs_top_srcdir=$ac_pwd ;;
24898 [\\/]* | ?:[\\/]* ) # Absolute name.
24899 ac_srcdir=$srcdir$ac_dir_suffix;
24900 ac_top_srcdir=$srcdir
24901 ac_abs_top_srcdir=$srcdir ;;
24902 *) # Relative name.
24903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24904 ac_top_srcdir=$ac_top_build_prefix$srcdir
24905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24920 ac_MKDIR_P=$MKDIR_P
24922 [\\/$]* | ?:[\\/]* ) ;;
24923 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24928 # If the template does not know about datarootdir, expand it.
24929 # FIXME: This hack should be removed a few years after 2.60.
24930 ac_datarootdir_hack=; ac_datarootdir_seen=
24943 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24944 *datarootdir*) ac_datarootdir_seen=yes;;
24945 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24946 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24947 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24950 ac_datarootdir_hack='
24951 s&@datadir@&$datadir&g
24952 s&@docdir@&$docdir&g
24953 s&@infodir@&$infodir&g
24954 s&@localedir@&$localedir&g
24955 s&@mandir@&$mandir&g
24956 s&\\\${datarootdir}&$datarootdir&g' ;;
24960 # Neutralize VPATH when `$srcdir' = `.'.
24961 # Shell code in configure.ac might set extrasub.
24962 # FIXME: do we really want to maintain this feature?
24963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24964 ac_sed_extra="$ac_vpsub
24967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24970 s|@configure_input@|$ac_sed_conf_input|;t t
24971 s&@top_builddir@&$ac_top_builddir_sub&;t t
24972 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24973 s&@srcdir@&$ac_srcdir&;t t
24974 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24975 s&@top_srcdir@&$ac_top_srcdir&;t t
24976 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24977 s&@builddir@&$ac_builddir&;t t
24978 s&@abs_builddir@&$ac_abs_builddir&;t t
24979 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24980 s&@INSTALL@&$ac_INSTALL&;t t
24981 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24982 $ac_datarootdir_hack
24984 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24985 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24986 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24987 { (exit 1); exit 1; }; }
24989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24992 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24993 which seems to be undefined. Please make sure it is defined." >&5
24994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24995 which seems to be undefined. Please make sure it is defined." >&2;}
24999 -) cat "$tmp/out" && rm -f "$tmp/out";;
25000 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25002 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25003 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25004 { (exit 1); exit 1; }; }
25010 if test x"$ac_file" != x-; then
25012 $as_echo "/* $configure_input */" \
25013 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25014 } >"$tmp/config.h" \
25015 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25016 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25017 { (exit 1); exit 1; }; }
25018 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25019 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25023 mv "$tmp/config.h" "$ac_file" \
25024 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25025 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25026 { (exit 1); exit 1; }; }
25029 $as_echo "/* $configure_input */" \
25030 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25031 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25032 $as_echo "$as_me: error: could not create -" >&2;}
25033 { (exit 1); exit 1; }; }
25035 # Compute "$ac_file"'s index in $config_headers.
25038 for _am_header in $config_headers :; do
25039 case $_am_header in
25040 $_am_arg | $_am_arg:* )
25043 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25046 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25047 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25048 X"$_am_arg" : 'X\(//\)[^/]' \| \
25049 X"$_am_arg" : 'X\(//\)$' \| \
25050 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25051 $as_echo X"$_am_arg" |
25052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25056 /^X\(\/\/\)[^/].*/{
25068 s/.*/./; q'`/stamp-h$_am_stamp_count
25071 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25072 $as_echo "$as_me: executing $ac_file commands" >&6;}
25077 case $ac_file$ac_mode in
25078 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25079 # Strip MF so we end up with the name of the file.
25080 mf=`echo "$mf" | sed -e 's/:.*$//'`
25081 # Check whether this is an Automake generated Makefile or not.
25082 # We used to match only the files named `Makefile.in', but
25083 # some people rename them; so instead we look at the file content.
25084 # Grep'ing the first line is not enough: some people post-process
25085 # each Makefile.in and add a new line on top of each file to say so.
25086 # Grep'ing the whole file is not good either: AIX grep has a line
25087 # limit of 2048, but all sed's we know have understand at least 4000.
25088 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25089 dirpart=`$as_dirname -- "$mf" ||
25090 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25091 X"$mf" : 'X\(//\)[^/]' \| \
25092 X"$mf" : 'X\(//\)$' \| \
25093 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25099 /^X\(\/\/\)[^/].*/{
25115 # Extract the definition of DEPDIR, am__include, and am__quote
25116 # from the Makefile without running `make'.
25117 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25118 test -z "$DEPDIR" && continue
25119 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25120 test -z "am__include" && continue
25121 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25122 # When using ansi2knr, U may be empty or an underscore; expand it
25123 U=`sed -n 's/^U = //p' < "$mf"`
25124 # Find all dependency output files, they are included files with
25125 # $(DEPDIR) in their names. We invoke sed twice because it is the
25126 # simplest approach to changing $(DEPDIR) to its actual value in the
25128 for file in `sed -n "
25129 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25130 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25131 # Make sure the directory exists.
25132 test -f "$dirpart/$file" && continue
25133 fdir=`$as_dirname -- "$file" ||
25134 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25135 X"$file" : 'X\(//\)[^/]' \| \
25136 X"$file" : 'X\(//\)$' \| \
25137 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25138 $as_echo X"$file" |
25139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25143 /^X\(\/\/\)[^/].*/{
25156 { as_dir=$dirpart/$fdir
25158 -*) as_dir=./$as_dir;;
25160 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25164 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25165 *) as_qdir=$as_dir;;
25167 as_dirs="'$as_qdir' $as_dirs"
25168 as_dir=`$as_dirname -- "$as_dir" ||
25169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25170 X"$as_dir" : 'X\(//\)[^/]' \| \
25171 X"$as_dir" : 'X\(//\)$' \| \
25172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25173 $as_echo X"$as_dir" |
25174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25178 /^X\(\/\/\)[^/].*/{
25191 test -d "$as_dir" && break
25193 test -z "$as_dirs" || eval "mkdir $as_dirs"
25194 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25195 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25196 { (exit 1); exit 1; }; }; }
25197 # echo "creating $dirpart/$file"
25198 echo '# dummy' > "$dirpart/$file"
25207 { (exit 0); exit 0; }
25209 chmod +x $CONFIG_STATUS
25210 ac_clean_files=$ac_clean_files_save
25212 test $ac_write_fail = 0 ||
25213 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25214 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25215 { (exit 1); exit 1; }; }
25218 # configure is writing to config.log, and then calls config.status.
25219 # config.status does its own redirection, appending to config.log.
25220 # Unfortunately, on DOS this fails, as config.log is still kept open
25221 # by configure, so config.status won't be able to write to it; its
25222 # output is simply discarded. So we exec the FD to /dev/null,
25223 # effectively closing config.log, so it can be properly (re)opened and
25224 # appended to by config.status. When coming back to configure, we
25225 # need to make the FD available again.
25226 if test "$no_create" != yes; then
25228 ac_config_status_args=
25229 test "$silent" = yes &&
25230 ac_config_status_args="$ac_config_status_args --quiet"
25232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25235 # would make configure fail if this is the last instruction.
25236 $ac_cs_success || { (exit 1); exit 1; }
25238 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25239 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25240 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}