2 # From configure.in Revision: 1.243 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 BIN_SH=xpg4; export BIN_SH # for Tru64
26 DUALCASE=1; export DUALCASE # for MKS sh
30 # Avoid depending upon Character Ranges.
31 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34 as_cr_digits='0123456789'
35 as_cr_alnum=$as_cr_Letters$as_cr_digits
37 # The user is always right.
38 if test "${PATH_SEPARATOR+set}" != set; then
39 echo "#! /bin/sh" >conf$$.sh
40 echo "exit 0" >>conf$$.sh
42 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 # Support unset when possible.
51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 # We need space, tab and new line, in precisely that order. Quoting is
60 # there to prevent editors from complaining about space-tab.
61 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
62 # splitting by setting IFS to empty value.)
67 # Find who we are. Look in the path if we contain no directory separator.
69 *[\\/]* ) as_myself=$0 ;;
70 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 test -z "$as_dir" && as_dir=.
75 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 # We did not find ourselves, most probably we were run as `sh COMMAND'
82 # in which case we are not to be found in the path.
83 if test "x$as_myself" = x; then
86 if test ! -f "$as_myself"; then
87 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 # Work around bugs in pre-3.0 UWIN ksh.
92 for as_var in ENV MAIL MAILPATH
93 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106 eval $as_var=C; export $as_var
108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 # Required to use basename.
113 if expr a : '\(a\)' >/dev/null 2>&1 &&
114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 # Name of the executable.
128 as_me=`$as_basename -- "$0" ||
129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130 X"$0" : 'X\(//\)$' \| \
131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 sed '/^.*\/\([^/][^/]*\)\/*$/{
151 if test "x$CONFIG_SHELL" = x; then
152 if (eval ":") 2>/dev/null; then
158 if test $as_have_required = yes && (eval ":
168 as_func_ret_success () {
171 as_func_ret_failure () {
176 if as_func_success; then
180 echo as_func_success failed.
183 if as_func_failure; then
185 echo as_func_failure succeeded.
188 if as_func_ret_success; then
192 echo as_func_ret_success failed.
195 if as_func_ret_failure; then
197 echo as_func_ret_failure succeeded.
200 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 echo positional parameters were not saved.
207 test \$exitcode = 0) || { (exit 1); exit 1; }
212 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214 ") 2> /dev/null; then
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 for as_shell in $as_candidate_shells $SHELL; do
234 # Try only shells that exist, to save several forks.
235 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236 { ("$as_shell") 2> /dev/null <<\_ASEOF
237 # Be Bourne compatible
238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242 # is contrary to our usage. Disable this feature.
243 alias -g '${1+"$@"}'='"$@"'
246 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 BIN_SH=xpg4; export BIN_SH # for Tru64
249 DUALCASE=1; export DUALCASE # for MKS sh
254 CONFIG_SHELL=$as_shell
256 if { "$as_shell" 2> /dev/null <<\_ASEOF
257 # Be Bourne compatible
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262 # is contrary to our usage. Disable this feature.
263 alias -g '${1+"$@"}'='"$@"'
266 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 BIN_SH=xpg4; export BIN_SH # for Tru64
269 DUALCASE=1; export DUALCASE # for MKS sh
281 as_func_ret_success () {
284 as_func_ret_failure () {
289 if as_func_success; then
293 echo as_func_success failed.
296 if as_func_failure; then
298 echo as_func_failure succeeded.
301 if as_func_ret_success; then
305 echo as_func_ret_success failed.
308 if as_func_ret_failure; then
310 echo as_func_ret_failure succeeded.
313 if ( set x; as_func_ret_success y && test x = "$1" ); then
317 echo positional parameters were not saved.
320 test $exitcode = 0) || { (exit 1); exit 1; }
325 test "x$as_lineno_1" != "x$as_lineno_2" &&
326 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337 if test "x$CONFIG_SHELL" != x; then
338 for as_var in BASH_ENV ENV
339 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 if test $as_have_required = no; then
347 echo This script requires a shell more modern than all the
348 echo shells that I found on your system. Please install a
349 echo modern shell, or manually run the script under such a
350 echo shell if you do have one.
351 { (exit 1); exit 1; }
361 (eval "as_func_return () {
370 as_func_ret_success () {
373 as_func_ret_failure () {
378 if as_func_success; then
382 echo as_func_success failed.
385 if as_func_failure; then
387 echo as_func_failure succeeded.
390 if as_func_ret_success; then
394 echo as_func_ret_success failed.
397 if as_func_ret_failure; then
399 echo as_func_ret_failure succeeded.
402 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 echo positional parameters were not saved.
409 test \$exitcode = 0") || {
410 echo No shell found that supports shell functions.
411 echo Please tell autoconf@gnu.org about your system,
412 echo including any error possibly output before this
420 test "x$as_lineno_1" != "x$as_lineno_2" &&
421 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424 # uniformly replaced by the line number. The first 'sed' inserts a
425 # line-number line after each line using $LINENO; the second 'sed'
426 # does the real work. The second script uses 'N' to pair each
427 # line-number line with the line containing $LINENO, and appends
428 # trailing '-' during substitution so that $LINENO is not a special
430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431 # scripts with optimization help from Paolo Bonzini. Blame Lee
432 # E. McMahon (1931-1989) for sed's syntax. :-)
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 chmod +x "$as_me.lineno" ||
449 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450 { (exit 1); exit 1; }; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 ECHO_C= ECHO_N= ECHO_T=
471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 if expr a : '\(a\)' >/dev/null 2>&1 &&
479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
509 if mkdir -p . 2>/dev/null; then
512 test -d ./-p && rmdir ./-p
516 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
517 # systems may use methods other than mode bits to determine executability.
518 cat >conf$$.file <<_ASEOF
523 if test -x conf$$.file >/dev/null 2>&1; then
524 as_executable_p="test -x"
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 # Check that we are running under the correct shell.
540 SHELL=${CONFIG_SHELL-/bin/sh}
544 # Remove one level of quotation (which was required for Make).
545 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 if test "X$1" = X--no-reexec; then
551 # Discard the --no-reexec flag, and continue.
553 elif test "X$1" = X--fallback-echo; then
554 # Avoid inline document here, it may be left over
556 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557 # Yippee, $echo works!
560 # Restart under the correct shell.
561 exec $SHELL "$0" --no-reexec ${1+"$@"}
564 if test "X$1" = X--fallback-echo; then
565 # used as fallback echo
573 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577 if test -z "$ECHO"; then
578 if test "X${echo_test_string+set}" != Xset; then
579 # find a string as large as possible, as long as the shell can cope with it
580 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
583 echo_test_string=`eval $cmd` &&
584 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
591 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
600 # So, first we look for a working echo in the user's PATH.
602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603 for dir in $PATH /usr/ucb; do
605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
615 if test "X$echo" = Xecho; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
622 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
623 test "X$CONFIG_SHELL" != X/bin/ksh; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL=/bin/ksh
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
638 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 SHELL="$CONFIG_SHELL"
646 echo="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 echo="$CONFIG_SHELL $0 --fallback-echo"
653 # maybe with a smaller string...
656 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 # Oops. We lost completely, so just stick with echo.
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
681 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
688 tagnames=${tagnames+${tagnames},}CXX
690 tagnames=${tagnames+${tagnames},}F77
692 exec 7<&0 </dev/null 6>&1
695 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
702 ac_default_prefix=/usr/local
704 ac_config_libobj_dir=.
710 SHELL=${CONFIG_SHELL-/bin/sh}
712 # Identity of this package.
719 ac_unique_file="src/main/radiusd.c"
720 # Factoring default headers for most tests.
721 ac_includes_default="\
724 # include <sys/types.h>
727 # include <sys/stat.h>
738 # if !STDC_HEADERS && HAVE_MEMORY_H
744 # include <strings.h>
747 # include <inttypes.h>
765 program_transform_name
857 RADIUSD_MAJOR_VERSION
858 RADIUSD_MINOR_VERSION
863 ac_precious_vars='build_alias
877 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
879 # Initialize some variables set by options.
881 ac_init_version=false
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
891 program_transform_name=s,x,x,
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 # Accept the important Cygnus configure options, so we can diagnose typos.
943 case $ac_dashdash$ac_option in
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
965 cache_file=config.cache ;;
967 -datadir | --datadir | --datadi | --datad)
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
979 -disable-* | --disable-*)
980 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
983 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984 { (exit 1); exit 1; }; }
985 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
986 eval enable_$ac_feature=no ;;
988 -docdir | --docdir | --docdi | --doc | --do)
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 -enable-* | --enable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1005 eval enable_$ac_feature=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1169 -site=* | --site=* | --sit=*)
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1196 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1199 { echo "$as_me: error: invalid package name: $ac_package" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_package=`echo $ac_package| sed 's/-/_/g'`
1202 eval with_$ac_package=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1208 { echo "$as_me: error: invalid package name: $ac_package" >&2
1209 { (exit 1); exit 1; }; }
1210 ac_package=`echo $ac_package | sed 's/-/_/g'`
1211 eval with_$ac_package=no ;;
1214 # Obsolete; use --with-x.
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1231 -*) { echo "$as_me: error: unrecognized option: $ac_option
1232 Try \`$0 --help' for more information." >&2
1233 { (exit 1); exit 1; }; }
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241 { (exit 1); exit 1; }; }
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1246 # FIXME: should be removed in autoconf 3.0.
1247 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 { echo "$as_me: error: missing argument to $ac_option" >&2
1259 { (exit 1); exit 1; }; }
1262 # Be sure to have absolute directory names.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274 { (exit 1); exit 1; }; }
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1282 target=$target_alias
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 { echo "$as_me: error: Working directory cannot be determined" >&2
1305 { (exit 1); exit 1; }; }
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 { echo "$as_me: error: pwd does not report name of working directory" >&2
1308 { (exit 1); exit 1; }; }
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$0" ||
1316 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$0" : 'X\(//\)[^/]' \| \
1318 X"$0" : 'X\(//\)$' \| \
1319 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1343 ac_srcdir_defaulted=no
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1348 { (exit 1); exit 1; }; }
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1353 { (exit 1); exit 1; }; }
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1379 \`configure' configures this package to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 if test -n "$ac_init_help"; then
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --disable-largefile omit support for large files
1450 --enable-shared[=PKGS] build shared libraries [default=yes]
1451 --enable-static[=PKGS] build static libraries [default=yes]
1452 --enable-fast-install[=PKGS]
1453 optimize for fast installation [default=yes]
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --enable-strict-dependencies Fail configure on lack of module dependancy.
1456 --enable-developer Enables features of interest to developers.
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-system-libtool try to use libtool installed in your system default=use our own
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-pic try to use only PIC/non-PIC objects [default=use
1465 --with-tags[=TAGS] include additional configurations [automatic]
1466 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1467 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1468 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1469 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1470 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1471 --with-threads Use threads, if available. (default=yes)
1472 --with-snmp Compile in SNMP support. (default=yes)
1473 --with-vmps Compile in VMPS support. (default=yes)
1474 --with-static-modules=QUOTED-MODULE-LIST
1475 --with-modules=QUOTED-MODULE-LIST
1476 --with-experimental-modules Use experimental and unstable modules. (default=no)
1477 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1478 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1479 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1480 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1481 --with-udpfromto Compile in UDPFROMTO support. (default=yes)
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1493 CXXCPP C++ preprocessor
1494 F77 Fortran 77 compiler command
1495 FFLAGS Fortran 77 compiler flags
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" || continue
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1527 .) # We are building in place.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1551 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1561 generated by GNU Autoconf 2.60
1563 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1564 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1574 It was created by $as_me, which was
1575 generated by GNU Autoconf 2.60. Invocation command line was
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1635 ac_must_keep_next=false
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664 -* ) ac_must_keep_next=true ;;
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log. We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1691 # The following way of writing the cache mishandles newlines in values,
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1738 if test -n "$ac_subst_files"; then
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 echo "$ac_var='\''$ac_val'\''"
1756 if test -s confdefs.h; then
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 # Predefined preprocessor variables.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1830 if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1847 # Check that the precious variables saved in the cache have kept the same
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870 echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872 echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1888 if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1913 ac_cpp='$CPP $CPPFLAGS'
1914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1919 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1922 RADIUSD_MAJOR_VERSION=2
1923 RADIUSD_MINOR_VERSION=0.0-pre2
1924 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 if test -n "$ac_tool_prefix"; then
1934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1938 if test "${ac_cv_prog_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 if test -n "$CC"; then
1942 ac_cv_prog_CC="$CC" # Let the user override the test.
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 if test -n "$CC"; then
1963 { echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6; }
1966 { echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6; }
1972 if test -z "$ac_cv_prog_CC"; then
1974 # Extract the first word of "gcc", so it can be a program name with args.
1975 set dummy gcc; ac_word=$2
1976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$ac_ct_CC"; then
1982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 ac_cv_prog_ac_ct_CC="gcc"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2002 if test -n "$ac_ct_CC"; then
2003 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2004 echo "${ECHO_T}$ac_ct_CC" >&6; }
2006 { echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6; }
2010 if test "x$ac_ct_CC" = x; then
2013 case $cross_compiling:$ac_tool_warned in
2015 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2016 whose name does not start with the host triplet. If you think this
2017 configuration is useful to you, please write to autoconf@gnu.org." >&5
2018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2019 whose name does not start with the host triplet. If you think this
2020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2021 ac_tool_warned=yes ;;
2029 if test -z "$CC"; then
2030 if test -n "$ac_tool_prefix"; then
2031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2032 set dummy ${ac_tool_prefix}cc; ac_word=$2
2033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2048 ac_cv_prog_CC="${ac_tool_prefix}cc"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 if test -n "$CC"; then
2060 { echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6; }
2063 { echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6; }
2070 if test -z "$CC"; then
2071 # Extract the first word of "cc", so it can be a program name with args.
2072 set dummy cc; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2090 ac_prog_rejected=yes
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 if test $ac_prog_rejected = yes; then
2102 # We found a bogon in the path, so make sure we never use it.
2103 set dummy $ac_cv_prog_CC
2105 if test $# != 0; then
2106 # We chose a different compiler from the bogus one.
2107 # However, it has the same basename, so the bogon will be chosen
2108 # first if we set CC to just the basename; use the full file name.
2110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2116 if test -n "$CC"; then
2117 { echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6; }
2120 { echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6; }
2126 if test -z "$CC"; then
2127 if test -n "$ac_tool_prefix"; then
2128 for ac_prog in cl.exe
2130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 if test -n "$CC"; then
2159 { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2167 test -n "$CC" && break
2170 if test -z "$CC"; then
2172 for ac_prog in cl.exe
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175 set dummy $ac_prog; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test -n "$ac_ct_CC"; then
2182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 ac_cv_prog_ac_ct_CC="$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204 echo "${ECHO_T}$ac_ct_CC" >&6; }
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2211 test -n "$ac_ct_CC" && break
2214 if test "x$ac_ct_CC" = x; then
2217 case $cross_compiling:$ac_tool_warned in
2219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2220 whose name does not start with the host triplet. If you think this
2221 configuration is useful to you, please write to autoconf@gnu.org." >&5
2222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2225 ac_tool_warned=yes ;;
2234 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: no acceptable C compiler found in \$PATH
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2240 # Provide some information about the compiler.
2241 echo "$as_me:$LINENO: checking for C compiler version" >&5
2242 ac_compiler=`set X $ac_compile; echo $2`
2243 { (ac_try="$ac_compiler --version >&5"
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compiler --version >&5") 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2253 { (ac_try="$ac_compiler -v >&5"
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259 (eval "$ac_compiler -v >&5") 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }
2263 { (ac_try="$ac_compiler -V >&5"
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269 (eval "$ac_compiler -V >&5") 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }
2274 cat >conftest.$ac_ext <<_ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h. */
2289 ac_clean_files_save=$ac_clean_files
2290 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2291 # Try to create an executable without -o first, disregard a.out.
2292 # It will help us diagnose broken compilers, and finding out an intuition
2294 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2295 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2296 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2298 # List of possible output files, starting from the most likely.
2299 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2300 # only as a last resort. b.out is created by i960 compilers.
2301 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2303 # The IRIX 6 linker writes into existing files which may not be
2304 # executable, retaining their permissions. Remove them first so a
2305 # subsequent execution test works.
2307 for ac_file in $ac_files
2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2316 if { (ac_try="$ac_link_default"
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322 (eval "$ac_link_default") 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2329 # so that the user can short-circuit this test for compilers unknown to
2331 for ac_file in $ac_files
2333 test -f "$ac_file" || continue
2335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2338 # We found the default executable, but exeext='' is most
2342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346 # We set ac_cv_exeext here because the later test for it is not
2347 # safe: cross compilers may not add the suffix if given an `-o'
2348 # argument, so we may need to know it at that point already.
2349 # Even if this section looks crufty: it has the advantage of
2356 test "$ac_cv_exeext" = no && ac_cv_exeext=
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: C compiler cannot create executables
2365 See \`config.log' for more details." >&2;}
2366 { (exit 77); exit 77; }; }
2369 ac_exeext=$ac_cv_exeext
2370 { echo "$as_me:$LINENO: result: $ac_file" >&5
2371 echo "${ECHO_T}$ac_file" >&6; }
2373 # Check that the compiler produces executables we can run. If not, either
2374 # the compiler is broken, or we cross compile.
2375 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2376 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2377 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2378 # If not cross compiling, check that we can run a simple program.
2379 if test "$cross_compiling" != yes; then
2380 if { ac_try='./$ac_file'
2381 { (case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386 (eval "$ac_try") 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 if test "$cross_compiling" = maybe; then
2395 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2396 If you meant to cross compile, use \`--host'.
2397 See \`config.log' for more details." >&5
2398 echo "$as_me: error: cannot run C compiled programs.
2399 If you meant to cross compile, use \`--host'.
2400 See \`config.log' for more details." >&2;}
2401 { (exit 1); exit 1; }; }
2405 { echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6; }
2408 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2409 ac_clean_files=$ac_clean_files_save
2410 # Check that the compiler produces executables we can run. If not, either
2411 # the compiler is broken, or we cross compile.
2412 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2413 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2414 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2415 echo "${ECHO_T}$cross_compiling" >&6; }
2417 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2418 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2419 if { (ac_try="$ac_link"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_link") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; then
2429 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2430 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2431 # work properly (i.e., refer to `conftest.exe'), while it won't with
2433 for ac_file in conftest.exe conftest conftest.*; do
2434 test -f "$ac_file" || continue
2436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2437 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2443 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2450 rm -f conftest$ac_cv_exeext
2451 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2452 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2454 rm -f conftest.$ac_ext
2455 EXEEXT=$ac_cv_exeext
2457 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2458 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2459 if test "${ac_cv_objext+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 cat >conftest.$ac_ext <<_ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2477 rm -f conftest.o conftest.obj
2478 if { (ac_try="$ac_compile"
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; then
2488 for ac_file in conftest.o conftest.obj conftest.*; do
2489 test -f "$ac_file" || continue;
2491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2500 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2507 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2509 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2510 echo "${ECHO_T}$ac_cv_objext" >&6; }
2511 OBJEXT=$ac_cv_objext
2513 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compile") 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551 { (case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2583 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2584 GCC=`test $ac_compiler_gnu = yes && echo yes`
2585 ac_test_CFLAGS=${CFLAGS+set}
2586 ac_save_CFLAGS=$CFLAGS
2587 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_cc_g+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 ac_save_c_werror_flag=$ac_c_werror_flag
2593 ac_c_werror_flag=yes
2596 cat >conftest.$ac_ext <<_ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2611 rm -f conftest.$ac_objext
2612 if { (ac_try="$ac_compile"
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compile") 2>conftest.er1
2620 grep -v '^ *+' conftest.er1 >conftest.err
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2626 { (case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631 (eval "$ac_try") 2>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_try") 2>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2651 cat >conftest.$ac_ext <<_ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (ac_try="$ac_compile"
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compile") 2>conftest.er1
2675 grep -v '^ *+' conftest.er1 >conftest.err
2677 cat conftest.err >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2681 { (case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_try") 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; } &&
2690 { ac_try='test -s conftest.$ac_objext'
2691 { (case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696 (eval "$ac_try") 2>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 ac_c_werror_flag=$ac_save_c_werror_flag
2707 cat >conftest.$ac_ext <<_ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2722 rm -f conftest.$ac_objext
2723 if { (ac_try="$ac_compile"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compile") 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2737 { (case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_try") 2>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_try") 2>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_c_werror_flag=$ac_save_c_werror_flag
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2775 if test "$ac_test_CFLAGS" = set; then
2776 CFLAGS=$ac_save_CFLAGS
2777 elif test $ac_cv_prog_cc_g = yes; then
2778 if test "$GCC" = yes; then
2784 if test "$GCC" = yes; then
2790 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2791 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_cc_c89+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 ac_cv_prog_cc_c89=no
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2805 #include <sys/types.h>
2806 #include <sys/stat.h>
2807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2808 struct buf { int x; };
2809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2810 static char *e (p, i)
2816 static char *f (char * (*g) (char **, int), char **p, ...)
2821 s = g (p, va_arg (v,int));
2826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2827 function prototypes and stuff, but not '\xHH' hex character constants.
2828 These don't provoke an error unfortunately, instead are silently treated
2829 as 'x'. The following induces an error, until -std is added to get
2830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2831 array size at least. It's necessary to write '\x00'==0 to get something
2832 that's true only with -std. */
2833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2836 inside strings and character constants. */
2838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2840 int test (int i, double x);
2841 struct s1 {int (*f) (int a);};
2842 struct s2 {int (*f) (double a);};
2843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2855 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2857 CC="$ac_save_CC $ac_arg"
2858 rm -f conftest.$ac_objext
2859 if { (ac_try="$ac_compile"
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_compile") 2>conftest.er1
2867 grep -v '^ *+' conftest.er1 >conftest.err
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } &&
2872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2873 { (case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_try") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 ac_cv_prog_cc_c89=$ac_arg
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2900 rm -f core conftest.err conftest.$ac_objext
2901 test "x$ac_cv_prog_cc_c89" != "xno" && break
2903 rm -f conftest.$ac_ext
2908 case "x$ac_cv_prog_cc_c89" in
2910 { echo "$as_me:$LINENO: result: none needed" >&5
2911 echo "${ECHO_T}none needed" >&6; } ;;
2913 { echo "$as_me:$LINENO: result: unsupported" >&5
2914 echo "${ECHO_T}unsupported" >&6; } ;;
2916 CC="$CC $ac_cv_prog_cc_c89"
2917 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2918 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929 ac_cpp='$CXXCPP $CPPFLAGS'
2930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2933 if test -z "$CXX"; then
2934 if test -n "$CCC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_CXX+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -n "$CXX"; then
2948 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CXX"; then
2969 { echo "$as_me:$LINENO: result: $CXX" >&5
2970 echo "${ECHO_T}$CXX" >&6; }
2972 { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2977 test -n "$CXX" && break
2980 if test -z "$CXX"; then
2982 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if test -n "$ac_ct_CXX"; then
2992 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_ac_ct_CXX="$ac_prog"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3012 if test -n "$ac_ct_CXX"; then
3013 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3014 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3016 { echo "$as_me:$LINENO: result: no" >&5
3017 echo "${ECHO_T}no" >&6; }
3021 test -n "$ac_ct_CXX" && break
3024 if test "x$ac_ct_CXX" = x; then
3027 case $cross_compiling:$ac_tool_warned in
3029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3030 whose name does not start with the host triplet. If you think this
3031 configuration is useful to you, please write to autoconf@gnu.org." >&5
3032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3033 whose name does not start with the host triplet. If you think this
3034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3035 ac_tool_warned=yes ;;
3043 # Provide some information about the compiler.
3044 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3045 ac_compiler=`set X $ac_compile; echo $2`
3046 { (ac_try="$ac_compiler --version >&5"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compiler --version >&5") 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }
3056 { (ac_try="$ac_compiler -v >&5"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compiler -v >&5") 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }
3066 { (ac_try="$ac_compiler -V >&5"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compiler -V >&5") 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }
3077 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3078 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3079 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3146 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3147 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3148 GXX=`test $ac_compiler_gnu = yes && echo yes`
3149 ac_test_CXXFLAGS=${CXXFLAGS+set}
3150 ac_save_CXXFLAGS=$CXXFLAGS
3151 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3152 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_cxx_g+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3157 ac_cxx_werror_flag=yes
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; }; then
3209 ac_cv_prog_cxx_g=yes
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_try") 2>&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_try") 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3301 { (case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_try") 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest.$ac_objext'
3311 { (case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_try") 2>&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 ac_cv_prog_cxx_g=yes
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3339 if test "$ac_test_CXXFLAGS" = set; then
3340 CXXFLAGS=$ac_save_CXXFLAGS
3341 elif test $ac_cv_prog_cxx_g = yes; then
3342 if test "$GXX" = yes; then
3348 if test "$GXX" = yes; then
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3368 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3369 # On Suns, sometimes $CPP names a directory.
3370 if test -n "$CPP" && test -d "$CPP"; then
3373 if test -z "$CPP"; then
3374 if test "${ac_cv_prog_CPP+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 # Double quotes because CPP needs to be expanded
3378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3381 for ac_c_preproc_warn_flag in '' yes
3383 # Use a header file that comes with gcc, so configuring glibc
3384 # with a fresh cross-compiler works.
3385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3386 # <limits.h> exists even on freestanding compilers.
3387 # On the NeXT, cc -E runs the code through the compiler's parser,
3388 # not just through cpp. "Syntax error" is here to catch this case.
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3396 # include <limits.h>
3398 # include <assert.h>
3402 if { (ac_try="$ac_cpp conftest.$ac_ext"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424 if test -z "$ac_cpp_err"; then
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 # Broken: fails on valid input.
3434 rm -f conftest.err conftest.$ac_ext
3436 # OK, works on sane cases. Now check whether nonexistent headers
3437 # can be detected and how.
3438 cat >conftest.$ac_ext <<_ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 #include <ac_nonexistent.h>
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null; then
3459 if test -s conftest.err; then
3460 ac_cpp_err=$ac_c_preproc_warn_flag
3461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468 if test -z "$ac_cpp_err"; then
3469 # Broken: success on invalid input.
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3475 # Passes both tests.
3480 rm -f conftest.err conftest.$ac_ext
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then
3497 { echo "$as_me:$LINENO: result: $CPP" >&5
3498 echo "${ECHO_T}$CPP" >&6; }
3500 for ac_c_preproc_warn_flag in '' yes
3502 # Use a header file that comes with gcc, so configuring glibc
3503 # with a fresh cross-compiler works.
3504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505 # <limits.h> exists even on freestanding compilers.
3506 # On the NeXT, cc -E runs the code through the compiler's parser,
3507 # not just through cpp. "Syntax error" is here to catch this case.
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3515 # include <limits.h>
3517 # include <assert.h>
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3543 if test -z "$ac_cpp_err"; then
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 # Broken: fails on valid input.
3553 rm -f conftest.err conftest.$ac_ext
3555 # OK, works on sane cases. Now check whether nonexistent headers
3556 # can be detected and how.
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3563 #include <ac_nonexistent.h>
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587 if test -z "$ac_cpp_err"; then
3588 # Broken: success on invalid input.
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 # Passes both tests.
3599 rm -f conftest.err conftest.$ac_ext
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.err conftest.$ac_ext
3604 if $ac_preproc_ok; then
3607 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3608 See \`config.log' for more details." >&5
3609 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details." >&2;}
3611 { (exit 1); exit 1; }; }
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3622 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 # Extract the first word of "grep ggrep" to use in msg output
3627 if test -z "$GREP"; then
3628 set dummy grep ggrep; ac_prog_name=$2
3629 if test "${ac_cv_path_GREP+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3638 test -z "$as_dir" && as_dir=.
3639 for ac_prog in grep ggrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1`
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3672 $ac_path_GREP_found && break 3
3682 GREP="$ac_cv_path_GREP"
3683 if test -z "$GREP"; then
3684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686 { (exit 1); exit 1; }; }
3690 ac_cv_path_GREP=$GREP
3695 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3696 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3697 GREP="$ac_cv_path_GREP"
3700 { echo "$as_me:$LINENO: checking for egrep" >&5
3701 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706 then ac_cv_path_EGREP="$GREP -E"
3708 # Extract the first word of "egrep" to use in msg output
3709 if test -z "$EGREP"; then
3710 set dummy egrep; ac_prog_name=$2
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_path_EGREP_found=false
3715 # Loop through the user's path and test for each of PROGNAME-LIST
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3720 test -z "$as_dir" && as_dir=.
3721 for ac_prog in egrep; do
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3724 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3725 # Check for GNU ac_path_EGREP and select it if it is found.
3726 # Check for GNU $ac_path_EGREP
3727 case `"$ac_path_EGREP" --version 2>&1` in
3729 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3732 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3735 cat "conftest.in" "conftest.in" >"conftest.tmp"
3736 mv "conftest.tmp" "conftest.in"
3737 cp "conftest.in" "conftest.nl"
3738 echo 'EGREP' >> "conftest.nl"
3739 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741 ac_count=`expr $ac_count + 1`
3742 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3743 # Best one so far, save it but keep looking for a better one
3744 ac_cv_path_EGREP="$ac_path_EGREP"
3745 ac_path_EGREP_max=$ac_count
3747 # 10*(2^10) chars as input seems more than enough
3748 test $ac_count -gt 10 && break
3750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3754 $ac_path_EGREP_found && break 3
3764 EGREP="$ac_cv_path_EGREP"
3765 if test -z "$EGREP"; then
3766 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768 { (exit 1); exit 1; }; }
3772 ac_cv_path_EGREP=$EGREP
3778 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3779 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3780 EGREP="$ac_cv_path_EGREP"
3784 { echo "$as_me:$LINENO: checking for AIX" >&5
3785 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 $EGREP "yes" >/dev/null 2>&1; then
3799 { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3801 cat >>confdefs.h <<\_ACEOF
3802 #define _ALL_SOURCE 1
3806 { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3813 if test $ac_cv_c_compiler_gnu = yes; then
3814 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3815 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3816 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 ac_pattern="Autoconf.*'x'"
3820 cat >conftest.$ac_ext <<_ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3831 ac_cv_prog_gcc_traditional=yes
3833 ac_cv_prog_gcc_traditional=no
3838 if test $ac_cv_prog_gcc_traditional = no; then
3839 cat >conftest.$ac_ext <<_ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3850 ac_cv_prog_gcc_traditional=yes
3856 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3857 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3858 if test $ac_cv_prog_gcc_traditional = yes; then
3859 CC="$CC -traditional"
3863 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3864 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3865 if test "${ac_cv_prog_suncc+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cat > conftest.c <<EOF
3873 if { ac_try='${CC-cc} -E conftest.c'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3879 ac_cv_prog_suncc=yes
3884 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3885 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3886 if test -n "$ac_tool_prefix"; then
3887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3891 if test "${ac_cv_prog_RANLIB+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 if test -n "$RANLIB"; then
3895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 RANLIB=$ac_cv_prog_RANLIB
3915 if test -n "$RANLIB"; then
3916 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3917 echo "${ECHO_T}$RANLIB" >&6; }
3919 { echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6; }
3925 if test -z "$ac_cv_prog_RANLIB"; then
3926 ac_ct_RANLIB=$RANLIB
3927 # Extract the first word of "ranlib", so it can be a program name with args.
3928 set dummy ranlib; ac_word=$2
3929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3931 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 if test -n "$ac_ct_RANLIB"; then
3935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_RANLIB="ranlib"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3955 if test -n "$ac_ct_RANLIB"; then
3956 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3957 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3959 { echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6; }
3963 if test "x$ac_ct_RANLIB" = x; then
3966 case $cross_compiling:$ac_tool_warned in
3968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet. If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&5
3971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3972 whose name does not start with the host triplet. If you think this
3973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3974 ac_tool_warned=yes ;;
3976 RANLIB=$ac_ct_RANLIB
3979 RANLIB="$ac_cv_prog_RANLIB"
3983 # Check whether --enable-largefile was given.
3984 if test "${enable_largefile+set}" = set; then
3985 enableval=$enable_largefile;
3988 if test "$enable_largefile" != no; then
3990 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3991 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3992 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 ac_cv_sys_largefile_CC=no
3996 if test "$GCC" != yes; then
3999 # IRIX 6.2 and later do not support large files by default,
4000 # so use the C compiler's -n32 option if that helps.
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #include <sys/types.h>
4008 /* Check that off_t can represent 2**63 - 1 correctly.
4009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4010 since some C++ compilers masquerading as C compilers
4011 incorrectly reject 9223372036854775807. */
4012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4014 && LARGE_OFF_T % 2147483647 == 1)
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_compile") 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4039 { (case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_try") 2>&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; } &&
4048 { ac_try='test -s conftest.$ac_objext'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4066 rm -f core conftest.err conftest.$ac_objext
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 ac_cv_sys_largefile_CC=' -n32'; break
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4110 rm -f core conftest.err conftest.$ac_objext
4114 rm -f conftest.$ac_ext
4117 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4118 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4119 if test "$ac_cv_sys_largefile_CC" != no; then
4120 CC=$CC$ac_cv_sys_largefile_CC
4123 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4124 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4125 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 ac_cv_sys_file_offset_bits=no
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <sys/types.h>
4137 /* Check that off_t can represent 2**63 - 1 correctly.
4138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4139 since some C++ compilers masquerading as C compilers
4140 incorrectly reject 9223372036854775807. */
4141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4143 && LARGE_OFF_T % 2147483647 == 1)
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_compile") 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #define _FILE_OFFSET_BITS 64
4203 #include <sys/types.h>
4204 /* Check that off_t can represent 2**63 - 1 correctly.
4205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4206 since some C++ compilers masquerading as C compilers
4207 incorrectly reject 9223372036854775807. */
4208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4210 && LARGE_OFF_T % 2147483647 == 1)
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_try") 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 ac_cv_sys_file_offset_bits=64; break
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4267 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4268 if test "$ac_cv_sys_file_offset_bits" != no; then
4270 cat >>confdefs.h <<_ACEOF
4271 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4276 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4277 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4278 if test "${ac_cv_sys_large_files+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 ac_cv_sys_large_files=no
4283 cat >conftest.$ac_ext <<_ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 #include <sys/types.h>
4290 /* Check that off_t can represent 2**63 - 1 correctly.
4291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4292 since some C++ compilers masquerading as C compilers
4293 incorrectly reject 9223372036854775807. */
4294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4296 && LARGE_OFF_T % 2147483647 == 1)
4306 rm -f conftest.$ac_objext
4307 if { (ac_try="$ac_compile"
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_compile") 2>conftest.er1
4315 grep -v '^ *+' conftest.er1 >conftest.err
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
4320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4321 { (case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #define _LARGE_FILES 1
4356 #include <sys/types.h>
4357 /* Check that off_t can represent 2**63 - 1 correctly.
4358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4359 since some C++ compilers masquerading as C compilers
4360 incorrectly reject 9223372036854775807. */
4361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4363 && LARGE_OFF_T % 2147483647 == 1)
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 ac_cv_sys_large_files=1; break
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4420 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4421 if test "$ac_cv_sys_large_files" != no; then
4423 cat >>confdefs.h <<_ACEOF
4424 #define _LARGE_FILES $ac_cv_sys_large_files
4432 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4433 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4434 if test "${ac_cv_header_stdc+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_compile") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_header_stdc=yes
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ac_cv_header_stdc=no
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 if test $ac_cv_header_stdc = yes; then
4501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "memchr" >/dev/null 2>&1; then
4515 ac_cv_header_stdc=no
4521 if test $ac_cv_header_stdc = yes; then
4522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533 $EGREP "free" >/dev/null 2>&1; then
4536 ac_cv_header_stdc=no
4542 if test $ac_cv_header_stdc = yes; then
4543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4544 if test "$cross_compiling" = yes; then
4547 cat >conftest.$ac_ext <<_ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4555 #if ((' ' & 0x0FF) == 0x020)
4556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4559 # define ISLOWER(c) \
4560 (('a' <= (c) && (c) <= 'i') \
4561 || ('j' <= (c) && (c) <= 'r') \
4562 || ('s' <= (c) && (c) <= 'z'))
4563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4571 for (i = 0; i < 256; i++)
4572 if (XOR (islower (i), ISLOWER (i))
4573 || toupper (i) != TOUPPER (i))
4578 rm -f conftest$ac_exeext
4579 if { (ac_try="$ac_link"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_link") 2>&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4589 { (case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_try") 2>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4600 echo "$as_me: program exited with status $ac_status" >&5
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4605 ac_cv_header_stdc=no
4607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4613 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4615 if test $ac_cv_header_stdc = yes; then
4617 cat >>confdefs.h <<\_ACEOF
4618 #define STDC_HEADERS 1
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 $ac_includes_default
4650 #include <$ac_header>
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4667 { (case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_try") 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 eval "$as_ac_Header=yes"
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 eval "$as_ac_Header=no"
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_res=`eval echo '${'$as_ac_Header'}'`
4697 { echo "$as_me:$LINENO: result: $ac_res" >&5
4698 echo "${ECHO_T}$ac_res" >&6; }
4699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4700 cat >>confdefs.h <<_ACEOF
4701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4709 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4710 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4711 if test "${ac_cv_c_bigendian+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 # See if sys/param.h defines the BYTE_ORDER macro.
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #include <sys/types.h>
4722 #include <sys/param.h>
4727 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_compile") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4750 { (case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_try") 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; } &&
4759 { ac_try='test -s conftest.$ac_objext'
4760 { (case "(($ac_try" in
4761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762 *) ac_try_echo=$ac_try;;
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765 (eval "$ac_try") 2>&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 # It does; now see whether it defined to BIG_ENDIAN or not.
4770 cat >conftest.$ac_ext <<_ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 #include <sys/types.h>
4777 #include <sys/param.h>
4782 #if BYTE_ORDER != BIG_ENDIAN
4790 rm -f conftest.$ac_objext
4791 if { (ac_try="$ac_compile"
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4805 { (case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_try") 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; } &&
4814 { ac_try='test -s conftest.$ac_objext'
4815 { (case "(($ac_try" in
4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817 *) ac_try_echo=$ac_try;;
4819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820 (eval "$ac_try") 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_c_bigendian=yes
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4829 ac_cv_c_bigendian=no
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 # It does not; compile a test program.
4838 if test "$cross_compiling" = yes; then
4839 # try to guess the endianness by grepping values into an object file
4840 ac_cv_c_bigendian=unknown
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4848 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4849 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4850 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4851 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4852 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4856 _ascii (); _ebcdic ();
4861 rm -f conftest.$ac_objext
4862 if { (ac_try="$ac_compile"
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876 { (case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881 (eval "$ac_try") 2>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try='test -s conftest.$ac_objext'
4886 { (case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_try") 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4896 ac_cv_c_bigendian=yes
4898 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4899 if test "$ac_cv_c_bigendian" = unknown; then
4900 ac_cv_c_bigendian=no
4902 # finding both strings is unlikely to happen, but who knows?
4903 ac_cv_c_bigendian=unknown
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 cat >conftest.$ac_ext <<_ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 $ac_includes_default
4926 /* Are we little or big endian? From Harbison&Steele. */
4930 char c[sizeof (long int)];
4933 return u.c[sizeof (long int) - 1] == 1;
4939 rm -f conftest$ac_exeext
4940 if { (ac_try="$ac_link"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_link") 2>&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4950 { (case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_try") 2>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 ac_cv_c_bigendian=no
4961 echo "$as_me: program exited with status $ac_status" >&5
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4966 ac_cv_c_bigendian=yes
4968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4977 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4978 case $ac_cv_c_bigendian in
4981 cat >>confdefs.h <<\_ACEOF
4982 #define WORDS_BIGENDIAN 1
4988 { { echo "$as_me:$LINENO: error: unknown endianness
4989 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4990 echo "$as_me: error: unknown endianness
4991 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4992 { (exit 1); exit 1; }; } ;;
4996 # Extract the first word of "gmake", so it can be a program name with args.
4997 set dummy gmake; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_prog_GMAKE+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -n "$GMAKE"; then
5004 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_GMAKE="yes"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
5024 GMAKE=$ac_cv_prog_GMAKE
5025 if test -n "$GMAKE"; then
5026 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5027 echo "${ECHO_T}$GMAKE" >&6; }
5029 { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5034 if test $GMAKE = no; then
5035 # Extract the first word of "make", so it can be a program name with args.
5036 set dummy make; ac_word=$2
5037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5039 if test "${ac_cv_path_MAKE+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5066 MAKE=$ac_cv_path_MAKE
5067 if test -n "$MAKE"; then
5068 { echo "$as_me:$LINENO: result: $MAKE" >&5
5069 echo "${ECHO_T}$MAKE" >&6; }
5071 { echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6; }
5077 # Extract the first word of "gmake", so it can be a program name with args.
5078 set dummy gmake; ac_word=$2
5079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5081 if test "${ac_cv_path_MAKE+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5108 MAKE=$ac_cv_path_MAKE
5109 if test -n "$MAKE"; then
5110 { echo "$as_me:$LINENO: result: $MAKE" >&5
5111 echo "${ECHO_T}$MAKE" >&6; }
5113 { echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6; }
5119 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5120 if test -z "$makever"; then
5121 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
5122 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
5123 echo "$as_me: error: GNU Make is not installed. Please download and install it
5124 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
5125 { (exit 1); exit 1; }; }
5128 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
5129 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
5130 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 ac_check_lib_save_LIBS=$LIBS
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5142 /* Override any GCC internal prototype to avoid an error.
5143 Use char because int might match the return type of a GCC
5144 builtin and then its argument prototype would still apply. */
5152 return lt_dlinit ();
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (ac_try="$ac_link"
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_link") 2>conftest.er1
5166 grep -v '^ *+' conftest.er1 >conftest.err
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5172 { (case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_try") 2>&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; } &&
5181 { ac_try='test -s conftest$ac_exeext'
5182 { (case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_try") 2>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 ac_cv_lib_ltdl_lt_dlinit=yes
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 ac_cv_lib_ltdl_lt_dlinit=no
5199 rm -f core conftest.err conftest.$ac_objext \
5200 conftest$ac_exeext conftest.$ac_ext
5201 LIBS=$ac_check_lib_save_LIBS
5203 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5204 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5205 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
5206 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5208 if test x"$enable_ltdl_install" = xno; then
5209 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
5210 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5212 enable_ltdl_install=yes
5217 if test x"$enable_ltdl_install" = x"yes"; then
5218 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5219 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5220 LTDLINCL='-I${top_srcdir}/''libltdl'
5222 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5226 # For backwards non-gettext consistent compatibility...
5230 if test x"$enable_ltdl_install" = x"yes"; then
5231 LTDL_SUBDIRS=libltdl
5235 # Check whether --enable-shared was given.
5236 if test "${enable_shared+set}" = set; then
5237 enableval=$enable_shared; p=${PACKAGE-default}
5239 yes) enable_shared=yes ;;
5240 no) enable_shared=no ;;
5243 # Look at the argument we got. We use all the common list separators.
5244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5245 for pkg in $enableval; do
5247 if test "X$pkg" = "X$p"; then
5259 # Check whether --enable-static was given.
5260 if test "${enable_static+set}" = set; then
5261 enableval=$enable_static; p=${PACKAGE-default}
5263 yes) enable_static=yes ;;
5264 no) enable_static=no ;;
5267 # Look at the argument we got. We use all the common list separators.
5268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5269 for pkg in $enableval; do
5271 if test "X$pkg" = "X$p"; then
5283 # Check whether --enable-fast-install was given.
5284 if test "${enable_fast_install+set}" = set; then
5285 enableval=$enable_fast_install; p=${PACKAGE-default}
5287 yes) enable_fast_install=yes ;;
5288 no) enable_fast_install=no ;;
5290 enable_fast_install=no
5291 # Look at the argument we got. We use all the common list separators.
5292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5293 for pkg in $enableval; do
5295 if test "X$pkg" = "X$p"; then
5296 enable_fast_install=yes
5303 enable_fast_install=yes
5308 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5309 if test -f "$ac_dir/install-sh"; then
5311 ac_install_sh="$ac_aux_dir/install-sh -c"
5313 elif test -f "$ac_dir/install.sh"; then
5315 ac_install_sh="$ac_aux_dir/install.sh -c"
5317 elif test -f "$ac_dir/shtool"; then
5319 ac_install_sh="$ac_aux_dir/shtool install -c"
5323 if test -z "$ac_aux_dir"; then
5324 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5325 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5326 { (exit 1); exit 1; }; }
5329 # These three variables are undocumented and unsupported,
5330 # and are intended to be withdrawn in a future Autoconf release.
5331 # They can cause serious problems if a builder's source tree is in a directory
5332 # whose full name contains unusual characters.
5333 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5334 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5335 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5338 # Make sure we can run config.sub.
5339 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5340 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5341 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5342 { (exit 1); exit 1; }; }
5344 { echo "$as_me:$LINENO: checking build system type" >&5
5345 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5346 if test "${ac_cv_build+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 ac_build_alias=$build_alias
5350 test "x$ac_build_alias" = x &&
5351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5352 test "x$ac_build_alias" = x &&
5353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5355 { (exit 1); exit 1; }; }
5356 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5357 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5358 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5359 { (exit 1); exit 1; }; }
5362 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5363 echo "${ECHO_T}$ac_cv_build" >&6; }
5364 case $ac_cv_build in
5366 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5367 echo "$as_me: error: invalid value of canonical build" >&2;}
5368 { (exit 1); exit 1; }; };;
5371 ac_save_IFS=$IFS; IFS='-'
5377 # Remember, the first character of IFS is used to create $*,
5378 # except with old shells:
5381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5384 { echo "$as_me:$LINENO: checking host system type" >&5
5385 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5386 if test "${ac_cv_host+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 if test "x$host_alias" = x; then
5390 ac_cv_host=$ac_cv_build
5392 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5393 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5394 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5395 { (exit 1); exit 1; }; }
5399 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5400 echo "${ECHO_T}$ac_cv_host" >&6; }
5403 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5404 echo "$as_me: error: invalid value of canonical host" >&2;}
5405 { (exit 1); exit 1; }; };;
5408 ac_save_IFS=$IFS; IFS='-'
5414 # Remember, the first character of IFS is used to create $*,
5415 # except with old shells:
5418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5421 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5422 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5423 if test "${lt_cv_path_SED+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 # Loop through the user's path and test for sed and gsed.
5427 # Then use that list of sed's as ones to test for truncation.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir=.
5433 for lt_ac_prog in sed gsed; do
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5436 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5443 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5444 # along with /bin/sed that truncates output.
5445 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5446 test ! -f $lt_ac_sed && continue
5447 cat /dev/null > conftest.in
5449 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5450 # Check for GNU sed and select it if it is found.
5451 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5452 lt_cv_path_SED=$lt_ac_sed
5456 cat conftest.in conftest.in >conftest.tmp
5457 mv conftest.tmp conftest.in
5458 cp conftest.in conftest.nl
5460 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5461 cmp -s conftest.out conftest.nl || break
5462 # 10000 chars as input seems more than enough
5463 test $lt_ac_count -gt 10 && break
5464 lt_ac_count=`expr $lt_ac_count + 1`
5465 if test $lt_ac_count -gt $lt_ac_max; then
5466 lt_ac_max=$lt_ac_count
5467 lt_cv_path_SED=$lt_ac_sed
5475 { echo "$as_me:$LINENO: result: $SED" >&5
5476 echo "${ECHO_T}$SED" >&6; }
5479 # Check whether --with-gnu-ld was given.
5480 if test "${with_gnu_ld+set}" = set; then
5481 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5487 if test "$GCC" = yes; then
5488 # Check if gcc -print-prog-name=ld gives a path.
5489 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5490 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5493 # gcc leaves a trailing carriage return which upsets mingw
5494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5499 # Accept absolute paths.
5501 re_direlt='/[^/][^/]*/\.\./'
5502 # Canonicalize the pathname of ld
5503 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5504 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5505 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5507 test -z "$LD" && LD="$ac_prog"
5510 # If it fails, then pretend we aren't using GCC.
5514 # If it is relative, then search for the first ld in PATH.
5518 elif test "$with_gnu_ld" = yes; then
5519 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5520 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5522 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5523 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5525 if test "${lt_cv_path_LD+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 if test -z "$LD"; then
5529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5530 for ac_dir in $PATH; do
5532 test -z "$ac_dir" && ac_dir=.
5533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5534 lt_cv_path_LD="$ac_dir/$ac_prog"
5535 # Check to see if the program is GNU ld. I'd rather use --version,
5536 # but apparently some variants of GNU ld only accept -v.
5537 # Break only if it was the GNU/non-GNU ld that we prefer.
5538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5539 *GNU* | *'with BFD'*)
5540 test "$with_gnu_ld" != no && break
5543 test "$with_gnu_ld" != yes && break
5550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5555 if test -n "$LD"; then
5556 { echo "$as_me:$LINENO: result: $LD" >&5
5557 echo "${ECHO_T}$LD" >&6; }
5559 { echo "$as_me:$LINENO: result: no" >&5
5560 echo "${ECHO_T}no" >&6; }
5562 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5563 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5564 { (exit 1); exit 1; }; }
5565 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5566 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5567 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5571 case `$LD -v 2>&1 </dev/null` in
5572 *GNU* | *'with BFD'*)
5573 lt_cv_prog_gnu_ld=yes
5576 lt_cv_prog_gnu_ld=no
5580 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5581 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5582 with_gnu_ld=$lt_cv_prog_gnu_ld
5585 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5586 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5587 if test "${lt_cv_ld_reload_flag+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 lt_cv_ld_reload_flag='-r'
5592 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5593 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5594 reload_flag=$lt_cv_ld_reload_flag
5595 case $reload_flag in
5597 *) reload_flag=" $reload_flag" ;;
5599 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5602 if test "$GCC" = yes; then
5603 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5605 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5610 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5611 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5612 if test "${lt_cv_path_NM+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 if test -n "$NM"; then
5616 # Let the user override the test.
5619 lt_nm_to_check="${ac_tool_prefix}nm"
5620 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5621 lt_nm_to_check="$lt_nm_to_check nm"
5623 for lt_tmp_nm in $lt_nm_to_check; do
5624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5625 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5627 test -z "$ac_dir" && ac_dir=.
5628 tmp_nm="$ac_dir/$lt_tmp_nm"
5629 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5630 # Check to see if the nm accepts a BSD-compat flag.
5631 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5632 # nm: unknown option "B" ignored
5633 # Tru64's nm complains that /dev/null is an invalid object file
5634 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5635 */dev/null* | *'Invalid file or object type'*)
5636 lt_cv_path_NM="$tmp_nm -B"
5640 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5642 lt_cv_path_NM="$tmp_nm -p"
5646 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5647 continue # so that we can try to find one that supports BSD flags
5656 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5659 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5660 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5663 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5664 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5666 if test "$LN_S" = "ln -s"; then
5667 { echo "$as_me:$LINENO: result: yes" >&5
5668 echo "${ECHO_T}yes" >&6; }
5670 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5671 echo "${ECHO_T}no, using $LN_S" >&6; }
5674 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5675 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5676 if test "${lt_cv_deplibs_check_method+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 lt_cv_file_magic_cmd='$MAGIC_CMD'
5680 lt_cv_file_magic_test_file=
5681 lt_cv_deplibs_check_method='unknown'
5682 # Need to set the preceding variable on all platforms that support
5683 # interlibrary dependencies.
5684 # 'none' -- dependencies not supported.
5685 # `unknown' -- same as none, but documents that we really don't know.
5686 # 'pass_all' -- all dependencies passed with no checks.
5687 # 'test_compile' -- check by making test program.
5688 # 'file_magic [[regex]]' -- check by looking for files in library path
5689 # which responds to the $file_magic_cmd with a given extended regex.
5690 # If you have `file' or equivalent on your system and you're not sure
5691 # whether `pass_all' will *always* work, you probably want this one.
5695 lt_cv_deplibs_check_method=pass_all
5699 lt_cv_deplibs_check_method=pass_all
5703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5704 lt_cv_file_magic_cmd='/usr/bin/file -L'
5705 lt_cv_file_magic_test_file=/shlib/libc.so
5709 # func_win32_libid is a shell function defined in ltmain.sh
5710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711 lt_cv_file_magic_cmd='func_win32_libid'
5715 # Base MSYS/MinGW do not provide the 'file' command needed by
5716 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5717 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5718 lt_cv_file_magic_cmd='$OBJDUMP -f'
5721 darwin* | rhapsody*)
5722 lt_cv_deplibs_check_method=pass_all
5725 freebsd* | kfreebsd*-gnu | dragonfly*)
5726 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5729 # Not sure whether the presence of OpenBSD here was a mistake.
5730 # Let's accept both of them until this is cleared up.
5731 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5732 lt_cv_file_magic_cmd=/usr/bin/file
5733 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5737 lt_cv_deplibs_check_method=pass_all
5742 lt_cv_deplibs_check_method=pass_all
5745 hpux10.20* | hpux11*)
5746 lt_cv_file_magic_cmd=/usr/bin/file
5749 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5750 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5753 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]'
5754 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5757 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5758 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5764 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5768 irix5* | irix6* | nonstopux*)
5770 *-32|*"-32 ") libmagic=32-bit;;
5771 *-n32|*"-n32 ") libmagic=N32;;
5772 *-64|*"-64 ") libmagic=64-bit;;
5773 *) libmagic=never-match;;
5775 lt_cv_deplibs_check_method=pass_all
5778 # This must be Linux ELF.
5780 lt_cv_deplibs_check_method=pass_all
5784 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5793 lt_cv_file_magic_cmd=/usr/bin/file
5794 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5798 lt_cv_deplibs_check_method=unknown
5802 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5809 osf3* | osf4* | osf5*)
5810 lt_cv_deplibs_check_method=pass_all
5814 lt_cv_deplibs_check_method=pass_all
5818 case $host_vendor in
5820 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]'
5821 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5824 lt_cv_deplibs_check_method=pass_all
5827 lt_cv_file_magic_cmd='/bin/file'
5828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5831 lt_cv_file_magic_cmd='/bin/file'
5832 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5833 lt_cv_file_magic_test_file=/lib/libc.so
5836 lt_cv_deplibs_check_method=pass_all
5839 lt_cv_deplibs_check_method=pass_all
5844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5845 lt_cv_deplibs_check_method=pass_all
5850 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5851 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5852 file_magic_cmd=$lt_cv_file_magic_cmd
5853 deplibs_check_method=$lt_cv_deplibs_check_method
5854 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5859 # If no C compiler was specified, use CC.
5862 # If no C compiler flags were specified, use CFLAGS.
5863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5865 # Allow CC to be a program name with arguments.
5868 # Check whether --enable-libtool-lock was given.
5869 if test "${enable_libtool_lock+set}" = set; then
5870 enableval=$enable_libtool_lock;
5873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5875 # Some flags need to be propagated to the compiler or linker for good
5879 # Find out which ABI we are using.
5880 echo 'int i;' > conftest.$ac_ext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; then
5886 case `/usr/bin/file conftest.$ac_objext` in
5898 # Find out which ABI we are using.
5899 echo '#line 5899 "configure"' > conftest.$ac_ext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; then
5905 if test "$lt_cv_prog_gnu_ld" = yes; then
5906 case `/usr/bin/file conftest.$ac_objext` in
5908 LD="${LD-ld} -melf32bsmip"
5911 LD="${LD-ld} -melf32bmipn32"
5914 LD="${LD-ld} -melf64bmip"
5918 case `/usr/bin/file conftest.$ac_objext` in
5934 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5935 # Find out which ABI we are using.
5936 echo 'int i;' > conftest.$ac_ext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; then
5942 case `/usr/bin/file conftest.o` in
5946 LD="${LD-ld} -m elf_i386"
5948 ppc64-*linux*|powerpc64-*linux*)
5949 LD="${LD-ld} -m elf32ppclinux"
5952 LD="${LD-ld} -m elf_s390"
5955 LD="${LD-ld} -m elf32_sparc"
5962 LD="${LD-ld} -m elf_x86_64"
5964 ppc*-*linux*|powerpc*-*linux*)
5965 LD="${LD-ld} -m elf64ppc"
5968 LD="${LD-ld} -m elf64_s390"
5971 LD="${LD-ld} -m elf64_sparc"
5981 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5982 SAVE_CFLAGS="$CFLAGS"
5983 CFLAGS="$CFLAGS -belf"
5984 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5985 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5986 if test "${lt_cv_cc_needs_belf+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_cpp='$CPP $CPPFLAGS'
5991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (ac_try="$ac_link"
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_link") 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } &&
6024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6025 { (case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_try") 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; } &&
6034 { ac_try='test -s conftest$ac_exeext'
6035 { (case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_try") 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6044 lt_cv_cc_needs_belf=yes
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6049 lt_cv_cc_needs_belf=no
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6055 ac_cpp='$CPP $CPPFLAGS'
6056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6062 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6063 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6064 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6065 CFLAGS="$SAVE_CFLAGS"
6069 # Find out which ABI we are using.
6070 echo 'int i;' > conftest.$ac_ext
6071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072 (eval $ac_compile) 2>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; then
6076 case `/usr/bin/file conftest.o` in
6078 case $lt_cv_prog_gnu_ld in
6079 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6080 *) LD="${LD-ld} -64" ;;
6091 need_locks="$enable_libtool_lock"
6095 for ac_header in dlfcn.h
6097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 ac_res=`eval echo '${'$as_ac_Header'}'`
6105 { echo "$as_me:$LINENO: result: $ac_res" >&5
6106 echo "${ECHO_T}$ac_res" >&6; }
6108 # Is the header compilable?
6109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 $ac_includes_default
6118 #include <$ac_header>
6120 rm -f conftest.$ac_objext
6121 if { (ac_try="$ac_compile"
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_compile") 2>conftest.er1
6129 grep -v '^ *+' conftest.er1 >conftest.err
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6135 { (case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_try") 2>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest.$ac_objext'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_header_compiler=yes
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_header_compiler=no
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6164 echo "${ECHO_T}$ac_header_compiler" >&6; }
6166 # Is the header present?
6167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6169 cat >conftest.$ac_ext <<_ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #include <$ac_header>
6177 if { (ac_try="$ac_cpp conftest.$ac_ext"
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6185 grep -v '^ *+' conftest.er1 >conftest.err
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } >/dev/null; then
6190 if test -s conftest.err; then
6191 ac_cpp_err=$ac_c_preproc_warn_flag
6192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6199 if test -z "$ac_cpp_err"; then
6200 ac_header_preproc=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_header_preproc=no
6208 rm -f conftest.err conftest.$ac_ext
6209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6210 echo "${ECHO_T}$ac_header_preproc" >&6; }
6212 # So? What about this header?
6213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6219 ac_header_preproc=yes
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 eval "$as_ac_Header=\$ac_header_preproc"
6244 ac_res=`eval echo '${'$as_ac_Header'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6250 cat >>confdefs.h <<_ACEOF
6251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6260 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6261 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6262 (test "X$CXX" != "Xg++"))) ; then
6264 ac_cpp='$CXXCPP $CPPFLAGS'
6265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6268 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6269 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6270 if test -z "$CXXCPP"; then
6271 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 # Double quotes because CXXCPP needs to be expanded
6275 for CXXCPP in "$CXX -E" "/lib/cpp"
6278 for ac_cxx_preproc_warn_flag in '' yes
6280 # Use a header file that comes with gcc, so configuring glibc
6281 # with a fresh cross-compiler works.
6282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6283 # <limits.h> exists even on freestanding compilers.
6284 # On the NeXT, cc -E runs the code through the compiler's parser,
6285 # not just through cpp. "Syntax error" is here to catch this case.
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6293 # include <limits.h>
6295 # include <assert.h>
6299 if { (ac_try="$ac_cpp conftest.$ac_ext"
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } >/dev/null; then
6312 if test -s conftest.err; then
6313 ac_cpp_err=$ac_cxx_preproc_warn_flag
6314 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6321 if test -z "$ac_cpp_err"; then
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 # Broken: fails on valid input.
6331 rm -f conftest.err conftest.$ac_ext
6333 # OK, works on sane cases. Now check whether nonexistent headers
6334 # can be detected and how.
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <ac_nonexistent.h>
6343 if { (ac_try="$ac_cpp conftest.$ac_ext"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351 grep -v '^ *+' conftest.er1 >conftest.err
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev/null; then
6356 if test -s conftest.err; then
6357 ac_cpp_err=$ac_cxx_preproc_warn_flag
6358 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6365 if test -z "$ac_cpp_err"; then
6366 # Broken: success on invalid input.
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 # Passes both tests.
6377 rm -f conftest.err conftest.$ac_ext
6380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6381 rm -f conftest.err conftest.$ac_ext
6382 if $ac_preproc_ok; then
6387 ac_cv_prog_CXXCPP=$CXXCPP
6390 CXXCPP=$ac_cv_prog_CXXCPP
6392 ac_cv_prog_CXXCPP=$CXXCPP
6394 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6395 echo "${ECHO_T}$CXXCPP" >&6; }
6397 for ac_cxx_preproc_warn_flag in '' yes
6399 # Use a header file that comes with gcc, so configuring glibc
6400 # with a fresh cross-compiler works.
6401 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6402 # <limits.h> exists even on freestanding compilers.
6403 # On the NeXT, cc -E runs the code through the compiler's parser,
6404 # not just through cpp. "Syntax error" is here to catch this case.
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6412 # include <limits.h>
6414 # include <assert.h>
6418 if { (ac_try="$ac_cpp conftest.$ac_ext"
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } >/dev/null; then
6431 if test -s conftest.err; then
6432 ac_cpp_err=$ac_cxx_preproc_warn_flag
6433 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6440 if test -z "$ac_cpp_err"; then
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 # Broken: fails on valid input.
6450 rm -f conftest.err conftest.$ac_ext
6452 # OK, works on sane cases. Now check whether nonexistent headers
6453 # can be detected and how.
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <ac_nonexistent.h>
6462 if { (ac_try="$ac_cpp conftest.$ac_ext"
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6470 grep -v '^ *+' conftest.er1 >conftest.err
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev/null; then
6475 if test -s conftest.err; then
6476 ac_cpp_err=$ac_cxx_preproc_warn_flag
6477 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6484 if test -z "$ac_cpp_err"; then
6485 # Broken: success on invalid input.
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 # Passes both tests.
6496 rm -f conftest.err conftest.$ac_ext
6499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6500 rm -f conftest.err conftest.$ac_ext
6501 if $ac_preproc_ok; then
6504 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6505 See \`config.log' for more details." >&5
6506 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6507 See \`config.log' for more details." >&2;}
6508 { (exit 1); exit 1; }; }
6512 ac_cpp='$CXXCPP $CPPFLAGS'
6513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6521 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6522 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6524 if test -n "$ac_tool_prefix"; then
6525 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_F77+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 if test -n "$F77"; then
6535 ac_cv_prog_F77="$F77" # Let the user override the test.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 if test -n "$F77"; then
6556 { echo "$as_me:$LINENO: result: $F77" >&5
6557 echo "${ECHO_T}$F77" >&6; }
6559 { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6564 test -n "$F77" && break
6567 if test -z "$F77"; then
6569 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6571 # Extract the first word of "$ac_prog", so it can be a program name with args.
6572 set dummy $ac_prog; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 if test -n "$ac_ct_F77"; then
6579 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_F77="$ac_prog"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6599 if test -n "$ac_ct_F77"; then
6600 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6601 echo "${ECHO_T}$ac_ct_F77" >&6; }
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6608 test -n "$ac_ct_F77" && break
6611 if test "x$ac_ct_F77" = x; then
6614 case $cross_compiling:$ac_tool_warned in
6616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6617 whose name does not start with the host triplet. If you think this
6618 configuration is useful to you, please write to autoconf@gnu.org." >&5
6619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6620 whose name does not start with the host triplet. If you think this
6621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6622 ac_tool_warned=yes ;;
6629 # Provide some information about the compiler.
6630 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6631 ac_compiler=`set X $ac_compile; echo $2`
6632 { (ac_try="$ac_compiler --version >&5"
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_compiler --version >&5") 2>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }
6642 { (ac_try="$ac_compiler -v >&5"
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_compiler -v >&5") 2>&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }
6652 { (ac_try="$ac_compiler -V >&5"
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_compiler -V >&5") 2>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }
6664 # If we don't use `.F' as extension, the preprocessor is not run on the
6665 # input file. (Note that this only needs to work for GNU compilers.)
6668 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6669 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6670 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 cat >conftest.$ac_ext <<_ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685 *) ac_try_echo=$ac_try;;
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688 (eval "$ac_compile") 2>conftest.er1
6690 grep -v '^ *+' conftest.er1 >conftest.err
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6696 { (case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_try") 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_try") 2>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6727 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6728 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6730 ac_test_FFLAGS=${FFLAGS+set}
6731 ac_save_FFLAGS=$FFLAGS
6733 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6734 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6735 if test "${ac_cv_prog_f77_g+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.$ac_ext <<_ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (ac_try="$ac_compile"
6747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6748 *) ac_try_echo=$ac_try;;
6750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751 (eval "$ac_compile") 2>conftest.er1
6753 grep -v '^ *+' conftest.er1 >conftest.err
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6759 { (case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_try") 2>&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; } &&
6768 { ac_try='test -s conftest.$ac_objext'
6769 { (case "(($ac_try" in
6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_try") 2>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_prog_f77_g=yes
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6790 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6791 if test "$ac_test_FFLAGS" = set; then
6792 FFLAGS=$ac_save_FFLAGS
6793 elif test $ac_cv_prog_f77_g = yes; then
6794 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6800 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6807 G77=`test $ac_compiler_gnu = yes && echo yes`
6809 ac_cpp='$CPP $CPPFLAGS'
6810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6816 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6818 # find the maximum length of command line arguments
6819 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6820 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6821 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 # On DJGPP, this test can blow up pretty badly due to problems in libc
6830 # (any single argument exceeding 2000 bytes causes a buffer overrun
6831 # during glob expansion). Even if it were fixed, the result of this
6832 # check would be larger than it should be.
6833 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6837 # Under GNU Hurd, this test is not required because there is
6838 # no limit to the length of command line arguments.
6839 # Libtool will interpret -1 as no limit whatsoever
6840 lt_cv_sys_max_cmd_len=-1;
6844 # On Win9x/ME, this test blows up -- it succeeds, but takes
6845 # about 5 minutes as the teststring grows exponentially.
6846 # Worse, since 9x/ME are not pre-emptively multitasking,
6847 # you end up with a "frozen" computer, even though with patience
6848 # the test eventually succeeds (with a max line length of 256k).
6849 # Instead, let's just punt: use the minimum linelength reported by
6850 # all of the supported platforms: 8192 (on NT/2K/XP).
6851 lt_cv_sys_max_cmd_len=8192;
6855 # On AmigaOS with pdksh, this test takes hours, literally.
6856 # So we just punt and use a minimum line length of 8192.
6857 lt_cv_sys_max_cmd_len=8192;
6860 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6861 # This has been around since 386BSD, at least. Likely further.
6862 if test -x /sbin/sysctl; then
6863 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6864 elif test -x /usr/sbin/sysctl; then
6865 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6867 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6869 # And add a safety zone
6870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6875 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6876 lt_cv_sys_max_cmd_len=196608
6880 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6881 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6882 # nice to cause kernel panics so lets avoid the loop below.
6883 # First set a reasonable default.
6884 lt_cv_sys_max_cmd_len=16384
6886 if test -x /sbin/sysconfig; then
6887 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6888 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6893 lt_cv_sys_max_cmd_len=102400
6895 sysv5* | sco5v6* | sysv4.2uw2*)
6896 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6897 if test -n "$kargmax"; then
6898 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6900 lt_cv_sys_max_cmd_len=32768
6904 # If test is not a shell built-in, we'll probably end up computing a
6905 # maximum length that is only half of the actual maximum length, but
6907 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6908 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6909 = "XX$teststring") >/dev/null 2>&1 &&
6910 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6911 lt_cv_sys_max_cmd_len=$new_result &&
6912 test $i != 17 # 1/2 MB should be enough
6915 teststring=$teststring$teststring
6918 # Add a significant safety factor because C++ compilers can tack on massive
6919 # amounts of additional arguments before passing them to the linker.
6920 # It appears as though 1/2 is a usable value.
6921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6927 if test -n $lt_cv_sys_max_cmd_len ; then
6928 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6929 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6931 { echo "$as_me:$LINENO: result: none" >&5
6932 echo "${ECHO_T}none" >&6; }
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6940 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6954 # Transform an extracted symbol line into a proper C declaration
6955 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6957 # Transform an extracted symbol line into symbol name and symbol address
6958 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'"
6960 # Define system-specific variables.
6965 cygwin* | mingw* | pw32*)
6966 symcode='[ABCDGISTW]'
6968 hpux*) # Its linker distinguishes data from code symbols
6969 if test "$host_cpu" = ia64; then
6970 symcode='[ABCDEGRST]'
6972 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6973 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'"
6976 if test "$host_cpu" = ia64; then
6977 symcode='[ABCDGIRSTW]'
6978 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6979 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'"
6983 symcode='[BCDEGRST]'
6986 symcode='[BCDEGQRST]'
6997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7005 # Handle CRLF in mingw tool chain
7009 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7013 # If we're using GNU nm, then use its standard symbol codes.
7014 case `$NM -V 2>&1` in
7015 *GNU* | *'with BFD'*)
7016 symcode='[ABCDGIRSTW]' ;;
7019 # Try without a prefix undercore, then with it.
7020 for ac_symprfx in "" "_"; do
7022 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7023 symxfrm="\\1 $ac_symprfx\\2 \\2"
7025 # Write the raw and C identifiers.
7026 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7028 # Check to see that the pipe works correctly.
7032 cat > conftest.$ac_ext <<EOF
7037 void nm_test_func(){}
7041 int main(){nm_test_var='a';nm_test_func();return(0);}
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045 (eval $ac_compile) 2>&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; then
7049 # Now try to grab the symbols.
7051 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7052 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && test -s "$nlist"; then
7056 # Try sorting and uniquifying the output.
7057 if sort "$nlist" | uniq > "$nlist"T; then
7058 mv -f "$nlist"T "$nlist"
7063 # Make sure that we snagged all the symbols we need.
7064 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7065 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7066 cat <<EOF > conftest.$ac_ext
7072 # Now generate the symbol file.
7073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7075 cat <<EOF >> conftest.$ac_ext
7076 #if defined (__STDC__) && __STDC__
7077 # define lt_ptr_t void *
7079 # define lt_ptr_t char *
7083 /* The mapping between symbol names and symbols. */
7088 lt_preloaded_symbols[] =
7091 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7092 cat <<\EOF >> conftest.$ac_ext
7100 # Now try linking the two files.
7101 mv conftest.$ac_objext conftstm.$ac_objext
7102 lt_save_LIBS="$LIBS"
7103 lt_save_CFLAGS="$CFLAGS"
7104 LIBS="conftstm.$ac_objext"
7105 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107 (eval $ac_link) 2>&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7113 LIBS="$lt_save_LIBS"
7114 CFLAGS="$lt_save_CFLAGS"
7116 echo "cannot find nm_test_func in $nlist" >&5
7119 echo "cannot find nm_test_var in $nlist" >&5
7122 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7125 echo "$progname: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7128 rm -f conftest* conftst*
7130 # Do not use the global_symbol_pipe unless it works.
7131 if test "$pipe_works" = yes; then
7134 lt_cv_sys_global_symbol_pipe=
7140 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7141 lt_cv_sys_global_symbol_to_cdecl=
7143 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7144 { echo "$as_me:$LINENO: result: failed" >&5
7145 echo "${ECHO_T}failed" >&6; }
7147 { echo "$as_me:$LINENO: result: ok" >&5
7148 echo "${ECHO_T}ok" >&6; }
7151 { echo "$as_me:$LINENO: checking for objdir" >&5
7152 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7153 if test "${lt_cv_objdir+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 rm -f .libs 2>/dev/null
7157 mkdir .libs 2>/dev/null
7158 if test -d .libs; then
7161 # MS-DOS does not allow filenames that begin with a dot.
7164 rmdir .libs 2>/dev/null
7166 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7167 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7168 objdir=$lt_cv_objdir
7176 # AIX sometimes has problems with the GCC collect2 program. For some
7177 # reason, if we set the COLLECT_NAMES environment variable, the problems
7178 # vanish in a puff of smoke.
7179 if test "X${COLLECT_NAMES+set}" != Xset; then
7181 export COLLECT_NAMES
7186 # Sed substitution that helps us do robust quoting. It backslashifies
7187 # metacharacters that are still active within double-quoted strings.
7188 Xsed='sed -e 1s/^X//'
7189 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7191 # Same as above, but do not quote variable references.
7192 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7194 # Sed substitution to delay expansion of an escaped shell variable in a
7195 # double_quote_subst'ed string.
7196 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7198 # Sed substitution to avoid accidental globbing in evaled expressions
7199 no_glob_subst='s/\*/\\\*/g'
7205 default_ofile=libtool
7206 can_build_shared=yes
7208 # All known linkers require a `.a' archive for static linking (except MSVC,
7209 # which needs '.lib').
7211 ltmain="$ac_aux_dir/ltmain.sh"
7212 ofile="$default_ofile"
7213 with_gnu_ld="$lt_cv_prog_gnu_ld"
7215 if test -n "$ac_tool_prefix"; then
7216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7217 set dummy ${ac_tool_prefix}ar; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_prog_AR+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 if test -n "$AR"; then
7224 ac_cv_prog_AR="$AR" # Let the user override the test.
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_prog_AR="${ac_tool_prefix}ar"
7234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 if test -n "$AR"; then
7245 { echo "$as_me:$LINENO: result: $AR" >&5
7246 echo "${ECHO_T}$AR" >&6; }
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7254 if test -z "$ac_cv_prog_AR"; then
7256 # Extract the first word of "ar", so it can be a program name with args.
7257 set dummy ar; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 if test -n "$ac_ct_AR"; then
7264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7273 ac_cv_prog_ac_ct_AR="ar"
7274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7284 if test -n "$ac_ct_AR"; then
7285 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7286 echo "${ECHO_T}$ac_ct_AR" >&6; }
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7292 if test "x$ac_ct_AR" = x; then
7295 case $cross_compiling:$ac_tool_warned in
7297 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7298 whose name does not start with the host triplet. If you think this
7299 configuration is useful to you, please write to autoconf@gnu.org." >&5
7300 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7301 whose name does not start with the host triplet. If you think this
7302 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7303 ac_tool_warned=yes ;;
7311 if test -n "$ac_tool_prefix"; then
7312 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7313 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_prog_RANLIB+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 if test -n "$RANLIB"; then
7320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 RANLIB=$ac_cv_prog_RANLIB
7340 if test -n "$RANLIB"; then
7341 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7342 echo "${ECHO_T}$RANLIB" >&6; }
7344 { echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6; }
7350 if test -z "$ac_cv_prog_RANLIB"; then
7351 ac_ct_RANLIB=$RANLIB
7352 # Extract the first word of "ranlib", so it can be a program name with args.
7353 set dummy ranlib; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 if test -n "$ac_ct_RANLIB"; then
7360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_ac_ct_RANLIB="ranlib"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7380 if test -n "$ac_ct_RANLIB"; then
7381 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7382 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7388 if test "x$ac_ct_RANLIB" = x; then
7391 case $cross_compiling:$ac_tool_warned in
7393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7394 whose name does not start with the host triplet. If you think this
7395 configuration is useful to you, please write to autoconf@gnu.org." >&5
7396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7397 whose name does not start with the host triplet. If you think this
7398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7399 ac_tool_warned=yes ;;
7401 RANLIB=$ac_ct_RANLIB
7404 RANLIB="$ac_cv_prog_RANLIB"
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}strip; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_prog_STRIP+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 if test -n "$STRIP"; then
7416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 STRIP=$ac_cv_prog_STRIP
7436 if test -n "$STRIP"; then
7437 { echo "$as_me:$LINENO: result: $STRIP" >&5
7438 echo "${ECHO_T}$STRIP" >&6; }
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7446 if test -z "$ac_cv_prog_STRIP"; then
7448 # Extract the first word of "strip", so it can be a program name with args.
7449 set dummy strip; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 if test -n "$ac_ct_STRIP"; then
7456 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_prog_ac_ct_STRIP="strip"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7476 if test -n "$ac_ct_STRIP"; then
7477 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7478 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7480 { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7484 if test "x$ac_ct_STRIP" = x; then
7487 case $cross_compiling:$ac_tool_warned in
7489 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7490 whose name does not start with the host triplet. If you think this
7491 configuration is useful to you, please write to autoconf@gnu.org." >&5
7492 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7493 whose name does not start with the host triplet. If you think this
7494 configuration is useful to you, please write to autoconf@gnu.org." >&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$old_deplibs'
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 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7558 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7611 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7613 { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7617 if test -z "$lt_cv_path_MAGIC_CMD"; then
7618 if test -n "$ac_tool_prefix"; then
7619 { echo "$as_me:$LINENO: checking for file" >&5
7620 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7621 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7673 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7675 { echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6; }
7691 # Check whether --enable-libtool-lock was given.
7692 if test "${enable_libtool_lock+set}" = set; then
7693 enableval=$enable_libtool_lock;
7696 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7699 # Check whether --with-pic was given.
7700 if test "${with_pic+set}" = set; then
7701 withval=$with_pic; pic_mode="$withval"
7706 test -z "$pic_mode" && pic_mode=default
7708 # Use C for the default configuration in the libtool script
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718 # Source file extension for C test sources.
7721 # Object file extension for compiled C test sources.
7725 # Code to be used in simple compile tests
7726 lt_simple_compile_test_code="int some_variable = 0;\n"
7728 # Code to be used in simple link tests
7729 lt_simple_link_test_code='int main(){return(0);}\n'
7732 # If no C compiler was specified, use CC.
7735 # If no C compiler flags were specified, use CFLAGS.
7736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7738 # Allow CC to be a program name with arguments.
7742 # save warnings/boilerplate of simple test code
7743 ac_outfile=conftest.$ac_objext
7744 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7746 _lt_compiler_boilerplate=`cat conftest.err`
7749 ac_outfile=conftest.$ac_objext
7750 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7752 _lt_linker_boilerplate=`cat conftest.err`
7757 ## There is no encapsulation within the following macros, do not change
7758 ## the running order or otherwise move them around unless you know exactly
7759 ## what you are doing...
7761 lt_prog_compiler_no_builtin_flag=
7763 if test "$GCC" = yes; then
7764 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7767 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7768 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7769 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 lt_cv_prog_compiler_rtti_exceptions=no
7773 ac_outfile=conftest.$ac_objext
7774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7775 lt_compiler_flag="-fno-rtti -fno-exceptions"
7776 # Insert the option either (1) after the last *FLAGS variable, or
7777 # (2) before a word containing "conftest.", or (3) at the end.
7778 # Note that $ac_compile itself does not contain backslashes and begins
7779 # with a dollar sign (not a hyphen), so the echo should work correctly.
7780 # The option is referenced via a variable to avoid confusing sed.
7781 lt_compile=`echo "$ac_compile" | $SED \
7782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7784 -e 's:$: $lt_compiler_flag:'`
7785 (eval echo "\"\$as_me:7785: $lt_compile\"" >&5)
7786 (eval "$lt_compile" 2>conftest.err)
7788 cat conftest.err >&5
7789 echo "$as_me:7789: \$? = $ac_status" >&5
7790 if (exit $ac_status) && test -s "$ac_outfile"; then
7791 # The compiler can only warn and ignore the option if not recognized
7792 # So say no if there are warnings other than the usual output.
7793 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7796 lt_cv_prog_compiler_rtti_exceptions=yes
7802 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7803 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7805 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7806 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7813 lt_prog_compiler_wl=
7814 lt_prog_compiler_pic=
7815 lt_prog_compiler_static=
7817 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7818 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7820 if test "$GCC" = yes; then
7821 lt_prog_compiler_wl='-Wl,'
7822 lt_prog_compiler_static='-static'
7826 # All AIX code is PIC.
7827 if test "$host_cpu" = ia64; then
7828 # AIX 5 now supports IA64 processor
7829 lt_prog_compiler_static='-Bstatic'
7834 # FIXME: we need at least 68020 code to build shared libraries, but
7835 # adding the `-m68020' flag to GCC prevents building anything better,
7837 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7840 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7841 # PIC is the default for these OSes.
7844 mingw* | pw32* | os2*)
7845 # This hack is so that the source file can tell whether it is being
7846 # built for inclusion in a dll (and should export symbols for example).
7847 lt_prog_compiler_pic='-DDLL_EXPORT'
7850 darwin* | rhapsody*)
7851 # PIC is the default on this platform
7852 # Common symbols not allowed in MH_DYLIB files
7853 lt_prog_compiler_pic='-fno-common'
7857 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7858 # Instead, we relocate shared libraries at runtime.
7862 # Just because we use GCC doesn't mean we suddenly get shared libraries
7863 # on systems that don't support them.
7864 lt_prog_compiler_can_build_shared=no
7869 if test -d /usr/nec; then
7870 lt_prog_compiler_pic=-Kconform_pic
7875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7882 lt_prog_compiler_pic='-fPIC'
7888 lt_prog_compiler_pic='-fPIC'
7892 # PORTME Check for flag to pass linker flags through the system compiler.
7895 lt_prog_compiler_wl='-Wl,'
7896 if test "$host_cpu" = ia64; then
7897 # AIX 5 now supports IA64 processor
7898 lt_prog_compiler_static='-Bstatic'
7900 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7904 # PIC is the default on this platform
7905 # Common symbols not allowed in MH_DYLIB files
7906 case $cc_basename in
7908 lt_prog_compiler_pic='-qnocommon'
7909 lt_prog_compiler_wl='-Wl,'
7914 mingw* | pw32* | os2*)
7915 # This hack is so that the source file can tell whether it is being
7916 # built for inclusion in a dll (and should export symbols for example).
7917 lt_prog_compiler_pic='-DDLL_EXPORT'
7920 hpux9* | hpux10* | hpux11*)
7921 lt_prog_compiler_wl='-Wl,'
7922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7929 lt_prog_compiler_pic='+Z'
7932 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7933 lt_prog_compiler_static='${wl}-a ${wl}archive'
7936 irix5* | irix6* | nonstopux*)
7937 lt_prog_compiler_wl='-Wl,'
7938 # PIC (with -KPIC) is the default.
7939 lt_prog_compiler_static='-non_shared'
7943 lt_prog_compiler_pic='-KPIC'
7944 lt_prog_compiler_static='-Bstatic'
7948 case $cc_basename in
7950 lt_prog_compiler_wl='-Wl,'
7951 lt_prog_compiler_pic='-KPIC'
7952 lt_prog_compiler_static='-static'
7954 pgcc* | pgf77* | pgf90* | pgf95*)
7955 # Portland Group compilers (*not* the Pentium gcc compiler,
7956 # which looks to be a dead project)
7957 lt_prog_compiler_wl='-Wl,'
7958 lt_prog_compiler_pic='-fpic'
7959 lt_prog_compiler_static='-Bstatic'
7962 lt_prog_compiler_wl='-Wl,'
7963 # All Alpha code is PIC.
7964 lt_prog_compiler_static='-non_shared'
7969 osf3* | osf4* | osf5*)
7970 lt_prog_compiler_wl='-Wl,'
7971 # All OSF/1 code is PIC.
7972 lt_prog_compiler_static='-non_shared'
7976 lt_prog_compiler_pic='-KPIC'
7977 lt_prog_compiler_static='-Bstatic'
7978 case $cc_basename in
7980 lt_prog_compiler_wl='-Qoption ld ';;
7982 lt_prog_compiler_wl='-Wl,';;
7987 lt_prog_compiler_wl='-Qoption ld '
7988 lt_prog_compiler_pic='-PIC'
7989 lt_prog_compiler_static='-Bstatic'
7992 sysv4 | sysv4.2uw2* | sysv4.3*)
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
7999 if test -d /usr/nec ;then
8000 lt_prog_compiler_pic='-Kconform_pic'
8001 lt_prog_compiler_static='-Bstatic'
8005 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8012 lt_prog_compiler_wl='-Wl,'
8013 lt_prog_compiler_can_build_shared=no
8017 lt_prog_compiler_pic='-pic'
8018 lt_prog_compiler_static='-Bstatic'
8022 lt_prog_compiler_can_build_shared=no
8027 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8028 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8031 # Check to make sure the PIC flag actually works.
8033 if test -n "$lt_prog_compiler_pic"; then
8035 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8036 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8037 if test "${lt_prog_compiler_pic_works+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 lt_prog_compiler_pic_works=no
8041 ac_outfile=conftest.$ac_objext
8042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8043 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8044 # Insert the option either (1) after the last *FLAGS variable, or
8045 # (2) before a word containing "conftest.", or (3) at the end.
8046 # Note that $ac_compile itself does not contain backslashes and begins
8047 # with a dollar sign (not a hyphen), so the echo should work correctly.
8048 # The option is referenced via a variable to avoid confusing sed.
8049 lt_compile=`echo "$ac_compile" | $SED \
8050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052 -e 's:$: $lt_compiler_flag:'`
8053 (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054 (eval "$lt_compile" 2>conftest.err)
8056 cat conftest.err >&5
8057 echo "$as_me:8057: \$? = $ac_status" >&5
8058 if (exit $ac_status) && test -s "$ac_outfile"; then
8059 # The compiler can only warn and ignore the option if not recognized
8060 # So say no if there are warnings other than the usual output.
8061 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8064 lt_prog_compiler_pic_works=yes
8070 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8071 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8073 if test x"$lt_prog_compiler_pic_works" = xyes; then
8074 case $lt_prog_compiler_pic in
8076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8079 lt_prog_compiler_pic=
8080 lt_prog_compiler_can_build_shared=no
8085 # For platforms which do not support PIC, -DPIC is meaningless:
8087 lt_prog_compiler_pic=
8090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8095 # Check to make sure the static flag actually works.
8097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8098 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8099 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8100 if test "${lt_prog_compiler_static_works+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 lt_prog_compiler_static_works=no
8104 save_LDFLAGS="$LDFLAGS"
8105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8106 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8108 # The linker can only warn and ignore the option if not recognized
8109 # So say no if there are warnings
8110 if test -s conftest.err; then
8111 # Append any errors to the config.log.
8112 cat conftest.err 1>&5
8113 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115 if diff conftest.exp conftest.er2 >/dev/null; then
8116 lt_prog_compiler_static_works=yes
8119 lt_prog_compiler_static_works=yes
8123 LDFLAGS="$save_LDFLAGS"
8126 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8127 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8129 if test x"$lt_prog_compiler_static_works" = xyes; then
8132 lt_prog_compiler_static=
8136 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8137 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8138 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 lt_cv_prog_compiler_c_o=no
8142 $rm -r conftest 2>/dev/null
8146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8148 lt_compiler_flag="-o out/conftest2.$ac_objext"
8149 # Insert the option either (1) after the last *FLAGS variable, or
8150 # (2) before a word containing "conftest.", or (3) at the end.
8151 # Note that $ac_compile itself does not contain backslashes and begins
8152 # with a dollar sign (not a hyphen), so the echo should work correctly.
8153 lt_compile=`echo "$ac_compile" | $SED \
8154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8156 -e 's:$: $lt_compiler_flag:'`
8157 (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
8158 (eval "$lt_compile" 2>out/conftest.err)
8160 cat out/conftest.err >&5
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8164 # The compiler can only warn and ignore the option if not recognized
8165 # So say no if there are warnings
8166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8169 lt_cv_prog_compiler_c_o=yes
8174 # SGI C++ compiler will create directory out/ii_files/ for
8175 # template instantiation
8176 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8177 $rm out/* && rmdir out
8183 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8184 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8187 hard_links="nottested"
8188 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8189 # do not overwrite the value of need_locks provided by the user
8190 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8191 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8196 ln conftest.a conftest.b 2>&5 || hard_links=no
8197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8198 { echo "$as_me:$LINENO: result: $hard_links" >&5
8199 echo "${ECHO_T}$hard_links" >&6; }
8200 if test "$hard_links" = no; then
8201 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8202 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8209 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8213 allow_undefined_flag=
8214 enable_shared_with_static_runtimes=no
8216 archive_expsym_cmds=
8217 old_archive_From_new_cmds=
8218 old_archive_from_expsyms_cmds=
8219 export_dynamic_flag_spec=
8220 whole_archive_flag_spec=
8221 thread_safe_flag_spec=
8222 hardcode_libdir_flag_spec=
8223 hardcode_libdir_flag_spec_ld=
8224 hardcode_libdir_separator=
8227 hardcode_shlibpath_var=unsupported
8228 link_all_deplibs=unknown
8229 hardcode_automatic=no
8232 always_export_symbols=no
8233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8234 # include_expsyms should be a list of space-separated symbols to be *always*
8235 # included in the symbol list
8237 # exclude_expsyms can be an extended regexp of symbols to exclude
8238 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8239 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8240 # as well as any symbol that contains `d'.
8241 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8242 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8243 # platforms (ab)use it in PIC code, but their linkers get confused if
8244 # the symbol is explicitly referenced. Since portable code cannot
8245 # rely on this symbol name, it's probably fine to never include it in
8246 # preloaded symbol tables.
8247 extract_expsyms_cmds=
8248 # Just being paranoid about ensuring that cc_basename is set.
8249 for cc_temp in $compiler""; do
8251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8260 cygwin* | mingw* | pw32*)
8261 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8262 # When not using gcc, we currently assume that we are using
8263 # Microsoft Visual C++.
8264 if test "$GCC" != yes; then
8269 # we just hope/assume this is gcc and not c89 (= MSVC++)
8278 if test "$with_gnu_ld" = yes; then
8279 # If archive_cmds runs LD, not CC, wlarc should be empty
8282 # Set some defaults for GNU ld with shared library support. These
8283 # are reset later if shared libraries are not supported. Putting them
8284 # here allows them to be overridden if necessary.
8285 runpath_var=LD_RUN_PATH
8286 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8287 export_dynamic_flag_spec='${wl}--export-dynamic'
8288 # ancient GNU ld didn't support --whole-archive et. al.
8289 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8290 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8292 whole_archive_flag_spec=
8294 supports_anon_versioning=no
8295 case `$LD -v 2>/dev/null` in
8296 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8297 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8298 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8299 *\ 2.11.*) ;; # other 2.11 versions
8300 *) supports_anon_versioning=yes ;;
8303 # See if GNU ld supports shared libraries.
8305 aix3* | aix4* | aix5*)
8306 # On AIX/PPC, the GNU linker is very broken
8307 if test "$host_cpu" != ia64; then
8311 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8312 *** to be unable to reliably create shared libraries on AIX.
8313 *** Therefore, libtool is disabling shared libraries support. If you
8314 *** really care for shared libraries, you may want to modify your PATH
8315 *** so that a non-GNU linker is found, and then restart.
8322 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)'
8323 hardcode_libdir_flag_spec='-L$libdir'
8324 hardcode_minus_L=yes
8326 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8327 # that the semantics of dynamic libraries on AmigaOS, at least up
8328 # to version 4, is to share data among multiple programs linked
8329 # with the same dynamic library. Since this doesn't match the
8330 # behavior of shared libraries on other platforms, we can't use
8336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8337 allow_undefined_flag=unsupported
8338 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8339 # support --undefined. This deserves some investigation. FIXME
8340 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346 cygwin* | mingw* | pw32*)
8347 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8348 # as there is no search path for DLLs.
8349 hardcode_libdir_flag_spec='-L$libdir'
8350 allow_undefined_flag=unsupported
8351 always_export_symbols=no
8352 enable_shared_with_static_runtimes=yes
8353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8355 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8357 # If the export-symbols file already is a .def file (1st line
8358 # is EXPORTS), use it as is; otherwise, prepend...
8359 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8360 cp $export_symbols $output_objdir/$soname.def;
8362 echo EXPORTS > $output_objdir/$soname.def;
8363 cat $export_symbols >> $output_objdir/$soname.def;
8365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8373 hardcode_shlibpath_var=no
8374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8375 export_dynamic_flag_spec='${wl}-E'
8376 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8377 # Instead, shared libraries are loaded at an image base (0x10000000 by
8378 # default) and relocated if they conflict, which is a slow very memory
8379 # consuming and fragmenting process. To avoid this, we pick a random,
8380 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8381 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8382 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8383 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'
8387 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8389 case $cc_basename,$host_cpu in
8390 pgcc*) # Portland Group C compiler
8391 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'
8392 tmp_addflag=' $pic_flag'
8394 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8395 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'
8396 tmp_addflag=' $pic_flag -Mnomain' ;;
8397 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8398 tmp_addflag=' -i_dynamic' ;;
8399 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8400 tmp_addflag=' -i_dynamic -nofor_main' ;;
8401 ifc* | ifort*) # Intel Fortran compiler
8402 tmp_addflag=' -nofor_main' ;;
8404 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8406 if test $supports_anon_versioning = yes; then
8407 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8409 $echo "local: *; };" >> $output_objdir/$libname.ver~
8410 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8419 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8432 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8433 *** create shared libraries on Solaris systems. Therefore, libtool
8434 *** is disabling shared libraries support. We urge you to upgrade GNU
8435 *** binutils to release 2.9.1 or newer. Another option is to modify
8436 *** your PATH or compiler configuration so that the native linker is
8437 *** used, and then restart.
8440 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8449 case `$LD -v 2>&1` in
8450 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8454 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8455 *** reliably create shared libraries on SCO systems. Therefore, libtool
8456 *** is disabling shared libraries support. We urge you to upgrade GNU
8457 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8458 *** your PATH or compiler configuration so that the native linker is
8459 *** used, and then restart.
8464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8465 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8476 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8479 hardcode_shlibpath_var=no
8483 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8492 if test "$ld_shlibs" = no; then
8494 hardcode_libdir_flag_spec=
8495 export_dynamic_flag_spec=
8496 whole_archive_flag_spec=
8499 # PORTME fill in a description of your system's linker (not GNU ld)
8502 allow_undefined_flag=unsupported
8503 always_export_symbols=yes
8504 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'
8505 # Note: this linker hardcodes the directories in LIBPATH if there
8506 # are no directories specified by -L.
8507 hardcode_minus_L=yes
8508 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8509 # Neither direct hardcoding nor static linking is supported with a
8511 hardcode_direct=unsupported
8516 if test "$host_cpu" = ia64; then
8517 # On IA64, the linker does run time linking by default, so we don't
8518 # have to do anything special.
8519 aix_use_runtimelinking=no
8520 exp_sym_flag='-Bexport'
8523 # If we're using GNU nm, then we don't want the "-C" option.
8524 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8525 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8526 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'
8528 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'
8530 aix_use_runtimelinking=no
8532 # Test if we are trying to use run time linking or normal
8533 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8534 # need to do runtime linking.
8535 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8536 for ld_flag in $LDFLAGS; do
8537 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8538 aix_use_runtimelinking=yes
8545 exp_sym_flag='-bexport'
8546 no_entry_flag='-bnoentry'
8549 # When large executables or shared objects are built, AIX ld can
8550 # have problems creating the table of contents. If linking a library
8551 # or program results in "error TOC overflow" add -mminimal-toc to
8552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8557 hardcode_libdir_separator=':'
8558 link_all_deplibs=yes
8560 if test "$GCC" = yes; then
8561 case $host_os in aix4.[012]|aix4.[012].*)
8562 # We only want to do this on AIX 4.2 and lower, the check
8563 # below for broken collect2 doesn't work under 4.3+
8564 collect2name=`${CC} -print-prog-name=collect2`
8565 if test -f "$collect2name" && \
8566 strings "$collect2name" | grep resolve_lib_name >/dev/null
8568 # We have reworked collect2
8571 # We have old collect2
8572 hardcode_direct=unsupported
8573 # It fails to find uninstalled libraries when the uninstalled
8574 # path is not listed in the libpath. Setting hardcode_minus_L
8575 # to unsupported forces relinking
8576 hardcode_minus_L=yes
8577 hardcode_libdir_flag_spec='-L$libdir'
8578 hardcode_libdir_separator=
8582 shared_flag='-shared'
8583 if test "$aix_use_runtimelinking" = yes; then
8584 shared_flag="$shared_flag "'${wl}-G'
8588 if test "$host_cpu" = ia64; then
8589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8590 # chokes on -Wl,-G. The following line is correct:
8593 if test "$aix_use_runtimelinking" = yes; then
8594 shared_flag='${wl}-G'
8596 shared_flag='${wl}-bM:SRE'
8601 # It seems that -bexpall does not export symbols beginning with
8602 # underscore (_), so it is better to generate a list of symbols to export.
8603 always_export_symbols=yes
8604 if test "$aix_use_runtimelinking" = yes; then
8605 # Warning - without using the other runtime loading flags (-brtl),
8606 # -berok will link without error, but may produce a broken library.
8607 allow_undefined_flag='-berok'
8608 # Determine the default libpath from the value encoded in an empty executable.
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_link") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8661 # Check for a 64-bit object if we didn't find anything.
8662 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8671 rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8676 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"
8678 if test "$host_cpu" = ia64; then
8679 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8680 allow_undefined_flag="-z nodefs"
8681 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"
8683 # Determine the default libpath from the value encoded in an empty executable.
8684 cat >conftest.$ac_ext <<_ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (ac_try="$ac_link"
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_link") 2>conftest.er1
8708 grep -v '^ *+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_try") 2>&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8736 # Check for a 64-bit object if we didn't find anything.
8737 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8746 rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8750 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8751 # Warning - without using the other run time loading flags,
8752 # -berok will link without error, but may produce a broken library.
8753 no_undefined_flag=' ${wl}-bernotok'
8754 allow_undefined_flag=' ${wl}-berok'
8755 # Exported symbols can be pulled into shared objects from archives
8756 whole_archive_flag_spec='$convenience'
8757 archive_cmds_need_lc=yes
8758 # This is similar to how AIX traditionally builds its shared libraries.
8759 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'
8765 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)'
8766 hardcode_libdir_flag_spec='-L$libdir'
8767 hardcode_minus_L=yes
8768 # see comment about different semantics on the GNU ld section
8773 export_dynamic_flag_spec=-rdynamic
8776 cygwin* | mingw* | pw32*)
8777 # When not using gcc, we currently assume that we are using
8778 # Microsoft Visual C++.
8779 # hardcode_libdir_flag_spec is actually meaningless, as there is
8780 # no search path for DLLs.
8781 hardcode_libdir_flag_spec=' '
8782 allow_undefined_flag=unsupported
8783 # Tell ltmain to make .lib files, not .a files.
8785 # Tell ltmain to make .dll files, not .so files.
8787 # FIXME: Setting linknames here is a bad hack.
8788 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8789 # The linker will automatically build a .lib file if we build a DLL.
8790 old_archive_From_new_cmds='true'
8791 # FIXME: Should let the user specify the lib program.
8792 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8793 fix_srcfile_path='`cygpath -w "$srcfile"`'
8794 enable_shared_with_static_runtimes=yes
8797 darwin* | rhapsody*)
8799 rhapsody* | darwin1.[012])
8800 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8803 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8804 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8806 case ${MACOSX_DEPLOYMENT_TARGET} in
8808 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8811 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8817 archive_cmds_need_lc=no
8819 hardcode_automatic=yes
8820 hardcode_shlibpath_var=unsupported
8821 whole_archive_flag_spec=''
8822 link_all_deplibs=yes
8823 if test "$GCC" = yes ; then
8824 output_verbose_link_cmd='echo'
8825 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8826 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8828 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8829 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}'
8831 case $cc_basename in
8833 output_verbose_link_cmd='echo'
8834 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8835 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8837 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8838 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}'
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_libdir_flag_spec='-L$libdir'
8850 hardcode_shlibpath_var=no
8857 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8858 # support. Future versions do this automatically, but an explicit c++rt0.o
8859 # does not break anything, and helps significantly (at the cost of a little
8862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8863 hardcode_libdir_flag_spec='-R$libdir'
8865 hardcode_shlibpath_var=no
8868 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8872 hardcode_minus_L=yes
8873 hardcode_shlibpath_var=no
8876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8877 freebsd* | kfreebsd*-gnu | dragonfly*)
8878 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8879 hardcode_libdir_flag_spec='-R$libdir'
8881 hardcode_shlibpath_var=no
8885 if test "$GCC" = yes; then
8886 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'
8888 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'
8890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8891 hardcode_libdir_separator=:
8894 # hardcode_minus_L: Not really in the search PATH,
8895 # but as the default location of the library.
8896 hardcode_minus_L=yes
8897 export_dynamic_flag_spec='${wl}-E'
8901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8904 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8906 if test "$with_gnu_ld" = no; then
8907 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8908 hardcode_libdir_separator=:
8911 export_dynamic_flag_spec='${wl}-E'
8913 # hardcode_minus_L: Not really in the search PATH,
8914 # but as the default location of the library.
8915 hardcode_minus_L=yes
8920 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8923 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8929 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8938 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8945 if test "$with_gnu_ld" = no; then
8946 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8947 hardcode_libdir_separator=:
8951 hardcode_libdir_flag_spec_ld='+b $libdir'
8953 hardcode_shlibpath_var=no
8957 export_dynamic_flag_spec='${wl}-E'
8959 # hardcode_minus_L: Not really in the search PATH,
8960 # but as the default location of the library.
8961 hardcode_minus_L=yes
8967 irix5* | irix6* | nonstopux*)
8968 if test "$GCC" = yes; then
8969 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'
8971 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'
8972 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975 hardcode_libdir_separator=:
8976 link_all_deplibs=yes
8980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8983 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8985 hardcode_libdir_flag_spec='-R$libdir'
8987 hardcode_shlibpath_var=no
8991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994 hardcode_libdir_separator=:
8995 hardcode_shlibpath_var=no
9000 hardcode_shlibpath_var=no
9001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9003 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9005 export_dynamic_flag_spec='${wl}-E'
9008 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_libdir_flag_spec='-R$libdir'
9013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9014 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 hardcode_minus_L=yes
9023 allow_undefined_flag=unsupported
9024 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'
9025 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9029 if test "$GCC" = yes; then
9030 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9031 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'
9033 allow_undefined_flag=' -expect_unresolved \*'
9034 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'
9036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9037 hardcode_libdir_separator=:
9040 osf4* | osf5*) # as osf3* with the addition of -msym flag
9041 if test "$GCC" = yes; then
9042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9043 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'
9044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9046 allow_undefined_flag=' -expect_unresolved \*'
9047 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'
9048 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9049 $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'
9051 # Both c and cxx compiler support -rpath directly
9052 hardcode_libdir_flag_spec='-rpath $libdir'
9054 hardcode_libdir_separator=:
9058 no_undefined_flag=' -z text'
9059 if test "$GCC" = yes; then
9061 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9063 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9066 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9068 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9070 hardcode_libdir_flag_spec='-R$libdir'
9071 hardcode_shlibpath_var=no
9073 solaris2.[0-5] | solaris2.[0-5].*) ;;
9075 # The compiler driver will combine linker options so we
9076 # cannot just pass the convience library names through
9077 # without $wl, iff we do not link with $LD.
9078 # Luckily, gcc supports the same syntax we need for Sun Studio.
9079 # Supported since Solaris 2.6 (maybe 2.5.1?)
9082 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9084 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9087 link_all_deplibs=yes
9091 if test "x$host_vendor" = xsequent; then
9092 # Use $CC to link under sequent, because it throws in some extra .o
9093 # files that make .init and .fini sections work.
9094 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9096 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-L$libdir'
9100 hardcode_minus_L=yes
9101 hardcode_shlibpath_var=no
9105 case $host_vendor in
9107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_direct=yes # is this really true???
9111 ## LD is ld it makes a PLAMLIB
9112 ## CC just makes a GrossModule.
9113 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9114 reload_cmds='$CC -r -o $output$reload_objs'
9118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9122 runpath_var='LD_RUN_PATH'
9123 hardcode_shlibpath_var=no
9127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9128 hardcode_shlibpath_var=no
9129 export_dynamic_flag_spec='-Bexport'
9133 if test -d /usr/nec; then
9134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9135 hardcode_shlibpath_var=no
9136 runpath_var=LD_RUN_PATH
9137 hardcode_runpath_var=yes
9142 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9143 no_undefined_flag='${wl}-z,text'
9144 archive_cmds_need_lc=no
9145 hardcode_shlibpath_var=no
9146 runpath_var='LD_RUN_PATH'
9148 if test "$GCC" = yes; then
9149 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157 sysv5* | sco3.2v5* | sco5v6*)
9158 # Note: We can NOT use -z defs as we might desire, because we do not
9159 # link with -lc, and that would cause any symbols used from libc to
9160 # always be unresolved, which means just about no library would
9161 # ever link correctly. If we're not using GNU ld we use -z text
9162 # though, which does catch some bad symbols but isn't as heavy-handed
9164 no_undefined_flag='${wl}-z,text'
9165 allow_undefined_flag='${wl}-z,nodefs'
9166 archive_cmds_need_lc=no
9167 hardcode_shlibpath_var=no
9168 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9169 hardcode_libdir_separator=':'
9170 link_all_deplibs=yes
9171 export_dynamic_flag_spec='${wl}-Bexport'
9172 runpath_var='LD_RUN_PATH'
9174 if test "$GCC" = yes; then
9175 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9185 hardcode_libdir_flag_spec='-L$libdir'
9186 hardcode_shlibpath_var=no
9195 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9196 echo "${ECHO_T}$ld_shlibs" >&6; }
9197 test "$ld_shlibs" = no && can_build_shared=no
9200 # Do we need to explicitly link libc?
9202 case "x$archive_cmds_need_lc" in
9204 # Assume -lc should be added
9205 archive_cmds_need_lc=yes
9207 if test "$enable_shared" = yes && test "$GCC" = yes; then
9208 case $archive_cmds in
9210 # FIXME: we may have to deal with multi-command sequences.
9213 # Test whether the compiler implicitly links with -lc since on some
9214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9215 # to ld, don't add -lc before -lgcc.
9216 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9217 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } 2>conftest.err; then
9228 libobjs=conftest.$ac_objext
9230 wl=$lt_prog_compiler_wl
9231 pic_flag=$lt_prog_compiler_pic
9237 lt_save_allow_undefined_flag=$allow_undefined_flag
9238 allow_undefined_flag=
9239 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9240 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }
9245 archive_cmds_need_lc=no
9247 archive_cmds_need_lc=yes
9249 allow_undefined_flag=$lt_save_allow_undefined_flag
9251 cat conftest.err 1>&5
9254 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9255 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9262 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9263 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9265 libname_spec='lib$name'
9273 shlibpath_overrides_runpath=unknown
9275 dynamic_linker="$host_os ld.so"
9276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9277 if test "$GCC" = yes; then
9278 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9279 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9280 # if the path contains ";" then we assume it to be the separator
9281 # otherwise default to the standard path separator (i.e. ":") - it is
9282 # assumed that no part of a normal pathname contains ";" but that should
9283 # okay in the real world where ";" in dirpaths is itself problematic.
9284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9286 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9291 need_lib_prefix=unknown
9292 hardcode_into_libs=no
9294 # when you set need_version to no, make sure it does not cause -set_version
9295 # flags to be left without arguments
9296 need_version=unknown
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9302 shlibpath_var=LIBPATH
9304 # AIX 3 has no versioning support, so we append a major version to the name.
9305 soname_spec='${libname}${release}${shared_ext}$major'
9312 hardcode_into_libs=yes
9313 if test "$host_cpu" = ia64; then
9314 # AIX 5 supports IA64
9315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9316 shlibpath_var=LD_LIBRARY_PATH
9318 # With GCC up to 2.95.x, collect2 would create an import file
9319 # for dependence libraries. The import file would start with
9320 # the line `#! .'. This would cause the generated library to
9321 # depend on `.', always an invalid library. This was fixed in
9322 # development snapshots of GCC prior to 3.0.
9324 aix4 | aix4.[01] | aix4.[01].*)
9325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9327 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9335 # soname into executable. Probably we can add versioning support to
9336 # collect2, so additional links can be useful in future.
9337 if test "$aix_use_runtimelinking" = yes; then
9338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9339 # instead of lib<name>.a to let people know that these are not
9340 # typical AIX shared libraries.
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343 # We preserve .a as extension for shared libraries through AIX4.2
9344 # and later when we are not doing run time linking.
9345 library_names_spec='${libname}${release}.a $libname.a'
9346 soname_spec='${libname}${release}${shared_ext}$major'
9348 shlibpath_var=LIBPATH
9353 library_names_spec='$libname.ixlibrary $libname.a'
9354 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9355 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'
9359 library_names_spec='${libname}${shared_ext}'
9360 dynamic_linker="$host_os ld.so"
9361 shlibpath_var=LIBRARY_PATH
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9372 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9373 # the default ld.so.conf also contains /usr/contrib/lib and
9374 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9375 # libtool to hard-code these into programs
9378 cygwin* | mingw* | pw32*)
9379 version_type=windows
9384 case $GCC,$host_os in
9385 yes,cygwin* | yes,mingw* | yes,pw32*)
9386 library_names_spec='$libname.dll.a'
9387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9388 postinstall_cmds='base_file=`basename \${file}`~
9389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9390 dldir=$destdir/`dirname \$dlpath`~
9391 test -d \$dldir || mkdir -p \$dldir~
9392 $install_prog $dir/$dlname \$dldir/$dlname~
9393 chmod a+x \$dldir/$dlname'
9394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9395 dlpath=$dir/\$dldll~
9397 shlibpath_overrides_runpath=yes
9401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9402 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9403 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9406 # MinGW DLLs use traditional 'lib' prefix
9407 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9409 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9410 # It is most probably a Windows format PATH printed by
9411 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9412 # path with ; separators, and with drive letters. We can handle the
9413 # drive letters (cygwin fileutils understands them), so leave them,
9414 # especially as we might pass files found there to a mingw objdump,
9415 # which wouldn't understand a cygwinified path. Ahh.
9416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9422 # pw32 DLLs use 'pw' prefix rather than 'lib'
9423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9432 dynamic_linker='Win32 ld.exe'
9433 # FIXME: first we should search . and the directory the executable is in
9437 darwin* | rhapsody*)
9438 dynamic_linker="$host_os dyld"
9442 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9443 soname_spec='${libname}${release}${major}$shared_ext'
9444 shlibpath_overrides_runpath=yes
9445 shlibpath_var=DYLD_LIBRARY_PATH
9446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9447 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9448 if test "$GCC" = yes; then
9449 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9451 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9453 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 shlibpath_var=LD_LIBRARY_PATH
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 shlibpath_overrides_runpath=no
9477 hardcode_into_libs=yes
9478 dynamic_linker='GNU ld.so'
9481 freebsd* | dragonfly*)
9482 # DragonFly does not have aout. When/if they implement a new
9483 # versioning mechanism, adjust this.
9484 if test -x /usr/bin/objformat; then
9485 objformat=`/usr/bin/objformat`
9488 freebsd[123]*) objformat=aout ;;
9492 version_type=freebsd-$objformat
9493 case $version_type in
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9504 shlibpath_var=LD_LIBRARY_PATH
9507 shlibpath_overrides_runpath=yes
9509 freebsd3.[01]* | freebsdelf3.[01]*)
9510 shlibpath_overrides_runpath=yes
9511 hardcode_into_libs=yes
9513 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9514 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9515 shlibpath_overrides_runpath=no
9516 hardcode_into_libs=yes
9518 freebsd*) # from 4.6 on
9519 shlibpath_overrides_runpath=yes
9520 hardcode_into_libs=yes
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 hardcode_into_libs=yes
9535 hpux9* | hpux10* | hpux11*)
9536 # Give a soname corresponding to the major version so that dld.sl refuses to
9537 # link against other versions.
9544 hardcode_into_libs=yes
9545 dynamic_linker="$host_os dld.so"
9546 shlibpath_var=LD_LIBRARY_PATH
9547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 if test "X$HPUX_IA64_MODE" = X32; then
9551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9559 hardcode_into_libs=yes
9560 dynamic_linker="$host_os dld.sl"
9561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9570 dynamic_linker="$host_os dld.sl"
9571 shlibpath_var=SHLIB_PATH
9572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9577 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9578 postinstall_cmds='chmod 555 $lib'
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9588 shlibpath_var=LD_LIBRARY_PATH
9589 shlibpath_overrides_runpath=no
9590 hardcode_into_libs=yes
9593 irix5* | irix6* | nonstopux*)
9595 nonstopux*) version_type=nonstopux ;;
9597 if test "$lt_cv_prog_gnu_ld" = yes; then
9605 soname_spec='${libname}${release}${shared_ext}$major'
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9608 irix5* | nonstopux*)
9612 case $LD in # libtool.m4 will add one of these switches to LD
9613 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9614 libsuff= shlibsuff= libmagic=32-bit;;
9615 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9616 libsuff=32 shlibsuff=N32 libmagic=N32;;
9617 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9618 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9619 *) libsuff= shlibsuff= libmagic=never-match;;
9623 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9624 shlibpath_overrides_runpath=no
9625 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9626 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9627 hardcode_into_libs=yes
9630 # No shared lib support for Linux oldld, aout, or coff.
9631 linux*oldld* | linux*aout* | linux*coff*)
9635 # This must be Linux ELF.
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9643 shlibpath_var=LD_LIBRARY_PATH
9644 shlibpath_overrides_runpath=no
9645 # This implies no fast_install, which is unacceptable.
9646 # Some rework will be needed to allow for fast_install
9647 # before this can be enabled.
9648 hardcode_into_libs=yes
9650 # Append ld.so.conf contents to the search path
9651 if test -f /etc/ld.so.conf; then
9652 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9653 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9656 # We used to test for /lib/ld.so.1 and disable shared libraries on
9657 # powerpc, because MkLinux only supported shared libraries with the
9658 # GNU dynamic linker. Since this was broken with cross compilers,
9659 # most powerpc-linux boxes support dynamic linking these days and
9660 # people can always --disable-shared, the test was removed, and we
9661 # assume the GNU/Linux dynamic linker is in use.
9662 dynamic_linker='GNU/Linux ld.so'
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9670 soname_spec='${libname}${release}${shared_ext}$major'
9671 shlibpath_var=LD_LIBRARY_PATH
9672 shlibpath_overrides_runpath=no
9673 hardcode_into_libs=yes
9674 dynamic_linker='GNU ld.so'
9681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9684 dynamic_linker='NetBSD (a.out) ld.so'
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 dynamic_linker='NetBSD ld.elf_so'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 shlibpath_overrides_runpath=yes
9692 hardcode_into_libs=yes
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 shlibpath_overrides_runpath=yes
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 shlibpath_overrides_runpath=yes
9714 sys_lib_dlsearch_path_spec="/usr/lib"
9716 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9718 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9719 *) need_version=no ;;
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9726 openbsd2.[89] | openbsd2.[89].*)
9727 shlibpath_overrides_runpath=no
9730 shlibpath_overrides_runpath=yes
9734 shlibpath_overrides_runpath=yes
9739 libname_spec='$name'
9742 library_names_spec='$libname${shared_ext} $libname.a'
9743 dynamic_linker='OS/2 ld.exe'
9744 shlibpath_var=LIBPATH
9747 osf3* | osf4* | osf5*)
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9755 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=yes
9766 hardcode_into_libs=yes
9767 # ldd complains unless libraries are executable
9768 postinstall_cmds='chmod +x $lib'
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9774 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9775 shlibpath_var=LD_LIBRARY_PATH
9776 shlibpath_overrides_runpath=yes
9777 if test "$with_gnu_ld" = yes; then
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 shlibpath_var=LD_LIBRARY_PATH
9788 case $host_vendor in
9790 shlibpath_overrides_runpath=no
9792 export_dynamic_flag_spec='${wl}-Blargedynsym'
9793 runpath_var=LD_RUN_PATH
9801 shlibpath_overrides_runpath=no
9802 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9808 if test -d /usr/nec ;then
9810 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9811 soname_spec='$libname${shared_ext}.$major'
9812 shlibpath_var=LD_LIBRARY_PATH
9816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9817 version_type=freebsd-elf
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 shlibpath_var=LD_LIBRARY_PATH
9823 hardcode_into_libs=yes
9824 if test "$with_gnu_ld" = yes; then
9825 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9826 shlibpath_overrides_runpath=no
9828 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9829 shlibpath_overrides_runpath=yes
9832 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9836 sys_lib_dlsearch_path_spec='/usr/lib'
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 shlibpath_var=LD_LIBRARY_PATH
9850 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9851 echo "${ECHO_T}$dynamic_linker" >&6; }
9852 test "$dynamic_linker" = no && can_build_shared=no
9854 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9855 if test "$GCC" = yes; then
9856 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9859 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9860 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9862 if test -n "$hardcode_libdir_flag_spec" || \
9863 test -n "$runpath_var" || \
9864 test "X$hardcode_automatic" = "Xyes" ; then
9866 # We can hardcode non-existant directories.
9867 if test "$hardcode_direct" != no &&
9868 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9869 # have to relink, otherwise we might link with an installed library
9870 # when we should be linking with a yet-to-be-installed one
9871 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9872 test "$hardcode_minus_L" != no; then
9873 # Linking always hardcodes the temporary library directory.
9874 hardcode_action=relink
9876 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9877 hardcode_action=immediate
9880 # We cannot hardcode anything, or else we can only hardcode existing
9882 hardcode_action=unsupported
9884 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9885 echo "${ECHO_T}$hardcode_action" >&6; }
9887 if test "$hardcode_action" = relink; then
9888 # Fast installation is not supported
9889 enable_fast_install=no
9890 elif test "$shlibpath_overrides_runpath" = yes ||
9891 test "$enable_shared" = no; then
9892 # Fast installation is not necessary
9893 enable_fast_install=needless
9898 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9899 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9900 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9901 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9902 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9903 { echo "$as_me:$LINENO: result: yes" >&5
9904 echo "${ECHO_T}yes" >&6; }
9906 # FIXME - insert some real tests, host_os isn't really good enough
9909 if test -n "$STRIP" ; then
9910 striplib="$STRIP -x"
9911 { echo "$as_me:$LINENO: result: yes" >&5
9912 echo "${ECHO_T}yes" >&6; }
9914 { echo "$as_me:$LINENO: result: no" >&5
9915 echo "${ECHO_T}no" >&6; }
9919 { echo "$as_me:$LINENO: result: no" >&5
9920 echo "${ECHO_T}no" >&6; }
9925 if test "x$enable_dlopen" != xyes; then
9926 enable_dlopen=unknown
9927 enable_dlopen_self=unknown
9928 enable_dlopen_self_static=unknown
9935 lt_cv_dlopen="load_add_on"
9937 lt_cv_dlopen_self=yes
9941 lt_cv_dlopen="LoadLibrary"
9946 lt_cv_dlopen="dlopen"
9951 # if libdl is installed we need to link against it
9952 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9953 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 ac_check_lib_save_LIBS=$LIBS
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9966 /* Override any GCC internal prototype to avoid an error.
9967 Use char because int might match the return type of a GCC
9968 builtin and then its argument prototype would still apply. */
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_link") 2>conftest.er1
9990 grep -v '^ *+' conftest.er1 >conftest.err
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9996 { (case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_try") 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; } &&
10005 { ac_try='test -s conftest$ac_exeext'
10006 { (case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_try") 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_lib_dl_dlopen=yes
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 ac_cv_lib_dl_dlopen=no
10023 rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10029 if test $ac_cv_lib_dl_dlopen = yes; then
10030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10033 lt_cv_dlopen="dyld"
10035 lt_cv_dlopen_self=yes
10042 { echo "$as_me:$LINENO: checking for shl_load" >&5
10043 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10044 if test "${ac_cv_func_shl_load+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 cat >conftest.$ac_ext <<_ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h. */
10053 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10055 #define shl_load innocuous_shl_load
10057 /* System header to define __stub macros and hopefully few prototypes,
10058 which can conflict with char shl_load (); below.
10059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10060 <limits.h> exists even on freestanding compilers. */
10063 # include <limits.h>
10065 # include <assert.h>
10070 /* Override any GCC internal prototype to avoid an error.
10071 Use char because int might match the return type of a GCC
10072 builtin and then its argument prototype would still apply. */
10077 /* The GNU C library defines this for functions which it implements
10078 to always fail with ENOSYS. Some functions are actually named
10079 something starting with __ and the normal name is an alias. */
10080 #if defined __stub_shl_load || defined __stub___shl_load
10087 return shl_load ();
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_link") 2>conftest.er1
10101 grep -v '^ *+' conftest.er1 >conftest.err
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107 { (case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_try") 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try='test -s conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_func_shl_load=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_cv_func_shl_load=no
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10137 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10138 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10139 if test $ac_cv_func_shl_load = yes; then
10140 lt_cv_dlopen="shl_load"
10142 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10143 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10144 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 ac_check_lib_save_LIBS=$LIBS
10149 cat >conftest.$ac_ext <<_ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10156 /* Override any GCC internal prototype to avoid an error.
10157 Use char because int might match the return type of a GCC
10158 builtin and then its argument prototype would still apply. */
10166 return shl_load ();
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_link") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10186 { (case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_try") 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest$ac_exeext'
10196 { (case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_try") 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_lib_dld_shl_load=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_cv_lib_dld_shl_load=no
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10218 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10219 if test $ac_cv_lib_dld_shl_load = yes; then
10220 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10222 { echo "$as_me:$LINENO: checking for dlopen" >&5
10223 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10224 if test "${ac_cv_func_dlopen+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 cat >conftest.$ac_ext <<_ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10233 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10235 #define dlopen innocuous_dlopen
10237 /* System header to define __stub macros and hopefully few prototypes,
10238 which can conflict with char dlopen (); below.
10239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10240 <limits.h> exists even on freestanding compilers. */
10243 # include <limits.h>
10245 # include <assert.h>
10250 /* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10257 /* The GNU C library defines this for functions which it implements
10258 to always fail with ENOSYS. Some functions are actually named
10259 something starting with __ and the normal name is an alias. */
10260 #if defined __stub_dlopen || defined __stub___dlopen
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
10286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10287 { (case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_try") 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest$ac_exeext'
10297 { (case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_try") 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10306 ac_cv_func_dlopen=yes
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_cv_func_dlopen=no
10314 rm -f core conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10317 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10318 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10319 if test $ac_cv_func_dlopen = yes; then
10320 lt_cv_dlopen="dlopen"
10322 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10323 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10324 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 ac_check_lib_save_LIBS=$LIBS
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_link") 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10366 { (case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_try") 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; } &&
10375 { ac_try='test -s conftest$ac_exeext'
10376 { (case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_try") 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_cv_lib_dl_dlopen=yes
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ac_cv_lib_dl_dlopen=no
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10398 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10399 if test $ac_cv_lib_dl_dlopen = yes; then
10400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10402 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10403 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10404 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-lsvld $LIBS"
10409 cat >conftest.$ac_ext <<_ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10416 /* Override any GCC internal prototype to avoid an error.
10417 Use char because int might match the return type of a GCC
10418 builtin and then its argument prototype would still apply. */
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>conftest.er1
10440 grep -v '^ *+' conftest.er1 >conftest.err
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 { (case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_try") 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest$ac_exeext'
10456 { (case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_cv_lib_svld_dlopen=yes
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 ac_cv_lib_svld_dlopen=no
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10477 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10478 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10479 if test $ac_cv_lib_svld_dlopen = yes; then
10480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10482 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10483 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 ac_check_lib_save_LIBS=$LIBS
10489 cat >conftest.$ac_ext <<_ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10496 /* Override any GCC internal prototype to avoid an error.
10497 Use char because int might match the return type of a GCC
10498 builtin and then its argument prototype would still apply. */
10506 return dld_link ();
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10526 { (case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_try") 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest$ac_exeext'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10545 ac_cv_lib_dld_dld_link=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 ac_cv_lib_dld_dld_link=no
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10558 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10559 if test $ac_cv_lib_dld_dld_link = yes; then
10560 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10581 if test "x$lt_cv_dlopen" != xno; then
10587 case $lt_cv_dlopen in
10589 save_CPPFLAGS="$CPPFLAGS"
10590 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10592 save_LDFLAGS="$LDFLAGS"
10593 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10596 LIBS="$lt_cv_dlopen_libs $LIBS"
10598 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10599 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10600 if test "${lt_cv_dlopen_self+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 if test "$cross_compiling" = yes; then :
10604 lt_cv_dlopen_self=cross
10606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10607 lt_status=$lt_dlunknown
10608 cat > conftest.$ac_ext <<EOF
10609 #line 10609 "configure"
10610 #include "confdefs.h"
10619 # define LT_DLGLOBAL RTLD_GLOBAL
10622 # define LT_DLGLOBAL DL_GLOBAL
10624 # define LT_DLGLOBAL 0
10628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10629 find out it does not work in some platform. */
10630 #ifndef LT_DLLAZY_OR_NOW
10632 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10635 # define LT_DLLAZY_OR_NOW DL_LAZY
10638 # define LT_DLLAZY_OR_NOW RTLD_NOW
10641 # define LT_DLLAZY_OR_NOW DL_NOW
10643 # define LT_DLLAZY_OR_NOW 0
10651 extern "C" void exit (int);
10654 void fnord() { int i=42;}
10657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10658 int status = $lt_dlunknown;
10662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10663 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10664 /* dlclose (self); */
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673 (eval $ac_link) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10677 (./conftest; exit; ) >&5 2>/dev/null
10679 case x$lt_status in
10680 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10681 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10682 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10685 # compilation failed
10686 lt_cv_dlopen_self=no
10693 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10694 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10696 if test "x$lt_cv_dlopen_self" = xyes; then
10697 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10698 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10699 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10700 if test "${lt_cv_dlopen_self_static+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 if test "$cross_compiling" = yes; then :
10704 lt_cv_dlopen_self_static=cross
10706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10707 lt_status=$lt_dlunknown
10708 cat > conftest.$ac_ext <<EOF
10709 #line 10709 "configure"
10710 #include "confdefs.h"
10719 # define LT_DLGLOBAL RTLD_GLOBAL
10722 # define LT_DLGLOBAL DL_GLOBAL
10724 # define LT_DLGLOBAL 0
10728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10729 find out it does not work in some platform. */
10730 #ifndef LT_DLLAZY_OR_NOW
10732 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10735 # define LT_DLLAZY_OR_NOW DL_LAZY
10738 # define LT_DLLAZY_OR_NOW RTLD_NOW
10741 # define LT_DLLAZY_OR_NOW DL_NOW
10743 # define LT_DLLAZY_OR_NOW 0
10751 extern "C" void exit (int);
10754 void fnord() { int i=42;}
10757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10758 int status = $lt_dlunknown;
10762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10763 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10764 /* dlclose (self); */
10772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10777 (./conftest; exit; ) >&5 2>/dev/null
10779 case x$lt_status in
10780 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10781 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10782 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10785 # compilation failed
10786 lt_cv_dlopen_self_static=no
10793 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10794 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10797 CPPFLAGS="$save_CPPFLAGS"
10798 LDFLAGS="$save_LDFLAGS"
10803 case $lt_cv_dlopen_self in
10804 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10805 *) enable_dlopen_self=unknown ;;
10808 case $lt_cv_dlopen_self_static in
10809 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10810 *) enable_dlopen_self_static=unknown ;;
10815 # Report which library types will actually be built
10816 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10817 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10818 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10819 echo "${ECHO_T}$can_build_shared" >&6; }
10821 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10822 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10823 test "$can_build_shared" = "no" && enable_shared=no
10825 # On AIX, shared libraries and static libraries use the same namespace, and
10826 # are all built from PIC.
10829 test "$enable_shared" = yes && enable_static=no
10830 if test -n "$RANLIB"; then
10831 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10832 postinstall_cmds='$RANLIB $lib'
10837 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10838 test "$enable_shared" = yes && enable_static=no
10842 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10843 echo "${ECHO_T}$enable_shared" >&6; }
10845 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10846 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10847 # Make sure either enable_shared or enable_static is yes.
10848 test "$enable_shared" = yes || enable_static=yes
10849 { echo "$as_me:$LINENO: result: $enable_static" >&5
10850 echo "${ECHO_T}$enable_static" >&6; }
10852 # The else clause should only fire when bootstrapping the
10853 # libtool distribution, otherwise you forgot to ship ltmain.sh
10854 # with your package, and you will get complaints that there are
10855 # no rules to generate ltmain.sh.
10856 if test -f "$ltmain"; then
10857 # See if we are running on zsh, and set the options which allow our commands through
10858 # without removal of \ escapes.
10859 if test -n "${ZSH_VERSION+set}" ; then
10860 setopt NO_GLOB_SUBST
10862 # Now quote all the things that may contain metacharacters while being
10863 # careful not to overquote the AC_SUBSTed values. We take copies of the
10864 # variables and quote the copies for generation of the libtool script.
10865 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10869 deplibs_check_method reload_flag reload_cmds need_locks \
10870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10871 lt_cv_sys_global_symbol_to_c_name_address \
10872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10873 old_postinstall_cmds old_postuninstall_cmds \
10877 lt_prog_compiler_wl \
10878 lt_prog_compiler_pic \
10879 lt_prog_compiler_static \
10880 lt_prog_compiler_no_builtin_flag \
10881 export_dynamic_flag_spec \
10882 thread_safe_flag_spec \
10883 whole_archive_flag_spec \
10884 enable_shared_with_static_runtimes \
10886 old_archive_from_new_cmds \
10891 compiler_lib_search_path \
10893 archive_expsym_cmds \
10895 postuninstall_cmds \
10896 old_archive_from_expsyms_cmds \
10897 allow_undefined_flag \
10898 no_undefined_flag \
10899 export_symbols_cmds \
10900 hardcode_libdir_flag_spec \
10901 hardcode_libdir_flag_spec_ld \
10902 hardcode_libdir_separator \
10903 hardcode_automatic \
10905 module_expsym_cmds \
10906 lt_cv_prog_compiler_c_o \
10908 include_expsyms; do
10911 old_archive_cmds | \
10912 old_archive_from_new_cmds | \
10914 archive_expsym_cmds | \
10916 module_expsym_cmds | \
10917 old_archive_from_expsyms_cmds | \
10918 export_symbols_cmds | \
10919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10920 postinstall_cmds | postuninstall_cmds | \
10921 old_postinstall_cmds | old_postuninstall_cmds | \
10922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10923 # Double-quote double-evaled strings.
10924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10933 *'\$0 --fallback-echo"')
10934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10938 cfgfile="${ofile}T"
10939 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10941 { echo "$as_me:$LINENO: creating $ofile" >&5
10942 echo "$as_me: creating $ofile" >&6;}
10944 cat <<__EOF__ >> "$cfgfile"
10947 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10948 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10949 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10951 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10952 # Free Software Foundation, Inc.
10954 # This file is part of GNU Libtool:
10955 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10957 # This program is free software; you can redistribute it and/or modify
10958 # it under the terms of the GNU General Public License as published by
10959 # the Free Software Foundation; either version 2 of the License, or
10960 # (at your option) any later version.
10962 # This program is distributed in the hope that it will be useful, but
10963 # WITHOUT ANY WARRANTY; without even the implied warranty of
10964 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10965 # General Public License for more details.
10967 # You should have received a copy of the GNU General Public License
10968 # along with this program; if not, write to the Free Software
10969 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10971 # As a special exception to the GNU General Public License, if you
10972 # distribute this file as part of a program that contains a
10973 # configuration script generated by Autoconf, you may include it under
10974 # the same distribution terms that you use for the rest of that program.
10976 # A sed program that does not truncate output.
10979 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10980 Xsed="$SED -e 1s/^X//"
10982 # The HP-UX ksh and POSIX shell print the target directory to stdout
10983 # if CDPATH is set.
10984 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10986 # The names of the tagged configurations supported by this script.
10989 # ### BEGIN LIBTOOL CONFIG
10991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10993 # Shell to use when invoking shell scripts.
10996 # Whether or not to build shared libraries.
10997 build_libtool_libs=$enable_shared
10999 # Whether or not to build static libraries.
11000 build_old_libs=$enable_static
11002 # Whether or not to add -lc for building shared libraries.
11003 build_libtool_need_lc=$archive_cmds_need_lc
11005 # Whether or not to disallow shared libs when runtime libs are static
11006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11008 # Whether or not to optimize for fast installation.
11009 fast_install=$enable_fast_install
11012 host_alias=$host_alias
11016 # The build system.
11017 build_alias=$build_alias
11021 # An echo program that does not interpret backslashes.
11026 AR_FLAGS=$lt_AR_FLAGS
11031 # LTCC compiler flags.
11032 LTCFLAGS=$lt_LTCFLAGS
11034 # A language-specific compiler.
11037 # Is the compiler the GNU C compiler?
11043 # The linker used to build libraries.
11046 # Whether we need hard or soft links.
11049 # A BSD-compatible nm program.
11052 # A symbol stripping program
11055 # Used to examine libraries when file_magic_cmd begins "file"
11056 MAGIC_CMD=$MAGIC_CMD
11058 # Used on cygwin: DLL creation program.
11061 # Used on cygwin: object dumper.
11064 # Used on cygwin: assembler.
11067 # The name of the directory that contains temporary libtool files.
11070 # How to create reloadable object files.
11071 reload_flag=$lt_reload_flag
11072 reload_cmds=$lt_reload_cmds
11074 # How to pass a linker flag through the compiler.
11075 wl=$lt_lt_prog_compiler_wl
11077 # Object file suffix (normally "o").
11078 objext="$ac_objext"
11080 # Old archive suffix (normally "a").
11083 # Shared library suffix (normally ".so").
11084 shrext_cmds='$shrext_cmds'
11086 # Executable file suffix (normally "").
11089 # Additional compiler flags for building library objects.
11090 pic_flag=$lt_lt_prog_compiler_pic
11093 # What is the maximum length of a command?
11094 max_cmd_len=$lt_cv_sys_max_cmd_len
11096 # Does compiler simultaneously support -c and -o options?
11097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11099 # Must we lock files when doing compilation?
11100 need_locks=$lt_need_locks
11102 # Do we need the lib prefix for modules?
11103 need_lib_prefix=$need_lib_prefix
11105 # Do we need a version for libraries?
11106 need_version=$need_version
11108 # Whether dlopen is supported.
11109 dlopen_support=$enable_dlopen
11111 # Whether dlopen of programs is supported.
11112 dlopen_self=$enable_dlopen_self
11114 # Whether dlopen of statically linked programs is supported.
11115 dlopen_self_static=$enable_dlopen_self_static
11117 # Compiler flag to prevent dynamic linking.
11118 link_static_flag=$lt_lt_prog_compiler_static
11120 # Compiler flag to turn off builtin functions.
11121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11123 # Compiler flag to allow reflexive dlopens.
11124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11126 # Compiler flag to generate shared objects directly from archives.
11127 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11129 # Compiler flag to generate thread-safe objects.
11130 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11132 # Library versioning type.
11133 version_type=$version_type
11135 # Format of library name prefix.
11136 libname_spec=$lt_libname_spec
11138 # List of archive names. First name is the real one, the rest are links.
11139 # The last name is the one that the linker finds with -lNAME.
11140 library_names_spec=$lt_library_names_spec
11142 # The coded name of the library, if different from the real name.
11143 soname_spec=$lt_soname_spec
11145 # Commands used to build and install an old-style archive.
11147 old_archive_cmds=$lt_old_archive_cmds
11148 old_postinstall_cmds=$lt_old_postinstall_cmds
11149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11151 # Create an old-style archive from a shared archive.
11152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11154 # Create a temporary old-style archive to link instead of a shared archive.
11155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11157 # Commands used to build and install a shared archive.
11158 archive_cmds=$lt_archive_cmds
11159 archive_expsym_cmds=$lt_archive_expsym_cmds
11160 postinstall_cmds=$lt_postinstall_cmds
11161 postuninstall_cmds=$lt_postuninstall_cmds
11163 # Commands used to build a loadable module (assumed same as above if empty)
11164 module_cmds=$lt_module_cmds
11165 module_expsym_cmds=$lt_module_expsym_cmds
11167 # Commands to strip libraries.
11168 old_striplib=$lt_old_striplib
11169 striplib=$lt_striplib
11171 # Dependencies to place before the objects being linked to create a
11173 predep_objects=$lt_predep_objects
11175 # Dependencies to place after the objects being linked to create a
11177 postdep_objects=$lt_postdep_objects
11179 # Dependencies to place before the objects being linked to create a
11181 predeps=$lt_predeps
11183 # Dependencies to place after the objects being linked to create a
11185 postdeps=$lt_postdeps
11187 # The library search path used internally by the compiler when linking
11188 # a shared library.
11189 compiler_lib_search_path=$lt_compiler_lib_search_path
11191 # Method to check whether dependent libraries are shared objects.
11192 deplibs_check_method=$lt_deplibs_check_method
11194 # Command to use when deplibs_check_method == file_magic.
11195 file_magic_cmd=$lt_file_magic_cmd
11197 # Flag that allows shared libraries with undefined symbols to be built.
11198 allow_undefined_flag=$lt_allow_undefined_flag
11200 # Flag that forces no undefined symbols.
11201 no_undefined_flag=$lt_no_undefined_flag
11203 # Commands used to finish a libtool library installation in a directory.
11204 finish_cmds=$lt_finish_cmds
11206 # Same as above, but a single script fragment to be evaled but not shown.
11207 finish_eval=$lt_finish_eval
11209 # Take the output of nm and produce a listing of raw symbols and C names.
11210 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11212 # Transform the output of nm in a proper C declaration
11213 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11215 # Transform the output of nm in a C name address pair
11216 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11218 # This is the shared library runtime path variable.
11219 runpath_var=$runpath_var
11221 # This is the shared library path variable.
11222 shlibpath_var=$shlibpath_var
11224 # Is shlibpath searched before the hard-coded library search path?
11225 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11227 # How to hardcode a shared library path into an executable.
11228 hardcode_action=$hardcode_action
11230 # Whether we should hardcode library paths into libraries.
11231 hardcode_into_libs=$hardcode_into_libs
11233 # Flag to hardcode \$libdir into a binary during linking.
11234 # This must work even if \$libdir does not exist.
11235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11237 # If ld is used when linking, flag to hardcode \$libdir into
11238 # a binary during linking. This must work even if \$libdir does
11240 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11242 # Whether we need a single -rpath flag with a separated argument.
11243 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11245 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11246 # resulting binary.
11247 hardcode_direct=$hardcode_direct
11249 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11250 # resulting binary.
11251 hardcode_minus_L=$hardcode_minus_L
11253 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11254 # the resulting binary.
11255 hardcode_shlibpath_var=$hardcode_shlibpath_var
11257 # Set to yes if building a shared library automatically hardcodes DIR into the library
11258 # and all subsequent libraries and executables linked against it.
11259 hardcode_automatic=$hardcode_automatic
11261 # Variables whose values should be saved in libtool wrapper scripts and
11262 # restored at relink time.
11263 variables_saved_for_relink="$variables_saved_for_relink"
11265 # Whether libtool must link a program against all its dependency libraries.
11266 link_all_deplibs=$link_all_deplibs
11268 # Compile-time system search path for libraries
11269 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11271 # Run-time system search path for libraries
11272 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11274 # Fix the shell variable \$srcfile for the compiler.
11275 fix_srcfile_path="$fix_srcfile_path"
11277 # Set to yes if exported symbols are required.
11278 always_export_symbols=$always_export_symbols
11280 # The commands to list exported symbols.
11281 export_symbols_cmds=$lt_export_symbols_cmds
11283 # The commands to extract the exported symbol list from a shared archive.
11284 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11286 # Symbols that should not be listed in the preloaded symbols.
11287 exclude_expsyms=$lt_exclude_expsyms
11289 # Symbols that must always be exported.
11290 include_expsyms=$lt_include_expsyms
11292 # ### END LIBTOOL CONFIG
11299 cat <<\EOF >> "$cfgfile"
11301 # AIX sometimes has problems with the GCC collect2 program. For some
11302 # reason, if we set the COLLECT_NAMES environment variable, the problems
11303 # vanish in a puff of smoke.
11304 if test "X${COLLECT_NAMES+set}" != Xset; then
11306 export COLLECT_NAMES
11312 # We use sed instead of cat because bash on DJGPP gets confused if
11313 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11314 # text mode, it properly converts lines to CR/LF. This bash problem
11315 # is reportedly fixed, but why not run on old versions too?
11316 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11318 mv -f "$cfgfile" "$ofile" || \
11319 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11323 # If there is no Makefile yet, we rely on a make rule to execute
11324 # `config.status --recheck' to rerun these tests and create the
11325 # libtool script then.
11326 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11327 if test -f "$ltmain_in"; then
11328 test -f Makefile && make "$ltmain"
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11342 # Check whether --with-tags was given.
11343 if test "${with_tags+set}" = set; then
11344 withval=$with_tags; tagnames="$withval"
11348 if test -f "$ltmain" && test -n "$tagnames"; then
11349 if test ! -f "${ofile}"; then
11350 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11351 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11354 if test -z "$LTCC"; then
11355 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11356 if test -z "$LTCC"; then
11357 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11358 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11361 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11364 if test -z "$LTCFLAGS"; then
11365 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11368 # Extract list of available tagged configurations in $ofile.
11369 # Note that this assumes the entire list is on one line.
11370 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11372 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11373 for tagname in $tagnames; do
11375 # Check whether tagname contains only valid characters
11376 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11378 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11379 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11380 { (exit 1); exit 1; }; }
11384 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11386 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11387 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11388 { (exit 1); exit 1; }; }
11391 # Update the list of available tags.
11392 if test -n "$tagname"; then
11393 echo appending configuration tag \"$tagname\" to $ofile
11397 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11398 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11399 (test "X$CXX" != "Xg++"))) ; then
11401 ac_cpp='$CXXCPP $CPPFLAGS'
11402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11409 archive_cmds_need_lc_CXX=no
11410 allow_undefined_flag_CXX=
11411 always_export_symbols_CXX=no
11412 archive_expsym_cmds_CXX=
11413 export_dynamic_flag_spec_CXX=
11414 hardcode_direct_CXX=no
11415 hardcode_libdir_flag_spec_CXX=
11416 hardcode_libdir_flag_spec_ld_CXX=
11417 hardcode_libdir_separator_CXX=
11418 hardcode_minus_L_CXX=no
11419 hardcode_shlibpath_var_CXX=unsupported
11420 hardcode_automatic_CXX=no
11422 module_expsym_cmds_CXX=
11423 link_all_deplibs_CXX=unknown
11424 old_archive_cmds_CXX=$old_archive_cmds
11425 no_undefined_flag_CXX=
11426 whole_archive_flag_spec_CXX=
11427 enable_shared_with_static_runtimes_CXX=no
11429 # Dependencies to place before and after the object being linked:
11430 predep_objects_CXX=
11431 postdep_objects_CXX=
11434 compiler_lib_search_path_CXX=
11436 # Source file extension for C++ test sources.
11439 # Object file extension for compiled C++ test sources.
11443 # Code to be used in simple compile tests
11444 lt_simple_compile_test_code="int some_variable = 0;\n"
11446 # Code to be used in simple link tests
11447 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11449 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11451 # If no C compiler was specified, use CC.
11454 # If no C compiler flags were specified, use CFLAGS.
11455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11457 # Allow CC to be a program name with arguments.
11461 # save warnings/boilerplate of simple test code
11462 ac_outfile=conftest.$ac_objext
11463 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11464 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11465 _lt_compiler_boilerplate=`cat conftest.err`
11468 ac_outfile=conftest.$ac_objext
11469 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11470 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11471 _lt_linker_boilerplate=`cat conftest.err`
11475 # Allow CC to be a program name with arguments.
11480 lt_save_with_gnu_ld=$with_gnu_ld
11481 lt_save_path_LD=$lt_cv_path_LD
11482 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11483 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11485 $as_unset lt_cv_prog_gnu_ld
11487 if test -n "${lt_cv_path_LDCXX+set}"; then
11488 lt_cv_path_LD=$lt_cv_path_LDCXX
11490 $as_unset lt_cv_path_LD
11492 test -z "${LDCXX+set}" || LD=$LDCXX
11496 for cc_temp in $compiler""; do
11498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11504 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11507 # We don't want -fno-exception wen compiling C++ code, so set the
11508 # no_builtin_flag separately
11509 if test "$GXX" = yes; then
11510 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11512 lt_prog_compiler_no_builtin_flag_CXX=
11515 if test "$GXX" = yes; then
11516 # Set up default GNU C++ configuration
11519 # Check whether --with-gnu-ld was given.
11520 if test "${with_gnu_ld+set}" = set; then
11521 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11527 if test "$GCC" = yes; then
11528 # Check if gcc -print-prog-name=ld gives a path.
11529 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11530 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11533 # gcc leaves a trailing carriage return which upsets mingw
11534 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11536 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11539 # Accept absolute paths.
11541 re_direlt='/[^/][^/]*/\.\./'
11542 # Canonicalize the pathname of ld
11543 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11544 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11545 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11547 test -z "$LD" && LD="$ac_prog"
11550 # If it fails, then pretend we aren't using GCC.
11554 # If it is relative, then search for the first ld in PATH.
11555 with_gnu_ld=unknown
11558 elif test "$with_gnu_ld" = yes; then
11559 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11560 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11562 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11563 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11565 if test "${lt_cv_path_LD+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 if test -z "$LD"; then
11569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11570 for ac_dir in $PATH; do
11572 test -z "$ac_dir" && ac_dir=.
11573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11574 lt_cv_path_LD="$ac_dir/$ac_prog"
11575 # Check to see if the program is GNU ld. I'd rather use --version,
11576 # but apparently some variants of GNU ld only accept -v.
11577 # Break only if it was the GNU/non-GNU ld that we prefer.
11578 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11579 *GNU* | *'with BFD'*)
11580 test "$with_gnu_ld" != no && break
11583 test "$with_gnu_ld" != yes && break
11590 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11594 LD="$lt_cv_path_LD"
11595 if test -n "$LD"; then
11596 { echo "$as_me:$LINENO: result: $LD" >&5
11597 echo "${ECHO_T}$LD" >&6; }
11599 { echo "$as_me:$LINENO: result: no" >&5
11600 echo "${ECHO_T}no" >&6; }
11602 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11603 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11604 { (exit 1); exit 1; }; }
11605 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11606 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11607 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11611 case `$LD -v 2>&1 </dev/null` in
11612 *GNU* | *'with BFD'*)
11613 lt_cv_prog_gnu_ld=yes
11616 lt_cv_prog_gnu_ld=no
11620 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11621 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11622 with_gnu_ld=$lt_cv_prog_gnu_ld
11626 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11627 # archiving commands below assume that GNU ld is being used.
11628 if test "$with_gnu_ld" = yes; then
11629 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11630 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'
11632 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11633 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11635 # If archive_cmds runs LD, not CC, wlarc should be empty
11636 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11637 # investigate it a little bit more. (MM)
11640 # ancient GNU ld didn't support --whole-archive et. al.
11641 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11642 grep 'no-whole-archive' > /dev/null; then
11643 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11645 whole_archive_flag_spec_CXX=
11651 # A generic and very simple default shared library creation
11652 # command for GNU C++ for the case where it uses the native
11653 # linker, instead of GNU ld. If possible, this setting should
11654 # overridden to take advantage of the native linker features on
11655 # the platform it is being used on.
11656 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11659 # Commands to make compiler produce verbose output that lists
11660 # what "hidden" libraries, object files and flags are used when
11661 # linking a shared library.
11662 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11670 # PORTME: fill in a description of your system's C++ link characteristics
11671 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11672 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11676 # FIXME: insert proper C++ library support
11680 if test "$host_cpu" = ia64; then
11681 # On IA64, the linker does run time linking by default, so we don't
11682 # have to do anything special.
11683 aix_use_runtimelinking=no
11684 exp_sym_flag='-Bexport'
11687 aix_use_runtimelinking=no
11689 # Test if we are trying to use run time linking or normal
11690 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11691 # need to do runtime linking.
11692 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11693 for ld_flag in $LDFLAGS; do
11696 aix_use_runtimelinking=yes
11704 exp_sym_flag='-bexport'
11705 no_entry_flag='-bnoentry'
11708 # When large executables or shared objects are built, AIX ld can
11709 # have problems creating the table of contents. If linking a library
11710 # or program results in "error TOC overflow" add -mminimal-toc to
11711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11714 archive_cmds_CXX=''
11715 hardcode_direct_CXX=yes
11716 hardcode_libdir_separator_CXX=':'
11717 link_all_deplibs_CXX=yes
11719 if test "$GXX" = yes; then
11720 case $host_os in aix4.[012]|aix4.[012].*)
11721 # We only want to do this on AIX 4.2 and lower, the check
11722 # below for broken collect2 doesn't work under 4.3+
11723 collect2name=`${CC} -print-prog-name=collect2`
11724 if test -f "$collect2name" && \
11725 strings "$collect2name" | grep resolve_lib_name >/dev/null
11727 # We have reworked collect2
11728 hardcode_direct_CXX=yes
11730 # We have old collect2
11731 hardcode_direct_CXX=unsupported
11732 # It fails to find uninstalled libraries when the uninstalled
11733 # path is not listed in the libpath. Setting hardcode_minus_L
11734 # to unsupported forces relinking
11735 hardcode_minus_L_CXX=yes
11736 hardcode_libdir_flag_spec_CXX='-L$libdir'
11737 hardcode_libdir_separator_CXX=
11741 shared_flag='-shared'
11742 if test "$aix_use_runtimelinking" = yes; then
11743 shared_flag="$shared_flag "'${wl}-G'
11747 if test "$host_cpu" = ia64; then
11748 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11749 # chokes on -Wl,-G. The following line is correct:
11752 if test "$aix_use_runtimelinking" = yes; then
11753 shared_flag='${wl}-G'
11755 shared_flag='${wl}-bM:SRE'
11760 # It seems that -bexpall does not export symbols beginning with
11761 # underscore (_), so it is better to generate a list of symbols to export.
11762 always_export_symbols_CXX=yes
11763 if test "$aix_use_runtimelinking" = yes; then
11764 # Warning - without using the other runtime loading flags (-brtl),
11765 # -berok will link without error, but may produce a broken library.
11766 allow_undefined_flag_CXX='-berok'
11767 # Determine the default libpath from the value encoded in an empty executable.
11768 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (ac_try="$ac_link"
11785 case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_link") 2>conftest.er1
11792 grep -v '^ *+' conftest.er1 >conftest.err
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest$ac_exeext'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11820 # Check for a 64-bit object if we didn't find anything.
11821 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11830 rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11834 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11836 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"
11838 if test "$host_cpu" = ia64; then
11839 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11840 allow_undefined_flag_CXX="-z nodefs"
11841 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"
11843 # Determine the default libpath from the value encoded in an empty executable.
11844 cat >conftest.$ac_ext <<_ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (ac_try="$ac_link"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_link") 2>conftest.er1
11868 grep -v '^ *+' conftest.er1 >conftest.err
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11874 { (case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_try") 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest$ac_exeext'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11896 # Check for a 64-bit object if we didn't find anything.
11897 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11906 rm -f core conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11910 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11911 # Warning - without using the other run time loading flags,
11912 # -berok will link without error, but may produce a broken library.
11913 no_undefined_flag_CXX=' ${wl}-bernotok'
11914 allow_undefined_flag_CXX=' ${wl}-berok'
11915 # Exported symbols can be pulled into shared objects from archives
11916 whole_archive_flag_spec_CXX='$convenience'
11917 archive_cmds_need_lc_CXX=yes
11918 # This is similar to how AIX traditionally builds its shared libraries.
11919 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'
11925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11926 allow_undefined_flag_CXX=unsupported
11927 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11928 # support --undefined. This deserves some investigation. FIXME
11929 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11936 case $cc_basename in
11938 # FIXME: insert proper C++ library support
11944 cygwin* | mingw* | pw32*)
11945 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11946 # as there is no search path for DLLs.
11947 hardcode_libdir_flag_spec_CXX='-L$libdir'
11948 allow_undefined_flag_CXX=unsupported
11949 always_export_symbols_CXX=no
11950 enable_shared_with_static_runtimes_CXX=yes
11952 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11953 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'
11954 # If the export-symbols file already is a .def file (1st line
11955 # is EXPORTS), use it as is; otherwise, prepend...
11956 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11957 cp $export_symbols $output_objdir/$soname.def;
11959 echo EXPORTS > $output_objdir/$soname.def;
11960 cat $export_symbols >> $output_objdir/$soname.def;
11962 $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'
11967 darwin* | rhapsody*)
11969 rhapsody* | darwin1.[012])
11970 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11973 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11974 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11976 case ${MACOSX_DEPLOYMENT_TARGET} in
11978 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11981 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11987 archive_cmds_need_lc_CXX=no
11988 hardcode_direct_CXX=no
11989 hardcode_automatic_CXX=yes
11990 hardcode_shlibpath_var_CXX=unsupported
11991 whole_archive_flag_spec_CXX=''
11992 link_all_deplibs_CXX=yes
11994 if test "$GXX" = yes ; then
11995 lt_int_apple_cc_single_mod=no
11996 output_verbose_link_cmd='echo'
11997 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11998 lt_int_apple_cc_single_mod=yes
12000 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12001 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12003 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'
12005 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12007 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12008 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12010 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12012 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}'
12014 case $cc_basename in
12016 output_verbose_link_cmd='echo'
12017 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12018 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12019 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12020 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12021 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}'
12031 case $cc_basename in
12033 # FIXME: insert proper C++ library support
12037 # Green Hills C++ Compiler
12038 # FIXME: insert proper C++ library support
12042 # FIXME: insert proper C++ library support
12048 # C++ shared libraries reported to be fairly broken before switch to ELF
12052 archive_cmds_need_lc_CXX=no
12054 freebsd* | kfreebsd*-gnu | dragonfly*)
12055 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12062 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12063 hardcode_libdir_separator_CXX=:
12064 export_dynamic_flag_spec_CXX='${wl}-E'
12065 hardcode_direct_CXX=yes
12066 hardcode_minus_L_CXX=yes # Not in the search PATH,
12067 # but as the default
12068 # location of the library.
12070 case $cc_basename in
12072 # FIXME: insert proper C++ library support
12076 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'
12077 # Commands to make compiler produce verbose output that lists
12078 # what "hidden" libraries, object files and flags are used when
12079 # linking a shared library.
12081 # There doesn't appear to be a way to prevent this compiler from
12082 # explicitly linking system object files so we need to strip them
12083 # from the output so that they don't get included in the library
12085 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'
12088 if test "$GXX" = yes; then
12089 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'
12091 # FIXME: insert proper C++ library support
12098 if test $with_gnu_ld = no; then
12099 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12100 hardcode_libdir_separator_CXX=:
12104 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12107 export_dynamic_flag_spec_CXX='${wl}-E'
12113 hardcode_direct_CXX=no
12114 hardcode_shlibpath_var_CXX=no
12117 hardcode_direct_CXX=yes
12118 hardcode_minus_L_CXX=yes # Not in the search PATH,
12119 # but as the default
12120 # location of the library.
12124 case $cc_basename in
12126 # FIXME: insert proper C++ library support
12132 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12135 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12138 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12141 # Commands to make compiler produce verbose output that lists
12142 # what "hidden" libraries, object files and flags are used when
12143 # linking a shared library.
12145 # There doesn't appear to be a way to prevent this compiler from
12146 # explicitly linking system object files so we need to strip them
12147 # from the output so that they don't get included in the library
12149 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'
12152 if test "$GXX" = yes; then
12153 if test $with_gnu_ld = no; then
12156 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12159 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12162 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'
12167 # FIXME: insert proper C++ library support
12174 hardcode_direct_CXX=no
12175 hardcode_shlibpath_var_CXX=no
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177 export_dynamic_flag_spec_CXX='${wl}-E'
12178 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12179 # Instead, shared libraries are loaded at an image base (0x10000000 by
12180 # default) and relocated if they conflict, which is a slow very memory
12181 # consuming and fragmenting process. To avoid this, we pick a random,
12182 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12183 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12184 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'
12185 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'
12188 case $cc_basename in
12191 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'
12193 # Archives containing C++ object files must be created using
12194 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12195 # necessary to make sure instantiated templates are included
12197 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12200 if test "$GXX" = yes; then
12201 if test "$with_gnu_ld" = no; then
12202 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'
12204 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'
12207 link_all_deplibs_CXX=yes
12210 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12211 hardcode_libdir_separator_CXX=:
12214 case $cc_basename in
12216 # Kuck and Associates, Inc. (KAI) C++ Compiler
12218 # KCC will only create a shared library if the output file
12219 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12220 # to its proper name (with version) after linking.
12221 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'
12222 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'
12223 # Commands to make compiler produce verbose output that lists
12224 # what "hidden" libraries, object files and flags are used when
12225 # linking a shared library.
12227 # There doesn't appear to be a way to prevent this compiler from
12228 # explicitly linking system object files so we need to strip them
12229 # from the output so that they don't get included in the library
12231 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'
12233 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12236 # Archives containing C++ object files must be created using
12237 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12238 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12243 # version 8.0 and above of icpc choke on multiply defined symbols
12244 # if we add $predep_objects and $postdep_objects, however 7.1 and
12245 # earlier do not add the objects themselves.
12246 case `$CC -V 2>&1` in
12248 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12249 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'
12251 *) # Version 8.0 or newer
12254 ia64*) tmp_idyn=' -i_dynamic';;
12256 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257 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'
12260 archive_cmds_need_lc_CXX=no
12261 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12266 # Portland Group C++ compiler
12267 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12268 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'
12270 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12272 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'
12276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277 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'
12279 runpath_var=LD_RUN_PATH
12280 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12281 hardcode_libdir_separator_CXX=:
12283 # Commands to make compiler produce verbose output that lists
12284 # what "hidden" libraries, object files and flags are used when
12285 # linking a shared library.
12287 # There doesn't appear to be a way to prevent this compiler from
12288 # explicitly linking system object files so we need to strip them
12289 # from the output so that they don't get included in the library
12291 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'
12296 # FIXME: insert proper C++ library support
12300 # FIXME: insert proper C++ library support
12304 case $cc_basename in
12306 # FIXME: insert proper C++ library support
12310 # FIXME: insert proper C++ library support
12316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12317 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12319 hardcode_libdir_flag_spec_CXX='-R$libdir'
12320 hardcode_direct_CXX=yes
12321 hardcode_shlibpath_var_CXX=no
12323 # Workaround some broken pre-1.5 toolchains
12324 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12327 # C++ shared libraries are fairly broken
12331 hardcode_direct_CXX=yes
12332 hardcode_shlibpath_var_CXX=no
12333 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12334 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12336 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12337 export_dynamic_flag_spec_CXX='${wl}-E'
12338 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12340 output_verbose_link_cmd='echo'
12343 case $cc_basename in
12345 # Kuck and Associates, Inc. (KAI) C++ Compiler
12347 # KCC will only create a shared library if the output file
12348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12349 # to its proper name (with version) after linking.
12350 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'
12352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12353 hardcode_libdir_separator_CXX=:
12355 # Archives containing C++ object files must be created using
12356 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12357 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12361 # Rational C++ 2.4.1
12362 # FIXME: insert proper C++ library support
12366 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12367 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'
12369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12370 hardcode_libdir_separator_CXX=:
12372 # Commands to make compiler produce verbose output that lists
12373 # what "hidden" libraries, object files and flags are used when
12374 # linking a shared library.
12376 # There doesn't appear to be a way to prevent this compiler from
12377 # explicitly linking system object files so we need to strip them
12378 # from the output so that they don't get included in the library
12380 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'
12383 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12384 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12385 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'
12387 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12388 hardcode_libdir_separator_CXX=:
12390 # Commands to make compiler produce verbose output that lists
12391 # what "hidden" libraries, object files and flags are used when
12392 # linking a shared library.
12393 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12396 # FIXME: insert proper C++ library support
12403 case $cc_basename in
12405 # Kuck and Associates, Inc. (KAI) C++ Compiler
12407 # KCC will only create a shared library if the output file
12408 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12409 # to its proper name (with version) after linking.
12410 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'
12412 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12413 hardcode_libdir_separator_CXX=:
12415 # Archives containing C++ object files must be created using
12416 # the KAI C++ compiler.
12417 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12420 # Rational C++ 2.4.1
12421 # FIXME: insert proper C++ library support
12425 allow_undefined_flag_CXX=' -expect_unresolved \*'
12426 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'
12427 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12428 echo "-hidden">> $lib.exp~
12429 $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~
12432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12433 hardcode_libdir_separator_CXX=:
12435 # Commands to make compiler produce verbose output that lists
12436 # what "hidden" libraries, object files and flags are used when
12437 # linking a shared library.
12439 # There doesn't appear to be a way to prevent this compiler from
12440 # explicitly linking system object files so we need to strip them
12441 # from the output so that they don't get included in the library
12443 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'
12446 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12448 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'
12450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12451 hardcode_libdir_separator_CXX=:
12453 # Commands to make compiler produce verbose output that lists
12454 # what "hidden" libraries, object files and flags are used when
12455 # linking a shared library.
12456 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12459 # FIXME: insert proper C++ library support
12466 # FIXME: insert proper C++ library support
12470 case $cc_basename in
12473 # FIXME: insert proper C++ library support
12478 # FIXME: insert proper C++ library support
12482 # FIXME: insert proper C++ library support
12488 case $cc_basename in
12490 # Sun C++ 4.2, 5.x and Centerline C++
12491 archive_cmds_need_lc_CXX=yes
12492 no_undefined_flag_CXX=' -zdefs'
12493 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12494 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12495 $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'
12497 hardcode_libdir_flag_spec_CXX='-R$libdir'
12498 hardcode_shlibpath_var_CXX=no
12500 solaris2.[0-5] | solaris2.[0-5].*) ;;
12502 # The C++ compiler is used as linker so we must use $wl
12503 # flag to pass the commands to the underlying system
12504 # linker. We must also pass each convience library through
12505 # to the system linker between allextract/defaultextract.
12506 # The C++ compiler will combine linker options so we
12507 # cannot just pass the convience library names through
12509 # Supported since Solaris 2.6 (maybe 2.5.1?)
12510 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12513 link_all_deplibs_CXX=yes
12515 output_verbose_link_cmd='echo'
12517 # Archives containing C++ object files must be created using
12518 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12519 # necessary to make sure instantiated templates are included
12521 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12524 # Green Hills C++ Compiler
12525 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12527 # The C++ compiler must be used to create the archive.
12528 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12531 # GNU C++ compiler with Solaris linker
12532 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12533 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12534 if $CC --version | grep -v '^2\.7' > /dev/null; then
12535 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12536 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12537 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12539 # Commands to make compiler produce verbose output that lists
12540 # what "hidden" libraries, object files and flags are used when
12541 # linking a shared library.
12542 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12544 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12546 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12547 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12548 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12550 # Commands to make compiler produce verbose output that lists
12551 # what "hidden" libraries, object files and flags are used when
12552 # linking a shared library.
12553 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12556 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12561 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12562 no_undefined_flag_CXX='${wl}-z,text'
12563 archive_cmds_need_lc_CXX=no
12564 hardcode_shlibpath_var_CXX=no
12565 runpath_var='LD_RUN_PATH'
12567 case $cc_basename in
12569 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12570 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12574 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12578 sysv5* | sco3.2v5* | sco5v6*)
12579 # Note: We can NOT use -z defs as we might desire, because we do not
12580 # link with -lc, and that would cause any symbols used from libc to
12581 # always be unresolved, which means just about no library would
12582 # ever link correctly. If we're not using GNU ld we use -z text
12583 # though, which does catch some bad symbols but isn't as heavy-handed
12585 # For security reasons, it is highly recommended that you always
12586 # use absolute paths for naming shared libraries, and exclude the
12587 # DT_RUNPATH tag from executables and libraries. But doing so
12588 # requires that you compile everything twice, which is a pain.
12589 # So that behaviour is only enabled if SCOABSPATH is set to a
12590 # non-empty value in the environment. Most likely only useful for
12591 # creating official distributions of packages.
12592 # This is a hack until libtool officially supports absolute path
12593 # names for shared libraries.
12594 no_undefined_flag_CXX='${wl}-z,text'
12595 allow_undefined_flag_CXX='${wl}-z,nodefs'
12596 archive_cmds_need_lc_CXX=no
12597 hardcode_shlibpath_var_CXX=no
12598 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12599 hardcode_libdir_separator_CXX=':'
12600 link_all_deplibs_CXX=yes
12601 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12602 runpath_var='LD_RUN_PATH'
12604 case $cc_basename in
12606 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12607 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12610 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12611 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12616 case $cc_basename in
12618 # NonStop-UX NCC 3.20
12619 # FIXME: insert proper C++ library support
12623 # FIXME: insert proper C++ library support
12629 # FIXME: insert proper C++ library support
12633 # FIXME: insert proper C++ library support
12637 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12638 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12639 test "$ld_shlibs_CXX" = no && can_build_shared=no
12645 ## There is no encapsulation within the following macros, do not change
12646 ## the running order or otherwise move them around unless you know exactly
12647 ## what you are doing...
12649 cat > conftest.$ac_ext <<EOF
12653 Foo (void) { a = 0; }
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; then
12664 # Parse the compiler output and extract the necessary
12665 # objects, libraries and library flags.
12667 # Sentinel used to keep track of whether or not we are before
12668 # the conftest object file.
12669 pre_test_object_deps_done=no
12671 # The `*' in the case matches for architectures that use `case' in
12672 # $output_verbose_cmd can trigger glob expansion during the loop
12673 # eval without this substitution.
12674 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12676 for p in `eval $output_verbose_link_cmd`; do
12680 # Some compilers place space between "-{L,R}" and the path.
12681 # Remove the space.
12682 if test $p = "-L" \
12683 || test $p = "-R"; then
12690 if test "$pre_test_object_deps_done" = no; then
12693 # Internal compiler library paths should come after those
12694 # provided the user. The postdeps already come after the
12695 # user supplied libs so there is no need to process them.
12696 if test -z "$compiler_lib_search_path_CXX"; then
12697 compiler_lib_search_path_CXX="${prev}${p}"
12699 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12702 # The "-l" case would never come before the object being
12703 # linked, so don't bother handling this case.
12706 if test -z "$postdeps_CXX"; then
12707 postdeps_CXX="${prev}${p}"
12709 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12715 # This assumes that the test object file only shows up
12716 # once in the compiler output.
12717 if test "$p" = "conftest.$objext"; then
12718 pre_test_object_deps_done=yes
12722 if test "$pre_test_object_deps_done" = no; then
12723 if test -z "$predep_objects_CXX"; then
12724 predep_objects_CXX="$p"
12726 predep_objects_CXX="$predep_objects_CXX $p"
12729 if test -z "$postdep_objects_CXX"; then
12730 postdep_objects_CXX="$p"
12732 postdep_objects_CXX="$postdep_objects_CXX $p"
12737 *) ;; # Ignore the rest.
12745 echo "libtool.m4: error: problem compiling CXX test program"
12748 $rm -f confest.$objext
12750 # PORTME: override above test on systems where it is broken
12753 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12754 # hack all around it, let's just trust "g++" to DTRT.
12755 predep_objects_CXX=
12756 postdep_objects_CXX=
12761 case $cc_basename in
12763 # Adding this requires a known-good setup of shared libraries for
12764 # Sun compiler versions before 5.6, else PIC objects from an old
12765 # archive will be linked into the output, leading to subtle bugs.
12766 postdeps_CXX='-lCstd -lCrun'
12773 case " $postdeps_CXX " in
12774 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12777 lt_prog_compiler_wl_CXX=
12778 lt_prog_compiler_pic_CXX=
12779 lt_prog_compiler_static_CXX=
12781 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12782 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12784 # C++ specific cases for pic, static, wl, etc.
12785 if test "$GXX" = yes; then
12786 lt_prog_compiler_wl_CXX='-Wl,'
12787 lt_prog_compiler_static_CXX='-static'
12791 # All AIX code is PIC.
12792 if test "$host_cpu" = ia64; then
12793 # AIX 5 now supports IA64 processor
12794 lt_prog_compiler_static_CXX='-Bstatic'
12798 # FIXME: we need at least 68020 code to build shared libraries, but
12799 # adding the `-m68020' flag to GCC prevents building anything better,
12801 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12803 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12804 # PIC is the default for these OSes.
12806 mingw* | os2* | pw32*)
12807 # This hack is so that the source file can tell whether it is being
12808 # built for inclusion in a dll (and should export symbols for example).
12809 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12811 darwin* | rhapsody*)
12812 # PIC is the default on this platform
12813 # Common symbols not allowed in MH_DYLIB files
12814 lt_prog_compiler_pic_CXX='-fno-common'
12817 # DJGPP does not support shared libraries at all
12818 lt_prog_compiler_pic_CXX=
12821 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12822 # Instead, we relocate shared libraries at runtime.
12825 if test -d /usr/nec; then
12826 lt_prog_compiler_pic_CXX=-Kconform_pic
12830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12831 # not for PA HP-UX.
12836 lt_prog_compiler_pic_CXX='-fPIC'
12841 lt_prog_compiler_pic_CXX='-fPIC'
12847 # All AIX code is PIC.
12848 if test "$host_cpu" = ia64; then
12849 # AIX 5 now supports IA64 processor
12850 lt_prog_compiler_static_CXX='-Bstatic'
12852 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12856 case $cc_basename in
12858 # Green Hills C++ Compiler
12859 # _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"
12864 # PIC is the default on this platform
12865 # Common symbols not allowed in MH_DYLIB files
12866 case $cc_basename in
12868 lt_prog_compiler_pic_CXX='-qnocommon'
12869 lt_prog_compiler_wl_CXX='-Wl,'
12874 case $cc_basename in
12876 lt_prog_compiler_pic_CXX='-KPIC'
12879 # Green Hills C++ Compiler
12880 lt_prog_compiler_pic_CXX='-pic'
12886 freebsd* | kfreebsd*-gnu | dragonfly*)
12887 # FreeBSD uses GNU C++
12889 hpux9* | hpux10* | hpux11*)
12890 case $cc_basename in
12892 lt_prog_compiler_wl_CXX='-Wl,'
12893 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12894 if test "$host_cpu" != ia64; then
12895 lt_prog_compiler_pic_CXX='+Z'
12899 lt_prog_compiler_wl_CXX='-Wl,'
12900 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12906 lt_prog_compiler_pic_CXX='+Z'
12915 # This is c89, which is MS Visual C++ (no shared libs)
12916 # Anyone wants to do a port?
12918 irix5* | irix6* | nonstopux*)
12919 case $cc_basename in
12921 lt_prog_compiler_wl_CXX='-Wl,'
12922 lt_prog_compiler_static_CXX='-non_shared'
12923 # CC pic flag -KPIC is the default.
12930 case $cc_basename in
12933 lt_prog_compiler_wl_CXX='--backend -Wl,'
12934 lt_prog_compiler_pic_CXX='-fPIC'
12938 lt_prog_compiler_wl_CXX='-Wl,'
12939 lt_prog_compiler_pic_CXX='-KPIC'
12940 lt_prog_compiler_static_CXX='-static'
12943 # Portland Group C++ compiler.
12944 lt_prog_compiler_wl_CXX='-Wl,'
12945 lt_prog_compiler_pic_CXX='-fpic'
12946 lt_prog_compiler_static_CXX='-Bstatic'
12950 # Make sure the PIC flag is empty. It appears that all Alpha
12951 # Linux and Compaq Tru64 Unix objects are PIC.
12952 lt_prog_compiler_pic_CXX=
12953 lt_prog_compiler_static_CXX='-non_shared'
12964 case $cc_basename in
12966 lt_prog_compiler_pic_CXX='-W c,exportall'
12974 osf3* | osf4* | osf5*)
12975 case $cc_basename in
12977 lt_prog_compiler_wl_CXX='--backend -Wl,'
12980 # Rational C++ 2.4.1
12981 lt_prog_compiler_pic_CXX='-pic'
12984 # Digital/Compaq C++
12985 lt_prog_compiler_wl_CXX='-Wl,'
12986 # Make sure the PIC flag is empty. It appears that all Alpha
12987 # Linux and Compaq Tru64 Unix objects are PIC.
12988 lt_prog_compiler_pic_CXX=
12989 lt_prog_compiler_static_CXX='-non_shared'
12998 case $cc_basename in
13000 # Sun C++ 4.2, 5.x and Centerline C++
13001 lt_prog_compiler_pic_CXX='-KPIC'
13002 lt_prog_compiler_static_CXX='-Bstatic'
13003 lt_prog_compiler_wl_CXX='-Qoption ld '
13006 # Green Hills C++ Compiler
13007 lt_prog_compiler_pic_CXX='-PIC'
13014 case $cc_basename in
13017 lt_prog_compiler_pic_CXX='-pic'
13018 lt_prog_compiler_static_CXX='-Bstatic'
13022 lt_prog_compiler_pic_CXX='-pic'
13029 case $cc_basename in
13031 # NonStop-UX NCC 3.20
13032 lt_prog_compiler_pic_CXX='-KPIC'
13038 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13039 case $cc_basename in
13041 lt_prog_compiler_wl_CXX='-Wl,'
13042 lt_prog_compiler_pic_CXX='-KPIC'
13043 lt_prog_compiler_static_CXX='-Bstatic'
13050 lt_prog_compiler_can_build_shared_CXX=no
13055 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13056 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13059 # Check to make sure the PIC flag actually works.
13061 if test -n "$lt_prog_compiler_pic_CXX"; then
13063 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13064 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13065 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 lt_prog_compiler_pic_works_CXX=no
13069 ac_outfile=conftest.$ac_objext
13070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13071 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13072 # Insert the option either (1) after the last *FLAGS variable, or
13073 # (2) before a word containing "conftest.", or (3) at the end.
13074 # Note that $ac_compile itself does not contain backslashes and begins
13075 # with a dollar sign (not a hyphen), so the echo should work correctly.
13076 # The option is referenced via a variable to avoid confusing sed.
13077 lt_compile=`echo "$ac_compile" | $SED \
13078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13080 -e 's:$: $lt_compiler_flag:'`
13081 (eval echo "\"\$as_me:13081: $lt_compile\"" >&5)
13082 (eval "$lt_compile" 2>conftest.err)
13084 cat conftest.err >&5
13085 echo "$as_me:13085: \$? = $ac_status" >&5
13086 if (exit $ac_status) && test -s "$ac_outfile"; then
13087 # The compiler can only warn and ignore the option if not recognized
13088 # So say no if there are warnings other than the usual output.
13089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13092 lt_prog_compiler_pic_works_CXX=yes
13098 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13099 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13101 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13102 case $lt_prog_compiler_pic_CXX in
13104 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13107 lt_prog_compiler_pic_CXX=
13108 lt_prog_compiler_can_build_shared_CXX=no
13113 # For platforms which do not support PIC, -DPIC is meaningless:
13115 lt_prog_compiler_pic_CXX=
13118 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13123 # Check to make sure the static flag actually works.
13125 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13126 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13127 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13128 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 lt_prog_compiler_static_works_CXX=no
13132 save_LDFLAGS="$LDFLAGS"
13133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13134 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13136 # The linker can only warn and ignore the option if not recognized
13137 # So say no if there are warnings
13138 if test -s conftest.err; then
13139 # Append any errors to the config.log.
13140 cat conftest.err 1>&5
13141 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13143 if diff conftest.exp conftest.er2 >/dev/null; then
13144 lt_prog_compiler_static_works_CXX=yes
13147 lt_prog_compiler_static_works_CXX=yes
13151 LDFLAGS="$save_LDFLAGS"
13154 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13155 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13157 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13160 lt_prog_compiler_static_CXX=
13164 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13165 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13166 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13169 lt_cv_prog_compiler_c_o_CXX=no
13170 $rm -r conftest 2>/dev/null
13174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13176 lt_compiler_flag="-o out/conftest2.$ac_objext"
13177 # Insert the option either (1) after the last *FLAGS variable, or
13178 # (2) before a word containing "conftest.", or (3) at the end.
13179 # Note that $ac_compile itself does not contain backslashes and begins
13180 # with a dollar sign (not a hyphen), so the echo should work correctly.
13181 lt_compile=`echo "$ac_compile" | $SED \
13182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13184 -e 's:$: $lt_compiler_flag:'`
13185 (eval echo "\"\$as_me:13185: $lt_compile\"" >&5)
13186 (eval "$lt_compile" 2>out/conftest.err)
13188 cat out/conftest.err >&5
13189 echo "$as_me:13189: \$? = $ac_status" >&5
13190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13192 # The compiler can only warn and ignore the option if not recognized
13193 # So say no if there are warnings
13194 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13197 lt_cv_prog_compiler_c_o_CXX=yes
13202 # SGI C++ compiler will create directory out/ii_files/ for
13203 # template instantiation
13204 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13205 $rm out/* && rmdir out
13211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13212 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13215 hard_links="nottested"
13216 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13217 # do not overwrite the value of need_locks provided by the user
13218 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13224 ln conftest.a conftest.b 2>&5 || hard_links=no
13225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13226 { echo "$as_me:$LINENO: result: $hard_links" >&5
13227 echo "${ECHO_T}$hard_links" >&6; }
13228 if test "$hard_links" = no; then
13229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13237 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13240 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13243 # If we're using GNU nm, then we don't want the "-C" option.
13244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13245 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13246 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'
13248 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'
13252 export_symbols_cmds_CXX="$ltdll_cmds"
13255 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'
13258 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13262 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13263 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13264 test "$ld_shlibs_CXX" = no && can_build_shared=no
13267 # Do we need to explicitly link libc?
13269 case "x$archive_cmds_need_lc_CXX" in
13271 # Assume -lc should be added
13272 archive_cmds_need_lc_CXX=yes
13274 if test "$enable_shared" = yes && test "$GCC" = yes; then
13275 case $archive_cmds_CXX in
13277 # FIXME: we may have to deal with multi-command sequences.
13280 # Test whether the compiler implicitly links with -lc since on some
13281 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13282 # to ld, don't add -lc before -lgcc.
13283 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13284 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289 (eval $ac_compile) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } 2>conftest.err; then
13295 libobjs=conftest.$ac_objext
13297 wl=$lt_prog_compiler_wl_CXX
13298 pic_flag=$lt_prog_compiler_pic_CXX
13304 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13305 allow_undefined_flag_CXX=
13306 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13307 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }
13312 archive_cmds_need_lc_CXX=no
13314 archive_cmds_need_lc_CXX=yes
13316 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13318 cat conftest.err 1>&5
13321 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13322 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13329 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13330 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13331 library_names_spec=
13332 libname_spec='lib$name'
13336 postuninstall_cmds=
13340 shlibpath_overrides_runpath=unknown
13342 dynamic_linker="$host_os ld.so"
13343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13344 if test "$GCC" = yes; then
13345 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13346 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13347 # if the path contains ";" then we assume it to be the separator
13348 # otherwise default to the standard path separator (i.e. ":") - it is
13349 # assumed that no part of a normal pathname contains ";" but that should
13350 # okay in the real world where ";" in dirpaths is itself problematic.
13351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13358 need_lib_prefix=unknown
13359 hardcode_into_libs=no
13361 # when you set need_version to no, make sure it does not cause -set_version
13362 # flags to be left without arguments
13363 need_version=unknown
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13369 shlibpath_var=LIBPATH
13371 # AIX 3 has no versioning support, so we append a major version to the name.
13372 soname_spec='${libname}${release}${shared_ext}$major'
13379 hardcode_into_libs=yes
13380 if test "$host_cpu" = ia64; then
13381 # AIX 5 supports IA64
13382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13383 shlibpath_var=LD_LIBRARY_PATH
13385 # With GCC up to 2.95.x, collect2 would create an import file
13386 # for dependence libraries. The import file would start with
13387 # the line `#! .'. This would cause the generated library to
13388 # depend on `.', always an invalid library. This was fixed in
13389 # development snapshots of GCC prior to 3.0.
13391 aix4 | aix4.[01] | aix4.[01].*)
13392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13394 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13397 can_build_shared=no
13401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13402 # soname into executable. Probably we can add versioning support to
13403 # collect2, so additional links can be useful in future.
13404 if test "$aix_use_runtimelinking" = yes; then
13405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13406 # instead of lib<name>.a to let people know that these are not
13407 # typical AIX shared libraries.
13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13410 # We preserve .a as extension for shared libraries through AIX4.2
13411 # and later when we are not doing run time linking.
13412 library_names_spec='${libname}${release}.a $libname.a'
13413 soname_spec='${libname}${release}${shared_ext}$major'
13415 shlibpath_var=LIBPATH
13420 library_names_spec='$libname.ixlibrary $libname.a'
13421 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13422 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'
13426 library_names_spec='${libname}${shared_ext}'
13427 dynamic_linker="$host_os ld.so"
13428 shlibpath_var=LIBRARY_PATH
13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435 soname_spec='${libname}${release}${shared_ext}$major'
13436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13440 # the default ld.so.conf also contains /usr/contrib/lib and
13441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13442 # libtool to hard-code these into programs
13445 cygwin* | mingw* | pw32*)
13446 version_type=windows
13451 case $GCC,$host_os in
13452 yes,cygwin* | yes,mingw* | yes,pw32*)
13453 library_names_spec='$libname.dll.a'
13454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13455 postinstall_cmds='base_file=`basename \${file}`~
13456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13457 dldir=$destdir/`dirname \$dlpath`~
13458 test -d \$dldir || mkdir -p \$dldir~
13459 $install_prog $dir/$dlname \$dldir/$dlname~
13460 chmod a+x \$dldir/$dlname'
13461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13462 dlpath=$dir/\$dldll~
13464 shlibpath_overrides_runpath=yes
13468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13470 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13473 # MinGW DLLs use traditional 'lib' prefix
13474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13476 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13477 # It is most probably a Windows format PATH printed by
13478 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13479 # path with ; separators, and with drive letters. We can handle the
13480 # drive letters (cygwin fileutils understands them), so leave them,
13481 # especially as we might pass files found there to a mingw objdump,
13482 # which wouldn't understand a cygwinified path. Ahh.
13483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13489 # pw32 DLLs use 'pw' prefix rather than 'lib'
13490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13499 dynamic_linker='Win32 ld.exe'
13500 # FIXME: first we should search . and the directory the executable is in
13504 darwin* | rhapsody*)
13505 dynamic_linker="$host_os dyld"
13506 version_type=darwin
13509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13510 soname_spec='${libname}${release}${major}$shared_ext'
13511 shlibpath_overrides_runpath=yes
13512 shlibpath_var=DYLD_LIBRARY_PATH
13513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13514 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13515 if test "$GCC" = yes; then
13516 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13518 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 shlibpath_var=LD_LIBRARY_PATH
13540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13541 soname_spec='${libname}${release}${shared_ext}$major'
13542 shlibpath_var=LD_LIBRARY_PATH
13543 shlibpath_overrides_runpath=no
13544 hardcode_into_libs=yes
13545 dynamic_linker='GNU ld.so'
13548 freebsd* | dragonfly*)
13549 # DragonFly does not have aout. When/if they implement a new
13550 # versioning mechanism, adjust this.
13551 if test -x /usr/bin/objformat; then
13552 objformat=`/usr/bin/objformat`
13555 freebsd[123]*) objformat=aout ;;
13556 *) objformat=elf ;;
13559 version_type=freebsd-$objformat
13560 case $version_type in
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13571 shlibpath_var=LD_LIBRARY_PATH
13574 shlibpath_overrides_runpath=yes
13576 freebsd3.[01]* | freebsdelf3.[01]*)
13577 shlibpath_overrides_runpath=yes
13578 hardcode_into_libs=yes
13580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13582 shlibpath_overrides_runpath=no
13583 hardcode_into_libs=yes
13585 freebsd*) # from 4.6 on
13586 shlibpath_overrides_runpath=yes
13587 hardcode_into_libs=yes
13596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13597 soname_spec='${libname}${release}${shared_ext}$major'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 hardcode_into_libs=yes
13602 hpux9* | hpux10* | hpux11*)
13603 # Give a soname corresponding to the major version so that dld.sl refuses to
13604 # link against other versions.
13611 hardcode_into_libs=yes
13612 dynamic_linker="$host_os dld.so"
13613 shlibpath_var=LD_LIBRARY_PATH
13614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616 soname_spec='${libname}${release}${shared_ext}$major'
13617 if test "X$HPUX_IA64_MODE" = X32; then
13618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13626 hardcode_into_libs=yes
13627 dynamic_linker="$host_os dld.sl"
13628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631 soname_spec='${libname}${release}${shared_ext}$major'
13632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13637 dynamic_linker="$host_os dld.sl"
13638 shlibpath_var=SHLIB_PATH
13639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641 soname_spec='${libname}${release}${shared_ext}$major'
13644 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13645 postinstall_cmds='chmod 555 $lib'
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13653 soname_spec='${libname}${release}${shared_ext}$major'
13654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 shlibpath_overrides_runpath=no
13657 hardcode_into_libs=yes
13660 irix5* | irix6* | nonstopux*)
13662 nonstopux*) version_type=nonstopux ;;
13664 if test "$lt_cv_prog_gnu_ld" = yes; then
13672 soname_spec='${libname}${release}${shared_ext}$major'
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13675 irix5* | nonstopux*)
13676 libsuff= shlibsuff=
13679 case $LD in # libtool.m4 will add one of these switches to LD
13680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13681 libsuff= shlibsuff= libmagic=32-bit;;
13682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13683 libsuff=32 shlibsuff=N32 libmagic=N32;;
13684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13686 *) libsuff= shlibsuff= libmagic=never-match;;
13690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13691 shlibpath_overrides_runpath=no
13692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13694 hardcode_into_libs=yes
13697 # No shared lib support for Linux oldld, aout, or coff.
13698 linux*oldld* | linux*aout* | linux*coff*)
13702 # This must be Linux ELF.
13707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13708 soname_spec='${libname}${release}${shared_ext}$major'
13709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13710 shlibpath_var=LD_LIBRARY_PATH
13711 shlibpath_overrides_runpath=no
13712 # This implies no fast_install, which is unacceptable.
13713 # Some rework will be needed to allow for fast_install
13714 # before this can be enabled.
13715 hardcode_into_libs=yes
13717 # Append ld.so.conf contents to the search path
13718 if test -f /etc/ld.so.conf; then
13719 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13720 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13723 # We used to test for /lib/ld.so.1 and disable shared libraries on
13724 # powerpc, because MkLinux only supported shared libraries with the
13725 # GNU dynamic linker. Since this was broken with cross compilers,
13726 # most powerpc-linux boxes support dynamic linking these days and
13727 # people can always --disable-shared, the test was removed, and we
13728 # assume the GNU/Linux dynamic linker is in use.
13729 dynamic_linker='GNU/Linux ld.so'
13736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13737 soname_spec='${libname}${release}${shared_ext}$major'
13738 shlibpath_var=LD_LIBRARY_PATH
13739 shlibpath_overrides_runpath=no
13740 hardcode_into_libs=yes
13741 dynamic_linker='GNU ld.so'
13748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13751 dynamic_linker='NetBSD (a.out) ld.so'
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 dynamic_linker='NetBSD ld.elf_so'
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=yes
13759 hardcode_into_libs=yes
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765 shlibpath_var=LD_LIBRARY_PATH
13766 shlibpath_overrides_runpath=yes
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13774 soname_spec='${libname}${release}${shared_ext}$major'
13775 shlibpath_var=LD_LIBRARY_PATH
13776 shlibpath_overrides_runpath=yes
13781 sys_lib_dlsearch_path_spec="/usr/lib"
13783 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13785 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13786 *) need_version=no ;;
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13790 shlibpath_var=LD_LIBRARY_PATH
13791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13793 openbsd2.[89] | openbsd2.[89].*)
13794 shlibpath_overrides_runpath=no
13797 shlibpath_overrides_runpath=yes
13801 shlibpath_overrides_runpath=yes
13806 libname_spec='$name'
13809 library_names_spec='$libname${shared_ext} $libname.a'
13810 dynamic_linker='OS/2 ld.exe'
13811 shlibpath_var=LIBPATH
13814 osf3* | osf4* | osf5*)
13818 soname_spec='${libname}${release}${shared_ext}$major'
13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830 soname_spec='${libname}${release}${shared_ext}$major'
13831 shlibpath_var=LD_LIBRARY_PATH
13832 shlibpath_overrides_runpath=yes
13833 hardcode_into_libs=yes
13834 # ldd complains unless libraries are executable
13835 postinstall_cmds='chmod +x $lib'
13840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13841 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13842 shlibpath_var=LD_LIBRARY_PATH
13843 shlibpath_overrides_runpath=yes
13844 if test "$with_gnu_ld" = yes; then
13852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13853 soname_spec='${libname}${release}${shared_ext}$major'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 case $host_vendor in
13857 shlibpath_overrides_runpath=no
13859 export_dynamic_flag_spec='${wl}-Blargedynsym'
13860 runpath_var=LD_RUN_PATH
13868 shlibpath_overrides_runpath=no
13869 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13875 if test -d /usr/nec ;then
13877 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13878 soname_spec='$libname${shared_ext}.$major'
13879 shlibpath_var=LD_LIBRARY_PATH
13883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13884 version_type=freebsd-elf
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13888 soname_spec='${libname}${release}${shared_ext}$major'
13889 shlibpath_var=LD_LIBRARY_PATH
13890 hardcode_into_libs=yes
13891 if test "$with_gnu_ld" = yes; then
13892 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13893 shlibpath_overrides_runpath=no
13895 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13896 shlibpath_overrides_runpath=yes
13899 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13903 sys_lib_dlsearch_path_spec='/usr/lib'
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 shlibpath_var=LD_LIBRARY_PATH
13917 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13918 echo "${ECHO_T}$dynamic_linker" >&6; }
13919 test "$dynamic_linker" = no && can_build_shared=no
13921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13922 if test "$GCC" = yes; then
13923 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13926 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13927 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13928 hardcode_action_CXX=
13929 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13930 test -n "$runpath_var_CXX" || \
13931 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13933 # We can hardcode non-existant directories.
13934 if test "$hardcode_direct_CXX" != no &&
13935 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13936 # have to relink, otherwise we might link with an installed library
13937 # when we should be linking with a yet-to-be-installed one
13938 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13939 test "$hardcode_minus_L_CXX" != no; then
13940 # Linking always hardcodes the temporary library directory.
13941 hardcode_action_CXX=relink
13943 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13944 hardcode_action_CXX=immediate
13947 # We cannot hardcode anything, or else we can only hardcode existing
13949 hardcode_action_CXX=unsupported
13951 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13952 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13954 if test "$hardcode_action_CXX" = relink; then
13955 # Fast installation is not supported
13956 enable_fast_install=no
13957 elif test "$shlibpath_overrides_runpath" = yes ||
13958 test "$enable_shared" = no; then
13959 # Fast installation is not necessary
13960 enable_fast_install=needless
13964 # The else clause should only fire when bootstrapping the
13965 # libtool distribution, otherwise you forgot to ship ltmain.sh
13966 # with your package, and you will get complaints that there are
13967 # no rules to generate ltmain.sh.
13968 if test -f "$ltmain"; then
13969 # See if we are running on zsh, and set the options which allow our commands through
13970 # without removal of \ escapes.
13971 if test -n "${ZSH_VERSION+set}" ; then
13972 setopt NO_GLOB_SUBST
13974 # Now quote all the things that may contain metacharacters while being
13975 # careful not to overquote the AC_SUBSTed values. We take copies of the
13976 # variables and quote the copies for generation of the libtool script.
13977 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13979 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13980 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13981 deplibs_check_method reload_flag reload_cmds need_locks \
13982 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13983 lt_cv_sys_global_symbol_to_c_name_address \
13984 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13985 old_postinstall_cmds old_postuninstall_cmds \
13989 lt_prog_compiler_wl_CXX \
13990 lt_prog_compiler_pic_CXX \
13991 lt_prog_compiler_static_CXX \
13992 lt_prog_compiler_no_builtin_flag_CXX \
13993 export_dynamic_flag_spec_CXX \
13994 thread_safe_flag_spec_CXX \
13995 whole_archive_flag_spec_CXX \
13996 enable_shared_with_static_runtimes_CXX \
13997 old_archive_cmds_CXX \
13998 old_archive_from_new_cmds_CXX \
13999 predep_objects_CXX \
14000 postdep_objects_CXX \
14003 compiler_lib_search_path_CXX \
14005 archive_expsym_cmds_CXX \
14006 postinstall_cmds_CXX \
14007 postuninstall_cmds_CXX \
14008 old_archive_from_expsyms_cmds_CXX \
14009 allow_undefined_flag_CXX \
14010 no_undefined_flag_CXX \
14011 export_symbols_cmds_CXX \
14012 hardcode_libdir_flag_spec_CXX \
14013 hardcode_libdir_flag_spec_ld_CXX \
14014 hardcode_libdir_separator_CXX \
14015 hardcode_automatic_CXX \
14017 module_expsym_cmds_CXX \
14018 lt_cv_prog_compiler_c_o_CXX \
14019 exclude_expsyms_CXX \
14020 include_expsyms_CXX; do
14023 old_archive_cmds_CXX | \
14024 old_archive_from_new_cmds_CXX | \
14025 archive_cmds_CXX | \
14026 archive_expsym_cmds_CXX | \
14027 module_cmds_CXX | \
14028 module_expsym_cmds_CXX | \
14029 old_archive_from_expsyms_cmds_CXX | \
14030 export_symbols_cmds_CXX | \
14031 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14032 postinstall_cmds | postuninstall_cmds | \
14033 old_postinstall_cmds | old_postuninstall_cmds | \
14034 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14035 # Double-quote double-evaled strings.
14036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14045 *'\$0 --fallback-echo"')
14046 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14052 cat <<__EOF__ >> "$cfgfile"
14053 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14057 # Shell to use when invoking shell scripts.
14060 # Whether or not to build shared libraries.
14061 build_libtool_libs=$enable_shared
14063 # Whether or not to build static libraries.
14064 build_old_libs=$enable_static
14066 # Whether or not to add -lc for building shared libraries.
14067 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14069 # Whether or not to disallow shared libs when runtime libs are static
14070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14072 # Whether or not to optimize for fast installation.
14073 fast_install=$enable_fast_install
14076 host_alias=$host_alias
14080 # The build system.
14081 build_alias=$build_alias
14085 # An echo program that does not interpret backslashes.
14090 AR_FLAGS=$lt_AR_FLAGS
14095 # LTCC compiler flags.
14096 LTCFLAGS=$lt_LTCFLAGS
14098 # A language-specific compiler.
14099 CC=$lt_compiler_CXX
14101 # Is the compiler the GNU C compiler?
14107 # The linker used to build libraries.
14110 # Whether we need hard or soft links.
14113 # A BSD-compatible nm program.
14116 # A symbol stripping program
14119 # Used to examine libraries when file_magic_cmd begins "file"
14120 MAGIC_CMD=$MAGIC_CMD
14122 # Used on cygwin: DLL creation program.
14125 # Used on cygwin: object dumper.
14128 # Used on cygwin: assembler.
14131 # The name of the directory that contains temporary libtool files.
14134 # How to create reloadable object files.
14135 reload_flag=$lt_reload_flag
14136 reload_cmds=$lt_reload_cmds
14138 # How to pass a linker flag through the compiler.
14139 wl=$lt_lt_prog_compiler_wl_CXX
14141 # Object file suffix (normally "o").
14142 objext="$ac_objext"
14144 # Old archive suffix (normally "a").
14147 # Shared library suffix (normally ".so").
14148 shrext_cmds='$shrext_cmds'
14150 # Executable file suffix (normally "").
14153 # Additional compiler flags for building library objects.
14154 pic_flag=$lt_lt_prog_compiler_pic_CXX
14157 # What is the maximum length of a command?
14158 max_cmd_len=$lt_cv_sys_max_cmd_len
14160 # Does compiler simultaneously support -c and -o options?
14161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14163 # Must we lock files when doing compilation?
14164 need_locks=$lt_need_locks
14166 # Do we need the lib prefix for modules?
14167 need_lib_prefix=$need_lib_prefix
14169 # Do we need a version for libraries?
14170 need_version=$need_version
14172 # Whether dlopen is supported.
14173 dlopen_support=$enable_dlopen
14175 # Whether dlopen of programs is supported.
14176 dlopen_self=$enable_dlopen_self
14178 # Whether dlopen of statically linked programs is supported.
14179 dlopen_self_static=$enable_dlopen_self_static
14181 # Compiler flag to prevent dynamic linking.
14182 link_static_flag=$lt_lt_prog_compiler_static_CXX
14184 # Compiler flag to turn off builtin functions.
14185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14187 # Compiler flag to allow reflexive dlopens.
14188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14190 # Compiler flag to generate shared objects directly from archives.
14191 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14193 # Compiler flag to generate thread-safe objects.
14194 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14196 # Library versioning type.
14197 version_type=$version_type
14199 # Format of library name prefix.
14200 libname_spec=$lt_libname_spec
14202 # List of archive names. First name is the real one, the rest are links.
14203 # The last name is the one that the linker finds with -lNAME.
14204 library_names_spec=$lt_library_names_spec
14206 # The coded name of the library, if different from the real name.
14207 soname_spec=$lt_soname_spec
14209 # Commands used to build and install an old-style archive.
14211 old_archive_cmds=$lt_old_archive_cmds_CXX
14212 old_postinstall_cmds=$lt_old_postinstall_cmds
14213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14215 # Create an old-style archive from a shared archive.
14216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14218 # Create a temporary old-style archive to link instead of a shared archive.
14219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14221 # Commands used to build and install a shared archive.
14222 archive_cmds=$lt_archive_cmds_CXX
14223 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14224 postinstall_cmds=$lt_postinstall_cmds
14225 postuninstall_cmds=$lt_postuninstall_cmds
14227 # Commands used to build a loadable module (assumed same as above if empty)
14228 module_cmds=$lt_module_cmds_CXX
14229 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14231 # Commands to strip libraries.
14232 old_striplib=$lt_old_striplib
14233 striplib=$lt_striplib
14235 # Dependencies to place before the objects being linked to create a
14237 predep_objects=$lt_predep_objects_CXX
14239 # Dependencies to place after the objects being linked to create a
14241 postdep_objects=$lt_postdep_objects_CXX
14243 # Dependencies to place before the objects being linked to create a
14245 predeps=$lt_predeps_CXX
14247 # Dependencies to place after the objects being linked to create a
14249 postdeps=$lt_postdeps_CXX
14251 # The library search path used internally by the compiler when linking
14252 # a shared library.
14253 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14255 # Method to check whether dependent libraries are shared objects.
14256 deplibs_check_method=$lt_deplibs_check_method
14258 # Command to use when deplibs_check_method == file_magic.
14259 file_magic_cmd=$lt_file_magic_cmd
14261 # Flag that allows shared libraries with undefined symbols to be built.
14262 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14264 # Flag that forces no undefined symbols.
14265 no_undefined_flag=$lt_no_undefined_flag_CXX
14267 # Commands used to finish a libtool library installation in a directory.
14268 finish_cmds=$lt_finish_cmds
14270 # Same as above, but a single script fragment to be evaled but not shown.
14271 finish_eval=$lt_finish_eval
14273 # Take the output of nm and produce a listing of raw symbols and C names.
14274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14276 # Transform the output of nm in a proper C declaration
14277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14279 # Transform the output of nm in a C name address pair
14280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14282 # This is the shared library runtime path variable.
14283 runpath_var=$runpath_var
14285 # This is the shared library path variable.
14286 shlibpath_var=$shlibpath_var
14288 # Is shlibpath searched before the hard-coded library search path?
14289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14291 # How to hardcode a shared library path into an executable.
14292 hardcode_action=$hardcode_action_CXX
14294 # Whether we should hardcode library paths into libraries.
14295 hardcode_into_libs=$hardcode_into_libs
14297 # Flag to hardcode \$libdir into a binary during linking.
14298 # This must work even if \$libdir does not exist.
14299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14301 # If ld is used when linking, flag to hardcode \$libdir into
14302 # a binary during linking. This must work even if \$libdir does
14304 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14306 # Whether we need a single -rpath flag with a separated argument.
14307 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14309 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14310 # resulting binary.
14311 hardcode_direct=$hardcode_direct_CXX
14313 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14314 # resulting binary.
14315 hardcode_minus_L=$hardcode_minus_L_CXX
14317 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14318 # the resulting binary.
14319 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14321 # Set to yes if building a shared library automatically hardcodes DIR into the library
14322 # and all subsequent libraries and executables linked against it.
14323 hardcode_automatic=$hardcode_automatic_CXX
14325 # Variables whose values should be saved in libtool wrapper scripts and
14326 # restored at relink time.
14327 variables_saved_for_relink="$variables_saved_for_relink"
14329 # Whether libtool must link a program against all its dependency libraries.
14330 link_all_deplibs=$link_all_deplibs_CXX
14332 # Compile-time system search path for libraries
14333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14335 # Run-time system search path for libraries
14336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14338 # Fix the shell variable \$srcfile for the compiler.
14339 fix_srcfile_path="$fix_srcfile_path_CXX"
14341 # Set to yes if exported symbols are required.
14342 always_export_symbols=$always_export_symbols_CXX
14344 # The commands to list exported symbols.
14345 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14347 # The commands to extract the exported symbol list from a shared archive.
14348 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14350 # Symbols that should not be listed in the preloaded symbols.
14351 exclude_expsyms=$lt_exclude_expsyms_CXX
14353 # Symbols that must always be exported.
14354 include_expsyms=$lt_include_expsyms_CXX
14356 # ### END LIBTOOL TAG CONFIG: $tagname
14362 # If there is no Makefile yet, we rely on a make rule to execute
14363 # `config.status --recheck' to rerun these tests and create the
14364 # libtool script then.
14365 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14366 if test -f "$ltmain_in"; then
14367 test -f Makefile && make "$ltmain"
14373 ac_cpp='$CPP $CPPFLAGS'
14374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14382 with_gnu_ldcxx=$with_gnu_ld
14383 with_gnu_ld=$lt_save_with_gnu_ld
14384 lt_cv_path_LDCXX=$lt_cv_path_LD
14385 lt_cv_path_LD=$lt_save_path_LD
14386 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14387 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14395 if test -n "$F77" && test "X$F77" != "Xno"; then
14398 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14399 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14403 archive_cmds_need_lc_F77=no
14404 allow_undefined_flag_F77=
14405 always_export_symbols_F77=no
14406 archive_expsym_cmds_F77=
14407 export_dynamic_flag_spec_F77=
14408 hardcode_direct_F77=no
14409 hardcode_libdir_flag_spec_F77=
14410 hardcode_libdir_flag_spec_ld_F77=
14411 hardcode_libdir_separator_F77=
14412 hardcode_minus_L_F77=no
14413 hardcode_automatic_F77=no
14415 module_expsym_cmds_F77=
14416 link_all_deplibs_F77=unknown
14417 old_archive_cmds_F77=$old_archive_cmds
14418 no_undefined_flag_F77=
14419 whole_archive_flag_spec_F77=
14420 enable_shared_with_static_runtimes_F77=no
14422 # Source file extension for f77 test sources.
14425 # Object file extension for compiled f77 test sources.
14429 # Code to be used in simple compile tests
14430 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14432 # Code to be used in simple link tests
14433 lt_simple_link_test_code=" program t\n end\n"
14435 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14437 # If no C compiler was specified, use CC.
14440 # If no C compiler flags were specified, use CFLAGS.
14441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14443 # Allow CC to be a program name with arguments.
14447 # save warnings/boilerplate of simple test code
14448 ac_outfile=conftest.$ac_objext
14449 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14450 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14451 _lt_compiler_boilerplate=`cat conftest.err`
14454 ac_outfile=conftest.$ac_objext
14455 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14456 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14457 _lt_linker_boilerplate=`cat conftest.err`
14461 # Allow CC to be a program name with arguments.
14466 for cc_temp in $compiler""; do
14468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14474 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14477 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14478 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14479 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14480 echo "${ECHO_T}$can_build_shared" >&6; }
14482 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14483 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14484 test "$can_build_shared" = "no" && enable_shared=no
14486 # On AIX, shared libraries and static libraries use the same namespace, and
14487 # are all built from PIC.
14490 test "$enable_shared" = yes && enable_static=no
14491 if test -n "$RANLIB"; then
14492 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14493 postinstall_cmds='$RANLIB $lib'
14497 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14498 test "$enable_shared" = yes && enable_static=no
14502 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14503 echo "${ECHO_T}$enable_shared" >&6; }
14505 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14506 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14507 # Make sure either enable_shared or enable_static is yes.
14508 test "$enable_shared" = yes || enable_static=yes
14509 { echo "$as_me:$LINENO: result: $enable_static" >&5
14510 echo "${ECHO_T}$enable_static" >&6; }
14515 lt_prog_compiler_wl_F77=
14516 lt_prog_compiler_pic_F77=
14517 lt_prog_compiler_static_F77=
14519 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14520 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14522 if test "$GCC" = yes; then
14523 lt_prog_compiler_wl_F77='-Wl,'
14524 lt_prog_compiler_static_F77='-static'
14528 # All AIX code is PIC.
14529 if test "$host_cpu" = ia64; then
14530 # AIX 5 now supports IA64 processor
14531 lt_prog_compiler_static_F77='-Bstatic'
14536 # FIXME: we need at least 68020 code to build shared libraries, but
14537 # adding the `-m68020' flag to GCC prevents building anything better,
14539 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14542 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14543 # PIC is the default for these OSes.
14546 mingw* | pw32* | os2*)
14547 # This hack is so that the source file can tell whether it is being
14548 # built for inclusion in a dll (and should export symbols for example).
14549 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14552 darwin* | rhapsody*)
14553 # PIC is the default on this platform
14554 # Common symbols not allowed in MH_DYLIB files
14555 lt_prog_compiler_pic_F77='-fno-common'
14559 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14560 # Instead, we relocate shared libraries at runtime.
14564 # Just because we use GCC doesn't mean we suddenly get shared libraries
14565 # on systems that don't support them.
14566 lt_prog_compiler_can_build_shared_F77=no
14571 if test -d /usr/nec; then
14572 lt_prog_compiler_pic_F77=-Kconform_pic
14577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14578 # not for PA HP-UX.
14584 lt_prog_compiler_pic_F77='-fPIC'
14590 lt_prog_compiler_pic_F77='-fPIC'
14594 # PORTME Check for flag to pass linker flags through the system compiler.
14597 lt_prog_compiler_wl_F77='-Wl,'
14598 if test "$host_cpu" = ia64; then
14599 # AIX 5 now supports IA64 processor
14600 lt_prog_compiler_static_F77='-Bstatic'
14602 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14606 # PIC is the default on this platform
14607 # Common symbols not allowed in MH_DYLIB files
14608 case $cc_basename in
14610 lt_prog_compiler_pic_F77='-qnocommon'
14611 lt_prog_compiler_wl_F77='-Wl,'
14616 mingw* | pw32* | os2*)
14617 # This hack is so that the source file can tell whether it is being
14618 # built for inclusion in a dll (and should export symbols for example).
14619 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14622 hpux9* | hpux10* | hpux11*)
14623 lt_prog_compiler_wl_F77='-Wl,'
14624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14625 # not for PA HP-UX.
14631 lt_prog_compiler_pic_F77='+Z'
14634 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14635 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14638 irix5* | irix6* | nonstopux*)
14639 lt_prog_compiler_wl_F77='-Wl,'
14640 # PIC (with -KPIC) is the default.
14641 lt_prog_compiler_static_F77='-non_shared'
14645 lt_prog_compiler_pic_F77='-KPIC'
14646 lt_prog_compiler_static_F77='-Bstatic'
14650 case $cc_basename in
14652 lt_prog_compiler_wl_F77='-Wl,'
14653 lt_prog_compiler_pic_F77='-KPIC'
14654 lt_prog_compiler_static_F77='-static'
14656 pgcc* | pgf77* | pgf90* | pgf95*)
14657 # Portland Group compilers (*not* the Pentium gcc compiler,
14658 # which looks to be a dead project)
14659 lt_prog_compiler_wl_F77='-Wl,'
14660 lt_prog_compiler_pic_F77='-fpic'
14661 lt_prog_compiler_static_F77='-Bstatic'
14664 lt_prog_compiler_wl_F77='-Wl,'
14665 # All Alpha code is PIC.
14666 lt_prog_compiler_static_F77='-non_shared'
14671 osf3* | osf4* | osf5*)
14672 lt_prog_compiler_wl_F77='-Wl,'
14673 # All OSF/1 code is PIC.
14674 lt_prog_compiler_static_F77='-non_shared'
14678 lt_prog_compiler_pic_F77='-KPIC'
14679 lt_prog_compiler_static_F77='-Bstatic'
14680 case $cc_basename in
14681 f77* | f90* | f95*)
14682 lt_prog_compiler_wl_F77='-Qoption ld ';;
14684 lt_prog_compiler_wl_F77='-Wl,';;
14689 lt_prog_compiler_wl_F77='-Qoption ld '
14690 lt_prog_compiler_pic_F77='-PIC'
14691 lt_prog_compiler_static_F77='-Bstatic'
14694 sysv4 | sysv4.2uw2* | sysv4.3*)
14695 lt_prog_compiler_wl_F77='-Wl,'
14696 lt_prog_compiler_pic_F77='-KPIC'
14697 lt_prog_compiler_static_F77='-Bstatic'
14701 if test -d /usr/nec ;then
14702 lt_prog_compiler_pic_F77='-Kconform_pic'
14703 lt_prog_compiler_static_F77='-Bstatic'
14707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14708 lt_prog_compiler_wl_F77='-Wl,'
14709 lt_prog_compiler_pic_F77='-KPIC'
14710 lt_prog_compiler_static_F77='-Bstatic'
14714 lt_prog_compiler_wl_F77='-Wl,'
14715 lt_prog_compiler_can_build_shared_F77=no
14719 lt_prog_compiler_pic_F77='-pic'
14720 lt_prog_compiler_static_F77='-Bstatic'
14724 lt_prog_compiler_can_build_shared_F77=no
14729 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14730 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14733 # Check to make sure the PIC flag actually works.
14735 if test -n "$lt_prog_compiler_pic_F77"; then
14737 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14738 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14739 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 lt_prog_compiler_pic_works_F77=no
14743 ac_outfile=conftest.$ac_objext
14744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14745 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14746 # Insert the option either (1) after the last *FLAGS variable, or
14747 # (2) before a word containing "conftest.", or (3) at the end.
14748 # Note that $ac_compile itself does not contain backslashes and begins
14749 # with a dollar sign (not a hyphen), so the echo should work correctly.
14750 # The option is referenced via a variable to avoid confusing sed.
14751 lt_compile=`echo "$ac_compile" | $SED \
14752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14754 -e 's:$: $lt_compiler_flag:'`
14755 (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
14756 (eval "$lt_compile" 2>conftest.err)
14758 cat conftest.err >&5
14759 echo "$as_me:14759: \$? = $ac_status" >&5
14760 if (exit $ac_status) && test -s "$ac_outfile"; then
14761 # The compiler can only warn and ignore the option if not recognized
14762 # So say no if there are warnings other than the usual output.
14763 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14766 lt_prog_compiler_pic_works_F77=yes
14772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14773 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14775 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14776 case $lt_prog_compiler_pic_F77 in
14778 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14781 lt_prog_compiler_pic_F77=
14782 lt_prog_compiler_can_build_shared_F77=no
14787 # For platforms which do not support PIC, -DPIC is meaningless:
14789 lt_prog_compiler_pic_F77=
14792 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14797 # Check to make sure the static flag actually works.
14799 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14800 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14801 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14802 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 lt_prog_compiler_static_works_F77=no
14806 save_LDFLAGS="$LDFLAGS"
14807 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14808 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14809 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14810 # The linker can only warn and ignore the option if not recognized
14811 # So say no if there are warnings
14812 if test -s conftest.err; then
14813 # Append any errors to the config.log.
14814 cat conftest.err 1>&5
14815 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14817 if diff conftest.exp conftest.er2 >/dev/null; then
14818 lt_prog_compiler_static_works_F77=yes
14821 lt_prog_compiler_static_works_F77=yes
14825 LDFLAGS="$save_LDFLAGS"
14828 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14829 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14831 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14834 lt_prog_compiler_static_F77=
14838 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14839 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14840 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 lt_cv_prog_compiler_c_o_F77=no
14844 $rm -r conftest 2>/dev/null
14848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14850 lt_compiler_flag="-o out/conftest2.$ac_objext"
14851 # Insert the option either (1) after the last *FLAGS variable, or
14852 # (2) before a word containing "conftest.", or (3) at the end.
14853 # Note that $ac_compile itself does not contain backslashes and begins
14854 # with a dollar sign (not a hyphen), so the echo should work correctly.
14855 lt_compile=`echo "$ac_compile" | $SED \
14856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858 -e 's:$: $lt_compiler_flag:'`
14859 (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
14860 (eval "$lt_compile" 2>out/conftest.err)
14862 cat out/conftest.err >&5
14863 echo "$as_me:14863: \$? = $ac_status" >&5
14864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14866 # The compiler can only warn and ignore the option if not recognized
14867 # So say no if there are warnings
14868 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14871 lt_cv_prog_compiler_c_o_F77=yes
14876 # SGI C++ compiler will create directory out/ii_files/ for
14877 # template instantiation
14878 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14879 $rm out/* && rmdir out
14885 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14886 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14889 hard_links="nottested"
14890 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14891 # do not overwrite the value of need_locks provided by the user
14892 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14893 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14898 ln conftest.a conftest.b 2>&5 || hard_links=no
14899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14900 { echo "$as_me:$LINENO: result: $hard_links" >&5
14901 echo "${ECHO_T}$hard_links" >&6; }
14902 if test "$hard_links" = no; then
14903 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14904 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14911 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14912 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14915 allow_undefined_flag_F77=
14916 enable_shared_with_static_runtimes_F77=no
14918 archive_expsym_cmds_F77=
14919 old_archive_From_new_cmds_F77=
14920 old_archive_from_expsyms_cmds_F77=
14921 export_dynamic_flag_spec_F77=
14922 whole_archive_flag_spec_F77=
14923 thread_safe_flag_spec_F77=
14924 hardcode_libdir_flag_spec_F77=
14925 hardcode_libdir_flag_spec_ld_F77=
14926 hardcode_libdir_separator_F77=
14927 hardcode_direct_F77=no
14928 hardcode_minus_L_F77=no
14929 hardcode_shlibpath_var_F77=unsupported
14930 link_all_deplibs_F77=unknown
14931 hardcode_automatic_F77=no
14933 module_expsym_cmds_F77=
14934 always_export_symbols_F77=no
14935 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14936 # include_expsyms should be a list of space-separated symbols to be *always*
14937 # included in the symbol list
14938 include_expsyms_F77=
14939 # exclude_expsyms can be an extended regexp of symbols to exclude
14940 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14941 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14942 # as well as any symbol that contains `d'.
14943 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14944 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14945 # platforms (ab)use it in PIC code, but their linkers get confused if
14946 # the symbol is explicitly referenced. Since portable code cannot
14947 # rely on this symbol name, it's probably fine to never include it in
14948 # preloaded symbol tables.
14949 extract_expsyms_cmds=
14950 # Just being paranoid about ensuring that cc_basename is set.
14951 for cc_temp in $compiler""; do
14953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14962 cygwin* | mingw* | pw32*)
14963 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14964 # When not using gcc, we currently assume that we are using
14965 # Microsoft Visual C++.
14966 if test "$GCC" != yes; then
14971 # we just hope/assume this is gcc and not c89 (= MSVC++)
14980 if test "$with_gnu_ld" = yes; then
14981 # If archive_cmds runs LD, not CC, wlarc should be empty
14984 # Set some defaults for GNU ld with shared library support. These
14985 # are reset later if shared libraries are not supported. Putting them
14986 # here allows them to be overridden if necessary.
14987 runpath_var=LD_RUN_PATH
14988 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14989 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14990 # ancient GNU ld didn't support --whole-archive et. al.
14991 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14992 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14994 whole_archive_flag_spec_F77=
14996 supports_anon_versioning=no
14997 case `$LD -v 2>/dev/null` in
14998 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14999 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15000 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15001 *\ 2.11.*) ;; # other 2.11 versions
15002 *) supports_anon_versioning=yes ;;
15005 # See if GNU ld supports shared libraries.
15007 aix3* | aix4* | aix5*)
15008 # On AIX/PPC, the GNU linker is very broken
15009 if test "$host_cpu" != ia64; then
15013 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15014 *** to be unable to reliably create shared libraries on AIX.
15015 *** Therefore, libtool is disabling shared libraries support. If you
15016 *** really care for shared libraries, you may want to modify your PATH
15017 *** so that a non-GNU linker is found, and then restart.
15024 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)'
15025 hardcode_libdir_flag_spec_F77='-L$libdir'
15026 hardcode_minus_L_F77=yes
15028 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15029 # that the semantics of dynamic libraries on AmigaOS, at least up
15030 # to version 4, is to share data among multiple programs linked
15031 # with the same dynamic library. Since this doesn't match the
15032 # behavior of shared libraries on other platforms, we can't use
15038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15039 allow_undefined_flag_F77=unsupported
15040 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15041 # support --undefined. This deserves some investigation. FIXME
15042 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048 cygwin* | mingw* | pw32*)
15049 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15050 # as there is no search path for DLLs.
15051 hardcode_libdir_flag_spec_F77='-L$libdir'
15052 allow_undefined_flag_F77=unsupported
15053 always_export_symbols_F77=no
15054 enable_shared_with_static_runtimes_F77=yes
15055 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15057 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15058 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15059 # If the export-symbols file already is a .def file (1st line
15060 # is EXPORTS), use it as is; otherwise, prepend...
15061 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15062 cp $export_symbols $output_objdir/$soname.def;
15064 echo EXPORTS > $output_objdir/$soname.def;
15065 cat $export_symbols >> $output_objdir/$soname.def;
15067 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15074 hardcode_direct_F77=no
15075 hardcode_shlibpath_var_F77=no
15076 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15077 export_dynamic_flag_spec_F77='${wl}-E'
15078 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15079 # Instead, shared libraries are loaded at an image base (0x10000000 by
15080 # default) and relocated if they conflict, which is a slow very memory
15081 # consuming and fragmenting process. To avoid this, we pick a random,
15082 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15083 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15084 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'
15085 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'
15089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15091 case $cc_basename,$host_cpu in
15092 pgcc*) # Portland Group C compiler
15093 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'
15094 tmp_addflag=' $pic_flag'
15096 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15097 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'
15098 tmp_addflag=' $pic_flag -Mnomain' ;;
15099 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15100 tmp_addflag=' -i_dynamic' ;;
15101 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15102 tmp_addflag=' -i_dynamic -nofor_main' ;;
15103 ifc* | ifort*) # Intel Fortran compiler
15104 tmp_addflag=' -nofor_main' ;;
15106 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108 if test $supports_anon_versioning = yes; then
15109 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15111 $echo "local: *; };" >> $output_objdir/$libname.ver~
15112 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15121 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15124 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15125 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15130 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15135 *** create shared libraries on Solaris systems. Therefore, libtool
15136 *** is disabling shared libraries support. We urge you to upgrade GNU
15137 *** binutils to release 2.9.1 or newer. Another option is to modify
15138 *** your PATH or compiler configuration so that the native linker is
15139 *** used, and then restart.
15142 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15143 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15144 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15151 case `$LD -v 2>&1` in
15152 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15156 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15157 *** reliably create shared libraries on SCO systems. Therefore, libtool
15158 *** is disabling shared libraries support. We urge you to upgrade GNU
15159 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15160 *** your PATH or compiler configuration so that the native linker is
15161 *** used, and then restart.
15166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15167 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15168 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15169 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15178 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15180 hardcode_direct_F77=yes
15181 hardcode_shlibpath_var_F77=no
15185 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15186 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15194 if test "$ld_shlibs_F77" = no; then
15196 hardcode_libdir_flag_spec_F77=
15197 export_dynamic_flag_spec_F77=
15198 whole_archive_flag_spec_F77=
15201 # PORTME fill in a description of your system's linker (not GNU ld)
15204 allow_undefined_flag_F77=unsupported
15205 always_export_symbols_F77=yes
15206 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'
15207 # Note: this linker hardcodes the directories in LIBPATH if there
15208 # are no directories specified by -L.
15209 hardcode_minus_L_F77=yes
15210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15211 # Neither direct hardcoding nor static linking is supported with a
15213 hardcode_direct_F77=unsupported
15218 if test "$host_cpu" = ia64; then
15219 # On IA64, the linker does run time linking by default, so we don't
15220 # have to do anything special.
15221 aix_use_runtimelinking=no
15222 exp_sym_flag='-Bexport'
15225 # If we're using GNU nm, then we don't want the "-C" option.
15226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15227 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15228 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'
15230 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'
15232 aix_use_runtimelinking=no
15234 # Test if we are trying to use run time linking or normal
15235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15236 # need to do runtime linking.
15237 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15238 for ld_flag in $LDFLAGS; do
15239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15240 aix_use_runtimelinking=yes
15247 exp_sym_flag='-bexport'
15248 no_entry_flag='-bnoentry'
15251 # When large executables or shared objects are built, AIX ld can
15252 # have problems creating the table of contents. If linking a library
15253 # or program results in "error TOC overflow" add -mminimal-toc to
15254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15257 archive_cmds_F77=''
15258 hardcode_direct_F77=yes
15259 hardcode_libdir_separator_F77=':'
15260 link_all_deplibs_F77=yes
15262 if test "$GCC" = yes; then
15263 case $host_os in aix4.[012]|aix4.[012].*)
15264 # We only want to do this on AIX 4.2 and lower, the check
15265 # below for broken collect2 doesn't work under 4.3+
15266 collect2name=`${CC} -print-prog-name=collect2`
15267 if test -f "$collect2name" && \
15268 strings "$collect2name" | grep resolve_lib_name >/dev/null
15270 # We have reworked collect2
15271 hardcode_direct_F77=yes
15273 # We have old collect2
15274 hardcode_direct_F77=unsupported
15275 # It fails to find uninstalled libraries when the uninstalled
15276 # path is not listed in the libpath. Setting hardcode_minus_L
15277 # to unsupported forces relinking
15278 hardcode_minus_L_F77=yes
15279 hardcode_libdir_flag_spec_F77='-L$libdir'
15280 hardcode_libdir_separator_F77=
15284 shared_flag='-shared'
15285 if test "$aix_use_runtimelinking" = yes; then
15286 shared_flag="$shared_flag "'${wl}-G'
15290 if test "$host_cpu" = ia64; then
15291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15292 # chokes on -Wl,-G. The following line is correct:
15295 if test "$aix_use_runtimelinking" = yes; then
15296 shared_flag='${wl}-G'
15298 shared_flag='${wl}-bM:SRE'
15303 # It seems that -bexpall does not export symbols beginning with
15304 # underscore (_), so it is better to generate a list of symbols to export.
15305 always_export_symbols_F77=yes
15306 if test "$aix_use_runtimelinking" = yes; then
15307 # Warning - without using the other runtime loading flags (-brtl),
15308 # -berok will link without error, but may produce a broken library.
15309 allow_undefined_flag_F77='-berok'
15310 # Determine the default libpath from the value encoded in an empty executable.
15311 cat >conftest.$ac_ext <<_ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_link") 2>conftest.er1
15325 grep -v '^ *+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15331 { (case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_try") 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; } &&
15340 { ac_try='test -s conftest$ac_exeext'
15341 { (case "(($ac_try" in
15342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346 (eval "$ac_try") 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15353 # Check for a 64-bit object if we didn't find anything.
15354 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15363 rm -f core conftest.err conftest.$ac_objext \
15364 conftest$ac_exeext conftest.$ac_ext
15365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15367 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15368 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"
15370 if test "$host_cpu" = ia64; then
15371 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15372 allow_undefined_flag_F77="-z nodefs"
15373 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"
15375 # Determine the default libpath from the value encoded in an empty executable.
15376 cat >conftest.$ac_ext <<_ACEOF
15381 rm -f conftest.$ac_objext conftest$ac_exeext
15382 if { (ac_try="$ac_link"
15383 case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_link") 2>conftest.er1
15390 grep -v '^ *+' conftest.er1 >conftest.err
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15396 { (case "(($ac_try" in
15397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398 *) ac_try_echo=$ac_try;;
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401 (eval "$ac_try") 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; } &&
15405 { ac_try='test -s conftest$ac_exeext'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15418 # Check for a 64-bit object if we didn't find anything.
15419 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15428 rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15432 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15433 # Warning - without using the other run time loading flags,
15434 # -berok will link without error, but may produce a broken library.
15435 no_undefined_flag_F77=' ${wl}-bernotok'
15436 allow_undefined_flag_F77=' ${wl}-berok'
15437 # Exported symbols can be pulled into shared objects from archives
15438 whole_archive_flag_spec_F77='$convenience'
15439 archive_cmds_need_lc_F77=yes
15440 # This is similar to how AIX traditionally builds its shared libraries.
15441 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'
15447 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)'
15448 hardcode_libdir_flag_spec_F77='-L$libdir'
15449 hardcode_minus_L_F77=yes
15450 # see comment about different semantics on the GNU ld section
15455 export_dynamic_flag_spec_F77=-rdynamic
15458 cygwin* | mingw* | pw32*)
15459 # When not using gcc, we currently assume that we are using
15460 # Microsoft Visual C++.
15461 # hardcode_libdir_flag_spec is actually meaningless, as there is
15462 # no search path for DLLs.
15463 hardcode_libdir_flag_spec_F77=' '
15464 allow_undefined_flag_F77=unsupported
15465 # Tell ltmain to make .lib files, not .a files.
15467 # Tell ltmain to make .dll files, not .so files.
15469 # FIXME: Setting linknames here is a bad hack.
15470 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15471 # The linker will automatically build a .lib file if we build a DLL.
15472 old_archive_From_new_cmds_F77='true'
15473 # FIXME: Should let the user specify the lib program.
15474 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15475 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15476 enable_shared_with_static_runtimes_F77=yes
15479 darwin* | rhapsody*)
15481 rhapsody* | darwin1.[012])
15482 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15485 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15486 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15488 case ${MACOSX_DEPLOYMENT_TARGET} in
15490 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15493 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15499 archive_cmds_need_lc_F77=no
15500 hardcode_direct_F77=no
15501 hardcode_automatic_F77=yes
15502 hardcode_shlibpath_var_F77=unsupported
15503 whole_archive_flag_spec_F77=''
15504 link_all_deplibs_F77=yes
15505 if test "$GCC" = yes ; then
15506 output_verbose_link_cmd='echo'
15507 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15508 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15509 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15510 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15511 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}'
15513 case $cc_basename in
15515 output_verbose_link_cmd='echo'
15516 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15517 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15518 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15519 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15520 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}'
15530 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531 hardcode_libdir_flag_spec_F77='-L$libdir'
15532 hardcode_shlibpath_var_F77=no
15539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15540 # support. Future versions do this automatically, but an explicit c++rt0.o
15541 # does not break anything, and helps significantly (at the cost of a little
15544 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15545 hardcode_libdir_flag_spec_F77='-R$libdir'
15546 hardcode_direct_F77=yes
15547 hardcode_shlibpath_var_F77=no
15550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15552 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_direct_F77=yes
15554 hardcode_minus_L_F77=yes
15555 hardcode_shlibpath_var_F77=no
15558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15559 freebsd* | kfreebsd*-gnu | dragonfly*)
15560 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15561 hardcode_libdir_flag_spec_F77='-R$libdir'
15562 hardcode_direct_F77=yes
15563 hardcode_shlibpath_var_F77=no
15567 if test "$GCC" = yes; then
15568 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'
15570 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'
15572 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15573 hardcode_libdir_separator_F77=:
15574 hardcode_direct_F77=yes
15576 # hardcode_minus_L: Not really in the search PATH,
15577 # but as the default location of the library.
15578 hardcode_minus_L_F77=yes
15579 export_dynamic_flag_spec_F77='${wl}-E'
15583 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15584 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15588 if test "$with_gnu_ld" = no; then
15589 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15590 hardcode_libdir_separator_F77=:
15592 hardcode_direct_F77=yes
15593 export_dynamic_flag_spec_F77='${wl}-E'
15595 # hardcode_minus_L: Not really in the search PATH,
15596 # but as the default location of the library.
15597 hardcode_minus_L_F77=yes
15602 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15605 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15611 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15617 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15620 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15623 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15627 if test "$with_gnu_ld" = no; then
15628 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15629 hardcode_libdir_separator_F77=:
15633 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15634 hardcode_direct_F77=no
15635 hardcode_shlibpath_var_F77=no
15638 hardcode_direct_F77=yes
15639 export_dynamic_flag_spec_F77='${wl}-E'
15641 # hardcode_minus_L: Not really in the search PATH,
15642 # but as the default location of the library.
15643 hardcode_minus_L_F77=yes
15649 irix5* | irix6* | nonstopux*)
15650 if test "$GCC" = yes; then
15651 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'
15653 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'
15654 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15657 hardcode_libdir_separator_F77=:
15658 link_all_deplibs_F77=yes
15662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15663 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15665 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15667 hardcode_libdir_flag_spec_F77='-R$libdir'
15668 hardcode_direct_F77=yes
15669 hardcode_shlibpath_var_F77=no
15673 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674 hardcode_direct_F77=yes
15675 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15676 hardcode_libdir_separator_F77=:
15677 hardcode_shlibpath_var_F77=no
15681 hardcode_direct_F77=yes
15682 hardcode_shlibpath_var_F77=no
15683 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15684 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15685 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15686 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15687 export_dynamic_flag_spec_F77='${wl}-E'
15690 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15691 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15692 hardcode_libdir_flag_spec_F77='-R$libdir'
15695 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15696 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15703 hardcode_libdir_flag_spec_F77='-L$libdir'
15704 hardcode_minus_L_F77=yes
15705 allow_undefined_flag_F77=unsupported
15706 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'
15707 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15711 if test "$GCC" = yes; then
15712 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15713 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'
15715 allow_undefined_flag_F77=' -expect_unresolved \*'
15716 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'
15718 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15719 hardcode_libdir_separator_F77=:
15722 osf4* | osf5*) # as osf3* with the addition of -msym flag
15723 if test "$GCC" = yes; then
15724 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15725 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'
15726 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15728 allow_undefined_flag_F77=' -expect_unresolved \*'
15729 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'
15730 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~
15731 $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'
15733 # Both c and cxx compiler support -rpath directly
15734 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15736 hardcode_libdir_separator_F77=:
15740 no_undefined_flag_F77=' -z text'
15741 if test "$GCC" = yes; then
15743 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15744 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15745 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15748 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15750 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15752 hardcode_libdir_flag_spec_F77='-R$libdir'
15753 hardcode_shlibpath_var_F77=no
15755 solaris2.[0-5] | solaris2.[0-5].*) ;;
15757 # The compiler driver will combine linker options so we
15758 # cannot just pass the convience library names through
15759 # without $wl, iff we do not link with $LD.
15760 # Luckily, gcc supports the same syntax we need for Sun Studio.
15761 # Supported since Solaris 2.6 (maybe 2.5.1?)
15764 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15766 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15769 link_all_deplibs_F77=yes
15773 if test "x$host_vendor" = xsequent; then
15774 # Use $CC to link under sequent, because it throws in some extra .o
15775 # files that make .init and .fini sections work.
15776 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15778 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15780 hardcode_libdir_flag_spec_F77='-L$libdir'
15781 hardcode_direct_F77=yes
15782 hardcode_minus_L_F77=yes
15783 hardcode_shlibpath_var_F77=no
15787 case $host_vendor in
15789 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790 hardcode_direct_F77=yes # is this really true???
15793 ## LD is ld it makes a PLAMLIB
15794 ## CC just makes a GrossModule.
15795 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15796 reload_cmds_F77='$CC -r -o $output$reload_objs'
15797 hardcode_direct_F77=no
15800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15804 runpath_var='LD_RUN_PATH'
15805 hardcode_shlibpath_var_F77=no
15809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15810 hardcode_shlibpath_var_F77=no
15811 export_dynamic_flag_spec_F77='-Bexport'
15815 if test -d /usr/nec; then
15816 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15817 hardcode_shlibpath_var_F77=no
15818 runpath_var=LD_RUN_PATH
15819 hardcode_runpath_var=yes
15824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15825 no_undefined_flag_F77='${wl}-z,text'
15826 archive_cmds_need_lc_F77=no
15827 hardcode_shlibpath_var_F77=no
15828 runpath_var='LD_RUN_PATH'
15830 if test "$GCC" = yes; then
15831 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15832 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15835 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15839 sysv5* | sco3.2v5* | sco5v6*)
15840 # Note: We can NOT use -z defs as we might desire, because we do not
15841 # link with -lc, and that would cause any symbols used from libc to
15842 # always be unresolved, which means just about no library would
15843 # ever link correctly. If we're not using GNU ld we use -z text
15844 # though, which does catch some bad symbols but isn't as heavy-handed
15846 no_undefined_flag_F77='${wl}-z,text'
15847 allow_undefined_flag_F77='${wl}-z,nodefs'
15848 archive_cmds_need_lc_F77=no
15849 hardcode_shlibpath_var_F77=no
15850 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15851 hardcode_libdir_separator_F77=':'
15852 link_all_deplibs_F77=yes
15853 export_dynamic_flag_spec_F77='${wl}-Bexport'
15854 runpath_var='LD_RUN_PATH'
15856 if test "$GCC" = yes; then
15857 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15858 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15860 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15867 hardcode_libdir_flag_spec_F77='-L$libdir'
15868 hardcode_shlibpath_var_F77=no
15877 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15878 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15879 test "$ld_shlibs_F77" = no && can_build_shared=no
15882 # Do we need to explicitly link libc?
15884 case "x$archive_cmds_need_lc_F77" in
15886 # Assume -lc should be added
15887 archive_cmds_need_lc_F77=yes
15889 if test "$enable_shared" = yes && test "$GCC" = yes; then
15890 case $archive_cmds_F77 in
15892 # FIXME: we may have to deal with multi-command sequences.
15895 # Test whether the compiler implicitly links with -lc since on some
15896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15897 # to ld, don't add -lc before -lgcc.
15898 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15901 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904 (eval $ac_compile) 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } 2>conftest.err; then
15910 libobjs=conftest.$ac_objext
15912 wl=$lt_prog_compiler_wl_F77
15913 pic_flag=$lt_prog_compiler_pic_F77
15919 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15920 allow_undefined_flag_F77=
15921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15922 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }
15927 archive_cmds_need_lc_F77=no
15929 archive_cmds_need_lc_F77=yes
15931 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15933 cat conftest.err 1>&5
15936 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15937 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15944 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15946 library_names_spec=
15947 libname_spec='lib$name'
15951 postuninstall_cmds=
15955 shlibpath_overrides_runpath=unknown
15957 dynamic_linker="$host_os ld.so"
15958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15959 if test "$GCC" = yes; then
15960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15961 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15962 # if the path contains ";" then we assume it to be the separator
15963 # otherwise default to the standard path separator (i.e. ":") - it is
15964 # assumed that no part of a normal pathname contains ";" but that should
15965 # okay in the real world where ";" in dirpaths is itself problematic.
15966 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15971 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15973 need_lib_prefix=unknown
15974 hardcode_into_libs=no
15976 # when you set need_version to no, make sure it does not cause -set_version
15977 # flags to be left without arguments
15978 need_version=unknown
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15984 shlibpath_var=LIBPATH
15986 # AIX 3 has no versioning support, so we append a major version to the name.
15987 soname_spec='${libname}${release}${shared_ext}$major'
15994 hardcode_into_libs=yes
15995 if test "$host_cpu" = ia64; then
15996 # AIX 5 supports IA64
15997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15998 shlibpath_var=LD_LIBRARY_PATH
16000 # With GCC up to 2.95.x, collect2 would create an import file
16001 # for dependence libraries. The import file would start with
16002 # the line `#! .'. This would cause the generated library to
16003 # depend on `.', always an invalid library. This was fixed in
16004 # development snapshots of GCC prior to 3.0.
16006 aix4 | aix4.[01] | aix4.[01].*)
16007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16009 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16012 can_build_shared=no
16016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16017 # soname into executable. Probably we can add versioning support to
16018 # collect2, so additional links can be useful in future.
16019 if test "$aix_use_runtimelinking" = yes; then
16020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16021 # instead of lib<name>.a to let people know that these are not
16022 # typical AIX shared libraries.
16023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 # We preserve .a as extension for shared libraries through AIX4.2
16026 # and later when we are not doing run time linking.
16027 library_names_spec='${libname}${release}.a $libname.a'
16028 soname_spec='${libname}${release}${shared_ext}$major'
16030 shlibpath_var=LIBPATH
16035 library_names_spec='$libname.ixlibrary $libname.a'
16036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16037 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'
16041 library_names_spec='${libname}${shared_ext}'
16042 dynamic_linker="$host_os ld.so"
16043 shlibpath_var=LIBRARY_PATH
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16055 # the default ld.so.conf also contains /usr/contrib/lib and
16056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16057 # libtool to hard-code these into programs
16060 cygwin* | mingw* | pw32*)
16061 version_type=windows
16066 case $GCC,$host_os in
16067 yes,cygwin* | yes,mingw* | yes,pw32*)
16068 library_names_spec='$libname.dll.a'
16069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16070 postinstall_cmds='base_file=`basename \${file}`~
16071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16072 dldir=$destdir/`dirname \$dlpath`~
16073 test -d \$dldir || mkdir -p \$dldir~
16074 $install_prog $dir/$dlname \$dldir/$dlname~
16075 chmod a+x \$dldir/$dlname'
16076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16077 dlpath=$dir/\$dldll~
16079 shlibpath_overrides_runpath=yes
16083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16088 # MinGW DLLs use traditional 'lib' prefix
16089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16091 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16092 # It is most probably a Windows format PATH printed by
16093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16094 # path with ; separators, and with drive letters. We can handle the
16095 # drive letters (cygwin fileutils understands them), so leave them,
16096 # especially as we might pass files found there to a mingw objdump,
16097 # which wouldn't understand a cygwinified path. Ahh.
16098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16104 # pw32 DLLs use 'pw' prefix rather than 'lib'
16105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16114 dynamic_linker='Win32 ld.exe'
16115 # FIXME: first we should search . and the directory the executable is in
16119 darwin* | rhapsody*)
16120 dynamic_linker="$host_os dyld"
16121 version_type=darwin
16124 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16125 soname_spec='${libname}${release}${major}$shared_ext'
16126 shlibpath_overrides_runpath=yes
16127 shlibpath_var=DYLD_LIBRARY_PATH
16128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16129 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16130 if test "$GCC" = yes; then
16131 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16133 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16156 soname_spec='${libname}${release}${shared_ext}$major'
16157 shlibpath_var=LD_LIBRARY_PATH
16158 shlibpath_overrides_runpath=no
16159 hardcode_into_libs=yes
16160 dynamic_linker='GNU ld.so'
16163 freebsd* | dragonfly*)
16164 # DragonFly does not have aout. When/if they implement a new
16165 # versioning mechanism, adjust this.
16166 if test -x /usr/bin/objformat; then
16167 objformat=`/usr/bin/objformat`
16170 freebsd[123]*) objformat=aout ;;
16171 *) objformat=elf ;;
16174 version_type=freebsd-$objformat
16175 case $version_type in
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16186 shlibpath_var=LD_LIBRARY_PATH
16189 shlibpath_overrides_runpath=yes
16191 freebsd3.[01]* | freebsdelf3.[01]*)
16192 shlibpath_overrides_runpath=yes
16193 hardcode_into_libs=yes
16195 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16196 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16197 shlibpath_overrides_runpath=no
16198 hardcode_into_libs=yes
16200 freebsd*) # from 4.6 on
16201 shlibpath_overrides_runpath=yes
16202 hardcode_into_libs=yes
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 shlibpath_var=LD_LIBRARY_PATH
16214 hardcode_into_libs=yes
16217 hpux9* | hpux10* | hpux11*)
16218 # Give a soname corresponding to the major version so that dld.sl refuses to
16219 # link against other versions.
16226 hardcode_into_libs=yes
16227 dynamic_linker="$host_os dld.so"
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 if test "X$HPUX_IA64_MODE" = X32; then
16233 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16235 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16241 hardcode_into_libs=yes
16242 dynamic_linker="$host_os dld.sl"
16243 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16252 dynamic_linker="$host_os dld.sl"
16253 shlibpath_var=SHLIB_PATH
16254 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
16259 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16260 postinstall_cmds='chmod 555 $lib'
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16269 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16270 shlibpath_var=LD_LIBRARY_PATH
16271 shlibpath_overrides_runpath=no
16272 hardcode_into_libs=yes
16275 irix5* | irix6* | nonstopux*)
16277 nonstopux*) version_type=nonstopux ;;
16279 if test "$lt_cv_prog_gnu_ld" = yes; then
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16290 irix5* | nonstopux*)
16291 libsuff= shlibsuff=
16294 case $LD in # libtool.m4 will add one of these switches to LD
16295 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16296 libsuff= shlibsuff= libmagic=32-bit;;
16297 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16298 libsuff=32 shlibsuff=N32 libmagic=N32;;
16299 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16300 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16301 *) libsuff= shlibsuff= libmagic=never-match;;
16305 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16306 shlibpath_overrides_runpath=no
16307 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16308 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16309 hardcode_into_libs=yes
16312 # No shared lib support for Linux oldld, aout, or coff.
16313 linux*oldld* | linux*aout* | linux*coff*)
16317 # This must be Linux ELF.
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 soname_spec='${libname}${release}${shared_ext}$major'
16324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16325 shlibpath_var=LD_LIBRARY_PATH
16326 shlibpath_overrides_runpath=no
16327 # This implies no fast_install, which is unacceptable.
16328 # Some rework will be needed to allow for fast_install
16329 # before this can be enabled.
16330 hardcode_into_libs=yes
16332 # Append ld.so.conf contents to the search path
16333 if test -f /etc/ld.so.conf; then
16334 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16338 # We used to test for /lib/ld.so.1 and disable shared libraries on
16339 # powerpc, because MkLinux only supported shared libraries with the
16340 # GNU dynamic linker. Since this was broken with cross compilers,
16341 # most powerpc-linux boxes support dynamic linking these days and
16342 # people can always --disable-shared, the test was removed, and we
16343 # assume the GNU/Linux dynamic linker is in use.
16344 dynamic_linker='GNU/Linux ld.so'
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 shlibpath_overrides_runpath=no
16355 hardcode_into_libs=yes
16356 dynamic_linker='GNU ld.so'
16363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16366 dynamic_linker='NetBSD (a.out) ld.so'
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 dynamic_linker='NetBSD ld.elf_so'
16372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=yes
16374 hardcode_into_libs=yes
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 shlibpath_overrides_runpath=yes
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=yes
16396 sys_lib_dlsearch_path_spec="/usr/lib"
16398 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16400 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16401 *) need_version=no ;;
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16405 shlibpath_var=LD_LIBRARY_PATH
16406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16408 openbsd2.[89] | openbsd2.[89].*)
16409 shlibpath_overrides_runpath=no
16412 shlibpath_overrides_runpath=yes
16416 shlibpath_overrides_runpath=yes
16421 libname_spec='$name'
16424 library_names_spec='$libname${shared_ext} $libname.a'
16425 dynamic_linker='OS/2 ld.exe'
16426 shlibpath_var=LIBPATH
16429 osf3* | osf4* | osf5*)
16433 soname_spec='${libname}${release}${shared_ext}$major'
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16437 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 shlibpath_overrides_runpath=yes
16448 hardcode_into_libs=yes
16449 # ldd complains unless libraries are executable
16450 postinstall_cmds='chmod +x $lib'
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16456 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=yes
16459 if test "$with_gnu_ld" = yes; then
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468 soname_spec='${libname}${release}${shared_ext}$major'
16469 shlibpath_var=LD_LIBRARY_PATH
16470 case $host_vendor in
16472 shlibpath_overrides_runpath=no
16474 export_dynamic_flag_spec='${wl}-Blargedynsym'
16475 runpath_var=LD_RUN_PATH
16483 shlibpath_overrides_runpath=no
16484 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16490 if test -d /usr/nec ;then
16492 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16493 soname_spec='$libname${shared_ext}.$major'
16494 shlibpath_var=LD_LIBRARY_PATH
16498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16499 version_type=freebsd-elf
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16503 soname_spec='${libname}${release}${shared_ext}$major'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 hardcode_into_libs=yes
16506 if test "$with_gnu_ld" = yes; then
16507 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16508 shlibpath_overrides_runpath=no
16510 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16511 shlibpath_overrides_runpath=yes
16514 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16518 sys_lib_dlsearch_path_spec='/usr/lib'
16523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16524 soname_spec='${libname}${release}${shared_ext}$major'
16525 shlibpath_var=LD_LIBRARY_PATH
16532 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16533 echo "${ECHO_T}$dynamic_linker" >&6; }
16534 test "$dynamic_linker" = no && can_build_shared=no
16536 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16537 if test "$GCC" = yes; then
16538 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16541 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16542 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16543 hardcode_action_F77=
16544 if test -n "$hardcode_libdir_flag_spec_F77" || \
16545 test -n "$runpath_var_F77" || \
16546 test "X$hardcode_automatic_F77" = "Xyes" ; then
16548 # We can hardcode non-existant directories.
16549 if test "$hardcode_direct_F77" != no &&
16550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16551 # have to relink, otherwise we might link with an installed library
16552 # when we should be linking with a yet-to-be-installed one
16553 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16554 test "$hardcode_minus_L_F77" != no; then
16555 # Linking always hardcodes the temporary library directory.
16556 hardcode_action_F77=relink
16558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16559 hardcode_action_F77=immediate
16562 # We cannot hardcode anything, or else we can only hardcode existing
16564 hardcode_action_F77=unsupported
16566 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16567 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16569 if test "$hardcode_action_F77" = relink; then
16570 # Fast installation is not supported
16571 enable_fast_install=no
16572 elif test "$shlibpath_overrides_runpath" = yes ||
16573 test "$enable_shared" = no; then
16574 # Fast installation is not necessary
16575 enable_fast_install=needless
16579 # The else clause should only fire when bootstrapping the
16580 # libtool distribution, otherwise you forgot to ship ltmain.sh
16581 # with your package, and you will get complaints that there are
16582 # no rules to generate ltmain.sh.
16583 if test -f "$ltmain"; then
16584 # See if we are running on zsh, and set the options which allow our commands through
16585 # without removal of \ escapes.
16586 if test -n "${ZSH_VERSION+set}" ; then
16587 setopt NO_GLOB_SUBST
16589 # Now quote all the things that may contain metacharacters while being
16590 # careful not to overquote the AC_SUBSTed values. We take copies of the
16591 # variables and quote the copies for generation of the libtool script.
16592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16596 deplibs_check_method reload_flag reload_cmds need_locks \
16597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16598 lt_cv_sys_global_symbol_to_c_name_address \
16599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16600 old_postinstall_cmds old_postuninstall_cmds \
16604 lt_prog_compiler_wl_F77 \
16605 lt_prog_compiler_pic_F77 \
16606 lt_prog_compiler_static_F77 \
16607 lt_prog_compiler_no_builtin_flag_F77 \
16608 export_dynamic_flag_spec_F77 \
16609 thread_safe_flag_spec_F77 \
16610 whole_archive_flag_spec_F77 \
16611 enable_shared_with_static_runtimes_F77 \
16612 old_archive_cmds_F77 \
16613 old_archive_from_new_cmds_F77 \
16614 predep_objects_F77 \
16615 postdep_objects_F77 \
16618 compiler_lib_search_path_F77 \
16620 archive_expsym_cmds_F77 \
16621 postinstall_cmds_F77 \
16622 postuninstall_cmds_F77 \
16623 old_archive_from_expsyms_cmds_F77 \
16624 allow_undefined_flag_F77 \
16625 no_undefined_flag_F77 \
16626 export_symbols_cmds_F77 \
16627 hardcode_libdir_flag_spec_F77 \
16628 hardcode_libdir_flag_spec_ld_F77 \
16629 hardcode_libdir_separator_F77 \
16630 hardcode_automatic_F77 \
16632 module_expsym_cmds_F77 \
16633 lt_cv_prog_compiler_c_o_F77 \
16634 exclude_expsyms_F77 \
16635 include_expsyms_F77; do
16638 old_archive_cmds_F77 | \
16639 old_archive_from_new_cmds_F77 | \
16640 archive_cmds_F77 | \
16641 archive_expsym_cmds_F77 | \
16642 module_cmds_F77 | \
16643 module_expsym_cmds_F77 | \
16644 old_archive_from_expsyms_cmds_F77 | \
16645 export_symbols_cmds_F77 | \
16646 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16647 postinstall_cmds | postuninstall_cmds | \
16648 old_postinstall_cmds | old_postuninstall_cmds | \
16649 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16650 # Double-quote double-evaled strings.
16651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16660 *'\$0 --fallback-echo"')
16661 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16667 cat <<__EOF__ >> "$cfgfile"
16668 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16672 # Shell to use when invoking shell scripts.
16675 # Whether or not to build shared libraries.
16676 build_libtool_libs=$enable_shared
16678 # Whether or not to build static libraries.
16679 build_old_libs=$enable_static
16681 # Whether or not to add -lc for building shared libraries.
16682 build_libtool_need_lc=$archive_cmds_need_lc_F77
16684 # Whether or not to disallow shared libs when runtime libs are static
16685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16687 # Whether or not to optimize for fast installation.
16688 fast_install=$enable_fast_install
16691 host_alias=$host_alias
16695 # The build system.
16696 build_alias=$build_alias
16700 # An echo program that does not interpret backslashes.
16705 AR_FLAGS=$lt_AR_FLAGS
16710 # LTCC compiler flags.
16711 LTCFLAGS=$lt_LTCFLAGS
16713 # A language-specific compiler.
16714 CC=$lt_compiler_F77
16716 # Is the compiler the GNU C compiler?
16722 # The linker used to build libraries.
16725 # Whether we need hard or soft links.
16728 # A BSD-compatible nm program.
16731 # A symbol stripping program
16734 # Used to examine libraries when file_magic_cmd begins "file"
16735 MAGIC_CMD=$MAGIC_CMD
16737 # Used on cygwin: DLL creation program.
16740 # Used on cygwin: object dumper.
16743 # Used on cygwin: assembler.
16746 # The name of the directory that contains temporary libtool files.
16749 # How to create reloadable object files.
16750 reload_flag=$lt_reload_flag
16751 reload_cmds=$lt_reload_cmds
16753 # How to pass a linker flag through the compiler.
16754 wl=$lt_lt_prog_compiler_wl_F77
16756 # Object file suffix (normally "o").
16757 objext="$ac_objext"
16759 # Old archive suffix (normally "a").
16762 # Shared library suffix (normally ".so").
16763 shrext_cmds='$shrext_cmds'
16765 # Executable file suffix (normally "").
16768 # Additional compiler flags for building library objects.
16769 pic_flag=$lt_lt_prog_compiler_pic_F77
16772 # What is the maximum length of a command?
16773 max_cmd_len=$lt_cv_sys_max_cmd_len
16775 # Does compiler simultaneously support -c and -o options?
16776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16778 # Must we lock files when doing compilation?
16779 need_locks=$lt_need_locks
16781 # Do we need the lib prefix for modules?
16782 need_lib_prefix=$need_lib_prefix
16784 # Do we need a version for libraries?
16785 need_version=$need_version
16787 # Whether dlopen is supported.
16788 dlopen_support=$enable_dlopen
16790 # Whether dlopen of programs is supported.
16791 dlopen_self=$enable_dlopen_self
16793 # Whether dlopen of statically linked programs is supported.
16794 dlopen_self_static=$enable_dlopen_self_static
16796 # Compiler flag to prevent dynamic linking.
16797 link_static_flag=$lt_lt_prog_compiler_static_F77
16799 # Compiler flag to turn off builtin functions.
16800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16802 # Compiler flag to allow reflexive dlopens.
16803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16805 # Compiler flag to generate shared objects directly from archives.
16806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16808 # Compiler flag to generate thread-safe objects.
16809 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16811 # Library versioning type.
16812 version_type=$version_type
16814 # Format of library name prefix.
16815 libname_spec=$lt_libname_spec
16817 # List of archive names. First name is the real one, the rest are links.
16818 # The last name is the one that the linker finds with -lNAME.
16819 library_names_spec=$lt_library_names_spec
16821 # The coded name of the library, if different from the real name.
16822 soname_spec=$lt_soname_spec
16824 # Commands used to build and install an old-style archive.
16826 old_archive_cmds=$lt_old_archive_cmds_F77
16827 old_postinstall_cmds=$lt_old_postinstall_cmds
16828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16830 # Create an old-style archive from a shared archive.
16831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16833 # Create a temporary old-style archive to link instead of a shared archive.
16834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16836 # Commands used to build and install a shared archive.
16837 archive_cmds=$lt_archive_cmds_F77
16838 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16839 postinstall_cmds=$lt_postinstall_cmds
16840 postuninstall_cmds=$lt_postuninstall_cmds
16842 # Commands used to build a loadable module (assumed same as above if empty)
16843 module_cmds=$lt_module_cmds_F77
16844 module_expsym_cmds=$lt_module_expsym_cmds_F77
16846 # Commands to strip libraries.
16847 old_striplib=$lt_old_striplib
16848 striplib=$lt_striplib
16850 # Dependencies to place before the objects being linked to create a
16852 predep_objects=$lt_predep_objects_F77
16854 # Dependencies to place after the objects being linked to create a
16856 postdep_objects=$lt_postdep_objects_F77
16858 # Dependencies to place before the objects being linked to create a
16860 predeps=$lt_predeps_F77
16862 # Dependencies to place after the objects being linked to create a
16864 postdeps=$lt_postdeps_F77
16866 # The library search path used internally by the compiler when linking
16867 # a shared library.
16868 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16870 # Method to check whether dependent libraries are shared objects.
16871 deplibs_check_method=$lt_deplibs_check_method
16873 # Command to use when deplibs_check_method == file_magic.
16874 file_magic_cmd=$lt_file_magic_cmd
16876 # Flag that allows shared libraries with undefined symbols to be built.
16877 allow_undefined_flag=$lt_allow_undefined_flag_F77
16879 # Flag that forces no undefined symbols.
16880 no_undefined_flag=$lt_no_undefined_flag_F77
16882 # Commands used to finish a libtool library installation in a directory.
16883 finish_cmds=$lt_finish_cmds
16885 # Same as above, but a single script fragment to be evaled but not shown.
16886 finish_eval=$lt_finish_eval
16888 # Take the output of nm and produce a listing of raw symbols and C names.
16889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16891 # Transform the output of nm in a proper C declaration
16892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16894 # Transform the output of nm in a C name address pair
16895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16897 # This is the shared library runtime path variable.
16898 runpath_var=$runpath_var
16900 # This is the shared library path variable.
16901 shlibpath_var=$shlibpath_var
16903 # Is shlibpath searched before the hard-coded library search path?
16904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16906 # How to hardcode a shared library path into an executable.
16907 hardcode_action=$hardcode_action_F77
16909 # Whether we should hardcode library paths into libraries.
16910 hardcode_into_libs=$hardcode_into_libs
16912 # Flag to hardcode \$libdir into a binary during linking.
16913 # This must work even if \$libdir does not exist.
16914 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16916 # If ld is used when linking, flag to hardcode \$libdir into
16917 # a binary during linking. This must work even if \$libdir does
16919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16921 # Whether we need a single -rpath flag with a separated argument.
16922 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16924 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16925 # resulting binary.
16926 hardcode_direct=$hardcode_direct_F77
16928 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16929 # resulting binary.
16930 hardcode_minus_L=$hardcode_minus_L_F77
16932 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16933 # the resulting binary.
16934 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16936 # Set to yes if building a shared library automatically hardcodes DIR into the library
16937 # and all subsequent libraries and executables linked against it.
16938 hardcode_automatic=$hardcode_automatic_F77
16940 # Variables whose values should be saved in libtool wrapper scripts and
16941 # restored at relink time.
16942 variables_saved_for_relink="$variables_saved_for_relink"
16944 # Whether libtool must link a program against all its dependency libraries.
16945 link_all_deplibs=$link_all_deplibs_F77
16947 # Compile-time system search path for libraries
16948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16950 # Run-time system search path for libraries
16951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16953 # Fix the shell variable \$srcfile for the compiler.
16954 fix_srcfile_path="$fix_srcfile_path_F77"
16956 # Set to yes if exported symbols are required.
16957 always_export_symbols=$always_export_symbols_F77
16959 # The commands to list exported symbols.
16960 export_symbols_cmds=$lt_export_symbols_cmds_F77
16962 # The commands to extract the exported symbol list from a shared archive.
16963 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16965 # Symbols that should not be listed in the preloaded symbols.
16966 exclude_expsyms=$lt_exclude_expsyms_F77
16968 # Symbols that must always be exported.
16969 include_expsyms=$lt_include_expsyms_F77
16971 # ### END LIBTOOL TAG CONFIG: $tagname
16977 # If there is no Makefile yet, we rely on a make rule to execute
16978 # `config.status --recheck' to rerun these tests and create the
16979 # libtool script then.
16980 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16981 if test -f "$ltmain_in"; then
16982 test -f Makefile && make "$ltmain"
16988 ac_cpp='$CPP $CPPFLAGS'
16989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17001 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17004 # Source file extension for Java test sources.
17007 # Object file extension for compiled Java test sources.
17011 # Code to be used in simple compile tests
17012 lt_simple_compile_test_code="class foo {}\n"
17014 # Code to be used in simple link tests
17015 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17017 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17019 # If no C compiler was specified, use CC.
17022 # If no C compiler flags were specified, use CFLAGS.
17023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17025 # Allow CC to be a program name with arguments.
17029 # save warnings/boilerplate of simple test code
17030 ac_outfile=conftest.$ac_objext
17031 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17032 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17033 _lt_compiler_boilerplate=`cat conftest.err`
17036 ac_outfile=conftest.$ac_objext
17037 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17038 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17039 _lt_linker_boilerplate=`cat conftest.err`
17043 # Allow CC to be a program name with arguments.
17048 for cc_temp in $compiler""; do
17050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17056 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17059 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17060 archive_cmds_need_lc_GCJ=no
17062 old_archive_cmds_GCJ=$old_archive_cmds
17065 ## There is no encapsulation within the following macros, do not change
17066 ## the running order or otherwise move them around unless you know exactly
17067 ## what you are doing...
17069 lt_prog_compiler_no_builtin_flag_GCJ=
17071 if test "$GCC" = yes; then
17072 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17075 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17076 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17077 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 lt_cv_prog_compiler_rtti_exceptions=no
17081 ac_outfile=conftest.$ac_objext
17082 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17083 lt_compiler_flag="-fno-rtti -fno-exceptions"
17084 # Insert the option either (1) after the last *FLAGS variable, or
17085 # (2) before a word containing "conftest.", or (3) at the end.
17086 # Note that $ac_compile itself does not contain backslashes and begins
17087 # with a dollar sign (not a hyphen), so the echo should work correctly.
17088 # The option is referenced via a variable to avoid confusing sed.
17089 lt_compile=`echo "$ac_compile" | $SED \
17090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17092 -e 's:$: $lt_compiler_flag:'`
17093 (eval echo "\"\$as_me:17093: $lt_compile\"" >&5)
17094 (eval "$lt_compile" 2>conftest.err)
17096 cat conftest.err >&5
17097 echo "$as_me:17097: \$? = $ac_status" >&5
17098 if (exit $ac_status) && test -s "$ac_outfile"; then
17099 # The compiler can only warn and ignore the option if not recognized
17100 # So say no if there are warnings other than the usual output.
17101 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17104 lt_cv_prog_compiler_rtti_exceptions=yes
17110 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17111 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17113 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17114 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17121 lt_prog_compiler_wl_GCJ=
17122 lt_prog_compiler_pic_GCJ=
17123 lt_prog_compiler_static_GCJ=
17125 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17126 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17128 if test "$GCC" = yes; then
17129 lt_prog_compiler_wl_GCJ='-Wl,'
17130 lt_prog_compiler_static_GCJ='-static'
17134 # All AIX code is PIC.
17135 if test "$host_cpu" = ia64; then
17136 # AIX 5 now supports IA64 processor
17137 lt_prog_compiler_static_GCJ='-Bstatic'
17142 # FIXME: we need at least 68020 code to build shared libraries, but
17143 # adding the `-m68020' flag to GCC prevents building anything better,
17145 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17148 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17149 # PIC is the default for these OSes.
17152 mingw* | pw32* | os2*)
17153 # This hack is so that the source file can tell whether it is being
17154 # built for inclusion in a dll (and should export symbols for example).
17155 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17158 darwin* | rhapsody*)
17159 # PIC is the default on this platform
17160 # Common symbols not allowed in MH_DYLIB files
17161 lt_prog_compiler_pic_GCJ='-fno-common'
17165 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17166 # Instead, we relocate shared libraries at runtime.
17170 # Just because we use GCC doesn't mean we suddenly get shared libraries
17171 # on systems that don't support them.
17172 lt_prog_compiler_can_build_shared_GCJ=no
17177 if test -d /usr/nec; then
17178 lt_prog_compiler_pic_GCJ=-Kconform_pic
17183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17184 # not for PA HP-UX.
17190 lt_prog_compiler_pic_GCJ='-fPIC'
17196 lt_prog_compiler_pic_GCJ='-fPIC'
17200 # PORTME Check for flag to pass linker flags through the system compiler.
17203 lt_prog_compiler_wl_GCJ='-Wl,'
17204 if test "$host_cpu" = ia64; then
17205 # AIX 5 now supports IA64 processor
17206 lt_prog_compiler_static_GCJ='-Bstatic'
17208 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17212 # PIC is the default on this platform
17213 # Common symbols not allowed in MH_DYLIB files
17214 case $cc_basename in
17216 lt_prog_compiler_pic_GCJ='-qnocommon'
17217 lt_prog_compiler_wl_GCJ='-Wl,'
17222 mingw* | pw32* | os2*)
17223 # This hack is so that the source file can tell whether it is being
17224 # built for inclusion in a dll (and should export symbols for example).
17225 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17228 hpux9* | hpux10* | hpux11*)
17229 lt_prog_compiler_wl_GCJ='-Wl,'
17230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17231 # not for PA HP-UX.
17237 lt_prog_compiler_pic_GCJ='+Z'
17240 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17241 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17244 irix5* | irix6* | nonstopux*)
17245 lt_prog_compiler_wl_GCJ='-Wl,'
17246 # PIC (with -KPIC) is the default.
17247 lt_prog_compiler_static_GCJ='-non_shared'
17251 lt_prog_compiler_pic_GCJ='-KPIC'
17252 lt_prog_compiler_static_GCJ='-Bstatic'
17256 case $cc_basename in
17258 lt_prog_compiler_wl_GCJ='-Wl,'
17259 lt_prog_compiler_pic_GCJ='-KPIC'
17260 lt_prog_compiler_static_GCJ='-static'
17262 pgcc* | pgf77* | pgf90* | pgf95*)
17263 # Portland Group compilers (*not* the Pentium gcc compiler,
17264 # which looks to be a dead project)
17265 lt_prog_compiler_wl_GCJ='-Wl,'
17266 lt_prog_compiler_pic_GCJ='-fpic'
17267 lt_prog_compiler_static_GCJ='-Bstatic'
17270 lt_prog_compiler_wl_GCJ='-Wl,'
17271 # All Alpha code is PIC.
17272 lt_prog_compiler_static_GCJ='-non_shared'
17277 osf3* | osf4* | osf5*)
17278 lt_prog_compiler_wl_GCJ='-Wl,'
17279 # All OSF/1 code is PIC.
17280 lt_prog_compiler_static_GCJ='-non_shared'
17284 lt_prog_compiler_pic_GCJ='-KPIC'
17285 lt_prog_compiler_static_GCJ='-Bstatic'
17286 case $cc_basename in
17287 f77* | f90* | f95*)
17288 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17290 lt_prog_compiler_wl_GCJ='-Wl,';;
17295 lt_prog_compiler_wl_GCJ='-Qoption ld '
17296 lt_prog_compiler_pic_GCJ='-PIC'
17297 lt_prog_compiler_static_GCJ='-Bstatic'
17300 sysv4 | sysv4.2uw2* | sysv4.3*)
17301 lt_prog_compiler_wl_GCJ='-Wl,'
17302 lt_prog_compiler_pic_GCJ='-KPIC'
17303 lt_prog_compiler_static_GCJ='-Bstatic'
17307 if test -d /usr/nec ;then
17308 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17309 lt_prog_compiler_static_GCJ='-Bstatic'
17313 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17314 lt_prog_compiler_wl_GCJ='-Wl,'
17315 lt_prog_compiler_pic_GCJ='-KPIC'
17316 lt_prog_compiler_static_GCJ='-Bstatic'
17320 lt_prog_compiler_wl_GCJ='-Wl,'
17321 lt_prog_compiler_can_build_shared_GCJ=no
17325 lt_prog_compiler_pic_GCJ='-pic'
17326 lt_prog_compiler_static_GCJ='-Bstatic'
17330 lt_prog_compiler_can_build_shared_GCJ=no
17335 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17336 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17339 # Check to make sure the PIC flag actually works.
17341 if test -n "$lt_prog_compiler_pic_GCJ"; then
17343 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17344 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17345 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17348 lt_prog_compiler_pic_works_GCJ=no
17349 ac_outfile=conftest.$ac_objext
17350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17351 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17352 # Insert the option either (1) after the last *FLAGS variable, or
17353 # (2) before a word containing "conftest.", or (3) at the end.
17354 # Note that $ac_compile itself does not contain backslashes and begins
17355 # with a dollar sign (not a hyphen), so the echo should work correctly.
17356 # The option is referenced via a variable to avoid confusing sed.
17357 lt_compile=`echo "$ac_compile" | $SED \
17358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17360 -e 's:$: $lt_compiler_flag:'`
17361 (eval echo "\"\$as_me:17361: $lt_compile\"" >&5)
17362 (eval "$lt_compile" 2>conftest.err)
17364 cat conftest.err >&5
17365 echo "$as_me:17365: \$? = $ac_status" >&5
17366 if (exit $ac_status) && test -s "$ac_outfile"; then
17367 # The compiler can only warn and ignore the option if not recognized
17368 # So say no if there are warnings other than the usual output.
17369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17372 lt_prog_compiler_pic_works_GCJ=yes
17378 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17379 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17381 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17382 case $lt_prog_compiler_pic_GCJ in
17384 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17387 lt_prog_compiler_pic_GCJ=
17388 lt_prog_compiler_can_build_shared_GCJ=no
17393 # For platforms which do not support PIC, -DPIC is meaningless:
17395 lt_prog_compiler_pic_GCJ=
17398 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17403 # Check to make sure the static flag actually works.
17405 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17406 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17407 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17408 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 lt_prog_compiler_static_works_GCJ=no
17412 save_LDFLAGS="$LDFLAGS"
17413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17414 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17416 # The linker can only warn and ignore the option if not recognized
17417 # So say no if there are warnings
17418 if test -s conftest.err; then
17419 # Append any errors to the config.log.
17420 cat conftest.err 1>&5
17421 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17423 if diff conftest.exp conftest.er2 >/dev/null; then
17424 lt_prog_compiler_static_works_GCJ=yes
17427 lt_prog_compiler_static_works_GCJ=yes
17431 LDFLAGS="$save_LDFLAGS"
17434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17435 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17437 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17440 lt_prog_compiler_static_GCJ=
17444 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17446 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 lt_cv_prog_compiler_c_o_GCJ=no
17450 $rm -r conftest 2>/dev/null
17454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17456 lt_compiler_flag="-o out/conftest2.$ac_objext"
17457 # Insert the option either (1) after the last *FLAGS variable, or
17458 # (2) before a word containing "conftest.", or (3) at the end.
17459 # Note that $ac_compile itself does not contain backslashes and begins
17460 # with a dollar sign (not a hyphen), so the echo should work correctly.
17461 lt_compile=`echo "$ac_compile" | $SED \
17462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17464 -e 's:$: $lt_compiler_flag:'`
17465 (eval echo "\"\$as_me:17465: $lt_compile\"" >&5)
17466 (eval "$lt_compile" 2>out/conftest.err)
17468 cat out/conftest.err >&5
17469 echo "$as_me:17469: \$? = $ac_status" >&5
17470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17472 # The compiler can only warn and ignore the option if not recognized
17473 # So say no if there are warnings
17474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17477 lt_cv_prog_compiler_c_o_GCJ=yes
17482 # SGI C++ compiler will create directory out/ii_files/ for
17483 # template instantiation
17484 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17485 $rm out/* && rmdir out
17491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17495 hard_links="nottested"
17496 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17497 # do not overwrite the value of need_locks provided by the user
17498 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17504 ln conftest.a conftest.b 2>&5 || hard_links=no
17505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17506 { echo "$as_me:$LINENO: result: $hard_links" >&5
17507 echo "${ECHO_T}$hard_links" >&6; }
17508 if test "$hard_links" = no; then
17509 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17517 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17521 allow_undefined_flag_GCJ=
17522 enable_shared_with_static_runtimes_GCJ=no
17524 archive_expsym_cmds_GCJ=
17525 old_archive_From_new_cmds_GCJ=
17526 old_archive_from_expsyms_cmds_GCJ=
17527 export_dynamic_flag_spec_GCJ=
17528 whole_archive_flag_spec_GCJ=
17529 thread_safe_flag_spec_GCJ=
17530 hardcode_libdir_flag_spec_GCJ=
17531 hardcode_libdir_flag_spec_ld_GCJ=
17532 hardcode_libdir_separator_GCJ=
17533 hardcode_direct_GCJ=no
17534 hardcode_minus_L_GCJ=no
17535 hardcode_shlibpath_var_GCJ=unsupported
17536 link_all_deplibs_GCJ=unknown
17537 hardcode_automatic_GCJ=no
17539 module_expsym_cmds_GCJ=
17540 always_export_symbols_GCJ=no
17541 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17542 # include_expsyms should be a list of space-separated symbols to be *always*
17543 # included in the symbol list
17544 include_expsyms_GCJ=
17545 # exclude_expsyms can be an extended regexp of symbols to exclude
17546 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17548 # as well as any symbol that contains `d'.
17549 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17551 # platforms (ab)use it in PIC code, but their linkers get confused if
17552 # the symbol is explicitly referenced. Since portable code cannot
17553 # rely on this symbol name, it's probably fine to never include it in
17554 # preloaded symbol tables.
17555 extract_expsyms_cmds=
17556 # Just being paranoid about ensuring that cc_basename is set.
17557 for cc_temp in $compiler""; do
17559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17565 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17568 cygwin* | mingw* | pw32*)
17569 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17570 # When not using gcc, we currently assume that we are using
17571 # Microsoft Visual C++.
17572 if test "$GCC" != yes; then
17577 # we just hope/assume this is gcc and not c89 (= MSVC++)
17586 if test "$with_gnu_ld" = yes; then
17587 # If archive_cmds runs LD, not CC, wlarc should be empty
17590 # Set some defaults for GNU ld with shared library support. These
17591 # are reset later if shared libraries are not supported. Putting them
17592 # here allows them to be overridden if necessary.
17593 runpath_var=LD_RUN_PATH
17594 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17595 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17596 # ancient GNU ld didn't support --whole-archive et. al.
17597 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17598 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17600 whole_archive_flag_spec_GCJ=
17602 supports_anon_versioning=no
17603 case `$LD -v 2>/dev/null` in
17604 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17605 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17606 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17607 *\ 2.11.*) ;; # other 2.11 versions
17608 *) supports_anon_versioning=yes ;;
17611 # See if GNU ld supports shared libraries.
17613 aix3* | aix4* | aix5*)
17614 # On AIX/PPC, the GNU linker is very broken
17615 if test "$host_cpu" != ia64; then
17619 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17620 *** to be unable to reliably create shared libraries on AIX.
17621 *** Therefore, libtool is disabling shared libraries support. If you
17622 *** really care for shared libraries, you may want to modify your PATH
17623 *** so that a non-GNU linker is found, and then restart.
17630 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)'
17631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17632 hardcode_minus_L_GCJ=yes
17634 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17635 # that the semantics of dynamic libraries on AmigaOS, at least up
17636 # to version 4, is to share data among multiple programs linked
17637 # with the same dynamic library. Since this doesn't match the
17638 # behavior of shared libraries on other platforms, we can't use
17644 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17645 allow_undefined_flag_GCJ=unsupported
17646 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17647 # support --undefined. This deserves some investigation. FIXME
17648 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17654 cygwin* | mingw* | pw32*)
17655 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17656 # as there is no search path for DLLs.
17657 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17658 allow_undefined_flag_GCJ=unsupported
17659 always_export_symbols_GCJ=no
17660 enable_shared_with_static_runtimes_GCJ=yes
17661 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17663 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17664 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17665 # If the export-symbols file already is a .def file (1st line
17666 # is EXPORTS), use it as is; otherwise, prepend...
17667 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17668 cp $export_symbols $output_objdir/$soname.def;
17670 echo EXPORTS > $output_objdir/$soname.def;
17671 cat $export_symbols >> $output_objdir/$soname.def;
17673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17680 hardcode_direct_GCJ=no
17681 hardcode_shlibpath_var_GCJ=no
17682 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17683 export_dynamic_flag_spec_GCJ='${wl}-E'
17684 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17685 # Instead, shared libraries are loaded at an image base (0x10000000 by
17686 # default) and relocated if they conflict, which is a slow very memory
17687 # consuming and fragmenting process. To avoid this, we pick a random,
17688 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17689 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17690 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'
17691 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'
17695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17697 case $cc_basename,$host_cpu in
17698 pgcc*) # Portland Group C compiler
17699 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'
17700 tmp_addflag=' $pic_flag'
17702 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17703 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'
17704 tmp_addflag=' $pic_flag -Mnomain' ;;
17705 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17706 tmp_addflag=' -i_dynamic' ;;
17707 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17708 tmp_addflag=' -i_dynamic -nofor_main' ;;
17709 ifc* | ifort*) # Intel Fortran compiler
17710 tmp_addflag=' -nofor_main' ;;
17712 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17714 if test $supports_anon_versioning = yes; then
17715 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17717 $echo "local: *; };" >> $output_objdir/$libname.ver~
17718 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17727 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17730 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17731 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17736 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17740 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17741 *** create shared libraries on Solaris systems. Therefore, libtool
17742 *** is disabling shared libraries support. We urge you to upgrade GNU
17743 *** binutils to release 2.9.1 or newer. Another option is to modify
17744 *** your PATH or compiler configuration so that the native linker is
17745 *** used, and then restart.
17748 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17749 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17750 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17757 case `$LD -v 2>&1` in
17758 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17762 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17763 *** reliably create shared libraries on SCO systems. Therefore, libtool
17764 *** is disabling shared libraries support. We urge you to upgrade GNU
17765 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17766 *** your PATH or compiler configuration so that the native linker is
17767 *** used, and then restart.
17772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17773 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17774 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17775 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17784 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17786 hardcode_direct_GCJ=yes
17787 hardcode_shlibpath_var_GCJ=no
17791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17792 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17793 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17800 if test "$ld_shlibs_GCJ" = no; then
17802 hardcode_libdir_flag_spec_GCJ=
17803 export_dynamic_flag_spec_GCJ=
17804 whole_archive_flag_spec_GCJ=
17807 # PORTME fill in a description of your system's linker (not GNU ld)
17810 allow_undefined_flag_GCJ=unsupported
17811 always_export_symbols_GCJ=yes
17812 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'
17813 # Note: this linker hardcodes the directories in LIBPATH if there
17814 # are no directories specified by -L.
17815 hardcode_minus_L_GCJ=yes
17816 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17817 # Neither direct hardcoding nor static linking is supported with a
17819 hardcode_direct_GCJ=unsupported
17824 if test "$host_cpu" = ia64; then
17825 # On IA64, the linker does run time linking by default, so we don't
17826 # have to do anything special.
17827 aix_use_runtimelinking=no
17828 exp_sym_flag='-Bexport'
17831 # If we're using GNU nm, then we don't want the "-C" option.
17832 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17833 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17834 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'
17836 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'
17838 aix_use_runtimelinking=no
17840 # Test if we are trying to use run time linking or normal
17841 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17842 # need to do runtime linking.
17843 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17844 for ld_flag in $LDFLAGS; do
17845 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17846 aix_use_runtimelinking=yes
17853 exp_sym_flag='-bexport'
17854 no_entry_flag='-bnoentry'
17857 # When large executables or shared objects are built, AIX ld can
17858 # have problems creating the table of contents. If linking a library
17859 # or program results in "error TOC overflow" add -mminimal-toc to
17860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17863 archive_cmds_GCJ=''
17864 hardcode_direct_GCJ=yes
17865 hardcode_libdir_separator_GCJ=':'
17866 link_all_deplibs_GCJ=yes
17868 if test "$GCC" = yes; then
17869 case $host_os in aix4.[012]|aix4.[012].*)
17870 # We only want to do this on AIX 4.2 and lower, the check
17871 # below for broken collect2 doesn't work under 4.3+
17872 collect2name=`${CC} -print-prog-name=collect2`
17873 if test -f "$collect2name" && \
17874 strings "$collect2name" | grep resolve_lib_name >/dev/null
17876 # We have reworked collect2
17877 hardcode_direct_GCJ=yes
17879 # We have old collect2
17880 hardcode_direct_GCJ=unsupported
17881 # It fails to find uninstalled libraries when the uninstalled
17882 # path is not listed in the libpath. Setting hardcode_minus_L
17883 # to unsupported forces relinking
17884 hardcode_minus_L_GCJ=yes
17885 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17886 hardcode_libdir_separator_GCJ=
17890 shared_flag='-shared'
17891 if test "$aix_use_runtimelinking" = yes; then
17892 shared_flag="$shared_flag "'${wl}-G'
17896 if test "$host_cpu" = ia64; then
17897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17898 # chokes on -Wl,-G. The following line is correct:
17901 if test "$aix_use_runtimelinking" = yes; then
17902 shared_flag='${wl}-G'
17904 shared_flag='${wl}-bM:SRE'
17909 # It seems that -bexpall does not export symbols beginning with
17910 # underscore (_), so it is better to generate a list of symbols to export.
17911 always_export_symbols_GCJ=yes
17912 if test "$aix_use_runtimelinking" = yes; then
17913 # Warning - without using the other runtime loading flags (-brtl),
17914 # -berok will link without error, but may produce a broken library.
17915 allow_undefined_flag_GCJ='-berok'
17916 # Determine the default libpath from the value encoded in an empty executable.
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (ac_try="$ac_link"
17934 case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_link") 2>conftest.er1
17941 grep -v '^ *+' conftest.er1 >conftest.err
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947 { (case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_try") 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; } &&
17956 { ac_try='test -s conftest$ac_exeext'
17957 { (case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_try") 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17969 # Check for a 64-bit object if we didn't find anything.
17970 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17979 rm -f core conftest.err conftest.$ac_objext \
17980 conftest$ac_exeext conftest.$ac_ext
17981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17983 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17984 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"
17986 if test "$host_cpu" = ia64; then
17987 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17988 allow_undefined_flag_GCJ="-z nodefs"
17989 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"
17991 # Determine the default libpath from the value encoded in an empty executable.
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_link") 2>conftest.er1
18016 grep -v '^ *+' conftest.er1 >conftest.err
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest$ac_exeext'
18032 { (case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_try") 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18042 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18044 # Check for a 64-bit object if we didn't find anything.
18045 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18054 rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18058 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18059 # Warning - without using the other run time loading flags,
18060 # -berok will link without error, but may produce a broken library.
18061 no_undefined_flag_GCJ=' ${wl}-bernotok'
18062 allow_undefined_flag_GCJ=' ${wl}-berok'
18063 # Exported symbols can be pulled into shared objects from archives
18064 whole_archive_flag_spec_GCJ='$convenience'
18065 archive_cmds_need_lc_GCJ=yes
18066 # This is similar to how AIX traditionally builds its shared libraries.
18067 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'
18073 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)'
18074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18075 hardcode_minus_L_GCJ=yes
18076 # see comment about different semantics on the GNU ld section
18081 export_dynamic_flag_spec_GCJ=-rdynamic
18084 cygwin* | mingw* | pw32*)
18085 # When not using gcc, we currently assume that we are using
18086 # Microsoft Visual C++.
18087 # hardcode_libdir_flag_spec is actually meaningless, as there is
18088 # no search path for DLLs.
18089 hardcode_libdir_flag_spec_GCJ=' '
18090 allow_undefined_flag_GCJ=unsupported
18091 # Tell ltmain to make .lib files, not .a files.
18093 # Tell ltmain to make .dll files, not .so files.
18095 # FIXME: Setting linknames here is a bad hack.
18096 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18097 # The linker will automatically build a .lib file if we build a DLL.
18098 old_archive_From_new_cmds_GCJ='true'
18099 # FIXME: Should let the user specify the lib program.
18100 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18101 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18102 enable_shared_with_static_runtimes_GCJ=yes
18105 darwin* | rhapsody*)
18107 rhapsody* | darwin1.[012])
18108 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18111 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18112 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18114 case ${MACOSX_DEPLOYMENT_TARGET} in
18116 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18119 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18125 archive_cmds_need_lc_GCJ=no
18126 hardcode_direct_GCJ=no
18127 hardcode_automatic_GCJ=yes
18128 hardcode_shlibpath_var_GCJ=unsupported
18129 whole_archive_flag_spec_GCJ=''
18130 link_all_deplibs_GCJ=yes
18131 if test "$GCC" = yes ; then
18132 output_verbose_link_cmd='echo'
18133 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18134 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18135 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18136 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18137 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}'
18139 case $cc_basename in
18141 output_verbose_link_cmd='echo'
18142 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18143 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18145 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18146 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}'
18156 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18157 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18158 hardcode_shlibpath_var_GCJ=no
18165 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18166 # support. Future versions do this automatically, but an explicit c++rt0.o
18167 # does not break anything, and helps significantly (at the cost of a little
18170 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18171 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18172 hardcode_direct_GCJ=yes
18173 hardcode_shlibpath_var_GCJ=no
18176 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18178 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18179 hardcode_direct_GCJ=yes
18180 hardcode_minus_L_GCJ=yes
18181 hardcode_shlibpath_var_GCJ=no
18184 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18185 freebsd* | kfreebsd*-gnu | dragonfly*)
18186 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18187 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18188 hardcode_direct_GCJ=yes
18189 hardcode_shlibpath_var_GCJ=no
18193 if test "$GCC" = yes; then
18194 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'
18196 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'
18198 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18199 hardcode_libdir_separator_GCJ=:
18200 hardcode_direct_GCJ=yes
18202 # hardcode_minus_L: Not really in the search PATH,
18203 # but as the default location of the library.
18204 hardcode_minus_L_GCJ=yes
18205 export_dynamic_flag_spec_GCJ='${wl}-E'
18209 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18210 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18212 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18214 if test "$with_gnu_ld" = no; then
18215 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18216 hardcode_libdir_separator_GCJ=:
18218 hardcode_direct_GCJ=yes
18219 export_dynamic_flag_spec_GCJ='${wl}-E'
18221 # hardcode_minus_L: Not really in the search PATH,
18222 # but as the default location of the library.
18223 hardcode_minus_L_GCJ=yes
18228 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18231 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18234 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18237 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18243 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18246 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18249 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18253 if test "$with_gnu_ld" = no; then
18254 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18255 hardcode_libdir_separator_GCJ=:
18259 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18260 hardcode_direct_GCJ=no
18261 hardcode_shlibpath_var_GCJ=no
18264 hardcode_direct_GCJ=yes
18265 export_dynamic_flag_spec_GCJ='${wl}-E'
18267 # hardcode_minus_L: Not really in the search PATH,
18268 # but as the default location of the library.
18269 hardcode_minus_L_GCJ=yes
18275 irix5* | irix6* | nonstopux*)
18276 if test "$GCC" = yes; then
18277 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'
18279 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'
18280 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18282 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18283 hardcode_libdir_separator_GCJ=:
18284 link_all_deplibs_GCJ=yes
18288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18289 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18291 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18293 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18294 hardcode_direct_GCJ=yes
18295 hardcode_shlibpath_var_GCJ=no
18299 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18300 hardcode_direct_GCJ=yes
18301 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18302 hardcode_libdir_separator_GCJ=:
18303 hardcode_shlibpath_var_GCJ=no
18307 hardcode_direct_GCJ=yes
18308 hardcode_shlibpath_var_GCJ=no
18309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18310 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18311 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18312 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18313 export_dynamic_flag_spec_GCJ='${wl}-E'
18316 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18317 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18318 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18321 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18322 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18329 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18330 hardcode_minus_L_GCJ=yes
18331 allow_undefined_flag_GCJ=unsupported
18332 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'
18333 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18337 if test "$GCC" = yes; then
18338 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18339 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'
18341 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18342 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'
18344 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18345 hardcode_libdir_separator_GCJ=:
18348 osf4* | osf5*) # as osf3* with the addition of -msym flag
18349 if test "$GCC" = yes; then
18350 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18351 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'
18352 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18354 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18355 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'
18356 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~
18357 $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'
18359 # Both c and cxx compiler support -rpath directly
18360 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18362 hardcode_libdir_separator_GCJ=:
18366 no_undefined_flag_GCJ=' -z text'
18367 if test "$GCC" = yes; then
18369 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18370 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18371 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18374 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18375 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18379 hardcode_shlibpath_var_GCJ=no
18381 solaris2.[0-5] | solaris2.[0-5].*) ;;
18383 # The compiler driver will combine linker options so we
18384 # cannot just pass the convience library names through
18385 # without $wl, iff we do not link with $LD.
18386 # Luckily, gcc supports the same syntax we need for Sun Studio.
18387 # Supported since Solaris 2.6 (maybe 2.5.1?)
18390 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18392 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18395 link_all_deplibs_GCJ=yes
18399 if test "x$host_vendor" = xsequent; then
18400 # Use $CC to link under sequent, because it throws in some extra .o
18401 # files that make .init and .fini sections work.
18402 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18404 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18406 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18407 hardcode_direct_GCJ=yes
18408 hardcode_minus_L_GCJ=yes
18409 hardcode_shlibpath_var_GCJ=no
18413 case $host_vendor in
18415 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416 hardcode_direct_GCJ=yes # is this really true???
18419 ## LD is ld it makes a PLAMLIB
18420 ## CC just makes a GrossModule.
18421 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18422 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18423 hardcode_direct_GCJ=no
18426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18427 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18430 runpath_var='LD_RUN_PATH'
18431 hardcode_shlibpath_var_GCJ=no
18435 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18436 hardcode_shlibpath_var_GCJ=no
18437 export_dynamic_flag_spec_GCJ='-Bexport'
18441 if test -d /usr/nec; then
18442 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18443 hardcode_shlibpath_var_GCJ=no
18444 runpath_var=LD_RUN_PATH
18445 hardcode_runpath_var=yes
18450 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18451 no_undefined_flag_GCJ='${wl}-z,text'
18452 archive_cmds_need_lc_GCJ=no
18453 hardcode_shlibpath_var_GCJ=no
18454 runpath_var='LD_RUN_PATH'
18456 if test "$GCC" = yes; then
18457 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18458 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18460 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18461 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18465 sysv5* | sco3.2v5* | sco5v6*)
18466 # Note: We can NOT use -z defs as we might desire, because we do not
18467 # link with -lc, and that would cause any symbols used from libc to
18468 # always be unresolved, which means just about no library would
18469 # ever link correctly. If we're not using GNU ld we use -z text
18470 # though, which does catch some bad symbols but isn't as heavy-handed
18472 no_undefined_flag_GCJ='${wl}-z,text'
18473 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18474 archive_cmds_need_lc_GCJ=no
18475 hardcode_shlibpath_var_GCJ=no
18476 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18477 hardcode_libdir_separator_GCJ=':'
18478 link_all_deplibs_GCJ=yes
18479 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18480 runpath_var='LD_RUN_PATH'
18482 if test "$GCC" = yes; then
18483 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18484 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18486 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18487 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18494 hardcode_shlibpath_var_GCJ=no
18503 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18504 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18505 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18508 # Do we need to explicitly link libc?
18510 case "x$archive_cmds_need_lc_GCJ" in
18512 # Assume -lc should be added
18513 archive_cmds_need_lc_GCJ=yes
18515 if test "$enable_shared" = yes && test "$GCC" = yes; then
18516 case $archive_cmds_GCJ in
18518 # FIXME: we may have to deal with multi-command sequences.
18521 # Test whether the compiler implicitly links with -lc since on some
18522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18523 # to ld, don't add -lc before -lgcc.
18524 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18525 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18530 (eval $ac_compile) 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } 2>conftest.err; then
18536 libobjs=conftest.$ac_objext
18538 wl=$lt_prog_compiler_wl_GCJ
18539 pic_flag=$lt_prog_compiler_pic_GCJ
18545 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18546 allow_undefined_flag_GCJ=
18547 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18548 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }
18553 archive_cmds_need_lc_GCJ=no
18555 archive_cmds_need_lc_GCJ=yes
18557 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18559 cat conftest.err 1>&5
18562 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18563 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18570 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18571 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18572 library_names_spec=
18573 libname_spec='lib$name'
18577 postuninstall_cmds=
18581 shlibpath_overrides_runpath=unknown
18583 dynamic_linker="$host_os ld.so"
18584 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18585 if test "$GCC" = yes; then
18586 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18587 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18588 # if the path contains ";" then we assume it to be the separator
18589 # otherwise default to the standard path separator (i.e. ":") - it is
18590 # assumed that no part of a normal pathname contains ";" but that should
18591 # okay in the real world where ";" in dirpaths is itself problematic.
18592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18599 need_lib_prefix=unknown
18600 hardcode_into_libs=no
18602 # when you set need_version to no, make sure it does not cause -set_version
18603 # flags to be left without arguments
18604 need_version=unknown
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18610 shlibpath_var=LIBPATH
18612 # AIX 3 has no versioning support, so we append a major version to the name.
18613 soname_spec='${libname}${release}${shared_ext}$major'
18620 hardcode_into_libs=yes
18621 if test "$host_cpu" = ia64; then
18622 # AIX 5 supports IA64
18623 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18624 shlibpath_var=LD_LIBRARY_PATH
18626 # With GCC up to 2.95.x, collect2 would create an import file
18627 # for dependence libraries. The import file would start with
18628 # the line `#! .'. This would cause the generated library to
18629 # depend on `.', always an invalid library. This was fixed in
18630 # development snapshots of GCC prior to 3.0.
18632 aix4 | aix4.[01] | aix4.[01].*)
18633 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18635 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18638 can_build_shared=no
18642 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18643 # soname into executable. Probably we can add versioning support to
18644 # collect2, so additional links can be useful in future.
18645 if test "$aix_use_runtimelinking" = yes; then
18646 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18647 # instead of lib<name>.a to let people know that these are not
18648 # typical AIX shared libraries.
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18651 # We preserve .a as extension for shared libraries through AIX4.2
18652 # and later when we are not doing run time linking.
18653 library_names_spec='${libname}${release}.a $libname.a'
18654 soname_spec='${libname}${release}${shared_ext}$major'
18656 shlibpath_var=LIBPATH
18661 library_names_spec='$libname.ixlibrary $libname.a'
18662 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18663 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'
18667 library_names_spec='${libname}${shared_ext}'
18668 dynamic_linker="$host_os ld.so"
18669 shlibpath_var=LIBRARY_PATH
18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18676 soname_spec='${libname}${release}${shared_ext}$major'
18677 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18678 shlibpath_var=LD_LIBRARY_PATH
18679 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18680 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18681 # the default ld.so.conf also contains /usr/contrib/lib and
18682 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18683 # libtool to hard-code these into programs
18686 cygwin* | mingw* | pw32*)
18687 version_type=windows
18692 case $GCC,$host_os in
18693 yes,cygwin* | yes,mingw* | yes,pw32*)
18694 library_names_spec='$libname.dll.a'
18695 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18696 postinstall_cmds='base_file=`basename \${file}`~
18697 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18698 dldir=$destdir/`dirname \$dlpath`~
18699 test -d \$dldir || mkdir -p \$dldir~
18700 $install_prog $dir/$dlname \$dldir/$dlname~
18701 chmod a+x \$dldir/$dlname'
18702 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18703 dlpath=$dir/\$dldll~
18705 shlibpath_overrides_runpath=yes
18709 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18710 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18711 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18714 # MinGW DLLs use traditional 'lib' prefix
18715 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18716 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18717 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18718 # It is most probably a Windows format PATH printed by
18719 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18720 # path with ; separators, and with drive letters. We can handle the
18721 # drive letters (cygwin fileutils understands them), so leave them,
18722 # especially as we might pass files found there to a mingw objdump,
18723 # which wouldn't understand a cygwinified path. Ahh.
18724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18730 # pw32 DLLs use 'pw' prefix rather than 'lib'
18731 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18737 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18740 dynamic_linker='Win32 ld.exe'
18741 # FIXME: first we should search . and the directory the executable is in
18745 darwin* | rhapsody*)
18746 dynamic_linker="$host_os dyld"
18747 version_type=darwin
18750 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18751 soname_spec='${libname}${release}${major}$shared_ext'
18752 shlibpath_overrides_runpath=yes
18753 shlibpath_var=DYLD_LIBRARY_PATH
18754 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18755 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18756 if test "$GCC" = yes; then
18757 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18759 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18761 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18769 soname_spec='${libname}${release}${shared_ext}$major'
18770 shlibpath_var=LD_LIBRARY_PATH
18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18782 soname_spec='${libname}${release}${shared_ext}$major'
18783 shlibpath_var=LD_LIBRARY_PATH
18784 shlibpath_overrides_runpath=no
18785 hardcode_into_libs=yes
18786 dynamic_linker='GNU ld.so'
18789 freebsd* | dragonfly*)
18790 # DragonFly does not have aout. When/if they implement a new
18791 # versioning mechanism, adjust this.
18792 if test -x /usr/bin/objformat; then
18793 objformat=`/usr/bin/objformat`
18796 freebsd[123]*) objformat=aout ;;
18797 *) objformat=elf ;;
18800 version_type=freebsd-$objformat
18801 case $version_type in
18803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18812 shlibpath_var=LD_LIBRARY_PATH
18815 shlibpath_overrides_runpath=yes
18817 freebsd3.[01]* | freebsdelf3.[01]*)
18818 shlibpath_overrides_runpath=yes
18819 hardcode_into_libs=yes
18821 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18822 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18823 shlibpath_overrides_runpath=no
18824 hardcode_into_libs=yes
18826 freebsd*) # from 4.6 on
18827 shlibpath_overrides_runpath=yes
18828 hardcode_into_libs=yes
18837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18838 soname_spec='${libname}${release}${shared_ext}$major'
18839 shlibpath_var=LD_LIBRARY_PATH
18840 hardcode_into_libs=yes
18843 hpux9* | hpux10* | hpux11*)
18844 # Give a soname corresponding to the major version so that dld.sl refuses to
18845 # link against other versions.
18852 hardcode_into_libs=yes
18853 dynamic_linker="$host_os dld.so"
18854 shlibpath_var=LD_LIBRARY_PATH
18855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857 soname_spec='${libname}${release}${shared_ext}$major'
18858 if test "X$HPUX_IA64_MODE" = X32; then
18859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18867 hardcode_into_libs=yes
18868 dynamic_linker="$host_os dld.sl"
18869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872 soname_spec='${libname}${release}${shared_ext}$major'
18873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18878 dynamic_linker="$host_os dld.sl"
18879 shlibpath_var=SHLIB_PATH
18880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882 soname_spec='${libname}${release}${shared_ext}$major'
18885 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18886 postinstall_cmds='chmod 555 $lib'
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18894 soname_spec='${libname}${release}${shared_ext}$major'
18895 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18896 shlibpath_var=LD_LIBRARY_PATH
18897 shlibpath_overrides_runpath=no
18898 hardcode_into_libs=yes
18901 irix5* | irix6* | nonstopux*)
18903 nonstopux*) version_type=nonstopux ;;
18905 if test "$lt_cv_prog_gnu_ld" = yes; then
18913 soname_spec='${libname}${release}${shared_ext}$major'
18914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18916 irix5* | nonstopux*)
18917 libsuff= shlibsuff=
18920 case $LD in # libtool.m4 will add one of these switches to LD
18921 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18922 libsuff= shlibsuff= libmagic=32-bit;;
18923 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18924 libsuff=32 shlibsuff=N32 libmagic=N32;;
18925 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18926 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18927 *) libsuff= shlibsuff= libmagic=never-match;;
18931 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18932 shlibpath_overrides_runpath=no
18933 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18934 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18935 hardcode_into_libs=yes
18938 # No shared lib support for Linux oldld, aout, or coff.
18939 linux*oldld* | linux*aout* | linux*coff*)
18943 # This must be Linux ELF.
18948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18949 soname_spec='${libname}${release}${shared_ext}$major'
18950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18951 shlibpath_var=LD_LIBRARY_PATH
18952 shlibpath_overrides_runpath=no
18953 # This implies no fast_install, which is unacceptable.
18954 # Some rework will be needed to allow for fast_install
18955 # before this can be enabled.
18956 hardcode_into_libs=yes
18958 # Append ld.so.conf contents to the search path
18959 if test -f /etc/ld.so.conf; then
18960 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18961 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18964 # We used to test for /lib/ld.so.1 and disable shared libraries on
18965 # powerpc, because MkLinux only supported shared libraries with the
18966 # GNU dynamic linker. Since this was broken with cross compilers,
18967 # most powerpc-linux boxes support dynamic linking these days and
18968 # people can always --disable-shared, the test was removed, and we
18969 # assume the GNU/Linux dynamic linker is in use.
18970 dynamic_linker='GNU/Linux ld.so'
18977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18978 soname_spec='${libname}${release}${shared_ext}$major'
18979 shlibpath_var=LD_LIBRARY_PATH
18980 shlibpath_overrides_runpath=no
18981 hardcode_into_libs=yes
18982 dynamic_linker='GNU ld.so'
18989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18992 dynamic_linker='NetBSD (a.out) ld.so'
18994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18995 soname_spec='${libname}${release}${shared_ext}$major'
18996 dynamic_linker='NetBSD ld.elf_so'
18998 shlibpath_var=LD_LIBRARY_PATH
18999 shlibpath_overrides_runpath=yes
19000 hardcode_into_libs=yes
19005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19006 shlibpath_var=LD_LIBRARY_PATH
19007 shlibpath_overrides_runpath=yes
19014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19015 soname_spec='${libname}${release}${shared_ext}$major'
19016 shlibpath_var=LD_LIBRARY_PATH
19017 shlibpath_overrides_runpath=yes
19022 sys_lib_dlsearch_path_spec="/usr/lib"
19024 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19026 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19027 *) need_version=no ;;
19029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19031 shlibpath_var=LD_LIBRARY_PATH
19032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19034 openbsd2.[89] | openbsd2.[89].*)
19035 shlibpath_overrides_runpath=no
19038 shlibpath_overrides_runpath=yes
19042 shlibpath_overrides_runpath=yes
19047 libname_spec='$name'
19050 library_names_spec='$libname${shared_ext} $libname.a'
19051 dynamic_linker='OS/2 ld.exe'
19052 shlibpath_var=LIBPATH
19055 osf3* | osf4* | osf5*)
19059 soname_spec='${libname}${release}${shared_ext}$major'
19060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19061 shlibpath_var=LD_LIBRARY_PATH
19062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19071 soname_spec='${libname}${release}${shared_ext}$major'
19072 shlibpath_var=LD_LIBRARY_PATH
19073 shlibpath_overrides_runpath=yes
19074 hardcode_into_libs=yes
19075 # ldd complains unless libraries are executable
19076 postinstall_cmds='chmod +x $lib'
19081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19083 shlibpath_var=LD_LIBRARY_PATH
19084 shlibpath_overrides_runpath=yes
19085 if test "$with_gnu_ld" = yes; then
19093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19094 soname_spec='${libname}${release}${shared_ext}$major'
19095 shlibpath_var=LD_LIBRARY_PATH
19096 case $host_vendor in
19098 shlibpath_overrides_runpath=no
19100 export_dynamic_flag_spec='${wl}-Blargedynsym'
19101 runpath_var=LD_RUN_PATH
19109 shlibpath_overrides_runpath=no
19110 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19116 if test -d /usr/nec ;then
19118 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19119 soname_spec='$libname${shared_ext}.$major'
19120 shlibpath_var=LD_LIBRARY_PATH
19124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19125 version_type=freebsd-elf
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19129 soname_spec='${libname}${release}${shared_ext}$major'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 hardcode_into_libs=yes
19132 if test "$with_gnu_ld" = yes; then
19133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19134 shlibpath_overrides_runpath=no
19136 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19137 shlibpath_overrides_runpath=yes
19140 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19144 sys_lib_dlsearch_path_spec='/usr/lib'
19149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19150 soname_spec='${libname}${release}${shared_ext}$major'
19151 shlibpath_var=LD_LIBRARY_PATH
19158 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19159 echo "${ECHO_T}$dynamic_linker" >&6; }
19160 test "$dynamic_linker" = no && can_build_shared=no
19162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19163 if test "$GCC" = yes; then
19164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19167 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19169 hardcode_action_GCJ=
19170 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19171 test -n "$runpath_var_GCJ" || \
19172 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19174 # We can hardcode non-existant directories.
19175 if test "$hardcode_direct_GCJ" != no &&
19176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19177 # have to relink, otherwise we might link with an installed library
19178 # when we should be linking with a yet-to-be-installed one
19179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19180 test "$hardcode_minus_L_GCJ" != no; then
19181 # Linking always hardcodes the temporary library directory.
19182 hardcode_action_GCJ=relink
19184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19185 hardcode_action_GCJ=immediate
19188 # We cannot hardcode anything, or else we can only hardcode existing
19190 hardcode_action_GCJ=unsupported
19192 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19193 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19195 if test "$hardcode_action_GCJ" = relink; then
19196 # Fast installation is not supported
19197 enable_fast_install=no
19198 elif test "$shlibpath_overrides_runpath" = yes ||
19199 test "$enable_shared" = no; then
19200 # Fast installation is not necessary
19201 enable_fast_install=needless
19205 # The else clause should only fire when bootstrapping the
19206 # libtool distribution, otherwise you forgot to ship ltmain.sh
19207 # with your package, and you will get complaints that there are
19208 # no rules to generate ltmain.sh.
19209 if test -f "$ltmain"; then
19210 # See if we are running on zsh, and set the options which allow our commands through
19211 # without removal of \ escapes.
19212 if test -n "${ZSH_VERSION+set}" ; then
19213 setopt NO_GLOB_SUBST
19215 # Now quote all the things that may contain metacharacters while being
19216 # careful not to overquote the AC_SUBSTed values. We take copies of the
19217 # variables and quote the copies for generation of the libtool script.
19218 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19220 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19221 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19222 deplibs_check_method reload_flag reload_cmds need_locks \
19223 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19224 lt_cv_sys_global_symbol_to_c_name_address \
19225 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19226 old_postinstall_cmds old_postuninstall_cmds \
19230 lt_prog_compiler_wl_GCJ \
19231 lt_prog_compiler_pic_GCJ \
19232 lt_prog_compiler_static_GCJ \
19233 lt_prog_compiler_no_builtin_flag_GCJ \
19234 export_dynamic_flag_spec_GCJ \
19235 thread_safe_flag_spec_GCJ \
19236 whole_archive_flag_spec_GCJ \
19237 enable_shared_with_static_runtimes_GCJ \
19238 old_archive_cmds_GCJ \
19239 old_archive_from_new_cmds_GCJ \
19240 predep_objects_GCJ \
19241 postdep_objects_GCJ \
19244 compiler_lib_search_path_GCJ \
19246 archive_expsym_cmds_GCJ \
19247 postinstall_cmds_GCJ \
19248 postuninstall_cmds_GCJ \
19249 old_archive_from_expsyms_cmds_GCJ \
19250 allow_undefined_flag_GCJ \
19251 no_undefined_flag_GCJ \
19252 export_symbols_cmds_GCJ \
19253 hardcode_libdir_flag_spec_GCJ \
19254 hardcode_libdir_flag_spec_ld_GCJ \
19255 hardcode_libdir_separator_GCJ \
19256 hardcode_automatic_GCJ \
19258 module_expsym_cmds_GCJ \
19259 lt_cv_prog_compiler_c_o_GCJ \
19260 exclude_expsyms_GCJ \
19261 include_expsyms_GCJ; do
19264 old_archive_cmds_GCJ | \
19265 old_archive_from_new_cmds_GCJ | \
19266 archive_cmds_GCJ | \
19267 archive_expsym_cmds_GCJ | \
19268 module_cmds_GCJ | \
19269 module_expsym_cmds_GCJ | \
19270 old_archive_from_expsyms_cmds_GCJ | \
19271 export_symbols_cmds_GCJ | \
19272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19273 postinstall_cmds | postuninstall_cmds | \
19274 old_postinstall_cmds | old_postuninstall_cmds | \
19275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19276 # Double-quote double-evaled strings.
19277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19286 *'\$0 --fallback-echo"')
19287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19293 cat <<__EOF__ >> "$cfgfile"
19294 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19298 # Shell to use when invoking shell scripts.
19301 # Whether or not to build shared libraries.
19302 build_libtool_libs=$enable_shared
19304 # Whether or not to build static libraries.
19305 build_old_libs=$enable_static
19307 # Whether or not to add -lc for building shared libraries.
19308 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19310 # Whether or not to disallow shared libs when runtime libs are static
19311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19313 # Whether or not to optimize for fast installation.
19314 fast_install=$enable_fast_install
19317 host_alias=$host_alias
19321 # The build system.
19322 build_alias=$build_alias
19326 # An echo program that does not interpret backslashes.
19331 AR_FLAGS=$lt_AR_FLAGS
19336 # LTCC compiler flags.
19337 LTCFLAGS=$lt_LTCFLAGS
19339 # A language-specific compiler.
19340 CC=$lt_compiler_GCJ
19342 # Is the compiler the GNU C compiler?
19348 # The linker used to build libraries.
19351 # Whether we need hard or soft links.
19354 # A BSD-compatible nm program.
19357 # A symbol stripping program
19360 # Used to examine libraries when file_magic_cmd begins "file"
19361 MAGIC_CMD=$MAGIC_CMD
19363 # Used on cygwin: DLL creation program.
19366 # Used on cygwin: object dumper.
19369 # Used on cygwin: assembler.
19372 # The name of the directory that contains temporary libtool files.
19375 # How to create reloadable object files.
19376 reload_flag=$lt_reload_flag
19377 reload_cmds=$lt_reload_cmds
19379 # How to pass a linker flag through the compiler.
19380 wl=$lt_lt_prog_compiler_wl_GCJ
19382 # Object file suffix (normally "o").
19383 objext="$ac_objext"
19385 # Old archive suffix (normally "a").
19388 # Shared library suffix (normally ".so").
19389 shrext_cmds='$shrext_cmds'
19391 # Executable file suffix (normally "").
19394 # Additional compiler flags for building library objects.
19395 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19398 # What is the maximum length of a command?
19399 max_cmd_len=$lt_cv_sys_max_cmd_len
19401 # Does compiler simultaneously support -c and -o options?
19402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19404 # Must we lock files when doing compilation?
19405 need_locks=$lt_need_locks
19407 # Do we need the lib prefix for modules?
19408 need_lib_prefix=$need_lib_prefix
19410 # Do we need a version for libraries?
19411 need_version=$need_version
19413 # Whether dlopen is supported.
19414 dlopen_support=$enable_dlopen
19416 # Whether dlopen of programs is supported.
19417 dlopen_self=$enable_dlopen_self
19419 # Whether dlopen of statically linked programs is supported.
19420 dlopen_self_static=$enable_dlopen_self_static
19422 # Compiler flag to prevent dynamic linking.
19423 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19425 # Compiler flag to turn off builtin functions.
19426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19428 # Compiler flag to allow reflexive dlopens.
19429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19431 # Compiler flag to generate shared objects directly from archives.
19432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19434 # Compiler flag to generate thread-safe objects.
19435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19437 # Library versioning type.
19438 version_type=$version_type
19440 # Format of library name prefix.
19441 libname_spec=$lt_libname_spec
19443 # List of archive names. First name is the real one, the rest are links.
19444 # The last name is the one that the linker finds with -lNAME.
19445 library_names_spec=$lt_library_names_spec
19447 # The coded name of the library, if different from the real name.
19448 soname_spec=$lt_soname_spec
19450 # Commands used to build and install an old-style archive.
19452 old_archive_cmds=$lt_old_archive_cmds_GCJ
19453 old_postinstall_cmds=$lt_old_postinstall_cmds
19454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19456 # Create an old-style archive from a shared archive.
19457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19459 # Create a temporary old-style archive to link instead of a shared archive.
19460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19462 # Commands used to build and install a shared archive.
19463 archive_cmds=$lt_archive_cmds_GCJ
19464 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19465 postinstall_cmds=$lt_postinstall_cmds
19466 postuninstall_cmds=$lt_postuninstall_cmds
19468 # Commands used to build a loadable module (assumed same as above if empty)
19469 module_cmds=$lt_module_cmds_GCJ
19470 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19472 # Commands to strip libraries.
19473 old_striplib=$lt_old_striplib
19474 striplib=$lt_striplib
19476 # Dependencies to place before the objects being linked to create a
19478 predep_objects=$lt_predep_objects_GCJ
19480 # Dependencies to place after the objects being linked to create a
19482 postdep_objects=$lt_postdep_objects_GCJ
19484 # Dependencies to place before the objects being linked to create a
19486 predeps=$lt_predeps_GCJ
19488 # Dependencies to place after the objects being linked to create a
19490 postdeps=$lt_postdeps_GCJ
19492 # The library search path used internally by the compiler when linking
19493 # a shared library.
19494 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19496 # Method to check whether dependent libraries are shared objects.
19497 deplibs_check_method=$lt_deplibs_check_method
19499 # Command to use when deplibs_check_method == file_magic.
19500 file_magic_cmd=$lt_file_magic_cmd
19502 # Flag that allows shared libraries with undefined symbols to be built.
19503 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19505 # Flag that forces no undefined symbols.
19506 no_undefined_flag=$lt_no_undefined_flag_GCJ
19508 # Commands used to finish a libtool library installation in a directory.
19509 finish_cmds=$lt_finish_cmds
19511 # Same as above, but a single script fragment to be evaled but not shown.
19512 finish_eval=$lt_finish_eval
19514 # Take the output of nm and produce a listing of raw symbols and C names.
19515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19517 # Transform the output of nm in a proper C declaration
19518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19520 # Transform the output of nm in a C name address pair
19521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19523 # This is the shared library runtime path variable.
19524 runpath_var=$runpath_var
19526 # This is the shared library path variable.
19527 shlibpath_var=$shlibpath_var
19529 # Is shlibpath searched before the hard-coded library search path?
19530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19532 # How to hardcode a shared library path into an executable.
19533 hardcode_action=$hardcode_action_GCJ
19535 # Whether we should hardcode library paths into libraries.
19536 hardcode_into_libs=$hardcode_into_libs
19538 # Flag to hardcode \$libdir into a binary during linking.
19539 # This must work even if \$libdir does not exist.
19540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19542 # If ld is used when linking, flag to hardcode \$libdir into
19543 # a binary during linking. This must work even if \$libdir does
19545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19547 # Whether we need a single -rpath flag with a separated argument.
19548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19551 # resulting binary.
19552 hardcode_direct=$hardcode_direct_GCJ
19554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19555 # resulting binary.
19556 hardcode_minus_L=$hardcode_minus_L_GCJ
19558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19559 # the resulting binary.
19560 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19562 # Set to yes if building a shared library automatically hardcodes DIR into the library
19563 # and all subsequent libraries and executables linked against it.
19564 hardcode_automatic=$hardcode_automatic_GCJ
19566 # Variables whose values should be saved in libtool wrapper scripts and
19567 # restored at relink time.
19568 variables_saved_for_relink="$variables_saved_for_relink"
19570 # Whether libtool must link a program against all its dependency libraries.
19571 link_all_deplibs=$link_all_deplibs_GCJ
19573 # Compile-time system search path for libraries
19574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19576 # Run-time system search path for libraries
19577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19579 # Fix the shell variable \$srcfile for the compiler.
19580 fix_srcfile_path="$fix_srcfile_path_GCJ"
19582 # Set to yes if exported symbols are required.
19583 always_export_symbols=$always_export_symbols_GCJ
19585 # The commands to list exported symbols.
19586 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19588 # The commands to extract the exported symbol list from a shared archive.
19589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19591 # Symbols that should not be listed in the preloaded symbols.
19592 exclude_expsyms=$lt_exclude_expsyms_GCJ
19594 # Symbols that must always be exported.
19595 include_expsyms=$lt_include_expsyms_GCJ
19597 # ### END LIBTOOL TAG CONFIG: $tagname
19603 # If there is no Makefile yet, we rely on a make rule to execute
19604 # `config.status --recheck' to rerun these tests and create the
19605 # libtool script then.
19606 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19607 if test -f "$ltmain_in"; then
19608 test -f Makefile && make "$ltmain"
19614 ac_cpp='$CPP $CPPFLAGS'
19615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19629 # Source file extension for RC test sources.
19632 # Object file extension for compiled RC test sources.
19636 # Code to be used in simple compile tests
19637 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19639 # Code to be used in simple link tests
19640 lt_simple_link_test_code="$lt_simple_compile_test_code"
19642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19644 # If no C compiler was specified, use CC.
19647 # If no C compiler flags were specified, use CFLAGS.
19648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19650 # Allow CC to be a program name with arguments.
19654 # save warnings/boilerplate of simple test code
19655 ac_outfile=conftest.$ac_objext
19656 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19658 _lt_compiler_boilerplate=`cat conftest.err`
19661 ac_outfile=conftest.$ac_objext
19662 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19664 _lt_linker_boilerplate=`cat conftest.err`
19668 # Allow CC to be a program name with arguments.
19673 for cc_temp in $compiler""; do
19675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19683 lt_cv_prog_compiler_c_o_RC=yes
19685 # The else clause should only fire when bootstrapping the
19686 # libtool distribution, otherwise you forgot to ship ltmain.sh
19687 # with your package, and you will get complaints that there are
19688 # no rules to generate ltmain.sh.
19689 if test -f "$ltmain"; then
19690 # See if we are running on zsh, and set the options which allow our commands through
19691 # without removal of \ escapes.
19692 if test -n "${ZSH_VERSION+set}" ; then
19693 setopt NO_GLOB_SUBST
19695 # Now quote all the things that may contain metacharacters while being
19696 # careful not to overquote the AC_SUBSTed values. We take copies of the
19697 # variables and quote the copies for generation of the libtool script.
19698 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19700 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19701 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19702 deplibs_check_method reload_flag reload_cmds need_locks \
19703 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19704 lt_cv_sys_global_symbol_to_c_name_address \
19705 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19706 old_postinstall_cmds old_postuninstall_cmds \
19710 lt_prog_compiler_wl_RC \
19711 lt_prog_compiler_pic_RC \
19712 lt_prog_compiler_static_RC \
19713 lt_prog_compiler_no_builtin_flag_RC \
19714 export_dynamic_flag_spec_RC \
19715 thread_safe_flag_spec_RC \
19716 whole_archive_flag_spec_RC \
19717 enable_shared_with_static_runtimes_RC \
19718 old_archive_cmds_RC \
19719 old_archive_from_new_cmds_RC \
19720 predep_objects_RC \
19721 postdep_objects_RC \
19724 compiler_lib_search_path_RC \
19726 archive_expsym_cmds_RC \
19727 postinstall_cmds_RC \
19728 postuninstall_cmds_RC \
19729 old_archive_from_expsyms_cmds_RC \
19730 allow_undefined_flag_RC \
19731 no_undefined_flag_RC \
19732 export_symbols_cmds_RC \
19733 hardcode_libdir_flag_spec_RC \
19734 hardcode_libdir_flag_spec_ld_RC \
19735 hardcode_libdir_separator_RC \
19736 hardcode_automatic_RC \
19738 module_expsym_cmds_RC \
19739 lt_cv_prog_compiler_c_o_RC \
19740 exclude_expsyms_RC \
19741 include_expsyms_RC; do
19744 old_archive_cmds_RC | \
19745 old_archive_from_new_cmds_RC | \
19746 archive_cmds_RC | \
19747 archive_expsym_cmds_RC | \
19749 module_expsym_cmds_RC | \
19750 old_archive_from_expsyms_cmds_RC | \
19751 export_symbols_cmds_RC | \
19752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19753 postinstall_cmds | postuninstall_cmds | \
19754 old_postinstall_cmds | old_postuninstall_cmds | \
19755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19756 # Double-quote double-evaled strings.
19757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19766 *'\$0 --fallback-echo"')
19767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19773 cat <<__EOF__ >> "$cfgfile"
19774 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19778 # Shell to use when invoking shell scripts.
19781 # Whether or not to build shared libraries.
19782 build_libtool_libs=$enable_shared
19784 # Whether or not to build static libraries.
19785 build_old_libs=$enable_static
19787 # Whether or not to add -lc for building shared libraries.
19788 build_libtool_need_lc=$archive_cmds_need_lc_RC
19790 # Whether or not to disallow shared libs when runtime libs are static
19791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19793 # Whether or not to optimize for fast installation.
19794 fast_install=$enable_fast_install
19797 host_alias=$host_alias
19801 # The build system.
19802 build_alias=$build_alias
19806 # An echo program that does not interpret backslashes.
19811 AR_FLAGS=$lt_AR_FLAGS
19816 # LTCC compiler flags.
19817 LTCFLAGS=$lt_LTCFLAGS
19819 # A language-specific compiler.
19822 # Is the compiler the GNU C compiler?
19828 # The linker used to build libraries.
19831 # Whether we need hard or soft links.
19834 # A BSD-compatible nm program.
19837 # A symbol stripping program
19840 # Used to examine libraries when file_magic_cmd begins "file"
19841 MAGIC_CMD=$MAGIC_CMD
19843 # Used on cygwin: DLL creation program.
19846 # Used on cygwin: object dumper.
19849 # Used on cygwin: assembler.
19852 # The name of the directory that contains temporary libtool files.
19855 # How to create reloadable object files.
19856 reload_flag=$lt_reload_flag
19857 reload_cmds=$lt_reload_cmds
19859 # How to pass a linker flag through the compiler.
19860 wl=$lt_lt_prog_compiler_wl_RC
19862 # Object file suffix (normally "o").
19863 objext="$ac_objext"
19865 # Old archive suffix (normally "a").
19868 # Shared library suffix (normally ".so").
19869 shrext_cmds='$shrext_cmds'
19871 # Executable file suffix (normally "").
19874 # Additional compiler flags for building library objects.
19875 pic_flag=$lt_lt_prog_compiler_pic_RC
19878 # What is the maximum length of a command?
19879 max_cmd_len=$lt_cv_sys_max_cmd_len
19881 # Does compiler simultaneously support -c and -o options?
19882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19884 # Must we lock files when doing compilation?
19885 need_locks=$lt_need_locks
19887 # Do we need the lib prefix for modules?
19888 need_lib_prefix=$need_lib_prefix
19890 # Do we need a version for libraries?
19891 need_version=$need_version
19893 # Whether dlopen is supported.
19894 dlopen_support=$enable_dlopen
19896 # Whether dlopen of programs is supported.
19897 dlopen_self=$enable_dlopen_self
19899 # Whether dlopen of statically linked programs is supported.
19900 dlopen_self_static=$enable_dlopen_self_static
19902 # Compiler flag to prevent dynamic linking.
19903 link_static_flag=$lt_lt_prog_compiler_static_RC
19905 # Compiler flag to turn off builtin functions.
19906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19908 # Compiler flag to allow reflexive dlopens.
19909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19911 # Compiler flag to generate shared objects directly from archives.
19912 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19914 # Compiler flag to generate thread-safe objects.
19915 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19917 # Library versioning type.
19918 version_type=$version_type
19920 # Format of library name prefix.
19921 libname_spec=$lt_libname_spec
19923 # List of archive names. First name is the real one, the rest are links.
19924 # The last name is the one that the linker finds with -lNAME.
19925 library_names_spec=$lt_library_names_spec
19927 # The coded name of the library, if different from the real name.
19928 soname_spec=$lt_soname_spec
19930 # Commands used to build and install an old-style archive.
19932 old_archive_cmds=$lt_old_archive_cmds_RC
19933 old_postinstall_cmds=$lt_old_postinstall_cmds
19934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19936 # Create an old-style archive from a shared archive.
19937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19939 # Create a temporary old-style archive to link instead of a shared archive.
19940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19942 # Commands used to build and install a shared archive.
19943 archive_cmds=$lt_archive_cmds_RC
19944 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19945 postinstall_cmds=$lt_postinstall_cmds
19946 postuninstall_cmds=$lt_postuninstall_cmds
19948 # Commands used to build a loadable module (assumed same as above if empty)
19949 module_cmds=$lt_module_cmds_RC
19950 module_expsym_cmds=$lt_module_expsym_cmds_RC
19952 # Commands to strip libraries.
19953 old_striplib=$lt_old_striplib
19954 striplib=$lt_striplib
19956 # Dependencies to place before the objects being linked to create a
19958 predep_objects=$lt_predep_objects_RC
19960 # Dependencies to place after the objects being linked to create a
19962 postdep_objects=$lt_postdep_objects_RC
19964 # Dependencies to place before the objects being linked to create a
19966 predeps=$lt_predeps_RC
19968 # Dependencies to place after the objects being linked to create a
19970 postdeps=$lt_postdeps_RC
19972 # The library search path used internally by the compiler when linking
19973 # a shared library.
19974 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19976 # Method to check whether dependent libraries are shared objects.
19977 deplibs_check_method=$lt_deplibs_check_method
19979 # Command to use when deplibs_check_method == file_magic.
19980 file_magic_cmd=$lt_file_magic_cmd
19982 # Flag that allows shared libraries with undefined symbols to be built.
19983 allow_undefined_flag=$lt_allow_undefined_flag_RC
19985 # Flag that forces no undefined symbols.
19986 no_undefined_flag=$lt_no_undefined_flag_RC
19988 # Commands used to finish a libtool library installation in a directory.
19989 finish_cmds=$lt_finish_cmds
19991 # Same as above, but a single script fragment to be evaled but not shown.
19992 finish_eval=$lt_finish_eval
19994 # Take the output of nm and produce a listing of raw symbols and C names.
19995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19997 # Transform the output of nm in a proper C declaration
19998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20000 # Transform the output of nm in a C name address pair
20001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20003 # This is the shared library runtime path variable.
20004 runpath_var=$runpath_var
20006 # This is the shared library path variable.
20007 shlibpath_var=$shlibpath_var
20009 # Is shlibpath searched before the hard-coded library search path?
20010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20012 # How to hardcode a shared library path into an executable.
20013 hardcode_action=$hardcode_action_RC
20015 # Whether we should hardcode library paths into libraries.
20016 hardcode_into_libs=$hardcode_into_libs
20018 # Flag to hardcode \$libdir into a binary during linking.
20019 # This must work even if \$libdir does not exist.
20020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20022 # If ld is used when linking, flag to hardcode \$libdir into
20023 # a binary during linking. This must work even if \$libdir does
20025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20027 # Whether we need a single -rpath flag with a separated argument.
20028 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20031 # resulting binary.
20032 hardcode_direct=$hardcode_direct_RC
20034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20035 # resulting binary.
20036 hardcode_minus_L=$hardcode_minus_L_RC
20038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20039 # the resulting binary.
20040 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20042 # Set to yes if building a shared library automatically hardcodes DIR into the library
20043 # and all subsequent libraries and executables linked against it.
20044 hardcode_automatic=$hardcode_automatic_RC
20046 # Variables whose values should be saved in libtool wrapper scripts and
20047 # restored at relink time.
20048 variables_saved_for_relink="$variables_saved_for_relink"
20050 # Whether libtool must link a program against all its dependency libraries.
20051 link_all_deplibs=$link_all_deplibs_RC
20053 # Compile-time system search path for libraries
20054 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20056 # Run-time system search path for libraries
20057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20059 # Fix the shell variable \$srcfile for the compiler.
20060 fix_srcfile_path="$fix_srcfile_path_RC"
20062 # Set to yes if exported symbols are required.
20063 always_export_symbols=$always_export_symbols_RC
20065 # The commands to list exported symbols.
20066 export_symbols_cmds=$lt_export_symbols_cmds_RC
20068 # The commands to extract the exported symbol list from a shared archive.
20069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20071 # Symbols that should not be listed in the preloaded symbols.
20072 exclude_expsyms=$lt_exclude_expsyms_RC
20074 # Symbols that must always be exported.
20075 include_expsyms=$lt_include_expsyms_RC
20077 # ### END LIBTOOL TAG CONFIG: $tagname
20083 # If there is no Makefile yet, we rely on a make rule to execute
20084 # `config.status --recheck' to rerun these tests and create the
20085 # libtool script then.
20086 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20087 if test -f "$ltmain_in"; then
20088 test -f Makefile && make "$ltmain"
20094 ac_cpp='$CPP $CPPFLAGS'
20095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20104 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20105 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20106 { (exit 1); exit 1; }; }
20110 # Append the new tag name to the list of available tags.
20111 if test -n "$tagname" ; then
20112 available_tags="$available_tags $tagname"
20118 # Now substitute the updated list of available tags.
20119 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20120 mv "${ofile}T" "$ofile"
20124 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20125 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20126 { (exit 1); exit 1; }; }
20132 # This can be used to rebuild libtool when needed
20133 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20135 # Always use our own libtool.
20136 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20138 # Prevent multiple expansion
20151 # Check whether --with-system-libtool was given.
20152 if test "${with_system_libtool+set}" = set; then
20153 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
20154 set dummy libtool; ac_word=$2
20155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20157 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 as_dummy="$PATH:/usr/local/bin"
20167 for as_dir in $as_dummy
20170 test -z "$as_dir" && as_dir=.
20171 for ac_exec_ext in '' $ac_executable_extensions; do
20172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20173 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20184 LIBTOOL=$ac_cv_path_LIBTOOL
20185 if test -n "$LIBTOOL"; then
20186 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20187 echo "${ECHO_T}$LIBTOOL" >&6; }
20189 { echo "$as_me:$LINENO: result: no" >&5
20190 echo "${ECHO_T}no" >&6; }
20196 LIBTOOL="`pwd`/libtool"
20216 # Check whether --enable-strict-dependencies was given.
20217 if test "${enable_strict_dependencies+set}" = set; then
20218 enableval=$enable_strict_dependencies;
20222 docdir='${datadir}/doc/freeradius'
20223 { echo "$as_me:$LINENO: checking docdir" >&5
20224 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20226 # Check whether --with-docdir was given.
20227 if test "${with_docdir+set}" = set; then
20228 withval=$with_docdir; case "$withval" in
20234 [\\/$]* | ?:[\\/]* )
20238 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20239 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20240 { (exit 1); exit 1; }; }
20247 { echo "$as_me:$LINENO: result: $docdir" >&5
20248 echo "${ECHO_T}$docdir" >&6; }
20249 if test "x$docdir" = xno; then
20250 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20251 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20254 logdir='${localstatedir}/log/radius'
20255 { echo "$as_me:$LINENO: checking logdir" >&5
20256 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20258 # Check whether --with-logdir was given.
20259 if test "${with_logdir+set}" = set; then
20260 withval=$with_logdir; case "$withval" in
20262 { { echo "$as_me:$LINENO: error: Need logdir" >&5
20263 echo "$as_me: error: Need logdir" >&2;}
20264 { (exit 1); exit 1; }; }
20268 [\\/$]* | ?:[\\/]* )
20272 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20273 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20274 { (exit 1); exit 1; }; }
20281 { echo "$as_me:$LINENO: result: $logdir" >&5
20282 echo "${ECHO_T}$logdir" >&6; }
20284 radacctdir='${logdir}/radacct'
20285 { echo "$as_me:$LINENO: checking radacctdir" >&5
20286 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20288 # Check whether --with-radacctdir was given.
20289 if test "${with_radacctdir+set}" = set; then
20290 withval=$with_radacctdir; case "$withval" in
20292 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20293 echo "$as_me: error: Need radacctdir" >&2;}
20294 { (exit 1); exit 1; }; }
20298 [\\/$]* | ?:[\\/]* )
20299 radacctdir="$withval"
20302 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20303 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20304 { (exit 1); exit 1; }; }
20311 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20312 echo "${ECHO_T}$radacctdir" >&6; }
20314 raddbdir='${sysconfdir}/raddb'
20315 { echo "$as_me:$LINENO: checking raddbdir" >&5
20316 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20318 # Check whether --with-raddbdir was given.
20319 if test "${with_raddbdir+set}" = set; then
20320 withval=$with_raddbdir; case "$withval" in
20322 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20323 echo "$as_me: error: Need raddbdir" >&2;}
20324 { (exit 1); exit 1; }; }
20328 [\\/$]* | ?:[\\/]* )
20329 raddbdir="$withval"
20332 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20333 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20334 { (exit 1); exit 1; }; }
20341 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20342 echo "${ECHO_T}$raddbdir" >&6; }
20346 # Check whether --with-ascend-binary was given.
20347 if test "${with_ascend_binary+set}" = set; then
20348 withval=$with_ascend_binary; case "$withval" in
20357 if test "X$ASCEND_BINARY" = "Xyes"; then
20359 cat >>confdefs.h <<\_ACEOF
20360 #define ASCEND_BINARY
20367 # Check whether --with-threads was given.
20368 if test "${with_threads+set}" = set; then
20369 withval=$with_threads; case "$withval" in
20381 # Check whether --with-snmp was given.
20382 if test "${with_snmp+set}" = set; then
20383 withval=$with_snmp; case "$withval" in
20395 # Check whether --with-vmps was given.
20396 if test "${with_vmps+set}" = set; then
20397 withval=$with_vmps; case "$withval" in
20406 if test "x$WITH_VMPS" = "xyes"; then
20408 cat >>confdefs.h <<\_ACEOF
20417 # Check whether --with-static_modules was given.
20418 if test "${with_static_modules+set}" = set; then
20419 withval=$with_static_modules;
20420 for i in $withval; do
20421 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20429 # Check whether --with-modules was given.
20430 if test "${with_modules+set}" = set; then
20431 withval=$with_modules;
20432 for i in $withval; do
20433 MODULES="$MODULES $i"
20439 # Check whether --enable-developer was given.
20440 if test "${enable_developer+set}" = set; then
20441 enableval=$enable_developer; case "$enableval" in
20452 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20458 # Check whether --with-experimental-modules was given.
20459 if test "${with_experimental_modules+set}" = set; then
20460 withval=$with_experimental_modules; case "$withval" in
20470 OPENSSL_INCLUDE_DIR=
20472 # Check whether --with-openssl-includes was given.
20473 if test "${with_openssl_includes+set}" = set; then
20474 withval=$with_openssl_includes; case "$withval" in
20475 *) OPENSSL_INCLUDE_DIR="$withval"
20484 # Check whether --with-openssl-libraries was given.
20485 if test "${with_openssl_libraries+set}" = set; then
20486 withval=$with_openssl_libraries; case "$withval" in
20487 *) OPENSSL_LIB_DIR="$withval"
20496 # Check whether --with-rlm-FOO-lib-dir was given.
20497 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20498 withval=$with_rlm_FOO_lib_dir; case "$withval" in
20507 # Check whether --with-rlm-FOO-include-dir was given.
20508 if test "${with_rlm_FOO_include_dir+set}" = set; then
20509 withval=$with_rlm_FOO_include_dir; case "$withval" in
20520 # Check whether --with-udpfromto was given.
20521 if test "${with_udpfromto+set}" = set; then
20522 withval=$with_udpfromto; case "$withval" in
20533 if test "x$WITH_UDPFROMTO" = "xyes"; then
20535 cat >>confdefs.h <<\_ACEOF
20536 #define WITH_UDPFROMTO
20542 CHECKRAD=checkrad.pl
20543 # Extract the first word of "perl", so it can be a program name with args.
20544 set dummy perl; ac_word=$2
20545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20547 if test "${ac_cv_path_PERL+set}" = set; then
20548 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20556 for as_dir in $PATH
20559 test -z "$as_dir" && as_dir=.
20560 for ac_exec_ext in '' $ac_executable_extensions; do
20561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20562 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20570 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20574 PERL=$ac_cv_path_PERL
20575 if test -n "$PERL"; then
20576 { echo "$as_me:$LINENO: result: $PERL" >&5
20577 echo "${ECHO_T}$PERL" >&6; }
20579 { echo "$as_me:$LINENO: result: no" >&5
20580 echo "${ECHO_T}no" >&6; }
20584 if test "x$ac_cv_path_PERL" = "x"; then
20585 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20586 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20588 # Extract the first word of "snmpget", so it can be a program name with args.
20589 set dummy snmpget; ac_word=$2
20590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20592 if test "${ac_cv_path_SNMPGET+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20601 for as_dir in $PATH
20604 test -z "$as_dir" && as_dir=.
20605 for ac_exec_ext in '' $ac_executable_extensions; do
20606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20607 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20618 SNMPGET=$ac_cv_path_SNMPGET
20619 if test -n "$SNMPGET"; then
20620 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20621 echo "${ECHO_T}$SNMPGET" >&6; }
20623 { echo "$as_me:$LINENO: result: no" >&5
20624 echo "${ECHO_T}no" >&6; }
20628 if test "x$ac_cv_path_SNMPGET" = "x"; then
20629 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20630 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20633 # Extract the first word of "snmpwalk", so it can be a program name with args.
20634 set dummy snmpwalk; ac_word=$2
20635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20637 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20646 for as_dir in $PATH
20649 test -z "$as_dir" && as_dir=.
20650 for ac_exec_ext in '' $ac_executable_extensions; do
20651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20652 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20663 SNMPWALK=$ac_cv_path_SNMPWALK
20664 if test -n "$SNMPWALK"; then
20665 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20666 echo "${ECHO_T}$SNMPWALK" >&6; }
20668 { echo "$as_me:$LINENO: result: no" >&5
20669 echo "${ECHO_T}no" >&6; }
20673 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20674 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20675 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20678 # Extract the first word of "rusers", so it can be a program name with args.
20679 set dummy rusers; ac_word=$2
20680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20682 if test "${ac_cv_path_RUSERS+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20691 for as_dir in $PATH
20694 test -z "$as_dir" && as_dir=.
20695 for ac_exec_ext in '' $ac_executable_extensions; do
20696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20697 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20705 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20709 RUSERS=$ac_cv_path_RUSERS
20710 if test -n "$RUSERS"; then
20711 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20712 echo "${ECHO_T}$RUSERS" >&6; }
20714 { echo "$as_me:$LINENO: result: no" >&5
20715 echo "${ECHO_T}no" >&6; }
20720 missing_dir=`cd $ac_aux_dir && pwd`
20721 # expand $ac_aux_dir to an absolute path
20722 am_aux_dir=`cd $ac_aux_dir && pwd`
20724 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20725 # Use eval to expand $SHELL
20726 if eval "$MISSING --run true"; then
20727 am_missing_run="$MISSING --run "
20730 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20731 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20735 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20738 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20741 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20744 # Extract the first word of "locate", so it can be a program name with args.
20745 set dummy locate; ac_word=$2
20746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20748 if test "${ac_cv_path_LOCATE+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20757 for as_dir in $PATH
20760 test -z "$as_dir" && as_dir=.
20761 for ac_exec_ext in '' $ac_executable_extensions; do
20762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20763 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20774 LOCATE=$ac_cv_path_LOCATE
20775 if test -n "$LOCATE"; then
20776 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20777 echo "${ECHO_T}$LOCATE" >&6; }
20779 { echo "$as_me:$LINENO: result: no" >&5
20780 echo "${ECHO_T}no" >&6; }
20784 # Extract the first word of "dirname", so it can be a program name with args.
20785 set dummy dirname; ac_word=$2
20786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20788 if test "${ac_cv_path_DIRNAME+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20793 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20797 for as_dir in $PATH
20800 test -z "$as_dir" && as_dir=.
20801 for ac_exec_ext in '' $ac_executable_extensions; do
20802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20803 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20814 DIRNAME=$ac_cv_path_DIRNAME
20815 if test -n "$DIRNAME"; then
20816 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20817 echo "${ECHO_T}$DIRNAME" >&6; }
20819 { echo "$as_me:$LINENO: result: no" >&5
20820 echo "${ECHO_T}no" >&6; }
20824 # Extract the first word of "grep", so it can be a program name with args.
20825 set dummy grep; ac_word=$2
20826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20828 if test "${ac_cv_path_GREP+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837 for as_dir in $PATH
20840 test -z "$as_dir" && as_dir=.
20841 for ac_exec_ext in '' $ac_executable_extensions; do
20842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20843 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20854 GREP=$ac_cv_path_GREP
20855 if test -n "$GREP"; then
20856 { echo "$as_me:$LINENO: result: $GREP" >&5
20857 echo "${ECHO_T}$GREP" >&6; }
20859 { echo "$as_me:$LINENO: result: no" >&5
20860 echo "${ECHO_T}no" >&6; }
20867 if test "x$WITH_THREADS" = "xyes"; then
20868 if test $ac_cv_prog_suncc = "yes"; then
20869 CFLAGS="$CFLAGS -mt"
20873 for ac_header in pthread.h
20875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20882 ac_res=`eval echo '${'$as_ac_Header'}'`
20883 { echo "$as_me:$LINENO: result: $ac_res" >&5
20884 echo "${ECHO_T}$ac_res" >&6; }
20886 # Is the header compilable?
20887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 $ac_includes_default
20896 #include <$ac_header>
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_compile") 2>conftest.er1
20907 grep -v '^ *+' conftest.er1 >conftest.err
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20913 { (case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_try") 2>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (case "(($ac_try" in
20924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925 *) ac_try_echo=$ac_try;;
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928 (eval "$ac_try") 2>&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); }; }; then
20932 ac_header_compiler=yes
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_header_compiler=no
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20942 echo "${ECHO_T}$ac_header_compiler" >&6; }
20944 # Is the header present?
20945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 #include <$ac_header>
20955 if { (ac_try="$ac_cpp conftest.$ac_ext"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20963 grep -v '^ *+' conftest.er1 >conftest.err
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } >/dev/null; then
20968 if test -s conftest.err; then
20969 ac_cpp_err=$ac_c_preproc_warn_flag
20970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20977 if test -z "$ac_cpp_err"; then
20978 ac_header_preproc=yes
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_header_preproc=no
20986 rm -f conftest.err conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20988 echo "${ECHO_T}$ac_header_preproc" >&6; }
20990 # So? What about this header?
20991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20997 ac_header_preproc=yes
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21020 eval "$as_ac_Header=\$ac_header_preproc"
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21028 cat >>confdefs.h <<_ACEOF
21029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21039 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21040 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21041 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21044 ac_check_lib_save_LIBS=$LIBS
21045 LIBS="-lpthread $LIBS"
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21053 /* Override any GCC internal prototype to avoid an error.
21054 Use char because int might match the return type of a GCC
21055 builtin and then its argument prototype would still apply. */
21059 char pthread_create ();
21063 return pthread_create ();
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075 (eval "$ac_link") 2>conftest.er1
21077 grep -v '^ *+' conftest.er1 >conftest.err
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } &&
21082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21083 { (case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_try") 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest$ac_exeext'
21093 { (case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_try") 2>&5
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; }; then
21102 ac_cv_lib_pthread_pthread_create=yes
21104 echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21107 ac_cv_lib_pthread_pthread_create=no
21110 rm -f core conftest.err conftest.$ac_objext \
21111 conftest$ac_exeext conftest.$ac_ext
21112 LIBS=$ac_check_lib_save_LIBS
21114 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21115 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21116 if test $ac_cv_lib_pthread_pthread_create = yes; then
21117 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21118 LIBS="$LIBS -lpthread"
21120 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21121 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21122 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 ac_check_lib_save_LIBS=$LIBS
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21134 /* Override any GCC internal prototype to avoid an error.
21135 Use char because int might match the return type of a GCC
21136 builtin and then its argument prototype would still apply. */
21140 char pthread_create ();
21144 return pthread_create ();
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_link") 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } &&
21163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21164 { (case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169 (eval "$ac_try") 2>&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; } &&
21173 { ac_try='test -s conftest$ac_exeext'
21174 { (case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_try") 2>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_lib_c_r_pthread_create=yes
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 ac_cv_lib_c_r_pthread_create=no
21191 rm -f core conftest.err conftest.$ac_objext \
21192 conftest$ac_exeext conftest.$ac_ext
21193 LIBS=$ac_check_lib_save_LIBS
21195 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21196 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21197 if test $ac_cv_lib_c_r_pthread_create = yes; then
21198 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21209 if test "x$WITH_THREADS" != "xyes"; then
21211 ac_cv_header_pthread_h="no"
21215 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21216 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21217 if test "${ac_cv_search_sem_init+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 ac_func_search_save_LIBS=$LIBS
21221 cat >conftest.$ac_ext <<_ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21228 /* Override any GCC internal prototype to avoid an error.
21229 Use char because int might match the return type of a GCC
21230 builtin and then its argument prototype would still apply. */
21238 return sem_init ();
21243 for ac_lib in '' pthread sem posix4 rt semaphore; do
21244 if test -z "$ac_lib"; then
21245 ac_res="none required"
21248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21250 rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (ac_try="$ac_link"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_link") 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
21264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21265 { (case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_try") 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest$ac_exeext'
21275 { (case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_try") 2>&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
21284 ac_cv_search_sem_init=$ac_res
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21292 rm -f core conftest.err conftest.$ac_objext \
21294 if test "${ac_cv_search_sem_init+set}" = set; then
21298 if test "${ac_cv_search_sem_init+set}" = set; then
21301 ac_cv_search_sem_init=no
21303 rm conftest.$ac_ext
21304 LIBS=$ac_func_search_save_LIBS
21306 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21307 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21308 ac_res=$ac_cv_search_sem_init
21309 if test "$ac_res" != no; then
21310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21313 { { echo "$as_me:$LINENO: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
21314 echo "$as_me: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
21315 { (exit 1); exit 1; }; }
21322 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21323 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21324 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 ac_check_lib_save_LIBS=$LIBS
21328 LIBS="-lsocket $LIBS"
21329 cat >conftest.$ac_ext <<_ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21336 /* Override any GCC internal prototype to avoid an error.
21337 Use char because int might match the return type of a GCC
21338 builtin and then its argument prototype would still apply. */
21342 char getsockname ();
21346 return getsockname ();
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_link") 2>conftest.er1
21360 grep -v '^ *+' conftest.er1 >conftest.err
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } &&
21365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21366 { (case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_try") 2>&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; } &&
21375 { ac_try='test -s conftest$ac_exeext'
21376 { (case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_try") 2>&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
21385 ac_cv_lib_socket_getsockname=yes
21387 echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21390 ac_cv_lib_socket_getsockname=no
21393 rm -f core conftest.err conftest.$ac_objext \
21394 conftest$ac_exeext conftest.$ac_ext
21395 LIBS=$ac_check_lib_save_LIBS
21397 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21398 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21399 if test $ac_cv_lib_socket_getsockname = yes; then
21400 cat >>confdefs.h <<_ACEOF
21401 #define HAVE_LIBSOCKET 1
21404 LIBS="-lsocket $LIBS"
21410 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21411 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21412 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 ac_check_lib_save_LIBS=$LIBS
21416 LIBS="-lresolv $LIBS"
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21424 /* Override any GCC internal prototype to avoid an error.
21425 Use char because int might match the return type of a GCC
21426 builtin and then its argument prototype would still apply. */
21434 return inet_aton ();
21439 rm -f conftest.$ac_objext conftest$ac_exeext
21440 if { (ac_try="$ac_link"
21441 case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446 (eval "$ac_link") 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } &&
21453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21454 { (case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_try") 2>&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; } &&
21463 { ac_try='test -s conftest$ac_exeext'
21464 { (case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_try") 2>&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); }; }; then
21473 ac_cv_lib_resolv_inet_aton=yes
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478 ac_cv_lib_resolv_inet_aton=no
21481 rm -f core conftest.err conftest.$ac_objext \
21482 conftest$ac_exeext conftest.$ac_ext
21483 LIBS=$ac_check_lib_save_LIBS
21485 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21486 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21487 if test $ac_cv_lib_resolv_inet_aton = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define HAVE_LIBRESOLV 1
21492 LIBS="-lresolv $LIBS"
21498 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21499 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21500 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 ac_check_lib_save_LIBS=$LIBS
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21512 /* Override any GCC internal prototype to avoid an error.
21513 Use char because int might match the return type of a GCC
21514 builtin and then its argument prototype would still apply. */
21522 return inet_ntoa ();
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (ac_try="$ac_link"
21529 case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_link") 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
21541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21542 { (case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_try") 2>&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); }; } &&
21551 { ac_try='test -s conftest$ac_exeext'
21552 { (case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557 (eval "$ac_try") 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 ac_cv_lib_nsl_inet_ntoa=yes
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_cv_lib_nsl_inet_ntoa=no
21569 rm -f core conftest.err conftest.$ac_objext \
21570 conftest$ac_exeext conftest.$ac_ext
21571 LIBS=$ac_check_lib_save_LIBS
21573 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21574 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21575 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21576 cat >>confdefs.h <<_ACEOF
21577 #define HAVE_LIBNSL 1
21587 if test "x$OPENSSL_LIB_DIR" != "x"; then
21588 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21590 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21591 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21592 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 ac_check_lib_save_LIBS=$LIBS
21596 LIBS="-lcrypto $LIBS"
21597 cat >conftest.$ac_ext <<_ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21604 /* Override any GCC internal prototype to avoid an error.
21605 Use char because int might match the return type of a GCC
21606 builtin and then its argument prototype would still apply. */
21619 rm -f conftest.$ac_objext conftest$ac_exeext
21620 if { (ac_try="$ac_link"
21621 case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_link") 2>conftest.er1
21628 grep -v '^ *+' conftest.er1 >conftest.err
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } &&
21633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21634 { (case "(($ac_try" in
21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636 *) ac_try_echo=$ac_try;;
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639 (eval "$ac_try") 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; } &&
21643 { ac_try='test -s conftest$ac_exeext'
21644 { (case "(($ac_try" in
21645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646 *) ac_try_echo=$ac_try;;
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649 (eval "$ac_try") 2>&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 ac_cv_lib_crypto_DH_new=yes
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21658 ac_cv_lib_crypto_DH_new=no
21661 rm -f core conftest.err conftest.$ac_objext \
21662 conftest$ac_exeext conftest.$ac_ext
21663 LIBS=$ac_check_lib_save_LIBS
21665 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21666 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21667 if test $ac_cv_lib_crypto_DH_new = yes; then
21670 cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_LIBCRYPTO 1
21674 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21675 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21676 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 ac_check_lib_save_LIBS=$LIBS
21681 cat >conftest.$ac_ext <<_ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21688 /* Override any GCC internal prototype to avoid an error.
21689 Use char because int might match the return type of a GCC
21690 builtin and then its argument prototype would still apply. */
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (ac_try="$ac_link"
21705 case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_link") 2>conftest.er1
21712 grep -v '^ *+' conftest.er1 >conftest.err
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
21717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21718 { (case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723 (eval "$ac_try") 2>&5
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; } &&
21727 { ac_try='test -s conftest$ac_exeext'
21728 { (case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_try") 2>&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 ac_cv_lib_ssl_SSL_new=yes
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 ac_cv_lib_ssl_SSL_new=no
21745 rm -f core conftest.err conftest.$ac_objext \
21746 conftest$ac_exeext conftest.$ac_ext
21747 LIBS=$ac_check_lib_save_LIBS
21749 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21750 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21751 if test $ac_cv_lib_ssl_SSL_new = yes; then
21754 cat >>confdefs.h <<\_ACEOF
21755 #define HAVE_LIBSSL 1
21758 if test "x$OPENSSL_LIB_DIR" != "x"; then
21759 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21761 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21771 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21772 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21773 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 ac_check_lib_save_LIBS=$LIBS
21777 LIBS="-lws2_32 $LIBS"
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21785 /* Override any GCC internal prototype to avoid an error.
21786 Use char because int might match the return type of a GCC
21787 builtin and then its argument prototype would still apply. */
21800 rm -f conftest.$ac_objext conftest$ac_exeext
21801 if { (ac_try="$ac_link"
21802 case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_link") 2>conftest.er1
21809 grep -v '^ *+' conftest.er1 >conftest.err
21811 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } &&
21814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21815 { (case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_try") 2>&5
21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); }; } &&
21824 { ac_try='test -s conftest$ac_exeext'
21825 { (case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_try") 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_lib_ws2_32_htonl=yes
21836 echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 ac_cv_lib_ws2_32_htonl=no
21842 rm -f core conftest.err conftest.$ac_objext \
21843 conftest$ac_exeext conftest.$ac_ext
21844 LIBS=$ac_check_lib_save_LIBS
21846 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21847 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21848 if test $ac_cv_lib_ws2_32_htonl = yes; then
21849 cat >>confdefs.h <<_ACEOF
21850 #define HAVE_LIBWS2_32 1
21853 LIBS="-lws2_32 $LIBS"
21859 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21860 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21861 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 ac_check_lib_save_LIBS=$LIBS
21865 LIBS="-lpcap $LIBS"
21866 cat >conftest.$ac_ext <<_ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21873 /* Override any GCC internal prototype to avoid an error.
21874 Use char because int might match the return type of a GCC
21875 builtin and then its argument prototype would still apply. */
21879 char pcap_open_live ();
21883 return pcap_open_live ();
21888 rm -f conftest.$ac_objext conftest$ac_exeext
21889 if { (ac_try="$ac_link"
21890 case "(($ac_try" in
21891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892 *) ac_try_echo=$ac_try;;
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895 (eval "$ac_link") 2>conftest.er1
21897 grep -v '^ *+' conftest.er1 >conftest.err
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
21902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21903 { (case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_try") 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest$ac_exeext'
21913 { (case "(($ac_try" in
21914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915 *) ac_try_echo=$ac_try;;
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918 (eval "$ac_try") 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; }; then
21922 ac_cv_lib_pcap_pcap_open_live=yes
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 ac_cv_lib_pcap_pcap_open_live=no
21930 rm -f core conftest.err conftest.$ac_objext \
21931 conftest$ac_exeext conftest.$ac_ext
21932 LIBS=$ac_check_lib_save_LIBS
21934 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21935 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21936 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21939 cat >>confdefs.h <<\_ACEOF
21940 #define HAVE_LIBPCAP 1
21945 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21946 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21953 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21956 CFLAGS="$CFLAGS -DDARWIN"
21965 ac_header_dirent=no
21966 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21967 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21968 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21969 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 #include <sys/types.h>
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_compile") 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } &&
22005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22006 { (case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_try") 2>&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try='test -s conftest.$ac_objext'
22016 { (case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_try") 2>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; }; then
22025 eval "$as_ac_Header=yes"
22027 echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 eval "$as_ac_Header=no"
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 ac_res=`eval echo '${'$as_ac_Header'}'`
22036 { echo "$as_me:$LINENO: result: $ac_res" >&5
22037 echo "${ECHO_T}$ac_res" >&6; }
22038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22039 cat >>confdefs.h <<_ACEOF
22040 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22043 ac_header_dirent=$ac_hdr; break
22047 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22048 if test $ac_header_dirent = dirent.h; then
22049 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22050 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22051 if test "${ac_cv_search_opendir+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22054 ac_func_search_save_LIBS=$LIBS
22055 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 /* Override any GCC internal prototype to avoid an error.
22063 Use char because int might match the return type of a GCC
22064 builtin and then its argument prototype would still apply. */
22077 for ac_lib in '' dir; do
22078 if test -z "$ac_lib"; then
22079 ac_res="none required"
22082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22084 rm -f conftest.$ac_objext conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088 *) ac_try_echo=$ac_try;;
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_link") 2>conftest.er1
22093 grep -v '^ *+' conftest.er1 >conftest.err
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } &&
22098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22099 { (case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_try") 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; } &&
22108 { ac_try='test -s conftest$ac_exeext'
22109 { (case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_try") 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_cv_search_opendir=$ac_res
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22126 rm -f core conftest.err conftest.$ac_objext \
22128 if test "${ac_cv_search_opendir+set}" = set; then
22132 if test "${ac_cv_search_opendir+set}" = set; then
22135 ac_cv_search_opendir=no
22137 rm conftest.$ac_ext
22138 LIBS=$ac_func_search_save_LIBS
22140 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22141 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22142 ac_res=$ac_cv_search_opendir
22143 if test "$ac_res" != no; then
22144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22149 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22150 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22151 if test "${ac_cv_search_opendir+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22154 ac_func_search_save_LIBS=$LIBS
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22162 /* Override any GCC internal prototype to avoid an error.
22163 Use char because int might match the return type of a GCC
22164 builtin and then its argument prototype would still apply. */
22177 for ac_lib in '' x; do
22178 if test -z "$ac_lib"; then
22179 ac_res="none required"
22182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22184 rm -f conftest.$ac_objext conftest$ac_exeext
22185 if { (ac_try="$ac_link"
22186 case "(($ac_try" in
22187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188 *) ac_try_echo=$ac_try;;
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191 (eval "$ac_link") 2>conftest.er1
22193 grep -v '^ *+' conftest.er1 >conftest.err
22195 cat conftest.err >&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } &&
22198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22199 { (case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_try") 2>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; } &&
22208 { ac_try='test -s conftest$ac_exeext'
22209 { (case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_try") 2>&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); }; }; then
22218 ac_cv_search_opendir=$ac_res
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22226 rm -f core conftest.err conftest.$ac_objext \
22228 if test "${ac_cv_search_opendir+set}" = set; then
22232 if test "${ac_cv_search_opendir+set}" = set; then
22235 ac_cv_search_opendir=no
22237 rm conftest.$ac_ext
22238 LIBS=$ac_func_search_save_LIBS
22240 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22241 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22242 ac_res=$ac_cv_search_opendir
22243 if test "$ac_res" != no; then
22244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22250 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22251 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22252 if test "${ac_cv_header_stdc+set}" = set; then
22253 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 cat >conftest.$ac_ext <<_ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22261 #include <stdlib.h>
22262 #include <stdarg.h>
22263 #include <string.h>
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22283 grep -v '^ *+' conftest.er1 >conftest.err
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } &&
22288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22289 { (case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_try") 2>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); }; } &&
22298 { ac_try='test -s conftest.$ac_objext'
22299 { (case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_try") 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_header_stdc=yes
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 ac_cv_header_stdc=no
22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22318 if test $ac_cv_header_stdc = yes; then
22319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22320 cat >conftest.$ac_ext <<_ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22326 #include <string.h>
22329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22330 $EGREP "memchr" >/dev/null 2>&1; then
22333 ac_cv_header_stdc=no
22339 if test $ac_cv_header_stdc = yes; then
22340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 #include <stdlib.h>
22350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22351 $EGREP "free" >/dev/null 2>&1; then
22354 ac_cv_header_stdc=no
22360 if test $ac_cv_header_stdc = yes; then
22361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22362 if test "$cross_compiling" = yes; then
22365 cat >conftest.$ac_ext <<_ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22372 #include <stdlib.h>
22373 #if ((' ' & 0x0FF) == 0x020)
22374 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22375 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22377 # define ISLOWER(c) \
22378 (('a' <= (c) && (c) <= 'i') \
22379 || ('j' <= (c) && (c) <= 'r') \
22380 || ('s' <= (c) && (c) <= 'z'))
22381 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22384 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22389 for (i = 0; i < 256; i++)
22390 if (XOR (islower (i), ISLOWER (i))
22391 || toupper (i) != TOUPPER (i))
22396 rm -f conftest$ac_exeext
22397 if { (ac_try="$ac_link"
22398 case "(($ac_try" in
22399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_link") 2>&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22407 { (case "(($ac_try" in
22408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409 *) ac_try_echo=$ac_try;;
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412 (eval "$ac_try") 2>&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22418 echo "$as_me: program exited with status $ac_status" >&5
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ( exit $ac_status )
22423 ac_cv_header_stdc=no
22425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22431 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22432 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22433 if test $ac_cv_header_stdc = yes; then
22435 cat >>confdefs.h <<\_ACEOF
22436 #define STDC_HEADERS 1
22441 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22442 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22443 if test "${ac_cv_header_time+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 cat >conftest.$ac_ext <<_ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h. */
22452 #include <sys/types.h>
22453 #include <sys/time.h>
22459 if ((struct tm *) 0)
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } &&
22479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22480 { (case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_try") 2>&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; } &&
22489 { ac_try='test -s conftest.$ac_objext'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 ac_cv_header_time=yes
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ac_cv_header_time=no
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22510 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22511 if test $ac_cv_header_time = yes; then
22513 cat >>confdefs.h <<\_ACEOF
22514 #define TIME_WITH_SYS_TIME 1
22519 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22520 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22521 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 #include <sys/types.h>
22531 #include <sys/wait.h>
22532 #ifndef WEXITSTATUS
22533 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22536 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22544 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_compile") 2>conftest.er1
22558 grep -v '^ *+' conftest.er1 >conftest.err
22560 cat conftest.err >&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } &&
22563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22564 { (case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_try") 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; } &&
22573 { ac_try='test -s conftest.$ac_objext'
22574 { (case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_try") 2>&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ac_cv_header_sys_wait_h=yes
22585 echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22588 ac_cv_header_sys_wait_h=no
22591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22594 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22595 if test $ac_cv_header_sys_wait_h = yes; then
22597 cat >>confdefs.h <<\_ACEOF
22598 #define HAVE_SYS_WAIT_H 1
22671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 ac_res=`eval echo '${'$as_ac_Header'}'`
22679 { echo "$as_me:$LINENO: result: $ac_res" >&5
22680 echo "${ECHO_T}$ac_res" >&6; }
22682 # Is the header compilable?
22683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22685 cat >conftest.$ac_ext <<_ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h. */
22691 $ac_includes_default
22692 #include <$ac_header>
22694 rm -f conftest.$ac_objext
22695 if { (ac_try="$ac_compile"
22696 case "(($ac_try" in
22697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698 *) ac_try_echo=$ac_try;;
22700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701 (eval "$ac_compile") 2>conftest.er1
22703 grep -v '^ *+' conftest.er1 >conftest.err
22705 cat conftest.err >&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } &&
22708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22709 { (case "(($ac_try" in
22710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711 *) ac_try_echo=$ac_try;;
22713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22714 (eval "$ac_try") 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; } &&
22718 { ac_try='test -s conftest.$ac_objext'
22719 { (case "(($ac_try" in
22720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721 *) ac_try_echo=$ac_try;;
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724 (eval "$ac_try") 2>&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; }; then
22728 ac_header_compiler=yes
22730 echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_header_compiler=no
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22738 echo "${ECHO_T}$ac_header_compiler" >&6; }
22740 # Is the header present?
22741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22743 cat >conftest.$ac_ext <<_ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 #include <$ac_header>
22751 if { (ac_try="$ac_cpp conftest.$ac_ext"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22759 grep -v '^ *+' conftest.er1 >conftest.err
22761 cat conftest.err >&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } >/dev/null; then
22764 if test -s conftest.err; then
22765 ac_cpp_err=$ac_c_preproc_warn_flag
22766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22773 if test -z "$ac_cpp_err"; then
22774 ac_header_preproc=yes
22776 echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22779 ac_header_preproc=no
22782 rm -f conftest.err conftest.$ac_ext
22783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22784 echo "${ECHO_T}$ac_header_preproc" >&6; }
22786 # So? What about this header?
22787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22793 ac_header_preproc=yes
22796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22814 echo $ECHO_N "(cached) $ECHO_C" >&6
22816 eval "$as_ac_Header=\$ac_header_preproc"
22818 ac_res=`eval echo '${'$as_ac_Header'}'`
22819 { echo "$as_me:$LINENO: result: $ac_res" >&5
22820 echo "${ECHO_T}$ac_res" >&6; }
22823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22824 cat >>confdefs.h <<_ACEOF
22825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22834 for ac_header in net/if.h
22836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22840 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 cat >conftest.$ac_ext <<_ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22848 #ifdef HAVE_SYS_SOCKET_H
22849 # include <sys/socket.h>
22853 #include <$ac_header>
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_compile") 2>conftest.er1
22864 grep -v '^ *+' conftest.er1 >conftest.err
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } &&
22869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22870 { (case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_try") 2>&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; } &&
22879 { ac_try='test -s conftest.$ac_objext'
22880 { (case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_try") 2>&5
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); }; }; then
22889 eval "$as_ac_Header=yes"
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 eval "$as_ac_Header=no"
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 ac_res=`eval echo '${'$as_ac_Header'}'`
22900 { echo "$as_me:$LINENO: result: $ac_res" >&5
22901 echo "${ECHO_T}$ac_res" >&6; }
22902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22903 cat >>confdefs.h <<_ACEOF
22904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22913 if test "${ac_cv_header_regex_h+set}" = set; then
22914 { echo "$as_me:$LINENO: checking for regex.h" >&5
22915 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22916 if test "${ac_cv_header_regex_h+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22919 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22920 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22922 # Is the header compilable?
22923 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22924 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 $ac_includes_default
22934 rm -f conftest.$ac_objext
22935 if { (ac_try="$ac_compile"
22936 case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_compile") 2>conftest.er1
22943 grep -v '^ *+' conftest.er1 >conftest.err
22945 cat conftest.err >&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } &&
22948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22949 { (case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954 (eval "$ac_try") 2>&5
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); }; } &&
22958 { ac_try='test -s conftest.$ac_objext'
22959 { (case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964 (eval "$ac_try") 2>&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; }; then
22968 ac_header_compiler=yes
22970 echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 ac_header_compiler=no
22976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22978 echo "${ECHO_T}$ac_header_compiler" >&6; }
22980 # Is the header present?
22981 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22982 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22983 cat >conftest.$ac_ext <<_ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22991 if { (ac_try="$ac_cpp conftest.$ac_ext"
22992 case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22999 grep -v '^ *+' conftest.er1 >conftest.err
23001 cat conftest.err >&5
23002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); } >/dev/null; then
23004 if test -s conftest.err; then
23005 ac_cpp_err=$ac_c_preproc_warn_flag
23006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23013 if test -z "$ac_cpp_err"; then
23014 ac_header_preproc=yes
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_header_preproc=no
23022 rm -f conftest.err conftest.$ac_ext
23023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23024 echo "${ECHO_T}$ac_header_preproc" >&6; }
23026 # So? What about this header?
23027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23029 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23030 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23031 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23032 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23033 ac_header_preproc=yes
23036 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23037 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23039 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23040 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23041 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23042 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23043 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23044 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23045 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23046 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23047 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23051 { echo "$as_me:$LINENO: checking for regex.h" >&5
23052 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23053 if test "${ac_cv_header_regex_h+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23056 ac_cv_header_regex_h=$ac_header_preproc
23058 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23059 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23062 if test $ac_cv_header_regex_h = yes; then
23064 cat >>confdefs.h <<\_ACEOF
23065 #define HAVE_REGEX_H
23071 if test "x$ac_cv_header_regex_h" = "xyes"; then
23074 cat >conftest.$ac_ext <<_ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h. */
23081 #ifdef REG_EXTENDED
23086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23087 $EGREP "yes" >/dev/null 2>&1; then
23089 cat >>confdefs.h <<\_ACEOF
23090 #define HAVE_REG_EXTENDED
23100 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23103 cat >>confdefs.h <<\_ACEOF
23109 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23112 cat >>confdefs.h <<\_ACEOF
23118 OPENSSL_INCLUDE="-DNO_OPENSSL"
23119 if test "x$OPENSSL_LIBS" = "x"; then
23120 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23121 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23123 old_CPPFLAGS=$CPPFLAGS
23124 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23125 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23127 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23145 ac_res=`eval echo '${'$as_ac_Header'}'`
23146 { echo "$as_me:$LINENO: result: $ac_res" >&5
23147 echo "${ECHO_T}$ac_res" >&6; }
23149 # Is the header compilable?
23150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23158 $ac_includes_default
23159 #include <$ac_header>
23161 rm -f conftest.$ac_objext
23162 if { (ac_try="$ac_compile"
23163 case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168 (eval "$ac_compile") 2>conftest.er1
23170 grep -v '^ *+' conftest.er1 >conftest.err
23172 cat conftest.err >&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } &&
23175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23176 { (case "(($ac_try" in
23177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178 *) ac_try_echo=$ac_try;;
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_try") 2>&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); }; } &&
23185 { ac_try='test -s conftest.$ac_objext'
23186 { (case "(($ac_try" in
23187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188 *) ac_try_echo=$ac_try;;
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191 (eval "$ac_try") 2>&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; }; then
23195 ac_header_compiler=yes
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ac_header_compiler=no
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23205 echo "${ECHO_T}$ac_header_compiler" >&6; }
23207 # Is the header present?
23208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23210 cat >conftest.$ac_ext <<_ACEOF
23213 cat confdefs.h >>conftest.$ac_ext
23214 cat >>conftest.$ac_ext <<_ACEOF
23215 /* end confdefs.h. */
23216 #include <$ac_header>
23218 if { (ac_try="$ac_cpp conftest.$ac_ext"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23226 grep -v '^ *+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } >/dev/null; then
23231 if test -s conftest.err; then
23232 ac_cpp_err=$ac_c_preproc_warn_flag
23233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23240 if test -z "$ac_cpp_err"; then
23241 ac_header_preproc=yes
23243 echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23246 ac_header_preproc=no
23249 rm -f conftest.err conftest.$ac_ext
23250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23251 echo "${ECHO_T}$ac_header_preproc" >&6; }
23253 # So? What about this header?
23254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23260 ac_header_preproc=yes
23263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23281 echo $ECHO_N "(cached) $ECHO_C" >&6
23283 eval "$as_ac_Header=\$ac_header_preproc"
23285 ac_res=`eval echo '${'$as_ac_Header'}'`
23286 { echo "$as_me:$LINENO: result: $ac_res" >&5
23287 echo "${ECHO_T}$ac_res" >&6; }
23290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23291 cat >>confdefs.h <<_ACEOF
23292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23302 if test "x$OPENSSL_LIBS" != "x"; then
23303 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23304 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23305 cat >conftest.$ac_ext <<_ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 #include <openssl/crypto.h>
23312 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23318 $EGREP "yes" >/dev/null 2>&1; then
23323 if test "x$goodssl" != "xyes"; then
23324 { echo "$as_me:$LINENO: result: no" >&5
23325 echo "${ECHO_T}no" >&6; }
23328 { echo "$as_me:$LINENO: result: yes" >&5
23329 echo "${ECHO_T}yes" >&6; }
23330 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23331 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23333 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23337 CPPFLAGS=$old_CPPFLAGS
23341 export OPENSSL_LIBS
23343 if test "x$PCAP_LIBS" = x; then
23344 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23345 echo "$as_me: skipping test for pcap.h." >&6;}
23347 if test "${ac_cv_header_pcap_h+set}" = set; then
23348 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23349 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23350 if test "${ac_cv_header_pcap_h+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23354 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23356 # Is the header compilable?
23357 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23358 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23359 cat >conftest.$ac_ext <<_ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 $ac_includes_default
23368 rm -f conftest.$ac_objext
23369 if { (ac_try="$ac_compile"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_compile") 2>conftest.er1
23377 grep -v '^ *+' conftest.er1 >conftest.err
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
23382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23383 { (case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_try") 2>&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; } &&
23392 { ac_try='test -s conftest.$ac_objext'
23393 { (case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_try") 2>&5
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 ac_header_compiler=yes
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_header_compiler=no
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23412 echo "${ECHO_T}$ac_header_compiler" >&6; }
23414 # Is the header present?
23415 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23416 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23417 cat >conftest.$ac_ext <<_ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23425 if { (ac_try="$ac_cpp conftest.$ac_ext"
23426 case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23433 grep -v '^ *+' conftest.er1 >conftest.err
23435 cat conftest.err >&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } >/dev/null; then
23438 if test -s conftest.err; then
23439 ac_cpp_err=$ac_c_preproc_warn_flag
23440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23447 if test -z "$ac_cpp_err"; then
23448 ac_header_preproc=yes
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 ac_header_preproc=no
23456 rm -f conftest.err conftest.$ac_ext
23457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23458 echo "${ECHO_T}$ac_header_preproc" >&6; }
23460 # So? What about this header?
23461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23463 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23464 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23465 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23466 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23467 ac_header_preproc=yes
23470 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23471 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23472 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
23473 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
23474 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23475 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23476 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
23477 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
23478 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23479 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23480 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23481 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23485 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23486 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23487 if test "${ac_cv_header_pcap_h+set}" = set; then
23488 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 ac_cv_header_pcap_h=$ac_header_preproc
23492 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23493 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23496 if test $ac_cv_header_pcap_h = yes; then
23498 cat >>confdefs.h <<\_ACEOF
23499 #define HAVE_PCAP_H 1
23504 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23505 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23514 { echo "$as_me:$LINENO: checking for off_t" >&5
23515 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23516 if test "${ac_cv_type_off_t+set}" = set; then
23517 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 cat >conftest.$ac_ext <<_ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h. */
23525 $ac_includes_default
23526 typedef off_t ac__type_new_;
23530 if ((ac__type_new_ *) 0)
23532 if (sizeof (ac__type_new_))
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_compile") 2>conftest.er1
23547 grep -v '^ *+' conftest.er1 >conftest.err
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } &&
23552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23553 { (case "(($ac_try" in
23554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555 *) ac_try_echo=$ac_try;;
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558 (eval "$ac_try") 2>&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; } &&
23562 { ac_try='test -s conftest.$ac_objext'
23563 { (case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568 (eval "$ac_try") 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_type_off_t=yes
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23577 ac_cv_type_off_t=no
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23582 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23583 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23584 if test $ac_cv_type_off_t = yes; then
23588 cat >>confdefs.h <<_ACEOF
23589 #define off_t long int
23594 { echo "$as_me:$LINENO: checking for pid_t" >&5
23595 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23596 if test "${ac_cv_type_pid_t+set}" = set; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23599 cat >conftest.$ac_ext <<_ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23605 $ac_includes_default
23606 typedef pid_t ac__type_new_;
23610 if ((ac__type_new_ *) 0)
23612 if (sizeof (ac__type_new_))
23618 rm -f conftest.$ac_objext
23619 if { (ac_try="$ac_compile"
23620 case "(($ac_try" in
23621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622 *) ac_try_echo=$ac_try;;
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625 (eval "$ac_compile") 2>conftest.er1
23627 grep -v '^ *+' conftest.er1 >conftest.err
23629 cat conftest.err >&5
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } &&
23632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23633 { (case "(($ac_try" in
23634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635 *) ac_try_echo=$ac_try;;
23637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638 (eval "$ac_try") 2>&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); }; } &&
23642 { ac_try='test -s conftest.$ac_objext'
23643 { (case "(($ac_try" in
23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645 *) ac_try_echo=$ac_try;;
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648 (eval "$ac_try") 2>&5
23650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); }; }; then
23652 ac_cv_type_pid_t=yes
23654 echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 ac_cv_type_pid_t=no
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23662 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23663 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23664 if test $ac_cv_type_pid_t = yes; then
23668 cat >>confdefs.h <<_ACEOF
23674 { echo "$as_me:$LINENO: checking for size_t" >&5
23675 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23676 if test "${ac_cv_type_size_t+set}" = set; then
23677 echo $ECHO_N "(cached) $ECHO_C" >&6
23679 cat >conftest.$ac_ext <<_ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h. */
23685 $ac_includes_default
23686 typedef size_t ac__type_new_;
23690 if ((ac__type_new_ *) 0)
23692 if (sizeof (ac__type_new_))
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705 (eval "$ac_compile") 2>conftest.er1
23707 grep -v '^ *+' conftest.er1 >conftest.err
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } &&
23712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23713 { (case "(($ac_try" in
23714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715 *) ac_try_echo=$ac_try;;
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718 (eval "$ac_try") 2>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; } &&
23722 { ac_try='test -s conftest.$ac_objext'
23723 { (case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23728 (eval "$ac_try") 2>&5
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); }; }; then
23732 ac_cv_type_size_t=yes
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23737 ac_cv_type_size_t=no
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23743 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23744 if test $ac_cv_type_size_t = yes; then
23748 cat >>confdefs.h <<_ACEOF
23749 #define size_t unsigned int
23754 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23755 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23756 if test "${ac_cv_type_uid_t+set}" = set; then
23757 echo $ECHO_N "(cached) $ECHO_C" >&6
23759 cat >conftest.$ac_ext <<_ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 #include <sys/types.h>
23768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23769 $EGREP "uid_t" >/dev/null 2>&1; then
23770 ac_cv_type_uid_t=yes
23772 ac_cv_type_uid_t=no
23777 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23778 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23779 if test $ac_cv_type_uid_t = no; then
23781 cat >>confdefs.h <<\_ACEOF
23786 cat >>confdefs.h <<\_ACEOF
23794 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23795 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23796 if test "${ac_cv_type_socklen_t+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23799 ac_cv_type_socklen_t=no
23800 cat >conftest.$ac_ext <<_ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23806 #ifdef HAVE_SYS_TYPES_H
23807 #include <sys/types.h>
23809 #ifdef HAVE_SYS_SOCKET_H
23810 #include <sys/socket.h>
23821 rm -f conftest.$ac_objext
23822 if { (ac_try="$ac_compile"
23823 case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828 (eval "$ac_compile") 2>conftest.er1
23830 grep -v '^ *+' conftest.er1 >conftest.err
23832 cat conftest.err >&5
23833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } &&
23835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23836 { (case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_try") 2>&5
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; } &&
23845 { ac_try='test -s conftest.$ac_objext'
23846 { (case "(($ac_try" in
23847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848 *) ac_try_echo=$ac_try;;
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851 (eval "$ac_try") 2>&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; }; then
23855 ac_cv_type_socklen_t=yes
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23867 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23868 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23870 if test "$ac_cv_type_socklen_t" != "yes"; then
23872 cat >>confdefs.h <<\_ACEOF
23873 #define socklen_t int
23880 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23881 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23882 if test "${ac_cv_type_uint8_t+set}" = set; then
23883 echo $ECHO_N "(cached) $ECHO_C" >&6
23885 ac_cv_type_uint8_t=no
23886 cat >conftest.$ac_ext <<_ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23892 #ifdef HAVE_INTTYPES_H
23893 #include <inttypes.h>
23895 #ifdef HAVE_STDINT_H
23896 #include <stdint.h>
23907 rm -f conftest.$ac_objext
23908 if { (ac_try="$ac_compile"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_compile") 2>conftest.er1
23916 grep -v '^ *+' conftest.er1 >conftest.err
23918 cat conftest.err >&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } &&
23921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23922 { (case "(($ac_try" in
23923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23924 *) ac_try_echo=$ac_try;;
23926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23927 (eval "$ac_try") 2>&5
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; } &&
23931 { ac_try='test -s conftest.$ac_objext'
23932 { (case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_try") 2>&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941 ac_cv_type_uint8_t=yes
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23954 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23956 if test "$ac_cv_type_uint8_t" != "yes"; then
23958 cat >>confdefs.h <<\_ACEOF
23959 #define uint8_t unsigned char
23966 { echo "$as_me:$LINENO: checking for uint16_t" >&5
23967 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23968 if test "${ac_cv_type_uint16_t+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23971 ac_cv_type_uint16_t=no
23972 cat >conftest.$ac_ext <<_ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23978 #ifdef HAVE_INTTYPES_H
23979 #include <inttypes.h>
23981 #ifdef HAVE_STDINT_H
23982 #include <stdint.h>
23993 rm -f conftest.$ac_objext
23994 if { (ac_try="$ac_compile"
23995 case "(($ac_try" in
23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24002 grep -v '^ *+' conftest.er1 >conftest.err
24004 cat conftest.err >&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } &&
24007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24008 { (case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_try") 2>&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); }; } &&
24017 { ac_try='test -s conftest.$ac_objext'
24018 { (case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023 (eval "$ac_try") 2>&5
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); }; }; then
24027 ac_cv_type_uint16_t=yes
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24039 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24040 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24042 if test "$ac_cv_type_uint16_t" != "yes"; then
24044 cat >>confdefs.h <<\_ACEOF
24045 #define uint16_t unsigned short
24052 { echo "$as_me:$LINENO: checking for uint32_t" >&5
24053 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24054 if test "${ac_cv_type_uint32_t+set}" = set; then
24055 echo $ECHO_N "(cached) $ECHO_C" >&6
24057 ac_cv_type_uint32_t=no
24058 cat >conftest.$ac_ext <<_ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24064 #ifdef HAVE_INTTYPES_H
24065 #include <inttypes.h>
24067 #ifdef HAVE_STDINT_H
24068 #include <stdint.h>
24079 rm -f conftest.$ac_objext
24080 if { (ac_try="$ac_compile"
24081 case "(($ac_try" in
24082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083 *) ac_try_echo=$ac_try;;
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086 (eval "$ac_compile") 2>conftest.er1
24088 grep -v '^ *+' conftest.er1 >conftest.err
24090 cat conftest.err >&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } &&
24093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24094 { (case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_try") 2>&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); }; } &&
24103 { ac_try='test -s conftest.$ac_objext'
24104 { (case "(($ac_try" in
24105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106 *) ac_try_echo=$ac_try;;
24108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24109 (eval "$ac_try") 2>&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); }; }; then
24113 ac_cv_type_uint32_t=yes
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24126 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24128 if test "$ac_cv_type_uint32_t" != "yes"; then
24130 cat >>confdefs.h <<\_ACEOF
24131 #define uint32_t unsigned int
24137 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24138 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24139 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
24142 cat >conftest.$ac_ext <<_ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24149 #ifdef HAVE_NETINET_IN_H
24150 #include <netinet/in.h>
24154 typedef struct in6_addr ac__type_new_;
24158 if ((ac__type_new_ *) 0)
24160 if (sizeof (ac__type_new_))
24166 rm -f conftest.$ac_objext
24167 if { (ac_try="$ac_compile"
24168 case "(($ac_try" in
24169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24170 *) ac_try_echo=$ac_try;;
24172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24173 (eval "$ac_compile") 2>conftest.er1
24175 grep -v '^ *+' conftest.er1 >conftest.err
24177 cat conftest.err >&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } &&
24180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24181 { (case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24186 (eval "$ac_try") 2>&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); }; } &&
24190 { ac_try='test -s conftest.$ac_objext'
24191 { (case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196 (eval "$ac_try") 2>&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; }; then
24200 ac_cv_type_struct_in6_addr=yes
24202 echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24205 ac_cv_type_struct_in6_addr=no
24208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24210 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24211 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24212 if test $ac_cv_type_struct_in6_addr = yes; then
24214 cat >>confdefs.h <<\_ACEOF
24215 #define HAVE_STRUCT_IN6_ADDR 1
24221 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24222 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24223 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24224 echo $ECHO_N "(cached) $ECHO_C" >&6
24226 cat >conftest.$ac_ext <<_ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h. */
24233 #ifdef HAVE_NETINET_IN_H
24234 #include <netinet/in.h>
24236 #ifdef HAVE_SYS_SOCKET_H
24237 #include <sys/socket.h>
24241 typedef struct sockaddr_storage ac__type_new_;
24245 if ((ac__type_new_ *) 0)
24247 if (sizeof (ac__type_new_))
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_compile") 2>conftest.er1
24262 grep -v '^ *+' conftest.er1 >conftest.err
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } &&
24267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24268 { (case "(($ac_try" in
24269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270 *) ac_try_echo=$ac_try;;
24272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273 (eval "$ac_try") 2>&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); }; } &&
24277 { ac_try='test -s conftest.$ac_objext'
24278 { (case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283 (eval "$ac_try") 2>&5
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); }; }; then
24287 ac_cv_type_struct_sockaddr_storage=yes
24289 echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24292 ac_cv_type_struct_sockaddr_storage=no
24295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24297 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24298 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24299 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24301 cat >>confdefs.h <<\_ACEOF
24302 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24308 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24309 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24310 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24311 echo $ECHO_N "(cached) $ECHO_C" >&6
24313 cat >conftest.$ac_ext <<_ACEOF
24316 cat confdefs.h >>conftest.$ac_ext
24317 cat >>conftest.$ac_ext <<_ACEOF
24318 /* end confdefs.h. */
24320 #ifdef HAVE_NETINET_IN_H
24321 #include <netinet/in.h>
24325 typedef struct sockaddr_in6 ac__type_new_;
24329 if ((ac__type_new_ *) 0)
24331 if (sizeof (ac__type_new_))
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344 (eval "$ac_compile") 2>conftest.er1
24346 grep -v '^ *+' conftest.er1 >conftest.err
24348 cat conftest.err >&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } &&
24351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24352 { (case "(($ac_try" in
24353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354 *) ac_try_echo=$ac_try;;
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357 (eval "$ac_try") 2>&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); }; } &&
24361 { ac_try='test -s conftest.$ac_objext'
24362 { (case "(($ac_try" in
24363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364 *) ac_try_echo=$ac_try;;
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367 (eval "$ac_try") 2>&5
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
24371 ac_cv_type_struct_sockaddr_in6=yes
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 ac_cv_type_struct_sockaddr_in6=no
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24381 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24382 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24383 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24385 cat >>confdefs.h <<\_ACEOF
24386 #define HAVE_STRUCT_SOCKADDR_IN6 1
24392 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24393 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24394 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24395 echo $ECHO_N "(cached) $ECHO_C" >&6
24397 cat >conftest.$ac_ext <<_ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h. */
24404 #ifdef HAVE_SYS_TYPES_H
24405 #include <sys/types.h>
24407 #ifdef HAVE_SYS_SOCKET_H
24408 #include <sys/socket.h>
24410 #ifdef HAVE_NETDB_H
24415 typedef struct addrinfo ac__type_new_;
24419 if ((ac__type_new_ *) 0)
24421 if (sizeof (ac__type_new_))
24427 rm -f conftest.$ac_objext
24428 if { (ac_try="$ac_compile"
24429 case "(($ac_try" in
24430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431 *) ac_try_echo=$ac_try;;
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434 (eval "$ac_compile") 2>conftest.er1
24436 grep -v '^ *+' conftest.er1 >conftest.err
24438 cat conftest.err >&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } &&
24441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24442 { (case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447 (eval "$ac_try") 2>&5
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); }; } &&
24451 { ac_try='test -s conftest.$ac_objext'
24452 { (case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457 (eval "$ac_try") 2>&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; }; then
24461 ac_cv_type_struct_addrinfo=yes
24463 echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24466 ac_cv_type_struct_addrinfo=no
24469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24471 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24472 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24473 if test $ac_cv_type_struct_addrinfo = yes; then
24475 cat >>confdefs.h <<\_ACEOF
24476 #define HAVE_STRUCT_ADDRINFO 1
24541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24545 echo $ECHO_N "(cached) $ECHO_C" >&6
24547 cat >conftest.$ac_ext <<_ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24555 #define $ac_func innocuous_$ac_func
24557 /* System header to define __stub macros and hopefully few prototypes,
24558 which can conflict with char $ac_func (); below.
24559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24560 <limits.h> exists even on freestanding compilers. */
24563 # include <limits.h>
24565 # include <assert.h>
24570 /* Override any GCC internal prototype to avoid an error.
24571 Use char because int might match the return type of a GCC
24572 builtin and then its argument prototype would still apply. */
24577 /* The GNU C library defines this for functions which it implements
24578 to always fail with ENOSYS. Some functions are actually named
24579 something starting with __ and the normal name is an alias. */
24580 #if defined __stub_$ac_func || defined __stub___$ac_func
24587 return $ac_func ();
24592 rm -f conftest.$ac_objext conftest$ac_exeext
24593 if { (ac_try="$ac_link"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_link") 2>conftest.er1
24601 grep -v '^ *+' conftest.er1 >conftest.err
24603 cat conftest.err >&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); } &&
24606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24607 { (case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612 (eval "$ac_try") 2>&5
24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615 (exit $ac_status); }; } &&
24616 { ac_try='test -s conftest$ac_exeext'
24617 { (case "(($ac_try" in
24618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619 *) ac_try_echo=$ac_try;;
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622 (eval "$ac_try") 2>&5
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; }; then
24626 eval "$as_ac_var=yes"
24628 echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 eval "$as_ac_var=no"
24634 rm -f core conftest.err conftest.$ac_objext \
24635 conftest$ac_exeext conftest.$ac_ext
24637 ac_res=`eval echo '${'$as_ac_var'}'`
24638 { echo "$as_me:$LINENO: result: $ac_res" >&5
24639 echo "${ECHO_T}$ac_res" >&6; }
24640 if test `eval echo '${'$as_ac_var'}'` = yes; then
24641 cat >>confdefs.h <<_ACEOF
24642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24658 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24659 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24660 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24671 #include <string.h>
24672 #ifdef HAVE_UNISTD_H
24673 #include <unistd.h>
24675 #ifdef HAVE_CRYPT_H
24678 #ifdef HAVE_ERRNO_H
24681 #ifdef HAVE_RESOURCE_H
24682 #include <resource.h>
24684 #ifdef HAVE_GETOPT_H
24685 #include <getopt.h>
24687 #ifdef HAVE_MALLOC_H
24688 #include <malloc.h>
24693 #ifdef HAVE_UTMPX_H
24696 #ifdef HAVE_SYS_SELECT_H
24697 #include <sys/select.h>
24699 #ifdef HAVE_DLFCN_H
24702 #ifdef HAVE_REGEX_H
24705 #ifdef HAVE_SYSLOG_H
24706 #include <syslog.h>
24708 #ifdef HAVE_INTTYPES_H
24709 #include <inttypes.h>
24711 #ifdef HAVE_STDINT_H
24712 #include <stdint.h>
24714 #ifdef HAVE_ARPA_INET_H
24715 #include <arpa/inet.h>
24721 char *(*pfn) = (char *(*)) $ac_func
24726 rm -f conftest.$ac_objext
24727 if { (ac_try="$ac_compile"
24728 case "(($ac_try" in
24729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730 *) ac_try_echo=$ac_try;;
24732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24733 (eval "$ac_compile") 2>conftest.er1
24735 grep -v '^ *+' conftest.er1 >conftest.err
24737 cat conftest.err >&5
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } &&
24740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24741 { (case "(($ac_try" in
24742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743 *) ac_try_echo=$ac_try;;
24745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24746 (eval "$ac_try") 2>&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; } &&
24750 { ac_try='test -s conftest.$ac_objext'
24751 { (case "(($ac_try" in
24752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24753 *) ac_try_echo=$ac_try;;
24755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24756 (eval "$ac_try") 2>&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); }; }; then
24760 eval "radius_cv_decl_needed_$ac_func=no"
24762 echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24765 eval "radius_cv_decl_needed_$ac_func=yes"
24768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24771 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24772 { echo "$as_me:$LINENO: result: yes" >&5
24773 echo "${ECHO_T}yes" >&6; }
24774 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24775 cat >>confdefs.h <<_ACEOF
24776 #define $radius_tr_decl 1
24780 { echo "$as_me:$LINENO: result: no" >&5
24781 echo "${ECHO_T}no" >&6; }
24787 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24788 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24789 if test "${ac_cv_type_signal+set}" = set; then
24790 echo $ECHO_N "(cached) $ECHO_C" >&6
24792 cat >conftest.$ac_ext <<_ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798 #include <sys/types.h>
24799 #include <signal.h>
24804 return *(signal (0, 0)) (0) == 1;
24809 rm -f conftest.$ac_objext
24810 if { (ac_try="$ac_compile"
24811 case "(($ac_try" in
24812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813 *) ac_try_echo=$ac_try;;
24815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816 (eval "$ac_compile") 2>conftest.er1
24818 grep -v '^ *+' conftest.er1 >conftest.err
24820 cat conftest.err >&5
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); } &&
24823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24824 { (case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_try") 2>&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); }; } &&
24833 { ac_try='test -s conftest.$ac_objext'
24834 { (case "(($ac_try" in
24835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836 *) ac_try_echo=$ac_try;;
24838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24839 (eval "$ac_try") 2>&5
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); }; }; then
24843 ac_cv_type_signal=int
24845 echo "$as_me: failed program was:" >&5
24846 sed 's/^/| /' conftest.$ac_ext >&5
24848 ac_cv_type_signal=void
24851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24853 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24854 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24856 cat >>confdefs.h <<_ACEOF
24857 #define RETSIGTYPE $ac_cv_type_signal
24862 if test "x$ac_cv_header_utmpx_h" = "xyes"
24865 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24866 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24869 cat >conftest.$ac_ext <<_ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24878 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24884 int foo = offsetof(struct utmpx, ut_xtime)
24889 rm -f conftest.$ac_objext
24890 if { (ac_try="$ac_compile"
24891 case "(($ac_try" in
24892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24893 *) ac_try_echo=$ac_try;;
24895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24896 (eval "$ac_compile") 2>conftest.er1
24898 grep -v '^ *+' conftest.er1 >conftest.err
24900 cat conftest.err >&5
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); } &&
24903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24904 { (case "(($ac_try" in
24905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906 *) ac_try_echo=$ac_try;;
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909 (eval "$ac_try") 2>&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); }; } &&
24913 { ac_try='test -s conftest.$ac_objext'
24914 { (case "(($ac_try" in
24915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24916 *) ac_try_echo=$ac_try;;
24918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24919 (eval "$ac_try") 2>&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; }; then
24925 echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24933 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24934 if test "x$has_element" != "x"; then
24935 { echo "$as_me:$LINENO: result: yes" >&5
24936 echo "${ECHO_T}yes" >&6; }
24937 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24939 { echo "$as_me:$LINENO: result: no" >&5
24940 echo "${ECHO_T}no" >&6; }
24941 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24944 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24947 cat >>confdefs.h <<\_ACEOF
24948 #define ut_xtime ut_tv.tv_sec
24955 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24956 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24959 cat >conftest.$ac_ext <<_ACEOF
24962 cat confdefs.h >>conftest.$ac_ext
24963 cat >>conftest.$ac_ext <<_ACEOF
24964 /* end confdefs.h. */
24966 #include <netinet/in.h>
24968 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24974 int foo = offsetof(struct in_pktinfo, ipi_addr)
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983 *) ac_try_echo=$ac_try;;
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986 (eval "$ac_compile") 2>conftest.er1
24988 grep -v '^ *+' conftest.er1 >conftest.err
24990 cat conftest.err >&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } &&
24993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24994 { (case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_try") 2>&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; } &&
25003 { ac_try='test -s conftest.$ac_objext'
25004 { (case "(($ac_try" in
25005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006 *) ac_try_echo=$ac_try;;
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009 (eval "$ac_try") 2>&5
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; }; then
25015 echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25023 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
25024 if test "x$has_element" != "x"; then
25025 { echo "$as_me:$LINENO: result: yes" >&5
25026 echo "${ECHO_T}yes" >&6; }
25027 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
25029 { echo "$as_me:$LINENO: result: no" >&5
25030 echo "${ECHO_T}no" >&6; }
25031 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
25034 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
25037 cat >>confdefs.h <<\_ACEOF
25038 #define HAVE_IP_PKTINFO
25044 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
25045 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
25048 cat >conftest.$ac_ext <<_ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h. */
25055 #include <netinet/in.h>
25057 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
25063 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
25068 rm -f conftest.$ac_objext
25069 if { (ac_try="$ac_compile"
25070 case "(($ac_try" in
25071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072 *) ac_try_echo=$ac_try;;
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075 (eval "$ac_compile") 2>conftest.er1
25077 grep -v '^ *+' conftest.er1 >conftest.err
25079 cat conftest.err >&5
25080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081 (exit $ac_status); } &&
25082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25083 { (case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_try") 2>&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); }; } &&
25092 { ac_try='test -s conftest.$ac_objext'
25093 { (case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098 (eval "$ac_try") 2>&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; }; then
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25112 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
25113 if test "x$has_element" != "x"; then
25114 { echo "$as_me:$LINENO: result: yes" >&5
25115 echo "${ECHO_T}yes" >&6; }
25116 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
25118 { echo "$as_me:$LINENO: result: no" >&5
25119 echo "${ECHO_T}no" >&6; }
25120 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
25123 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
25126 cat >>confdefs.h <<\_ACEOF
25127 #define HAVE_IN6_PKTINFO
25133 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25135 if test "${ac_cv_c_const+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25138 cat >conftest.$ac_ext <<_ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h. */
25148 /* FIXME: Include the comments suggested by Paul. */
25149 #ifndef __cplusplus
25150 /* Ultrix mips cc rejects this. */
25151 typedef int charset[2];
25153 /* SunOS 4.1.1 cc rejects this. */
25154 char const *const *ccp;
25156 /* NEC SVR4.0.2 mips cc rejects this. */
25157 struct point {int x, y;};
25158 static struct point const zero = {0,0};
25159 /* AIX XL C 1.02.0.0 rejects this.
25160 It does not let you subtract one const X* pointer from another in
25161 an arm of an if-expression whose if-part is not a constant
25163 const char *g = "string";
25164 ccp = &g + (g ? g-g : 0);
25165 /* HPUX 7.0 cc rejects these. */
25168 ccp = (char const *const *) p;
25169 { /* SCO 3.2v4 cc rejects this. */
25171 char const *s = 0 ? (char *) 0 : (char const *) 0;
25176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25177 int x[] = {25, 17};
25178 const int *foo = &x[0];
25181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25182 typedef const int *iptr;
25186 { /* AIX XL C 1.02.0.0 rejects this saying
25187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25188 struct s { int j; const int *ap[3]; };
25189 struct s *b; b->j = 5;
25191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25192 const int foo = 10;
25193 if (!foo) return 0;
25195 return !x[0] && !zero.x;
25202 rm -f conftest.$ac_objext
25203 if { (ac_try="$ac_compile"
25204 case "(($ac_try" in
25205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206 *) ac_try_echo=$ac_try;;
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209 (eval "$ac_compile") 2>conftest.er1
25211 grep -v '^ *+' conftest.er1 >conftest.err
25213 cat conftest.err >&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } &&
25216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25217 { (case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222 (eval "$ac_try") 2>&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; } &&
25226 { ac_try='test -s conftest.$ac_objext'
25227 { (case "(($ac_try" in
25228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229 *) ac_try_echo=$ac_try;;
25231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25232 (eval "$ac_try") 2>&5
25234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); }; }; then
25238 echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25247 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25248 if test $ac_cv_c_const = no; then
25250 cat >>confdefs.h <<\_ACEOF
25257 { echo "$as_me:$LINENO: checking type of OS" >&5
25258 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25260 { echo "$as_me:$LINENO: result: $OS" >&5
25261 echo "${ECHO_T}$OS" >&6; }
25262 if test "$OS" = "OS/2"; then
25269 if test "x$GCC" = "xyes"; then
25270 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
25273 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25274 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25275 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25276 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25277 CFLAGS="$CFLAGS $devflags"
25279 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
25280 echo "${ECHO_T}yes. Using $devflags" >&6; }
25283 CFLAGS="$CFLAGS -DNDEBUG"
25285 { echo "$as_me:$LINENO: result: no." >&5
25286 echo "${ECHO_T}no." >&6; }
25290 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25291 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25292 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25295 ac_check_lib_save_LIBS=$LIBS
25296 LIBS="-lcrypt $LIBS"
25297 cat >conftest.$ac_ext <<_ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25304 /* Override any GCC internal prototype to avoid an error.
25305 Use char because int might match the return type of a GCC
25306 builtin and then its argument prototype would still apply. */
25319 rm -f conftest.$ac_objext conftest$ac_exeext
25320 if { (ac_try="$ac_link"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326 (eval "$ac_link") 2>conftest.er1
25328 grep -v '^ *+' conftest.er1 >conftest.err
25330 cat conftest.err >&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } &&
25333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25334 { (case "(($ac_try" in
25335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_try") 2>&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); }; } &&
25343 { ac_try='test -s conftest$ac_exeext'
25344 { (case "(($ac_try" in
25345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346 *) ac_try_echo=$ac_try;;
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349 (eval "$ac_try") 2>&5
25351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); }; }; then
25353 ac_cv_lib_crypt_crypt=yes
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25358 ac_cv_lib_crypt_crypt=no
25361 rm -f core conftest.err conftest.$ac_objext \
25362 conftest$ac_exeext conftest.$ac_ext
25363 LIBS=$ac_check_lib_save_LIBS
25365 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25366 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25367 if test $ac_cv_lib_crypt_crypt = yes; then
25372 if test "$CRYPTLIB" != ""; then
25374 cat >>confdefs.h <<\_ACEOF
25379 { echo "$as_me:$LINENO: checking for crypt" >&5
25380 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25381 if test "${ac_cv_func_crypt+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25384 cat >conftest.$ac_ext <<_ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h. */
25390 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25392 #define crypt innocuous_crypt
25394 /* System header to define __stub macros and hopefully few prototypes,
25395 which can conflict with char crypt (); below.
25396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25397 <limits.h> exists even on freestanding compilers. */
25400 # include <limits.h>
25402 # include <assert.h>
25407 /* Override any GCC internal prototype to avoid an error.
25408 Use char because int might match the return type of a GCC
25409 builtin and then its argument prototype would still apply. */
25414 /* The GNU C library defines this for functions which it implements
25415 to always fail with ENOSYS. Some functions are actually named
25416 something starting with __ and the normal name is an alias. */
25417 #if defined __stub_crypt || defined __stub___crypt
25429 rm -f conftest.$ac_objext conftest$ac_exeext
25430 if { (ac_try="$ac_link"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_link") 2>conftest.er1
25438 grep -v '^ *+' conftest.er1 >conftest.err
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } &&
25443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25444 { (case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_try") 2>&5
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); }; } &&
25453 { ac_try='test -s conftest$ac_exeext'
25454 { (case "(($ac_try" in
25455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456 *) ac_try_echo=$ac_try;;
25458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25459 (eval "$ac_try") 2>&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; }; then
25463 ac_cv_func_crypt=yes
25465 echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25468 ac_cv_func_crypt=no
25471 rm -f core conftest.err conftest.$ac_objext \
25472 conftest$ac_exeext conftest.$ac_ext
25474 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25475 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25476 if test $ac_cv_func_crypt = yes; then
25478 cat >>confdefs.h <<\_ACEOF
25486 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25487 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25488 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25489 echo $ECHO_N "(cached) $ECHO_C" >&6
25491 ac_check_lib_save_LIBS=$LIBS
25492 LIBS="-lcipher $LIBS"
25493 cat >conftest.$ac_ext <<_ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h. */
25500 /* Override any GCC internal prototype to avoid an error.
25501 Use char because int might match the return type of a GCC
25502 builtin and then its argument prototype would still apply. */
25515 rm -f conftest.$ac_objext conftest$ac_exeext
25516 if { (ac_try="$ac_link"
25517 case "(($ac_try" in
25518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25519 *) ac_try_echo=$ac_try;;
25521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25522 (eval "$ac_link") 2>conftest.er1
25524 grep -v '^ *+' conftest.er1 >conftest.err
25526 cat conftest.err >&5
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); } &&
25529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25530 { (case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535 (eval "$ac_try") 2>&5
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; } &&
25539 { ac_try='test -s conftest$ac_exeext'
25540 { (case "(($ac_try" in
25541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25542 *) ac_try_echo=$ac_try;;
25544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25545 (eval "$ac_try") 2>&5
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 ac_cv_lib_cipher_setkey=yes
25551 echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25554 ac_cv_lib_cipher_setkey=no
25557 rm -f core conftest.err conftest.$ac_objext \
25558 conftest$ac_exeext conftest.$ac_ext
25559 LIBS=$ac_check_lib_save_LIBS
25561 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25562 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25563 if test $ac_cv_lib_cipher_setkey = yes; then
25564 CRYPTLIB="${CRYPTLIB} -lcipher"
25570 if test "x$WITH_SNMP" = "xyes"; then
25575 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
25576 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
25578 cat >conftest.$ac_ext <<_ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25585 #ifdef HAVE_SYS_TYPES_H
25586 #include <sys/types.h>
25588 #ifdef HAVE_STDINT_H
25589 #include <stdint.h>
25591 #ifdef HAVE_STDIO_H
25594 #ifdef HAVE_NETDB_H
25597 #ifdef HAVE_UNISTD_H
25598 #include <unistd.h>
25600 #include <ucd-snmp/ucd-snmp-config.h>
25601 #include <ucd-snmp/asn1.h>
25602 #include <ucd-snmp/snmp.h>
25603 #include <ucd-snmp/snmp_impl.h>
25612 rm -f conftest.$ac_objext
25613 if { (ac_try="$ac_compile"
25614 case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_compile") 2>conftest.er1
25621 grep -v '^ *+' conftest.er1 >conftest.err
25623 cat conftest.err >&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } &&
25626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25627 { (case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_try") 2>&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; } &&
25636 { ac_try='test -s conftest.$ac_objext'
25637 { (case "(($ac_try" in
25638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639 *) ac_try_echo=$ac_try;;
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642 (eval "$ac_try") 2>&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; }; then
25646 SNMP_INCLUDE="";ucdsnmp=yes
25648 echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656 if test "x$ucdsnmp" = "x"; then
25657 old_CFLAGS="$CFLAGS"
25658 for try in /usr/include /usr/local/include $snmp_include_dir; do
25659 CFLAGS="$old_CFLAGS -I$try"
25660 cat >conftest.$ac_ext <<_ACEOF
25663 cat confdefs.h >>conftest.$ac_ext
25664 cat >>conftest.$ac_ext <<_ACEOF
25665 /* end confdefs.h. */
25667 #ifdef HAVE_SYS_TYPES_H
25668 #include <sys/types.h>
25670 #ifdef HAVE_STDINT_H
25671 #include <stdint.h>
25673 #ifdef HAVE_STDIO_H
25676 #ifdef HAVE_NETDB_H
25679 #ifdef HAVE_UNISTD_H
25680 #include <unistd.h>
25682 #include <ucd-snmp/ucd-snmp-config.h>
25683 #include <ucd-snmp/asn1.h>
25684 #include <ucd-snmp/snmp.h>
25685 #include <ucd-snmp/snmp_impl.h>
25694 rm -f conftest.$ac_objext
25695 if { (ac_try="$ac_compile"
25696 case "(($ac_try" in
25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698 *) ac_try_echo=$ac_try;;
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25703 grep -v '^ *+' conftest.er1 >conftest.err
25705 cat conftest.err >&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } &&
25708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25709 { (case "(($ac_try" in
25710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711 *) ac_try_echo=$ac_try;;
25713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714 (eval "$ac_try") 2>&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; } &&
25718 { ac_try='test -s conftest.$ac_objext'
25719 { (case "(($ac_try" in
25720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25721 *) ac_try_echo=$ac_try;;
25723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25724 (eval "$ac_try") 2>&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; }; then
25728 SNMP_INCLUDE="-I$try";ucdsnmp=yes
25730 echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25737 if test "x$ucdsnmp" != "x"; then
25741 CFLAGS="$old_CFLAGS"
25744 if test "x$ucdsnmp" = "x"; then
25745 old_CFLAGS="$CFLAGS"
25746 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25747 CFLAGS="$old_CFLAGS -I$try"
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25755 #ifdef HAVE_SYS_TYPES_H
25756 #include <sys/types.h>
25758 #ifdef HAVE_STDINT_H
25759 #include <stdint.h>
25761 #ifdef HAVE_STDIO_H
25764 #ifdef HAVE_NETDB_H
25767 #ifdef HAVE_UNISTD_H
25768 #include <unistd.h>
25772 #include <snmp_impl.h>
25781 rm -f conftest.$ac_objext
25782 if { (ac_try="$ac_compile"
25783 case "(($ac_try" in
25784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25785 *) ac_try_echo=$ac_try;;
25787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25788 (eval "$ac_compile") 2>conftest.er1
25790 grep -v '^ *+' conftest.er1 >conftest.err
25792 cat conftest.err >&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); } &&
25795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25796 { (case "(($ac_try" in
25797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798 *) ac_try_echo=$ac_try;;
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801 (eval "$ac_try") 2>&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; } &&
25805 { ac_try='test -s conftest.$ac_objext'
25806 { (case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811 (eval "$ac_try") 2>&5
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); }; }; then
25815 SNMP_INCLUDE="";ucdsnmp=no
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824 if test "x$ucdsnmp" != "x"; then
25828 CFLAGS="$old_CFLAGS"
25831 if test "x$ucdsnmp" = "x"; then
25832 old_CFLAGS="$CFLAGS"
25833 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25834 CFLAGS="$old_CFLAGS -I$try"
25835 cat >conftest.$ac_ext <<_ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h. */
25842 #ifdef HAVE_SYS_TYPES_H
25843 #include <sys/types.h>
25845 #ifdef HAVE_STDINT_H
25846 #include <stdint.h>
25848 #ifdef HAVE_STDIO_H
25851 #ifdef HAVE_NETDB_H
25854 #ifdef HAVE_UNISTD_H
25855 #include <unistd.h>
25859 #include <snmp_impl.h>
25868 rm -f conftest.$ac_objext
25869 if { (ac_try="$ac_compile"
25870 case "(($ac_try" in
25871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25872 *) ac_try_echo=$ac_try;;
25874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25875 (eval "$ac_compile") 2>conftest.er1
25877 grep -v '^ *+' conftest.er1 >conftest.err
25879 cat conftest.err >&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); } &&
25882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25883 { (case "(($ac_try" in
25884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885 *) ac_try_echo=$ac_try;;
25887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25888 (eval "$ac_try") 2>&5
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; } &&
25892 { ac_try='test -s conftest.$ac_objext'
25893 { (case "(($ac_try" in
25894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25895 *) ac_try_echo=$ac_try;;
25897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25898 (eval "$ac_try") 2>&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; }; then
25902 SNMP_INCLUDE="-I$try";ucdsnmp=no
25904 echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25911 if test "x$ucdsnmp" != "x"; then
25915 CFLAGS="$old_CFLAGS"
25918 if test "x$ucdsnmp" = "x"; then
25919 { echo "$as_me:$LINENO: result: no" >&5
25920 echo "${ECHO_T}no" >&6; }
25922 if test "x$ucdsnmp" = "xyes"; then
25923 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
25924 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
25926 cat >>confdefs.h <<\_ACEOF
25927 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
25931 { echo "$as_me:$LINENO: result: yes" >&5
25932 echo "${ECHO_T}yes" >&6; }
25934 cat >>confdefs.h <<\_ACEOF
25935 #define HAVE_ASN1_SNMP_SNMPIMPL_H
25939 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
25940 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
25943 LIBS="$old_LIBS -lsnmp"
25944 cat >conftest.$ac_ext <<_ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25950 extern char snmp_build_var_op();
25954 snmp_build_var_op()
25959 rm -f conftest.$ac_objext conftest$ac_exeext
25960 if { (ac_try="$ac_link"
25961 case "(($ac_try" in
25962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963 *) ac_try_echo=$ac_try;;
25965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966 (eval "$ac_link") 2>conftest.er1
25968 grep -v '^ *+' conftest.er1 >conftest.err
25970 cat conftest.err >&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } &&
25973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25974 { (case "(($ac_try" in
25975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976 *) ac_try_echo=$ac_try;;
25978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979 (eval "$ac_try") 2>&5
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); }; } &&
25983 { ac_try='test -s conftest$ac_exeext'
25984 { (case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_try") 2>&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); }; }; then
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
26001 rm -f core conftest.err conftest.$ac_objext \
26002 conftest$ac_exeext conftest.$ac_ext
26004 if test "x$SNMP_LIBS" = "x"; then
26005 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
26006 LIBS="$old_LIBS -L$try -lsnmp"
26007 cat >conftest.$ac_ext <<_ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h. */
26013 extern char snmp_build_var_op();
26017 snmp_build_var_op()
26022 rm -f conftest.$ac_objext conftest$ac_exeext
26023 if { (ac_try="$ac_link"
26024 case "(($ac_try" in
26025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026 *) ac_try_echo=$ac_try;;
26028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26029 (eval "$ac_link") 2>conftest.er1
26031 grep -v '^ *+' conftest.er1 >conftest.err
26033 cat conftest.err >&5
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); } &&
26036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26037 { (case "(($ac_try" in
26038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26039 *) ac_try_echo=$ac_try;;
26041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26042 (eval "$ac_try") 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; } &&
26046 { ac_try='test -s conftest$ac_exeext'
26047 { (case "(($ac_try" in
26048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049 *) ac_try_echo=$ac_try;;
26051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26052 (eval "$ac_try") 2>&5
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); }; }; then
26056 SNMP_LIBS="-L$try -lsnmp"
26058 echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26064 rm -f core conftest.err conftest.$ac_objext \
26065 conftest$ac_exeext conftest.$ac_ext
26066 if test "x$SNMP_LIBS" != "x"; then
26069 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
26070 cat >conftest.$ac_ext <<_ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h. */
26076 extern char snmp_build_var_op();
26080 snmp_build_var_op()
26085 rm -f conftest.$ac_objext conftest$ac_exeext
26086 if { (ac_try="$ac_link"
26087 case "(($ac_try" in
26088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089 *) ac_try_echo=$ac_try;;
26091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092 (eval "$ac_link") 2>conftest.er1
26094 grep -v '^ *+' conftest.er1 >conftest.err
26096 cat conftest.err >&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } &&
26099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26100 { (case "(($ac_try" in
26101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102 *) ac_try_echo=$ac_try;;
26104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26105 (eval "$ac_try") 2>&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; } &&
26109 { ac_try='test -s conftest$ac_exeext'
26110 { (case "(($ac_try" in
26111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26112 *) ac_try_echo=$ac_try;;
26114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26115 (eval "$ac_try") 2>&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; }; then
26119 SNMP_LIBS="-L$try -lsnmp -lcrypto"
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26127 rm -f core conftest.err conftest.$ac_objext \
26128 conftest$ac_exeext conftest.$ac_ext
26129 if test "x$SNMP_LIBS" != "x"; then
26132 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
26133 cat >conftest.$ac_ext <<_ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h. */
26139 extern char snmp_build_var_op();
26143 snmp_build_var_op()
26148 rm -f conftest.$ac_objext conftest$ac_exeext
26149 if { (ac_try="$ac_link"
26150 case "(($ac_try" in
26151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 *) ac_try_echo=$ac_try;;
26154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26155 (eval "$ac_link") 2>conftest.er1
26157 grep -v '^ *+' conftest.er1 >conftest.err
26159 cat conftest.err >&5
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); } &&
26162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26163 { (case "(($ac_try" in
26164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26165 *) ac_try_echo=$ac_try;;
26167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26168 (eval "$ac_try") 2>&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; } &&
26172 { ac_try='test -s conftest$ac_exeext'
26173 { (case "(($ac_try" in
26174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175 *) ac_try_echo=$ac_try;;
26177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178 (eval "$ac_try") 2>&5
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; }; then
26182 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
26184 echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26190 rm -f core conftest.err conftest.$ac_objext \
26191 conftest$ac_exeext conftest.$ac_ext
26192 if test "x$SNMP_LIBS" != "x"; then
26199 CFLAGS="$old_CFLAGS"
26200 if test "x$SNMP_LIBS" = "x"; then
26201 { echo "$as_me:$LINENO: result: no" >&5
26202 echo "${ECHO_T}no" >&6; }
26205 { echo "$as_me:$LINENO: result: yes" >&5
26206 echo "${ECHO_T}yes" >&6; }
26208 cat >>confdefs.h <<\_ACEOF
26213 cat >>confdefs.h <<\_ACEOF
26214 #define HAVE_LIBSNMP
26223 cat >>confdefs.h <<\_ACEOF
26228 cat >>confdefs.h <<\_ACEOF
26229 #define SYSVSTYLE 2
26233 cat >>confdefs.h <<\_ACEOF
26237 gethostbyaddrrstyle=""
26238 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
26239 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
26242 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
26243 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
26244 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
26245 echo $ECHO_N "(cached) $ECHO_C" >&6
26247 cat >conftest.$ac_ext <<_ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h. */
26254 #ifdef HAVE_NETDB_H
26262 #ifndef gethostbyaddr_r
26263 char *p = (char *) gethostbyaddr_r;
26271 rm -f conftest.$ac_objext
26272 if { (ac_try="$ac_compile"
26273 case "(($ac_try" in
26274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275 *) ac_try_echo=$ac_try;;
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278 (eval "$ac_compile") 2>conftest.er1
26280 grep -v '^ *+' conftest.er1 >conftest.err
26282 cat conftest.err >&5
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); } &&
26285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26286 { (case "(($ac_try" in
26287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288 *) ac_try_echo=$ac_try;;
26290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26291 (eval "$ac_try") 2>&5
26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); }; } &&
26295 { ac_try='test -s conftest.$ac_objext'
26296 { (case "(($ac_try" in
26297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298 *) ac_try_echo=$ac_try;;
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301 (eval "$ac_try") 2>&5
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); }; }; then
26305 ac_cv_have_decl_gethostbyaddr_r=yes
26307 echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26310 ac_cv_have_decl_gethostbyaddr_r=no
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26315 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
26316 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
26317 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
26319 cat >>confdefs.h <<_ACEOF
26320 #define HAVE_DECL_GETHOSTBYADDR_R 1
26325 cat >>confdefs.h <<_ACEOF
26326 #define HAVE_DECL_GETHOSTBYADDR_R 0
26331 cat >>confdefs.h <<\_ACEOF
26332 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26335 gethostbyaddrrstyle=BSD
26336 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
26337 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
26344 if test "x$gethostbyaddrrstyle" = "x"; then
26345 cat >conftest.$ac_ext <<_ACEOF
26348 cat confdefs.h >>conftest.$ac_ext
26349 cat >>conftest.$ac_ext <<_ACEOF
26350 /* end confdefs.h. */
26358 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
26363 rm -f conftest.$ac_objext conftest$ac_exeext
26364 if { (ac_try="$ac_link"
26365 case "(($ac_try" in
26366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367 *) ac_try_echo=$ac_try;;
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370 (eval "$ac_link") 2>conftest.er1
26372 grep -v '^ *+' conftest.er1 >conftest.err
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } &&
26377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26378 { (case "(($ac_try" in
26379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26380 *) ac_try_echo=$ac_try;;
26382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26383 (eval "$ac_try") 2>&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); }; } &&
26387 { ac_try='test -s conftest$ac_exeext'
26388 { (case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_try") 2>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26399 cat >>confdefs.h <<\_ACEOF
26400 #define GETHOSTBYADDRRSTYLE GNUSTYLE
26403 gethostbyaddrrstyle=GNU
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26412 rm -f core conftest.err conftest.$ac_objext \
26413 conftest$ac_exeext conftest.$ac_ext
26415 if test "x$gethostbyaddrrstyle" = "x"; then
26416 cat >conftest.$ac_ext <<_ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h. */
26429 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
26434 rm -f conftest.$ac_objext conftest$ac_exeext
26435 if { (ac_try="$ac_link"
26436 case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441 (eval "$ac_link") 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } &&
26448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26449 { (case "(($ac_try" in
26450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451 *) ac_try_echo=$ac_try;;
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454 (eval "$ac_try") 2>&5
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); }; } &&
26458 { ac_try='test -s conftest$ac_exeext'
26459 { (case "(($ac_try" in
26460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461 *) ac_try_echo=$ac_try;;
26463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26464 (eval "$ac_try") 2>&5
26466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467 (exit $ac_status); }; }; then
26470 cat >>confdefs.h <<\_ACEOF
26471 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
26474 gethostbyaddrrstyle=SYSV
26477 echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26483 rm -f core conftest.err conftest.$ac_objext \
26484 conftest$ac_exeext conftest.$ac_ext
26486 if test "x$gethostbyaddrrstyle" = "x"; then
26487 cat >conftest.$ac_ext <<_ACEOF
26490 cat confdefs.h >>conftest.$ac_ext
26491 cat >>conftest.$ac_ext <<_ACEOF
26492 /* end confdefs.h. */
26500 gethostbyaddr(NULL, 0, 0)
26505 rm -f conftest.$ac_objext conftest$ac_exeext
26506 if { (ac_try="$ac_link"
26507 case "(($ac_try" in
26508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509 *) ac_try_echo=$ac_try;;
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512 (eval "$ac_link") 2>conftest.er1
26514 grep -v '^ *+' conftest.er1 >conftest.err
26516 cat conftest.err >&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } &&
26519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26520 { (case "(($ac_try" in
26521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26522 *) ac_try_echo=$ac_try;;
26524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26525 (eval "$ac_try") 2>&5
26527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528 (exit $ac_status); }; } &&
26529 { ac_try='test -s conftest$ac_exeext'
26530 { (case "(($ac_try" in
26531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26532 *) ac_try_echo=$ac_try;;
26534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26535 (eval "$ac_try") 2>&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; }; then
26541 cat >>confdefs.h <<\_ACEOF
26542 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26545 gethostbyaddrrstyle=BSD
26548 echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26554 rm -f core conftest.err conftest.$ac_objext \
26555 conftest$ac_exeext conftest.$ac_ext
26558 if test "x$gethostbyaddrrstyle" = "x"; then
26559 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
26560 echo "${ECHO_T}none! It must not exist, here." >&6; }
26562 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
26563 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
26566 if test "x$gethostbyaddrrstyle" = "xBSD"; then
26567 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
26568 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
26571 gethostbynamerstyle=""
26572 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
26573 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
26574 cat >conftest.$ac_ext <<_ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h. */
26587 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
26592 rm -f conftest.$ac_objext conftest$ac_exeext
26593 if { (ac_try="$ac_link"
26594 case "(($ac_try" in
26595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596 *) ac_try_echo=$ac_try;;
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599 (eval "$ac_link") 2>conftest.er1
26601 grep -v '^ *+' conftest.er1 >conftest.err
26603 cat conftest.err >&5
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } &&
26606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26607 { (case "(($ac_try" in
26608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26609 *) ac_try_echo=$ac_try;;
26611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26612 (eval "$ac_try") 2>&5
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); }; } &&
26616 { ac_try='test -s conftest$ac_exeext'
26617 { (case "(($ac_try" in
26618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619 *) ac_try_echo=$ac_try;;
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622 (eval "$ac_try") 2>&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26628 cat >>confdefs.h <<\_ACEOF
26629 #define GETHOSTBYNAMERSTYLE GNUSTYLE
26632 gethostbynamerstyle=GNU
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26641 rm -f core conftest.err conftest.$ac_objext \
26642 conftest$ac_exeext conftest.$ac_ext
26643 if test "x$gethostbynamerstyle" = "x"; then
26644 cat >conftest.$ac_ext <<_ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h. */
26657 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
26662 rm -f conftest.$ac_objext conftest$ac_exeext
26663 if { (ac_try="$ac_link"
26664 case "(($ac_try" in
26665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666 *) ac_try_echo=$ac_try;;
26668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26669 (eval "$ac_link") 2>conftest.er1
26671 grep -v '^ *+' conftest.er1 >conftest.err
26673 cat conftest.err >&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } &&
26676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26677 { (case "(($ac_try" in
26678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679 *) ac_try_echo=$ac_try;;
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682 (eval "$ac_try") 2>&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; } &&
26686 { ac_try='test -s conftest$ac_exeext'
26687 { (case "(($ac_try" in
26688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26689 *) ac_try_echo=$ac_try;;
26691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26692 (eval "$ac_try") 2>&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26698 cat >>confdefs.h <<\_ACEOF
26699 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
26702 gethostbynamerstyle=SYSV
26705 echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26711 rm -f core conftest.err conftest.$ac_objext \
26712 conftest$ac_exeext conftest.$ac_ext
26714 if test "x$gethostbynamerstyle" = "x"; then
26715 cat >conftest.$ac_ext <<_ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26728 gethostbyname(NULL)
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (ac_try="$ac_link"
26735 case "(($ac_try" in
26736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26737 *) ac_try_echo=$ac_try;;
26739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26740 (eval "$ac_link") 2>conftest.er1
26742 grep -v '^ *+' conftest.er1 >conftest.err
26744 cat conftest.err >&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } &&
26747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26748 { (case "(($ac_try" in
26749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750 *) ac_try_echo=$ac_try;;
26752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26753 (eval "$ac_try") 2>&5
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; } &&
26757 { ac_try='test -s conftest$ac_exeext'
26758 { (case "(($ac_try" in
26759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760 *) ac_try_echo=$ac_try;;
26762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26763 (eval "$ac_try") 2>&5
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); }; }; then
26769 cat >>confdefs.h <<\_ACEOF
26770 #define GETHOSTBYNAMERSTYLE BSDSTYLE
26773 gethostbynamerstyle=BSD
26776 echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26782 rm -f core conftest.err conftest.$ac_objext \
26783 conftest$ac_exeext conftest.$ac_ext
26786 if test "x$gethostbynamerstyle" = "x"; then
26787 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
26788 echo "${ECHO_T}none! It must not exist, here." >&6; }
26790 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
26791 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
26794 if test "x$gethostbynamerstyle" = "xBSD"; then
26795 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
26796 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
26800 cat >>confdefs.h <<\_ACEOF
26801 #define POSIXSTYLE 1
26805 cat >>confdefs.h <<\_ACEOF
26806 #define SOLARISSTYLE 2
26810 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
26811 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26824 ctime_r(NULL, NULL, 0)
26829 rm -f conftest.$ac_objext conftest$ac_exeext
26830 if { (ac_try="$ac_link"
26831 case "(($ac_try" in
26832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833 *) ac_try_echo=$ac_try;;
26835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26836 (eval "$ac_link") 2>conftest.er1
26838 grep -v '^ *+' conftest.er1 >conftest.err
26840 cat conftest.err >&5
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); } &&
26843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26844 { (case "(($ac_try" in
26845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846 *) ac_try_echo=$ac_try;;
26848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26849 (eval "$ac_try") 2>&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); }; } &&
26853 { ac_try='test -s conftest$ac_exeext'
26854 { (case "(($ac_try" in
26855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856 *) ac_try_echo=$ac_try;;
26858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859 (eval "$ac_try") 2>&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
26865 cat >>confdefs.h <<\_ACEOF
26866 #define CTIMERSTYLE SOLARISSTYLE
26869 ctimerstyle="SOLARIS"
26872 echo "$as_me: failed program was:" >&5
26873 sed 's/^/| /' conftest.$ac_ext >&5
26878 rm -f core conftest.err conftest.$ac_objext \
26879 conftest$ac_exeext conftest.$ac_ext
26880 if test "x$ctimerstyle" = "x"; then
26881 cat >conftest.$ac_ext <<_ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26893 ctime_r(NULL, NULL)
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902 *) ac_try_echo=$ac_try;;
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905 (eval "$ac_link") 2>conftest.er1
26907 grep -v '^ *+' conftest.er1 >conftest.err
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913 { (case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_try") 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; } &&
26922 { ac_try='test -s conftest$ac_exeext'
26923 { (case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_try") 2>&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; }; then
26934 cat >>confdefs.h <<\_ACEOF
26935 #define CTIMERSTYLE POSIXSTYLE
26938 ctimerstyle="POSIX"
26941 echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26947 rm -f core conftest.err conftest.$ac_objext \
26948 conftest$ac_exeext conftest.$ac_ext
26951 if test "x$ctimerstyle" = "x"; then
26952 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
26953 echo "${ECHO_T}none! It must not exist, here." >&6; }
26955 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26956 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26964 export top_builddir
26965 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26966 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26972 mysubdirs="$LIBLTDLPATH"
26973 if test "x$EXPERIMENTAL" = "xyes"; then
26974 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26975 mysubdirs=`echo $mysubdirs $bar`
26977 for bar in `cat "${srcdir}"/src/modules/stable`; do
26978 if test -f "${srcdir}"/src/modules/$bar/configure; then
26979 mysubdirs="$mysubdirs src/modules/$bar"
26984 if test "x$EXPERIMENTAL" = "xyes"; then
26985 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26986 MODULES="$MODULES $foo"
26989 for foo in `cat "${srcdir}"/src/modules/stable`; do
26990 MODULES="$MODULES $foo"
26994 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26999 ac_config_commands="$ac_config_commands stamp-h"
27001 ac_config_commands="$ac_config_commands build-radpaths-h"
27003 ac_config_commands="$ac_config_commands main-chmod"
27005 ac_config_commands="$ac_config_commands scripts-chmod"
27011 USE_SHARED_LIBS=$enable_shared
27013 USE_STATIC_LIBS=$enable_static
27020 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf ./raddb/vmpsd.conf ./raddb/radrelay.conf"
27022 cat >confcache <<\_ACEOF
27023 # This file is a shell script that caches the results of configure
27024 # tests run on this system so they can be shared between configure
27025 # scripts and configure runs, see configure's option --config-cache.
27026 # It is not useful on other systems. If it contains results you don't
27027 # want to keep, you may remove or edit it.
27029 # config.status only pays attention to the cache file if you give it
27030 # the --recheck option to rerun configure.
27032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27034 # following values.
27038 # The following way of writing the cache mishandles newlines in values,
27039 # but we know of no workaround that is simple, portable, and efficient.
27040 # So, we kill variables containing newlines.
27041 # Ultrix sh set writes to stderr and can't be redirected directly,
27042 # and sets the high bit in the cache file unless we assign to the vars.
27044 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27045 eval ac_val=\$$ac_var
27049 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27050 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27053 _ | IFS | as_nl) ;; #(
27054 *) $as_unset $ac_var ;;
27060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27061 *${as_nl}ac_space=\ *)
27062 # `set' does not quote correctly, so add quotes (double-quote
27063 # substitution turns \\\\ into \\, and sed turns \\ into \).
27066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27069 # `set' quotes correctly as required by POSIX, so do not add quotes.
27070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27084 if test -w "$cache_file"; then
27085 test "x$cache_file" != "x/dev/null" &&
27086 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27087 echo "$as_me: updating cache $cache_file" >&6;}
27088 cat confcache >$cache_file
27090 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27091 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27097 # Let make expand exec_prefix.
27098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27100 DEFS=-DHAVE_CONFIG_H
27104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27105 # 1. Remove the extension, and $U if already installed.
27106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27107 ac_i=`echo "$ac_i" | sed "$ac_script"`
27108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27109 # will be set to the directory where LIBOBJS objects are built.
27110 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27111 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27113 LIBOBJS=$ac_libobjs
27115 LTLIBOBJS=$ac_ltlibobjs
27119 : ${CONFIG_STATUS=./config.status}
27120 ac_clean_files_save=$ac_clean_files
27121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27124 cat >$CONFIG_STATUS <<_ACEOF
27126 # Generated by $as_me.
27127 # Run this file to recreate the current configuration.
27128 # Compiler output produced by configure, useful for debugging
27129 # configure, is in config.log if it exists.
27132 ac_cs_recheck=false
27134 SHELL=\${CONFIG_SHELL-$SHELL}
27137 cat >>$CONFIG_STATUS <<\_ACEOF
27138 ## --------------------- ##
27139 ## M4sh Initialization. ##
27140 ## --------------------- ##
27142 # Be Bourne compatible
27143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27147 # is contrary to our usage. Disable this feature.
27148 alias -g '${1+"$@"}'='"$@"'
27149 setopt NO_GLOB_SUBST
27151 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27153 BIN_SH=xpg4; export BIN_SH # for Tru64
27154 DUALCASE=1; export DUALCASE # for MKS sh
27158 # Avoid depending upon Character Ranges.
27159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27162 as_cr_digits='0123456789'
27163 as_cr_alnum=$as_cr_Letters$as_cr_digits
27165 # The user is always right.
27166 if test "${PATH_SEPARATOR+set}" != set; then
27167 echo "#! /bin/sh" >conf$$.sh
27168 echo "exit 0" >>conf$$.sh
27170 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27178 # Support unset when possible.
27179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27187 # We need space, tab and new line, in precisely that order. Quoting is
27188 # there to prevent editors from complaining about space-tab.
27189 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27190 # splitting by setting IFS to empty value.)
27195 # Find who we are. Look in the path if we contain no directory separator.
27197 *[\\/]* ) as_myself=$0 ;;
27198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27199 for as_dir in $PATH
27202 test -z "$as_dir" && as_dir=.
27203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27209 # We did not find ourselves, most probably we were run as `sh COMMAND'
27210 # in which case we are not to be found in the path.
27211 if test "x$as_myself" = x; then
27214 if test ! -f "$as_myself"; then
27215 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27216 { (exit 1); exit 1; }
27219 # Work around bugs in pre-3.0 UWIN ksh.
27220 for as_var in ENV MAIL MAILPATH
27221 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27229 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27230 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27231 LC_TELEPHONE LC_TIME
27233 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27234 eval $as_var=C; export $as_var
27236 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27240 # Required to use basename.
27241 if expr a : '\(a\)' >/dev/null 2>&1 &&
27242 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27248 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27249 as_basename=basename
27255 # Name of the executable.
27256 as_me=`$as_basename -- "$0" ||
27257 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27258 X"$0" : 'X\(//\)$' \| \
27259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27261 sed '/^.*\/\([^/][^/]*\)\/*$/{
27280 as_lineno_1=$LINENO
27281 as_lineno_2=$LINENO
27282 test "x$as_lineno_1" != "x$as_lineno_2" &&
27283 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27285 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27286 # uniformly replaced by the line number. The first 'sed' inserts a
27287 # line-number line after each line using $LINENO; the second 'sed'
27288 # does the real work. The second script uses 'N' to pair each
27289 # line-number line with the line containing $LINENO, and appends
27290 # trailing '-' during substitution so that $LINENO is not a special
27291 # case at line end.
27292 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27293 # scripts with optimization help from Paolo Bonzini. Blame Lee
27294 # E. McMahon (1931-1989) for sed's syntax. :-)
27306 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27309 ' >$as_me.lineno &&
27310 chmod +x "$as_me.lineno" ||
27311 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27312 { (exit 1); exit 1; }; }
27314 # Don't try to exec as it changes $[0], causing all sort of problems
27315 # (the dirname of $[0] is not the place where we might find the
27316 # original and so on. Autoconf is especially sensitive to this).
27317 . "./$as_me.lineno"
27318 # Exit status is that of the last command.
27323 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27329 ECHO_C= ECHO_N= ECHO_T=
27330 case `echo -n x` in
27332 case `echo 'x\c'` in
27333 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27340 if expr a : '\(a\)' >/dev/null 2>&1 &&
27341 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27347 rm -f conf$$ conf$$.exe conf$$.file
27348 if test -d conf$$.dir; then
27349 rm -f conf$$.dir/conf$$.file
27355 if ln -s conf$$.file conf$$ 2>/dev/null; then
27357 # ... but there are two gotchas:
27358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27360 # In both cases, we have to default to `cp -p'.
27361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27363 elif ln conf$$.file conf$$ 2>/dev/null; then
27368 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27369 rmdir conf$$.dir 2>/dev/null
27371 if mkdir -p . 2>/dev/null; then
27374 test -d ./-p && rmdir ./-p
27378 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
27379 # systems may use methods other than mode bits to determine executability.
27380 cat >conf$$.file <<_ASEOF
27384 chmod +x conf$$.file
27385 if test -x conf$$.file >/dev/null 2>&1; then
27386 as_executable_p="test -x"
27392 # Sed expression to map a string onto a valid CPP name.
27393 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27395 # Sed expression to map a string onto a valid variable name.
27396 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27401 # Save the log message, to keep $[0] and so on meaningful, and to
27402 # report actual input values of CONFIG_FILES etc. instead of their
27403 # values after options handling.
27405 This file was extended by $as_me, which was
27406 generated by GNU Autoconf 2.60. Invocation command line was
27408 CONFIG_FILES = $CONFIG_FILES
27409 CONFIG_HEADERS = $CONFIG_HEADERS
27410 CONFIG_LINKS = $CONFIG_LINKS
27411 CONFIG_COMMANDS = $CONFIG_COMMANDS
27414 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27419 cat >>$CONFIG_STATUS <<_ACEOF
27420 # Files that config.status was made for.
27421 config_files="$ac_config_files"
27422 config_headers="$ac_config_headers"
27423 config_commands="$ac_config_commands"
27427 cat >>$CONFIG_STATUS <<\_ACEOF
27429 \`$as_me' instantiates files from templates according to the
27430 current configuration.
27432 Usage: $0 [OPTIONS] [FILE]...
27434 -h, --help print this help, then exit
27435 -V, --version print version number, then exit
27436 -q, --quiet do not print progress messages
27437 -d, --debug don't remove temporary files
27438 --recheck update $as_me by reconfiguring in the same conditions
27439 --file=FILE[:TEMPLATE]
27440 instantiate the configuration file FILE
27441 --header=FILE[:TEMPLATE]
27442 instantiate the configuration header FILE
27444 Configuration files:
27447 Configuration headers:
27450 Configuration commands:
27453 Report bugs to <bug-autoconf@gnu.org>."
27456 cat >>$CONFIG_STATUS <<_ACEOF
27459 configured by $0, generated by GNU Autoconf 2.60,
27460 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27462 Copyright (C) 2006 Free Software Foundation, Inc.
27463 This config.status script is free software; the Free Software Foundation
27464 gives unlimited permission to copy, distribute and modify it."
27470 cat >>$CONFIG_STATUS <<\_ACEOF
27471 # If no file are specified by the user, then we need to provide default
27472 # value. By we need to know if files were specified by the user.
27478 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27479 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27490 # Handling of the options.
27491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27493 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27494 echo "$ac_cs_version"; exit ;;
27495 --debug | --debu | --deb | --de | --d | -d )
27497 --file | --fil | --fi | --f )
27499 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27500 ac_need_defaults=false;;
27501 --header | --heade | --head | --hea )
27503 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27504 ac_need_defaults=false;;
27506 # Conflict between --help and --header
27507 { echo "$as_me: error: ambiguous option: $1
27508 Try \`$0 --help' for more information." >&2
27509 { (exit 1); exit 1; }; };;
27510 --help | --hel | -h )
27511 echo "$ac_cs_usage"; exit ;;
27512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27516 # This is an error.
27517 -*) { echo "$as_me: error: unrecognized option: $1
27518 Try \`$0 --help' for more information." >&2
27519 { (exit 1); exit 1; }; } ;;
27521 *) ac_config_targets="$ac_config_targets $1"
27522 ac_need_defaults=false ;;
27528 ac_configure_extra_args=
27530 if $ac_cs_silent; then
27532 ac_configure_extra_args="$ac_configure_extra_args --silent"
27536 cat >>$CONFIG_STATUS <<_ACEOF
27537 if \$ac_cs_recheck; then
27538 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27539 CONFIG_SHELL=$SHELL
27540 export CONFIG_SHELL
27541 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27545 cat >>$CONFIG_STATUS <<\_ACEOF
27549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27550 ## Running $as_me. ##
27556 cat >>$CONFIG_STATUS <<_ACEOF
27559 cat >>$CONFIG_STATUS <<\_ACEOF
27561 # Handling of arguments.
27562 for ac_config_target in $ac_config_targets
27564 case $ac_config_target in
27565 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
27566 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
27567 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
27568 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
27569 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
27570 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
27571 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
27572 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
27573 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
27574 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
27575 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
27576 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
27577 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
27578 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
27579 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
27580 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
27581 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
27582 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
27583 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
27584 "./raddb/vmpsd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/vmpsd.conf" ;;
27585 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
27587 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27588 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27589 { (exit 1); exit 1; }; };;
27594 # If the user did not use the arguments to specify the items to instantiate,
27595 # then the envvar interface is used. Set only those that are not.
27596 # We use the long form for the default assignment because of an extremely
27597 # bizarre bug on SunOS 4.1.3.
27598 if $ac_need_defaults; then
27599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27600 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27601 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27604 # Have a temporary directory for convenience. Make it in the build tree
27605 # simply because there is no reason against having it here, and in addition,
27606 # creating and moving files from /tmp can sometimes cause problems.
27607 # Hook for its removal unless debugging.
27608 # Note that there is a small window in which the directory will not be cleaned:
27609 # after its creation but before its name has been assigned to `$tmp'.
27613 trap 'exit_status=$?
27614 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27616 trap '{ (exit 1); exit 1; }' 1 2 13 15
27618 # Create a (secure) tmp directory for tmp files.
27621 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27622 test -n "$tmp" && test -d "$tmp"
27625 tmp=./conf$$-$RANDOM
27626 (umask 077 && mkdir "$tmp")
27629 echo "$me: cannot create a temporary directory in ." >&2
27630 { (exit 1); exit 1; }
27634 # Set up the sed scripts for CONFIG_FILES section.
27637 # No need to generate the scripts if there are no CONFIG_FILES.
27638 # This happens for instance when ./config.status config.h
27639 if test -n "$CONFIG_FILES"; then
27646 for ac_last_try in false false false false false :; do
27647 cat >conf$$subs.sed <<_ACEOF
27648 SHELL!$SHELL$ac_delim
27649 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27650 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27651 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27652 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27653 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27654 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27655 exec_prefix!$exec_prefix$ac_delim
27656 prefix!$prefix$ac_delim
27657 program_transform_name!$program_transform_name$ac_delim
27658 bindir!$bindir$ac_delim
27659 sbindir!$sbindir$ac_delim
27660 libexecdir!$libexecdir$ac_delim
27661 datarootdir!$datarootdir$ac_delim
27662 datadir!$datadir$ac_delim
27663 sysconfdir!$sysconfdir$ac_delim
27664 sharedstatedir!$sharedstatedir$ac_delim
27665 localstatedir!$localstatedir$ac_delim
27666 includedir!$includedir$ac_delim
27667 oldincludedir!$oldincludedir$ac_delim
27668 docdir!$docdir$ac_delim
27669 infodir!$infodir$ac_delim
27670 htmldir!$htmldir$ac_delim
27671 dvidir!$dvidir$ac_delim
27672 pdfdir!$pdfdir$ac_delim
27673 psdir!$psdir$ac_delim
27674 libdir!$libdir$ac_delim
27675 localedir!$localedir$ac_delim
27676 mandir!$mandir$ac_delim
27677 DEFS!$DEFS$ac_delim
27678 ECHO_C!$ECHO_C$ac_delim
27679 ECHO_N!$ECHO_N$ac_delim
27680 ECHO_T!$ECHO_T$ac_delim
27681 LIBS!$LIBS$ac_delim
27682 build_alias!$build_alias$ac_delim
27683 host_alias!$host_alias$ac_delim
27684 target_alias!$target_alias$ac_delim
27686 CFLAGS!$CFLAGS$ac_delim
27687 LDFLAGS!$LDFLAGS$ac_delim
27688 CPPFLAGS!$CPPFLAGS$ac_delim
27689 ac_ct_CC!$ac_ct_CC$ac_delim
27690 EXEEXT!$EXEEXT$ac_delim
27691 OBJEXT!$OBJEXT$ac_delim
27693 CXXFLAGS!$CXXFLAGS$ac_delim
27694 ac_ct_CXX!$ac_ct_CXX$ac_delim
27696 GREP!$GREP$ac_delim
27697 EGREP!$EGREP$ac_delim
27698 RANLIB!$RANLIB$ac_delim
27699 GMAKE!$GMAKE$ac_delim
27700 MAKE!$MAKE$ac_delim
27701 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
27702 LIBTOOL!$LIBTOOL$ac_delim
27703 build!$build$ac_delim
27704 build_cpu!$build_cpu$ac_delim
27705 build_vendor!$build_vendor$ac_delim
27706 build_os!$build_os$ac_delim
27707 host!$host$ac_delim
27708 host_cpu!$host_cpu$ac_delim
27709 host_vendor!$host_vendor$ac_delim
27710 host_os!$host_os$ac_delim
27711 LN_S!$LN_S$ac_delim
27712 ECHO!$ECHO$ac_delim
27714 STRIP!$STRIP$ac_delim
27715 CXXCPP!$CXXCPP$ac_delim
27717 FFLAGS!$FFLAGS$ac_delim
27718 ac_ct_F77!$ac_ct_F77$ac_delim
27719 logdir!$logdir$ac_delim
27720 radacctdir!$radacctdir$ac_delim
27721 raddbdir!$raddbdir$ac_delim
27722 PERL!$PERL$ac_delim
27723 SNMPGET!$SNMPGET$ac_delim
27724 SNMPWALK!$SNMPWALK$ac_delim
27725 RUSERS!$RUSERS$ac_delim
27726 ACLOCAL!$ACLOCAL$ac_delim
27727 AUTOCONF!$AUTOCONF$ac_delim
27728 AUTOHEADER!$AUTOHEADER$ac_delim
27729 LOCATE!$LOCATE$ac_delim
27730 DIRNAME!$DIRNAME$ac_delim
27731 REGEX!$REGEX$ac_delim
27732 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
27733 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
27734 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
27735 PCAP_LIBS!$PCAP_LIBS$ac_delim
27736 LIBPREFIX!$LIBPREFIX$ac_delim
27737 CRYPTLIB!$CRYPTLIB$ac_delim
27738 SNMP_LIBS!$SNMP_LIBS$ac_delim
27739 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
27740 HOSTINFO!$HOSTINFO$ac_delim
27741 LIBLTDL!$LIBLTDL$ac_delim
27742 INCLTDL!$INCLTDL$ac_delim
27743 subdirs!$subdirs$ac_delim
27744 MODULES!$MODULES$ac_delim
27747 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27749 elif $ac_last_try; then
27750 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27751 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27752 { (exit 1); exit 1; }; }
27754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27758 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27759 if test -n "$ac_eof"; then
27760 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27761 ac_eof=`expr $ac_eof + 1`
27764 cat >>$CONFIG_STATUS <<_ACEOF
27765 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27769 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27770 s/^/s,@/; s/!/@,|#_!!_#|/
27773 s/'"$ac_delim"'$/,g/; t
27775 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27776 ' >>$CONFIG_STATUS <conf$$subs.sed
27777 rm -f conf$$subs.sed
27778 cat >>$CONFIG_STATUS <<_ACEOF
27784 for ac_last_try in false false false false false :; do
27785 cat >conf$$subs.sed <<_ACEOF
27786 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
27787 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
27788 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
27789 STATIC_MODULES!$STATIC_MODULES$ac_delim
27790 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
27791 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
27792 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
27793 LIBOBJS!$LIBOBJS$ac_delim
27794 LTLIBOBJS!$LTLIBOBJS$ac_delim
27797 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
27799 elif $ac_last_try; then
27800 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27802 { (exit 1); exit 1; }; }
27804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27809 if test -n "$ac_eof"; then
27810 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27811 ac_eof=`expr $ac_eof + 1`
27814 cat >>$CONFIG_STATUS <<_ACEOF
27815 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27820 s/^/s,@/; s/!/@,|#_!!_#|/
27823 s/'"$ac_delim"'$/,g/; t
27825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27826 ' >>$CONFIG_STATUS <conf$$subs.sed
27827 rm -f conf$$subs.sed
27828 cat >>$CONFIG_STATUS <<_ACEOF
27835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27837 # trailing colons and then remove the whole line if VPATH becomes empty
27838 # (actually we leave an empty line to preserve line numbers).
27839 if test "x$srcdir" = x.; then
27840 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27841 s/:*\$(srcdir):*/:/
27842 s/:*\${srcdir}:*/:/
27844 s/^\([^=]*=[ ]*\):*/\1/
27850 cat >>$CONFIG_STATUS <<\_ACEOF
27851 fi # test -n "$CONFIG_FILES"
27854 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27857 :[FHLC]) ac_mode=$ac_tag; continue;;
27859 case $ac_mode$ac_tag in
27861 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27862 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27863 { (exit 1); exit 1; }; };;
27864 :[FH]-) ac_tag=-:-;;
27865 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27882 -) ac_f="$tmp/stdin";;
27883 *) # Look for the file first in the build tree, then in the source tree
27884 # (if the path is not absolute). The absolute path cannot be DOS-style,
27885 # because $ac_f cannot contain `:'.
27889 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27891 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27892 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27893 { (exit 1); exit 1; }; };;
27895 ac_file_inputs="$ac_file_inputs $ac_f"
27898 # Let's still pretend it is `configure' which instantiates (i.e., don't
27899 # use $as_me), people would be surprised to read:
27900 # /* config.h. Generated by config.status. */
27901 configure_input="Generated from "`IFS=:
27902 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27903 if test x"$ac_file" != x-; then
27904 configure_input="$ac_file. $configure_input"
27905 { echo "$as_me:$LINENO: creating $ac_file" >&5
27906 echo "$as_me: creating $ac_file" >&6;}
27910 *:-:* | *:-) cat >"$tmp/stdin";;
27915 ac_dir=`$as_dirname -- "$ac_file" ||
27916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27917 X"$ac_file" : 'X\(//\)[^/]' \| \
27918 X"$ac_file" : 'X\(//\)$' \| \
27919 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27925 /^X\(\/\/\)[^/].*/{
27940 -*) as_dir=./$as_dir;;
27942 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27946 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27947 *) as_qdir=$as_dir;;
27949 as_dirs="'$as_qdir' $as_dirs"
27950 as_dir=`$as_dirname -- "$as_dir" ||
27951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27952 X"$as_dir" : 'X\(//\)[^/]' \| \
27953 X"$as_dir" : 'X\(//\)$' \| \
27954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27960 /^X\(\/\/\)[^/].*/{
27973 test -d "$as_dir" && break
27975 test -z "$as_dirs" || eval "mkdir $as_dirs"
27976 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27977 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27978 { (exit 1); exit 1; }; }; }
27982 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27984 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27985 # A ".." for each directory in $ac_dir_suffix.
27986 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27987 case $ac_top_builddir_sub in
27988 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27989 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27992 ac_abs_top_builddir=$ac_pwd
27993 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27994 # for backward compatibility:
27995 ac_top_builddir=$ac_top_build_prefix
27998 .) # We are building in place.
28000 ac_top_srcdir=$ac_top_builddir_sub
28001 ac_abs_top_srcdir=$ac_pwd ;;
28002 [\\/]* | ?:[\\/]* ) # Absolute name.
28003 ac_srcdir=$srcdir$ac_dir_suffix;
28004 ac_top_srcdir=$srcdir
28005 ac_abs_top_srcdir=$srcdir ;;
28006 *) # Relative name.
28007 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28008 ac_top_srcdir=$ac_top_build_prefix$srcdir
28009 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28011 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28022 cat >>$CONFIG_STATUS <<\_ACEOF
28023 # If the template does not know about datarootdir, expand it.
28024 # FIXME: This hack should be removed a few years after 2.60.
28025 ac_datarootdir_hack=; ac_datarootdir_seen=
28027 case `sed -n '/datarootdir/ {
28036 ' $ac_file_inputs` in
28037 *datarootdir*) ac_datarootdir_seen=yes;;
28038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28039 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28040 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28042 cat >>$CONFIG_STATUS <<_ACEOF
28043 ac_datarootdir_hack='
28044 s&@datadir@&$datadir&g
28045 s&@docdir@&$docdir&g
28046 s&@infodir@&$infodir&g
28047 s&@localedir@&$localedir&g
28048 s&@mandir@&$mandir&g
28049 s&\\\${datarootdir}&$datarootdir&g' ;;
28053 # Neutralize VPATH when `$srcdir' = `.'.
28054 # Shell code in configure.ac might set extrasub.
28055 # FIXME: do we really want to maintain this feature?
28056 cat >>$CONFIG_STATUS <<_ACEOF
28060 cat >>$CONFIG_STATUS <<\_ACEOF
28062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28063 s&@configure_input@&$configure_input&;t t
28064 s&@top_builddir@&$ac_top_builddir_sub&;t t
28065 s&@srcdir@&$ac_srcdir&;t t
28066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28067 s&@top_srcdir@&$ac_top_srcdir&;t t
28068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28069 s&@builddir@&$ac_builddir&;t t
28070 s&@abs_builddir@&$ac_abs_builddir&;t t
28071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28072 $ac_datarootdir_hack
28073 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28078 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28079 which seems to be undefined. Please make sure it is defined." >&5
28080 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28081 which seems to be undefined. Please make sure it is defined." >&2;}
28085 -) cat "$tmp/out"; rm -f "$tmp/out";;
28086 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28095 # Transform confdefs.h into a sed script `conftest.defines', that
28096 # substitutes the proper values into config.h.in to produce config.h.
28097 rm -f conftest.defines conftest.tail
28098 # First, append a space to every undef/define line, to ease matching.
28099 echo 's/$/ /' >conftest.defines
28100 # Then, protect against being on the right side of a sed subst, or in
28101 # an unquoted here document, in config.status. If some macros were
28102 # called several times there might be several #defines for the same
28103 # symbol, which is useless. But do not sort them, since the last
28104 # AC_DEFINE must be honored.
28105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28106 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28107 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28108 # PARAMS is the parameter list in the macro definition--in most cases, it's
28109 # just an empty string.
28110 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28111 ac_dB='\\)[ (].*,\\1define\\2'
28119 s/^[ ]*#[ ]*define[ ][ ]*//
28124 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28125 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28126 ' >>conftest.defines
28128 # Remove the space that was appended to ease matching.
28129 # Then replace #undef with comments. This is necessary, for
28130 # example, in the case of _POSIX_SOURCE, which is predefined and required
28131 # on some systems where configure will not decide to define it.
28132 # (The regexp can be short, since the line contains either #define or #undef.)
28134 s,^[ #]*u.*,/* & */,' >>conftest.defines
28136 # Break up conftest.defines:
28137 ac_max_sed_lines=50
28139 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28140 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28141 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28143 ac_in='$ac_file_inputs'
28144 ac_out='"$tmp/out1"'
28145 ac_nxt='"$tmp/out2"'
28149 # Write a here document:
28150 cat >>$CONFIG_STATUS <<_ACEOF
28151 # First, check the format of the line:
28152 cat >"\$tmp/defines.sed" <<\\CEOF
28153 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28154 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28158 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28160 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28161 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28162 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28163 grep . conftest.tail >/dev/null || break
28164 rm -f conftest.defines
28165 mv conftest.tail conftest.defines
28167 rm -f conftest.defines conftest.tail
28169 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28170 cat >>$CONFIG_STATUS <<\_ACEOF
28171 if test x"$ac_file" != x-; then
28172 echo "/* $configure_input */" >"$tmp/config.h"
28173 cat "$ac_result" >>"$tmp/config.h"
28174 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28175 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28176 echo "$as_me: $ac_file is unchanged" >&6;}
28179 mv "$tmp/config.h" $ac_file
28182 echo "/* $configure_input */"
28188 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28189 echo "$as_me: executing $ac_file commands" >&6;}
28194 case $ac_file$ac_mode in
28195 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
28196 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
28197 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
28198 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
28204 { (exit 0); exit 0; }
28206 chmod +x $CONFIG_STATUS
28207 ac_clean_files=$ac_clean_files_save
28210 # configure is writing to config.log, and then calls config.status.
28211 # config.status does its own redirection, appending to config.log.
28212 # Unfortunately, on DOS this fails, as config.log is still kept open
28213 # by configure, so config.status won't be able to write to it; its
28214 # output is simply discarded. So we exec the FD to /dev/null,
28215 # effectively closing config.log, so it can be properly (re)opened and
28216 # appended to by config.status. When coming back to configure, we
28217 # need to make the FD available again.
28218 if test "$no_create" != yes; then
28220 ac_config_status_args=
28221 test "$silent" = yes &&
28222 ac_config_status_args="$ac_config_status_args --quiet"
28224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28227 # would make configure fail if this is the last instruction.
28228 $ac_cs_success || { (exit 1); exit 1; }
28232 # CONFIG_SUBDIRS section.
28234 if test "$no_recursion" != yes; then
28236 # Remove --cache-file and --srcdir arguments so they do not pile up.
28237 ac_sub_configure_args=
28239 eval "set x $ac_configure_args"
28243 if test -n "$ac_prev"; then
28248 -cache-file | --cache-file | --cache-fil | --cache-fi \
28249 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28250 ac_prev=cache_file ;;
28251 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28252 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28255 --config-cache | -C)
28257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28267 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28269 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
28273 # Always prepend --prefix to ensure using the same prefix
28274 # in subdir configurations.
28275 ac_arg="--prefix=$prefix"
28277 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28279 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
28282 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28284 # Do not complain, so a configure script can configure whichever
28285 # parts of a large source tree are present.
28286 test -d "$srcdir/$ac_dir" || continue
28288 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28289 echo "$as_me:$LINENO: $ac_msg" >&5
28293 -*) as_dir=./$as_dir;;
28295 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28299 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28300 *) as_qdir=$as_dir;;
28302 as_dirs="'$as_qdir' $as_dirs"
28303 as_dir=`$as_dirname -- "$as_dir" ||
28304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28305 X"$as_dir" : 'X\(//\)[^/]' \| \
28306 X"$as_dir" : 'X\(//\)$' \| \
28307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28313 /^X\(\/\/\)[^/].*/{
28326 test -d "$as_dir" && break
28328 test -z "$as_dirs" || eval "mkdir $as_dirs"
28329 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28330 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28331 { (exit 1); exit 1; }; }; }
28335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28338 # A ".." for each directory in $ac_dir_suffix.
28339 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28340 case $ac_top_builddir_sub in
28341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28345 ac_abs_top_builddir=$ac_pwd
28346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28347 # for backward compatibility:
28348 ac_top_builddir=$ac_top_build_prefix
28351 .) # We are building in place.
28353 ac_top_srcdir=$ac_top_builddir_sub
28354 ac_abs_top_srcdir=$ac_pwd ;;
28355 [\\/]* | ?:[\\/]* ) # Absolute name.
28356 ac_srcdir=$srcdir$ac_dir_suffix;
28357 ac_top_srcdir=$srcdir
28358 ac_abs_top_srcdir=$srcdir ;;
28359 *) # Relative name.
28360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28361 ac_top_srcdir=$ac_top_build_prefix$srcdir
28362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28369 # Check for guested configure; otherwise get Cygnus style configure.
28370 if test -f "$ac_srcdir/configure.gnu"; then
28371 ac_sub_configure=$ac_srcdir/configure.gnu
28372 elif test -f "$ac_srcdir/configure"; then
28373 ac_sub_configure=$ac_srcdir/configure
28374 elif test -f "$ac_srcdir/configure.in"; then
28375 # This should be Cygnus configure.
28376 ac_sub_configure=$ac_aux_dir/configure
28378 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28379 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28383 # The recursion is here.
28384 if test -n "$ac_sub_configure"; then
28385 # Make the cache file name correct relative to the subdirectory.
28386 case $cache_file in
28387 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28388 *) # Relative name.
28389 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28392 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28393 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28394 # The eval makes quoting arguments work.
28395 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28396 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28397 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28398 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28399 { (exit 1); exit 1; }; }