2 # From configure.in Revision: 1.235 .
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-static-modules=QUOTED-MODULE-LIST
1474 --with-modules=QUOTED-MODULE-LIST
1475 --with-experimental-modules Use experimental and unstable modules. (default=no)
1476 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1477 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1478 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1479 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1480 --with-udpfromto Compile in UDPFROMTO support. (default=yes)
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CXX C++ compiler command
1490 CXXFLAGS C++ compiler flags
1492 CXXCPP C++ preprocessor
1493 F77 Fortran 77 compiler command
1494 FFLAGS Fortran 77 compiler flags
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" || continue
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1526 .) # We are building in place.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1550 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1560 generated by GNU Autoconf 2.60
1562 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1563 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1569 cat >config.log <<_ACEOF
1570 This file contains any messages produced by compilers while
1571 running configure, to aid debugging if configure makes a mistake.
1573 It was created by $as_me, which was
1574 generated by GNU Autoconf 2.60. Invocation command line was
1586 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1587 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1588 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1589 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1590 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1593 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1596 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1597 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1598 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1599 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1600 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1601 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 test -z "$as_dir" && as_dir=.
1610 echo "PATH: $as_dir"
1626 # Keep a trace of the command line.
1627 # Strip out --no-create and --no-recursion so they do not pile up.
1628 # Strip out --silent because we don't want to record it for future runs.
1629 # Also quote any args containing shell meta-characters.
1630 # Make two passes to allow for proper duplicate-argument suppression.
1634 ac_must_keep_next=false
1640 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642 | -silent | --silent | --silen | --sile | --sil)
1645 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1648 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1651 if test $ac_must_keep_next = true; then
1652 ac_must_keep_next=false # Got value, back to normal.
1655 *=* | --config-cache | -C | -disable-* | --disable-* \
1656 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658 | -with-* | --with-* | -without-* | --without-* | --x)
1659 case "$ac_configure_args0 " in
1660 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663 -* ) ac_must_keep_next=true ;;
1666 ac_configure_args="$ac_configure_args '$ac_arg'"
1671 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1672 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674 # When interrupted or exit'd, cleanup temporary files, and complete
1675 # config.log. We remove comments because anyway the quotes in there
1676 # would cause problems or look ugly.
1677 # WARNING: Use '\'' to represent an apostrophe within the trap.
1678 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679 trap 'exit_status=$?
1680 # Save into config.log some information that might help in debugging.
1685 ## ---------------- ##
1686 ## Cache variables. ##
1687 ## ---------------- ##
1690 # The following way of writing the cache mishandles newlines in values,
1692 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1693 eval ac_val=\$$ac_var
1697 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1698 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1701 _ | IFS | as_nl) ;; #(
1702 *) $as_unset $ac_var ;;
1707 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1708 *${as_nl}ac_space=\ *)
1710 "s/'\''/'\''\\\\'\'''\''/g;
1711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1722 ## ----------------- ##
1723 ## Output variables. ##
1724 ## ----------------- ##
1727 for ac_var in $ac_subst_vars
1729 eval ac_val=\$$ac_var
1731 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 echo "$ac_var='\''$ac_val'\''"
1737 if test -n "$ac_subst_files"; then
1739 ## ------------------- ##
1740 ## File substitutions. ##
1741 ## ------------------- ##
1744 for ac_var in $ac_subst_files
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 echo "$ac_var='\''$ac_val'\''"
1755 if test -s confdefs.h; then
1765 test "$ac_signal" != 0 &&
1766 echo "$as_me: caught signal $ac_signal"
1767 echo "$as_me: exit $exit_status"
1769 rm -f core *.core core.conftest.* &&
1770 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1773 for ac_signal in 1 2 13 15; do
1774 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1778 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1779 rm -f -r conftest* confdefs.h
1781 # Predefined preprocessor variables.
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_NAME "$PACKAGE_NAME"
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_STRING "$PACKAGE_STRING"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1808 # Let the site file select an alternate cache file if it wants to.
1809 # Prefer explicitly selected file to automatically selected ones.
1810 if test -n "$CONFIG_SITE"; then
1811 set x "$CONFIG_SITE"
1812 elif test "x$prefix" != xNONE; then
1813 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 set x "$ac_default_prefix/share/config.site" \
1816 "$ac_default_prefix/etc/config.site"
1821 if test -r "$ac_site_file"; then
1822 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 echo "$as_me: loading site script $ac_site_file" >&6;}
1824 sed 's/^/| /' "$ac_site_file" >&5
1829 if test -r "$cache_file"; then
1830 # Some versions of bash will fail to source /dev/null (special
1831 # files actually), so we avoid doing that.
1832 if test -f "$cache_file"; then
1833 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 echo "$as_me: loading cache $cache_file" >&6;}
1836 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837 *) . "./$cache_file";;
1841 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 echo "$as_me: creating cache $cache_file" >&6;}
1846 # Check that the precious variables saved in the cache have kept the same
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851 eval ac_new_set=\$ac_env_${ac_var}_set
1852 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853 eval ac_new_val=\$ac_env_${ac_var}_value
1854 case $ac_old_set,$ac_new_set in
1856 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1860 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862 ac_cache_corrupted=: ;;
1865 if test "x$ac_old_val" != "x$ac_new_val"; then
1866 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1868 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1869 echo "$as_me: former value: $ac_old_val" >&2;}
1870 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1871 echo "$as_me: current value: $ac_new_val" >&2;}
1872 ac_cache_corrupted=:
1875 # Pass precious variables to config.status.
1876 if test "$ac_new_set" = set; then
1878 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 *) ac_arg=$ac_var=$ac_new_val ;;
1881 case " $ac_configure_args " in
1882 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1883 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1887 if $ac_cache_corrupted; then
1888 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1889 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1890 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1891 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1892 { (exit 1); exit 1; }; }
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1921 RADIUSD_MAJOR_VERSION=2
1922 RADIUSD_MINOR_VERSION=0.0-pre0
1923 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 if test -n "$CC"; then
1962 { echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6; }
1965 { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1971 if test -z "$ac_cv_prog_CC"; then
1973 # Extract the first word of "gcc", so it can be a program name with args.
1974 set dummy gcc; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$ac_ct_CC"; then
1981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1990 ac_cv_prog_ac_ct_CC="gcc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2001 if test -n "$ac_ct_CC"; then
2002 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2003 echo "${ECHO_T}$ac_ct_CC" >&6; }
2005 { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2009 if test "x$ac_ct_CC" = x; then
2012 case $cross_compiling:$ac_tool_warned in
2014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2015 whose name does not start with the host triplet. If you think this
2016 configuration is useful to you, please write to autoconf@gnu.org." >&5
2017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2018 whose name does not start with the host triplet. If you think this
2019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2020 ac_tool_warned=yes ;;
2028 if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}cc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2047 ac_cv_prog_CC="${ac_tool_prefix}cc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 if test -n "$CC"; then
2059 { echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6; }
2062 { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2069 if test -z "$CC"; then
2070 # Extract the first word of "cc", so it can be a program name with args.
2071 set dummy cc; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test -n "$CC"; then
2078 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2088 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2089 ac_prog_rejected=yes
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 if test $ac_prog_rejected = yes; then
2101 # We found a bogon in the path, so make sure we never use it.
2102 set dummy $ac_cv_prog_CC
2104 if test $# != 0; then
2105 # We chose a different compiler from the bogus one.
2106 # However, it has the same basename, so the bogon will be chosen
2107 # first if we set CC to just the basename; use the full file name.
2109 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2115 if test -n "$CC"; then
2116 { echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6; }
2119 { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2125 if test -z "$CC"; then
2126 if test -n "$ac_tool_prefix"; then
2127 for ac_prog in cl.exe
2129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test -n "$CC"; then
2158 { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2166 test -n "$CC" && break
2169 if test -z "$CC"; then
2171 for ac_prog in cl.exe
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$ac_ct_CC"; then
2181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 ac_cv_prog_ac_ct_CC="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6; }
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2210 test -n "$ac_ct_CC" && break
2213 if test "x$ac_ct_CC" = x; then
2216 case $cross_compiling:$ac_tool_warned in
2218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2219 whose name does not start with the host triplet. If you think this
2220 configuration is useful to you, please write to autoconf@gnu.org." >&5
2221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2224 ac_tool_warned=yes ;;
2233 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: no acceptable C compiler found in \$PATH
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2239 # Provide some information about the compiler.
2240 echo "$as_me:$LINENO: checking for C compiler version" >&5
2241 ac_compiler=`set X $ac_compile; echo $2`
2242 { (ac_try="$ac_compiler --version >&5"
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler --version >&5") 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2252 { (ac_try="$ac_compiler -v >&5"
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258 (eval "$ac_compiler -v >&5") 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }
2262 { (ac_try="$ac_compiler -V >&5"
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268 (eval "$ac_compiler -V >&5") 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2273 cat >conftest.$ac_ext <<_ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2288 ac_clean_files_save=$ac_clean_files
2289 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2290 # Try to create an executable without -o first, disregard a.out.
2291 # It will help us diagnose broken compilers, and finding out an intuition
2293 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2295 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2297 # List of possible output files, starting from the most likely.
2298 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2299 # only as a last resort. b.out is created by i960 compilers.
2300 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2302 # The IRIX 6 linker writes into existing files which may not be
2303 # executable, retaining their permissions. Remove them first so a
2304 # subsequent execution test works.
2306 for ac_file in $ac_files
2309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2315 if { (ac_try="$ac_link_default"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_link_default") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
2325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2328 # so that the user can short-circuit this test for compilers unknown to
2330 for ac_file in $ac_files
2332 test -f "$ac_file" || continue
2334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2337 # We found the default executable, but exeext='' is most
2341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2345 # We set ac_cv_exeext here because the later test for it is not
2346 # safe: cross compilers may not add the suffix if given an `-o'
2347 # argument, so we may need to know it at that point already.
2348 # Even if this section looks crufty: it has the advantage of
2355 test "$ac_cv_exeext" = no && ac_cv_exeext=
2358 echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: C compiler cannot create executables
2364 See \`config.log' for more details." >&2;}
2365 { (exit 77); exit 77; }; }
2368 ac_exeext=$ac_cv_exeext
2369 { echo "$as_me:$LINENO: result: $ac_file" >&5
2370 echo "${ECHO_T}$ac_file" >&6; }
2372 # Check that the compiler produces executables we can run. If not, either
2373 # the compiler is broken, or we cross compile.
2374 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2375 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2376 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2377 # If not cross compiling, check that we can run a simple program.
2378 if test "$cross_compiling" != yes; then
2379 if { ac_try='./$ac_file'
2380 { (case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_try") 2>&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; }; then
2391 if test "$cross_compiling" = maybe; then
2394 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2395 If you meant to cross compile, use \`--host'.
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: cannot run C compiled programs.
2398 If you meant to cross compile, use \`--host'.
2399 See \`config.log' for more details." >&2;}
2400 { (exit 1); exit 1; }; }
2404 { echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6; }
2407 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2408 ac_clean_files=$ac_clean_files_save
2409 # Check that the compiler produces executables we can run. If not, either
2410 # the compiler is broken, or we cross compile.
2411 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2412 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2413 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2414 echo "${ECHO_T}$cross_compiling" >&6; }
2416 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2417 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2418 if { (ac_try="$ac_link"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_link") 2>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
2428 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2429 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2430 # work properly (i.e., refer to `conftest.exe'), while it won't with
2432 for ac_file in conftest.exe conftest conftest.*; do
2433 test -f "$ac_file" || continue
2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2445 See \`config.log' for more details." >&2;}
2446 { (exit 1); exit 1; }; }
2449 rm -f conftest$ac_cv_exeext
2450 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2451 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2453 rm -f conftest.$ac_ext
2454 EXEEXT=$ac_cv_exeext
2456 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2457 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2458 if test "${ac_cv_objext+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 cat >conftest.$ac_ext <<_ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2476 rm -f conftest.o conftest.obj
2477 if { (ac_try="$ac_compile"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_compile") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; then
2487 for ac_file in conftest.o conftest.obj conftest.*; do
2488 test -f "$ac_file" || continue;
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2491 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2499 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2502 See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2508 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2509 echo "${ECHO_T}$ac_cv_objext" >&6; }
2510 OBJEXT=$ac_cv_objext
2512 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2581 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2583 GCC=`test $ac_compiler_gnu = yes && echo yes`
2584 ac_test_CFLAGS=${CFLAGS+set}
2585 ac_save_CFLAGS=$CFLAGS
2586 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_cc_g+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 ac_save_c_werror_flag=$ac_c_werror_flag
2592 ac_c_werror_flag=yes
2595 cat >conftest.$ac_ext <<_ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2610 rm -f conftest.$ac_objext
2611 if { (ac_try="$ac_compile"
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617 (eval "$ac_compile") 2>conftest.er1
2619 grep -v '^ *+' conftest.er1 >conftest.err
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2625 { (case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630 (eval "$ac_try") 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_try") 2>&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; }; then
2646 echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2650 cat >conftest.$ac_ext <<_ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2665 rm -f conftest.$ac_objext
2666 if { (ac_try="$ac_compile"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compile") 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2680 { (case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_try") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; } &&
2689 { ac_try='test -s conftest.$ac_objext'
2690 { (case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_try") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2704 ac_c_werror_flag=$ac_save_c_werror_flag
2706 cat >conftest.$ac_ext <<_ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2721 rm -f conftest.$ac_objext
2722 if { (ac_try="$ac_compile"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compile") 2>conftest.er1
2730 grep -v '^ *+' conftest.er1 >conftest.err
2732 cat conftest.err >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2736 { (case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_try") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_try") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_c_werror_flag=$ac_save_c_werror_flag
2772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2774 if test "$ac_test_CFLAGS" = set; then
2775 CFLAGS=$ac_save_CFLAGS
2776 elif test $ac_cv_prog_cc_g = yes; then
2777 if test "$GCC" = yes; then
2783 if test "$GCC" = yes; then
2789 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2790 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2791 if test "${ac_cv_prog_cc_c89+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 ac_cv_prog_cc_c89=no
2796 cat >conftest.$ac_ext <<_ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2804 #include <sys/types.h>
2805 #include <sys/stat.h>
2806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2807 struct buf { int x; };
2808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2809 static char *e (p, i)
2815 static char *f (char * (*g) (char **, int), char **p, ...)
2820 s = g (p, va_arg (v,int));
2825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2826 function prototypes and stuff, but not '\xHH' hex character constants.
2827 These don't provoke an error unfortunately, instead are silently treated
2828 as 'x'. The following induces an error, until -std is added to get
2829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2830 array size at least. It's necessary to write '\x00'==0 to get something
2831 that's true only with -std. */
2832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2835 inside strings and character constants. */
2837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2839 int test (int i, double x);
2840 struct s1 {int (*f) (int a);};
2841 struct s2 {int (*f) (double a);};
2842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2856 CC="$ac_save_CC $ac_arg"
2857 rm -f conftest.$ac_objext
2858 if { (ac_try="$ac_compile"
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864 (eval "$ac_compile") 2>conftest.er1
2866 grep -v '^ *+' conftest.er1 >conftest.err
2868 cat conftest.err >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2872 { (case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_try") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; } &&
2881 { ac_try='test -s conftest.$ac_objext'
2882 { (case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_try") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_prog_cc_c89=$ac_arg
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f core conftest.err conftest.$ac_objext
2900 test "x$ac_cv_prog_cc_c89" != "xno" && break
2902 rm -f conftest.$ac_ext
2907 case "x$ac_cv_prog_cc_c89" in
2909 { echo "$as_me:$LINENO: result: none needed" >&5
2910 echo "${ECHO_T}none needed" >&6; } ;;
2912 { echo "$as_me:$LINENO: result: unsupported" >&5
2913 echo "${ECHO_T}unsupported" >&6; } ;;
2915 CC="$CC $ac_cv_prog_cc_c89"
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 if test -z "$CXX"; then
2933 if test -n "$CCC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CXX+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$CXX"; then
2947 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CXX"; then
2968 { echo "$as_me:$LINENO: result: $CXX" >&5
2969 echo "${ECHO_T}$CXX" >&6; }
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2976 test -n "$CXX" && break
2979 if test -z "$CXX"; then
2981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CXX"; then
2991 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_ac_ct_CXX="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3011 if test -n "$ac_ct_CXX"; then
3012 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3013 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3015 { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3020 test -n "$ac_ct_CXX" && break
3023 if test "x$ac_ct_CXX" = x; then
3026 case $cross_compiling:$ac_tool_warned in
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compiler --version >&5") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compiler -v >&5") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compiler -V >&5") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3145 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3146 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3147 GXX=`test $ac_compiler_gnu = yes && echo yes`
3148 ac_test_CXXFLAGS=${CXXFLAGS+set}
3149 ac_save_CXXFLAGS=$CXXFLAGS
3150 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3151 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3152 if test "${ac_cv_prog_cxx_g+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3156 ac_cxx_werror_flag=yes
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_prog_cxx_g=yes
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1 >conftest.err
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_try") 2>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3300 { (case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_try") 2>&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
3319 ac_cv_prog_cxx_g=yes
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3337 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3338 if test "$ac_test_CXXFLAGS" = set; then
3339 CXXFLAGS=$ac_save_CXXFLAGS
3340 elif test $ac_cv_prog_cxx_g = yes; then
3341 if test "$GXX" = yes; then
3347 if test "$GXX" = yes; then
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 # Double quotes because CPP needs to be expanded
3377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3380 for ac_c_preproc_warn_flag in '' yes
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385 # <limits.h> exists even on freestanding compilers.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp. "Syntax error" is here to catch this case.
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3395 # include <limits.h>
3397 # include <assert.h>
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409 grep -v '^ *+' conftest.er1 >conftest.err
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } >/dev/null; then
3414 if test -s conftest.err; then
3415 ac_cpp_err=$ac_c_preproc_warn_flag
3416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3423 if test -z "$ac_cpp_err"; then
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 # Broken: fails on valid input.
3433 rm -f conftest.err conftest.$ac_ext
3435 # OK, works on sane cases. Now check whether nonexistent headers
3436 # can be detected and how.
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 #include <ac_nonexistent.h>
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3467 if test -z "$ac_cpp_err"; then
3468 # Broken: success on invalid input.
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 # Passes both tests.
3479 rm -f conftest.err conftest.$ac_ext
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.err conftest.$ac_ext
3484 if $ac_preproc_ok; then
3496 { echo "$as_me:$LINENO: result: $CPP" >&5
3497 echo "${ECHO_T}$CPP" >&6; }
3499 for ac_c_preproc_warn_flag in '' yes
3501 # Use a header file that comes with gcc, so configuring glibc
3502 # with a fresh cross-compiler works.
3503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504 # <limits.h> exists even on freestanding compilers.
3505 # On the NeXT, cc -E runs the code through the compiler's parser,
3506 # not just through cpp. "Syntax error" is here to catch this case.
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3514 # include <limits.h>
3516 # include <assert.h>
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3542 if test -z "$ac_cpp_err"; then
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 # Broken: fails on valid input.
3552 rm -f conftest.err conftest.$ac_ext
3554 # OK, works on sane cases. Now check whether nonexistent headers
3555 # can be detected and how.
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 #include <ac_nonexistent.h>
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586 if test -z "$ac_cpp_err"; then
3587 # Broken: success on invalid input.
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Passes both tests.
3598 rm -f conftest.err conftest.$ac_ext
3601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602 rm -f conftest.err conftest.$ac_ext
3603 if $ac_preproc_ok; then
3606 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3607 See \`config.log' for more details." >&5
3608 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3609 See \`config.log' for more details." >&2;}
3610 { (exit 1); exit 1; }; }
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3621 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 # Extract the first word of "grep ggrep" to use in msg output
3626 if test -z "$GREP"; then
3627 set dummy grep ggrep; ac_prog_name=$2
3628 if test "${ac_cv_path_GREP+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 ac_path_GREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637 test -z "$as_dir" && as_dir=.
3638 for ac_prog in grep ggrep; do
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3642 # Check for GNU ac_path_GREP and select it if it is found.
3643 # Check for GNU $ac_path_GREP
3644 case `"$ac_path_GREP" --version 2>&1` in
3646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3649 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
3655 echo 'GREP' >> "conftest.nl"
3656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 ac_count=`expr $ac_count + 1`
3659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_GREP="$ac_path_GREP"
3662 ac_path_GREP_max=$ac_count
3664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671 $ac_path_GREP_found && break 3
3681 GREP="$ac_cv_path_GREP"
3682 if test -z "$GREP"; then
3683 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3684 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3685 { (exit 1); exit 1; }; }
3689 ac_cv_path_GREP=$GREP
3694 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3695 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3696 GREP="$ac_cv_path_GREP"
3699 { echo "$as_me:$LINENO: checking for egrep" >&5
3700 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_EGREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3705 then ac_cv_path_EGREP="$GREP -E"
3707 # Extract the first word of "egrep" to use in msg output
3708 if test -z "$EGREP"; then
3709 set dummy egrep; ac_prog_name=$2
3710 if test "${ac_cv_path_EGREP+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 ac_path_EGREP_found=false
3714 # Loop through the user's path and test for each of PROGNAME-LIST
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3719 test -z "$as_dir" && as_dir=.
3720 for ac_prog in egrep; do
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3724 # Check for GNU ac_path_EGREP and select it if it is found.
3725 # Check for GNU $ac_path_EGREP
3726 case `"$ac_path_EGREP" --version 2>&1` in
3728 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3731 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3734 cat "conftest.in" "conftest.in" >"conftest.tmp"
3735 mv "conftest.tmp" "conftest.in"
3736 cp "conftest.in" "conftest.nl"
3737 echo 'EGREP' >> "conftest.nl"
3738 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740 ac_count=`expr $ac_count + 1`
3741 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742 # Best one so far, save it but keep looking for a better one
3743 ac_cv_path_EGREP="$ac_path_EGREP"
3744 ac_path_EGREP_max=$ac_count
3746 # 10*(2^10) chars as input seems more than enough
3747 test $ac_count -gt 10 && break
3749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3753 $ac_path_EGREP_found && break 3
3763 EGREP="$ac_cv_path_EGREP"
3764 if test -z "$EGREP"; then
3765 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3766 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3767 { (exit 1); exit 1; }; }
3771 ac_cv_path_EGREP=$EGREP
3777 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3778 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3779 EGREP="$ac_cv_path_EGREP"
3783 { echo "$as_me:$LINENO: checking for AIX" >&5
3784 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 $EGREP "yes" >/dev/null 2>&1; then
3798 { echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6; }
3800 cat >>confdefs.h <<\_ACEOF
3801 #define _ALL_SOURCE 1
3805 { echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6; }
3812 if test $ac_cv_c_compiler_gnu = yes; then
3813 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3814 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3815 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_pattern="Autoconf.*'x'"
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3830 ac_cv_prog_gcc_traditional=yes
3832 ac_cv_prog_gcc_traditional=no
3837 if test $ac_cv_prog_gcc_traditional = no; then
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3849 ac_cv_prog_gcc_traditional=yes
3855 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3856 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3857 if test $ac_cv_prog_gcc_traditional = yes; then
3858 CC="$CC -traditional"
3862 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3863 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3864 if test "${ac_cv_prog_suncc+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 cat > conftest.c <<EOF
3872 if { ac_try='${CC-cc} -E conftest.c'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3878 ac_cv_prog_suncc=yes
3883 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3884 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3890 if test "${ac_cv_prog_RANLIB+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 if test -n "$RANLIB"; then
3894 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3903 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 RANLIB=$ac_cv_prog_RANLIB
3914 if test -n "$RANLIB"; then
3915 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3916 echo "${ECHO_T}$RANLIB" >&6; }
3918 { echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6; }
3924 if test -z "$ac_cv_prog_RANLIB"; then
3925 ac_ct_RANLIB=$RANLIB
3926 # Extract the first word of "ranlib", so it can be a program name with args.
3927 set dummy ranlib; ac_word=$2
3928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 if test -n "$ac_ct_RANLIB"; then
3934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_prog_ac_ct_RANLIB="ranlib"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3956 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3958 { echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6; }
3962 if test "x$ac_ct_RANLIB" = x; then
3965 case $cross_compiling:$ac_tool_warned in
3967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3968 whose name does not start with the host triplet. If you think this
3969 configuration is useful to you, please write to autoconf@gnu.org." >&5
3970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3971 whose name does not start with the host triplet. If you think this
3972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3973 ac_tool_warned=yes ;;
3975 RANLIB=$ac_ct_RANLIB
3978 RANLIB="$ac_cv_prog_RANLIB"
3982 # Check whether --enable-largefile was given.
3983 if test "${enable_largefile+set}" = set; then
3984 enableval=$enable_largefile;
3987 if test "$enable_largefile" != no; then
3989 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3990 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3991 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 ac_cv_sys_largefile_CC=no
3995 if test "$GCC" != yes; then
3998 # IRIX 6.2 and later do not support large files by default,
3999 # so use the C compiler's -n32 option if that helps.
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <sys/types.h>
4007 /* Check that off_t can represent 2**63 - 1 correctly.
4008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4009 since some C++ compilers masquerading as C compilers
4010 incorrectly reject 9223372036854775807. */
4011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4013 && LARGE_OFF_T % 2147483647 == 1)
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } &&
4037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038 { (case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043 (eval "$ac_try") 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest.$ac_objext'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4065 rm -f core conftest.err conftest.$ac_objext
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_sys_largefile_CC=' -n32'; break
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4109 rm -f core conftest.err conftest.$ac_objext
4113 rm -f conftest.$ac_ext
4116 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4117 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4118 if test "$ac_cv_sys_largefile_CC" != no; then
4119 CC=$CC$ac_cv_sys_largefile_CC
4122 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4123 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4124 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 ac_cv_sys_file_offset_bits=no
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <sys/types.h>
4136 /* Check that off_t can represent 2**63 - 1 correctly.
4137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4138 since some C++ compilers masquerading as C compilers
4139 incorrectly reject 9223372036854775807. */
4140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4142 && LARGE_OFF_T % 2147483647 == 1)
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4161 grep -v '^ *+' conftest.er1 >conftest.err
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_try") 2>&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_try") 2>&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201 #define _FILE_OFFSET_BITS 64
4202 #include <sys/types.h>
4203 /* Check that off_t can represent 2**63 - 1 correctly.
4204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4205 since some C++ compilers masquerading as C compilers
4206 incorrectly reject 9223372036854775807. */
4207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4209 && LARGE_OFF_T % 2147483647 == 1)
4219 rm -f conftest.$ac_objext
4220 if { (ac_try="$ac_compile"
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_compile") 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4234 { (case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_try") 2>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_try") 2>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_sys_file_offset_bits=64; break
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4266 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4267 if test "$ac_cv_sys_file_offset_bits" != no; then
4269 cat >>confdefs.h <<_ACEOF
4270 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4275 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4276 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4277 if test "${ac_cv_sys_large_files+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 ac_cv_sys_large_files=no
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 /* Check that off_t can represent 2**63 - 1 correctly.
4290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4291 since some C++ compilers masquerading as C compilers
4292 incorrectly reject 9223372036854775807. */
4293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4295 && LARGE_OFF_T % 2147483647 == 1)
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_compile") 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
4319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try='test -s conftest.$ac_objext'
4330 { (case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_try") 2>&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 cat >conftest.$ac_ext <<_ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 #define _LARGE_FILES 1
4355 #include <sys/types.h>
4356 /* Check that off_t can represent 2**63 - 1 correctly.
4357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4358 since some C++ compilers masquerading as C compilers
4359 incorrectly reject 9223372036854775807. */
4360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4362 && LARGE_OFF_T % 2147483647 == 1)
4372 rm -f conftest.$ac_objext
4373 if { (ac_try="$ac_compile"
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_compile") 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4387 { (case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_try") 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; } &&
4396 { ac_try='test -s conftest.$ac_objext'
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_try") 2>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_sys_large_files=1; break
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4419 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4420 if test "$ac_cv_sys_large_files" != no; then
4422 cat >>confdefs.h <<_ACEOF
4423 #define _LARGE_FILES $ac_cv_sys_large_files
4431 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4432 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4433 if test "${ac_cv_header_stdc+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4464 grep -v '^ *+' conftest.er1 >conftest.err
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } &&
4469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470 { (case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_try") 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_header_stdc=yes
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 ac_cv_header_stdc=no
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 if test $ac_cv_header_stdc = yes; then
4500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511 $EGREP "memchr" >/dev/null 2>&1; then
4514 ac_cv_header_stdc=no
4520 if test $ac_cv_header_stdc = yes; then
4521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522 cat >conftest.$ac_ext <<_ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 $EGREP "free" >/dev/null 2>&1; then
4535 ac_cv_header_stdc=no
4541 if test $ac_cv_header_stdc = yes; then
4542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543 if test "$cross_compiling" = yes; then
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4554 #if ((' ' & 0x0FF) == 0x020)
4555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4558 # define ISLOWER(c) \
4559 (('a' <= (c) && (c) <= 'i') \
4560 || ('j' <= (c) && (c) <= 'r') \
4561 || ('s' <= (c) && (c) <= 'z'))
4562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4570 for (i = 0; i < 256; i++)
4571 if (XOR (islower (i), ISLOWER (i))
4572 || toupper (i) != TOUPPER (i))
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4599 echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_cv_header_stdc=no
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4614 if test $ac_cv_header_stdc = yes; then
4616 cat >>confdefs.h <<\_ACEOF
4617 #define STDC_HEADERS 1
4622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633 inttypes.h stdint.h unistd.h
4635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4647 $ac_includes_default
4649 #include <$ac_header>
4651 rm -f conftest.$ac_objext
4652 if { (ac_try="$ac_compile"
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_compile") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4666 { (case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_try") 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681 (eval "$ac_try") 2>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 eval "$as_ac_Header=yes"
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4690 eval "$as_ac_Header=no"
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 ac_res=`eval echo '${'$as_ac_Header'}'`
4696 { echo "$as_me:$LINENO: result: $ac_res" >&5
4697 echo "${ECHO_T}$ac_res" >&6; }
4698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4699 cat >>confdefs.h <<_ACEOF
4700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4708 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4709 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4710 if test "${ac_cv_c_bigendian+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 # See if sys/param.h defines the BYTE_ORDER macro.
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 #include <sys/types.h>
4721 #include <sys/param.h>
4726 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741 (eval "$ac_compile") 2>conftest.er1
4743 grep -v '^ *+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4749 { (case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_try") 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; } &&
4758 { ac_try='test -s conftest.$ac_objext'
4759 { (case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_try") 2>&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 # It does; now see whether it defined to BIG_ENDIAN or not.
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <sys/types.h>
4776 #include <sys/param.h>
4781 #if BYTE_ORDER != BIG_ENDIAN
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4804 { (case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_try") 2>&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; } &&
4813 { ac_try='test -s conftest.$ac_objext'
4814 { (case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_try") 2>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 ac_cv_c_bigendian=yes
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 ac_cv_c_bigendian=no
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4836 # It does not; compile a test program.
4837 if test "$cross_compiling" = yes; then
4838 # try to guess the endianness by grepping values into an object file
4839 ac_cv_c_bigendian=unknown
4840 cat >conftest.$ac_ext <<_ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4847 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4848 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4849 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4850 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4851 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4855 _ascii (); _ebcdic ();
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_try") 2>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_try") 2>&5
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4895 ac_cv_c_bigendian=yes
4897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4898 if test "$ac_cv_c_bigendian" = unknown; then
4899 ac_cv_c_bigendian=no
4901 # finding both strings is unlikely to happen, but who knows?
4902 ac_cv_c_bigendian=unknown
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 $ac_includes_default
4925 /* Are we little or big endian? From Harbison&Steele. */
4929 char c[sizeof (long int)];
4932 return u.c[sizeof (long int) - 1] == 1;
4938 rm -f conftest$ac_exeext
4939 if { (ac_try="$ac_link"
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_link") 2>&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4949 { (case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_try") 2>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; }; then
4958 ac_cv_c_bigendian=no
4960 echo "$as_me: program exited with status $ac_status" >&5
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4965 ac_cv_c_bigendian=yes
4967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4976 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4977 case $ac_cv_c_bigendian in
4980 cat >>confdefs.h <<\_ACEOF
4981 #define WORDS_BIGENDIAN 1
4987 { { echo "$as_me:$LINENO: error: unknown endianness
4988 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4989 echo "$as_me: error: unknown endianness
4990 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4991 { (exit 1); exit 1; }; } ;;
4995 # Extract the first word of "gmake", so it can be a program name with args.
4996 set dummy gmake; ac_word=$2
4997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4999 if test "${ac_cv_prog_GMAKE+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 if test -n "$GMAKE"; then
5003 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_GMAKE="yes"
5013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
5023 GMAKE=$ac_cv_prog_GMAKE
5024 if test -n "$GMAKE"; then
5025 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5026 echo "${ECHO_T}$GMAKE" >&6; }
5028 { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5033 if test $GMAKE = no; then
5034 # Extract the first word of "make", so it can be a program name with args.
5035 set dummy make; ac_word=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_path_MAKE+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5065 MAKE=$ac_cv_path_MAKE
5066 if test -n "$MAKE"; then
5067 { echo "$as_me:$LINENO: result: $MAKE" >&5
5068 echo "${ECHO_T}$MAKE" >&6; }
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5076 # Extract the first word of "gmake", so it can be a program name with args.
5077 set dummy gmake; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_path_MAKE+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5107 MAKE=$ac_cv_path_MAKE
5108 if test -n "$MAKE"; then
5109 { echo "$as_me:$LINENO: result: $MAKE" >&5
5110 echo "${ECHO_T}$MAKE" >&6; }
5112 { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5118 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5119 if test -z "$makever"; then
5120 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
5121 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
5122 echo "$as_me: error: GNU Make is not installed. Please download and install it
5123 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
5124 { (exit 1); exit 1; }; }
5127 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
5128 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
5129 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 ac_check_lib_save_LIBS=$LIBS
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5141 /* Override any GCC internal prototype to avoid an error.
5142 Use char because int might match the return type of a GCC
5143 builtin and then its argument prototype would still apply. */
5151 return lt_dlinit ();
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (ac_try="$ac_link"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_link") 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } &&
5170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5171 { (case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_try") 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; } &&
5180 { ac_try='test -s conftest$ac_exeext'
5181 { (case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_try") 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 ac_cv_lib_ltdl_lt_dlinit=yes
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 ac_cv_lib_ltdl_lt_dlinit=no
5198 rm -f core conftest.err conftest.$ac_objext \
5199 conftest$ac_exeext conftest.$ac_ext
5200 LIBS=$ac_check_lib_save_LIBS
5202 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5203 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5204 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
5205 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5207 if test x"$enable_ltdl_install" = xno; then
5208 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
5209 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5211 enable_ltdl_install=yes
5216 if test x"$enable_ltdl_install" = x"yes"; then
5217 ac_configure_args="$ac_configure_args --enable-ltdl-install"
5218 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5219 LTDLINCL='-I${top_srcdir}/''libltdl'
5221 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5225 # For backwards non-gettext consistent compatibility...
5229 if test x"$enable_ltdl_install" = x"yes"; then
5230 LTDL_SUBDIRS=libltdl
5234 # Check whether --enable-shared was given.
5235 if test "${enable_shared+set}" = set; then
5236 enableval=$enable_shared; p=${PACKAGE-default}
5238 yes) enable_shared=yes ;;
5239 no) enable_shared=no ;;
5242 # Look at the argument we got. We use all the common list separators.
5243 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5244 for pkg in $enableval; do
5246 if test "X$pkg" = "X$p"; then
5258 # Check whether --enable-static was given.
5259 if test "${enable_static+set}" = set; then
5260 enableval=$enable_static; p=${PACKAGE-default}
5262 yes) enable_static=yes ;;
5263 no) enable_static=no ;;
5266 # Look at the argument we got. We use all the common list separators.
5267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5268 for pkg in $enableval; do
5270 if test "X$pkg" = "X$p"; then
5282 # Check whether --enable-fast-install was given.
5283 if test "${enable_fast_install+set}" = set; then
5284 enableval=$enable_fast_install; p=${PACKAGE-default}
5286 yes) enable_fast_install=yes ;;
5287 no) enable_fast_install=no ;;
5289 enable_fast_install=no
5290 # Look at the argument we got. We use all the common list separators.
5291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5292 for pkg in $enableval; do
5294 if test "X$pkg" = "X$p"; then
5295 enable_fast_install=yes
5302 enable_fast_install=yes
5307 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5308 if test -f "$ac_dir/install-sh"; then
5310 ac_install_sh="$ac_aux_dir/install-sh -c"
5312 elif test -f "$ac_dir/install.sh"; then
5314 ac_install_sh="$ac_aux_dir/install.sh -c"
5316 elif test -f "$ac_dir/shtool"; then
5318 ac_install_sh="$ac_aux_dir/shtool install -c"
5322 if test -z "$ac_aux_dir"; then
5323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5324 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5325 { (exit 1); exit 1; }; }
5328 # These three variables are undocumented and unsupported,
5329 # and are intended to be withdrawn in a future Autoconf release.
5330 # They can cause serious problems if a builder's source tree is in a directory
5331 # whose full name contains unusual characters.
5332 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5333 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5334 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5337 # Make sure we can run config.sub.
5338 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5339 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5340 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5341 { (exit 1); exit 1; }; }
5343 { echo "$as_me:$LINENO: checking build system type" >&5
5344 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5345 if test "${ac_cv_build+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_build_alias=$build_alias
5349 test "x$ac_build_alias" = x &&
5350 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5351 test "x$ac_build_alias" = x &&
5352 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5353 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5354 { (exit 1); exit 1; }; }
5355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5356 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5357 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5358 { (exit 1); exit 1; }; }
5361 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5362 echo "${ECHO_T}$ac_cv_build" >&6; }
5363 case $ac_cv_build in
5365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5366 echo "$as_me: error: invalid value of canonical build" >&2;}
5367 { (exit 1); exit 1; }; };;
5370 ac_save_IFS=$IFS; IFS='-'
5376 # Remember, the first character of IFS is used to create $*,
5377 # except with old shells:
5380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5383 { echo "$as_me:$LINENO: checking host system type" >&5
5384 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5385 if test "${ac_cv_host+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 if test "x$host_alias" = x; then
5389 ac_cv_host=$ac_cv_build
5391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5392 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5393 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5394 { (exit 1); exit 1; }; }
5398 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5399 echo "${ECHO_T}$ac_cv_host" >&6; }
5402 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5403 echo "$as_me: error: invalid value of canonical host" >&2;}
5404 { (exit 1); exit 1; }; };;
5407 ac_save_IFS=$IFS; IFS='-'
5413 # Remember, the first character of IFS is used to create $*,
5414 # except with old shells:
5417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5420 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5421 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5422 if test "${lt_cv_path_SED+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 # Loop through the user's path and test for sed and gsed.
5426 # Then use that list of sed's as ones to test for truncation.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for lt_ac_prog in sed gsed; do
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5435 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5442 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5443 # along with /bin/sed that truncates output.
5444 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5445 test ! -f $lt_ac_sed && continue
5446 cat /dev/null > conftest.in
5448 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5449 # Check for GNU sed and select it if it is found.
5450 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5451 lt_cv_path_SED=$lt_ac_sed
5455 cat conftest.in conftest.in >conftest.tmp
5456 mv conftest.tmp conftest.in
5457 cp conftest.in conftest.nl
5459 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5460 cmp -s conftest.out conftest.nl || break
5461 # 10000 chars as input seems more than enough
5462 test $lt_ac_count -gt 10 && break
5463 lt_ac_count=`expr $lt_ac_count + 1`
5464 if test $lt_ac_count -gt $lt_ac_max; then
5465 lt_ac_max=$lt_ac_count
5466 lt_cv_path_SED=$lt_ac_sed
5474 { echo "$as_me:$LINENO: result: $SED" >&5
5475 echo "${ECHO_T}$SED" >&6; }
5478 # Check whether --with-gnu-ld was given.
5479 if test "${with_gnu_ld+set}" = set; then
5480 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5486 if test "$GCC" = yes; then
5487 # Check if gcc -print-prog-name=ld gives a path.
5488 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5489 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5492 # gcc leaves a trailing carriage return which upsets mingw
5493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5498 # Accept absolute paths.
5500 re_direlt='/[^/][^/]*/\.\./'
5501 # Canonicalize the pathname of ld
5502 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5503 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5504 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5506 test -z "$LD" && LD="$ac_prog"
5509 # If it fails, then pretend we aren't using GCC.
5513 # If it is relative, then search for the first ld in PATH.
5517 elif test "$with_gnu_ld" = yes; then
5518 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5519 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5521 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5522 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5524 if test "${lt_cv_path_LD+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 if test -z "$LD"; then
5528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5529 for ac_dir in $PATH; do
5531 test -z "$ac_dir" && ac_dir=.
5532 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5533 lt_cv_path_LD="$ac_dir/$ac_prog"
5534 # Check to see if the program is GNU ld. I'd rather use --version,
5535 # but apparently some variants of GNU ld only accept -v.
5536 # Break only if it was the GNU/non-GNU ld that we prefer.
5537 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5538 *GNU* | *'with BFD'*)
5539 test "$with_gnu_ld" != no && break
5542 test "$with_gnu_ld" != yes && break
5549 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5554 if test -n "$LD"; then
5555 { echo "$as_me:$LINENO: result: $LD" >&5
5556 echo "${ECHO_T}$LD" >&6; }
5558 { echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6; }
5561 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5562 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5563 { (exit 1); exit 1; }; }
5564 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5565 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5566 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5570 case `$LD -v 2>&1 </dev/null` in
5571 *GNU* | *'with BFD'*)
5572 lt_cv_prog_gnu_ld=yes
5575 lt_cv_prog_gnu_ld=no
5579 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5580 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5581 with_gnu_ld=$lt_cv_prog_gnu_ld
5584 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5585 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5586 if test "${lt_cv_ld_reload_flag+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 lt_cv_ld_reload_flag='-r'
5591 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5592 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5593 reload_flag=$lt_cv_ld_reload_flag
5594 case $reload_flag in
5596 *) reload_flag=" $reload_flag" ;;
5598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5601 if test "$GCC" = yes; then
5602 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5604 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5609 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5610 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5611 if test "${lt_cv_path_NM+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 if test -n "$NM"; then
5615 # Let the user override the test.
5618 lt_nm_to_check="${ac_tool_prefix}nm"
5619 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5620 lt_nm_to_check="$lt_nm_to_check nm"
5622 for lt_tmp_nm in $lt_nm_to_check; do
5623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5624 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5626 test -z "$ac_dir" && ac_dir=.
5627 tmp_nm="$ac_dir/$lt_tmp_nm"
5628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5629 # Check to see if the nm accepts a BSD-compat flag.
5630 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5631 # nm: unknown option "B" ignored
5632 # Tru64's nm complains that /dev/null is an invalid object file
5633 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5634 */dev/null* | *'Invalid file or object type'*)
5635 lt_cv_path_NM="$tmp_nm -B"
5639 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5641 lt_cv_path_NM="$tmp_nm -p"
5645 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5646 continue # so that we can try to find one that supports BSD flags
5655 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5658 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5659 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5662 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5663 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5665 if test "$LN_S" = "ln -s"; then
5666 { echo "$as_me:$LINENO: result: yes" >&5
5667 echo "${ECHO_T}yes" >&6; }
5669 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5670 echo "${ECHO_T}no, using $LN_S" >&6; }
5673 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5674 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5675 if test "${lt_cv_deplibs_check_method+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 lt_cv_file_magic_cmd='$MAGIC_CMD'
5679 lt_cv_file_magic_test_file=
5680 lt_cv_deplibs_check_method='unknown'
5681 # Need to set the preceding variable on all platforms that support
5682 # interlibrary dependencies.
5683 # 'none' -- dependencies not supported.
5684 # `unknown' -- same as none, but documents that we really don't know.
5685 # 'pass_all' -- all dependencies passed with no checks.
5686 # 'test_compile' -- check by making test program.
5687 # 'file_magic [[regex]]' -- check by looking for files in library path
5688 # which responds to the $file_magic_cmd with a given extended regex.
5689 # If you have `file' or equivalent on your system and you're not sure
5690 # whether `pass_all' will *always* work, you probably want this one.
5694 lt_cv_deplibs_check_method=pass_all
5698 lt_cv_deplibs_check_method=pass_all
5702 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5703 lt_cv_file_magic_cmd='/usr/bin/file -L'
5704 lt_cv_file_magic_test_file=/shlib/libc.so
5708 # func_win32_libid is a shell function defined in ltmain.sh
5709 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5710 lt_cv_file_magic_cmd='func_win32_libid'
5714 # Base MSYS/MinGW do not provide the 'file' command needed by
5715 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5716 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5717 lt_cv_file_magic_cmd='$OBJDUMP -f'
5720 darwin* | rhapsody*)
5721 lt_cv_deplibs_check_method=pass_all
5724 freebsd* | kfreebsd*-gnu | dragonfly*)
5725 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5728 # Not sure whether the presence of OpenBSD here was a mistake.
5729 # Let's accept both of them until this is cleared up.
5730 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5731 lt_cv_file_magic_cmd=/usr/bin/file
5732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5736 lt_cv_deplibs_check_method=pass_all
5741 lt_cv_deplibs_check_method=pass_all
5744 hpux10.20* | hpux11*)
5745 lt_cv_file_magic_cmd=/usr/bin/file
5748 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5749 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5752 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]'
5753 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5757 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5763 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5767 irix5* | irix6* | nonstopux*)
5769 *-32|*"-32 ") libmagic=32-bit;;
5770 *-n32|*"-n32 ") libmagic=N32;;
5771 *-64|*"-64 ") libmagic=64-bit;;
5772 *) libmagic=never-match;;
5774 lt_cv_deplibs_check_method=pass_all
5777 # This must be Linux ELF.
5779 lt_cv_deplibs_check_method=pass_all
5783 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5792 lt_cv_file_magic_cmd=/usr/bin/file
5793 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5797 lt_cv_deplibs_check_method=unknown
5801 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5808 osf3* | osf4* | osf5*)
5809 lt_cv_deplibs_check_method=pass_all
5813 lt_cv_deplibs_check_method=pass_all
5817 case $host_vendor in
5819 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]'
5820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5823 lt_cv_deplibs_check_method=pass_all
5826 lt_cv_file_magic_cmd='/bin/file'
5827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5830 lt_cv_file_magic_cmd='/bin/file'
5831 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5832 lt_cv_file_magic_test_file=/lib/libc.so
5835 lt_cv_deplibs_check_method=pass_all
5838 lt_cv_deplibs_check_method=pass_all
5843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5844 lt_cv_deplibs_check_method=pass_all
5849 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5850 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5851 file_magic_cmd=$lt_cv_file_magic_cmd
5852 deplibs_check_method=$lt_cv_deplibs_check_method
5853 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5858 # If no C compiler was specified, use CC.
5861 # If no C compiler flags were specified, use CFLAGS.
5862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5864 # Allow CC to be a program name with arguments.
5867 # Check whether --enable-libtool-lock was given.
5868 if test "${enable_libtool_lock+set}" = set; then
5869 enableval=$enable_libtool_lock;
5872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5874 # Some flags need to be propagated to the compiler or linker for good
5878 # Find out which ABI we are using.
5879 echo 'int i;' > conftest.$ac_ext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; then
5885 case `/usr/bin/file conftest.$ac_objext` in
5897 # Find out which ABI we are using.
5898 echo '#line 5898 "configure"' > conftest.$ac_ext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; then
5904 if test "$lt_cv_prog_gnu_ld" = yes; then
5905 case `/usr/bin/file conftest.$ac_objext` in
5907 LD="${LD-ld} -melf32bsmip"
5910 LD="${LD-ld} -melf32bmipn32"
5913 LD="${LD-ld} -melf64bmip"
5917 case `/usr/bin/file conftest.$ac_objext` in
5933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5934 # Find out which ABI we are using.
5935 echo 'int i;' > conftest.$ac_ext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; then
5941 case `/usr/bin/file conftest.o` in
5945 LD="${LD-ld} -m elf_i386"
5947 ppc64-*linux*|powerpc64-*linux*)
5948 LD="${LD-ld} -m elf32ppclinux"
5951 LD="${LD-ld} -m elf_s390"
5954 LD="${LD-ld} -m elf32_sparc"
5961 LD="${LD-ld} -m elf_x86_64"
5963 ppc*-*linux*|powerpc*-*linux*)
5964 LD="${LD-ld} -m elf64ppc"
5967 LD="${LD-ld} -m elf64_s390"
5970 LD="${LD-ld} -m elf64_sparc"
5980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5981 SAVE_CFLAGS="$CFLAGS"
5982 CFLAGS="$CFLAGS -belf"
5983 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5985 if test "${lt_cv_cc_needs_belf+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6009 rm -f conftest.$ac_objext conftest$ac_exeext
6010 if { (ac_try="$ac_link"
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_link") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest$ac_exeext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 lt_cv_cc_needs_belf=yes
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6048 lt_cv_cc_needs_belf=no
6051 rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6054 ac_cpp='$CPP $CPPFLAGS'
6055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6061 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6062 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6063 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6064 CFLAGS="$SAVE_CFLAGS"
6068 # Find out which ABI we are using.
6069 echo 'int i;' > conftest.$ac_ext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; then
6075 case `/usr/bin/file conftest.o` in
6077 case $lt_cv_prog_gnu_ld in
6078 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6079 *) LD="${LD-ld} -64" ;;
6090 need_locks="$enable_libtool_lock"
6094 for ac_header in dlfcn.h
6096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 ac_res=`eval echo '${'$as_ac_Header'}'`
6104 { echo "$as_me:$LINENO: result: $ac_res" >&5
6105 echo "${ECHO_T}$ac_res" >&6; }
6107 # Is the header compilable?
6108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 $ac_includes_default
6117 #include <$ac_header>
6119 rm -f conftest.$ac_objext
6120 if { (ac_try="$ac_compile"
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6128 grep -v '^ *+' conftest.er1 >conftest.err
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6134 { (case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_try") 2>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_header_compiler=yes
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_header_compiler=no
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6163 echo "${ECHO_T}$ac_header_compiler" >&6; }
6165 # Is the header present?
6166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <$ac_header>
6176 if { (ac_try="$ac_cpp conftest.$ac_ext"
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_c_preproc_warn_flag
6191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6198 if test -z "$ac_cpp_err"; then
6199 ac_header_preproc=yes
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ac_header_preproc=no
6207 rm -f conftest.err conftest.$ac_ext
6208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209 echo "${ECHO_T}$ac_header_preproc" >&6; }
6211 # So? What about this header?
6212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6218 ac_header_preproc=yes
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 eval "$as_ac_Header=\$ac_header_preproc"
6243 ac_res=`eval echo '${'$as_ac_Header'}'`
6244 { echo "$as_me:$LINENO: result: $ac_res" >&5
6245 echo "${ECHO_T}$ac_res" >&6; }
6248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6259 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6260 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6261 (test "X$CXX" != "Xg++"))) ; then
6263 ac_cpp='$CXXCPP $CPPFLAGS'
6264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6267 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6268 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6269 if test -z "$CXXCPP"; then
6270 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 # Double quotes because CXXCPP needs to be expanded
6274 for CXXCPP in "$CXX -E" "/lib/cpp"
6277 for ac_cxx_preproc_warn_flag in '' yes
6279 # Use a header file that comes with gcc, so configuring glibc
6280 # with a fresh cross-compiler works.
6281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282 # <limits.h> exists even on freestanding compilers.
6283 # On the NeXT, cc -E runs the code through the compiler's parser,
6284 # not just through cpp. "Syntax error" is here to catch this case.
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6292 # include <limits.h>
6294 # include <assert.h>
6298 if { (ac_try="$ac_cpp conftest.$ac_ext"
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } >/dev/null; then
6311 if test -s conftest.err; then
6312 ac_cpp_err=$ac_cxx_preproc_warn_flag
6313 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6320 if test -z "$ac_cpp_err"; then
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 # Broken: fails on valid input.
6330 rm -f conftest.err conftest.$ac_ext
6332 # OK, works on sane cases. Now check whether nonexistent headers
6333 # can be detected and how.
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <ac_nonexistent.h>
6342 if { (ac_try="$ac_cpp conftest.$ac_ext"
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } >/dev/null; then
6355 if test -s conftest.err; then
6356 ac_cpp_err=$ac_cxx_preproc_warn_flag
6357 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6364 if test -z "$ac_cpp_err"; then
6365 # Broken: success on invalid input.
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6371 # Passes both tests.
6376 rm -f conftest.err conftest.$ac_ext
6379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6380 rm -f conftest.err conftest.$ac_ext
6381 if $ac_preproc_ok; then
6386 ac_cv_prog_CXXCPP=$CXXCPP
6389 CXXCPP=$ac_cv_prog_CXXCPP
6391 ac_cv_prog_CXXCPP=$CXXCPP
6393 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6394 echo "${ECHO_T}$CXXCPP" >&6; }
6396 for ac_cxx_preproc_warn_flag in '' yes
6398 # Use a header file that comes with gcc, so configuring glibc
6399 # with a fresh cross-compiler works.
6400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6401 # <limits.h> exists even on freestanding compilers.
6402 # On the NeXT, cc -E runs the code through the compiler's parser,
6403 # not just through cpp. "Syntax error" is here to catch this case.
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6411 # include <limits.h>
6413 # include <assert.h>
6417 if { (ac_try="$ac_cpp conftest.$ac_ext"
6419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420 *) ac_try_echo=$ac_try;;
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6425 grep -v '^ *+' conftest.er1 >conftest.err
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } >/dev/null; then
6430 if test -s conftest.err; then
6431 ac_cpp_err=$ac_cxx_preproc_warn_flag
6432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6439 if test -z "$ac_cpp_err"; then
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 # Broken: fails on valid input.
6449 rm -f conftest.err conftest.$ac_ext
6451 # OK, works on sane cases. Now check whether nonexistent headers
6452 # can be detected and how.
6453 cat >conftest.$ac_ext <<_ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 #include <ac_nonexistent.h>
6461 if { (ac_try="$ac_cpp conftest.$ac_ext"
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6469 grep -v '^ *+' conftest.er1 >conftest.err
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_cxx_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6483 if test -z "$ac_cpp_err"; then
6484 # Broken: success on invalid input.
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 # Passes both tests.
6495 rm -f conftest.err conftest.$ac_ext
6498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6499 rm -f conftest.err conftest.$ac_ext
6500 if $ac_preproc_ok; then
6503 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6504 See \`config.log' for more details." >&5
6505 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6506 See \`config.log' for more details." >&2;}
6507 { (exit 1); exit 1; }; }
6511 ac_cpp='$CXXCPP $CPPFLAGS'
6512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6520 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6521 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6523 if test -n "$ac_tool_prefix"; then
6524 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
6526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_F77+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 if test -n "$F77"; then
6534 ac_cv_prog_F77="$F77" # Let the user override the test.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 if test -n "$F77"; then
6555 { echo "$as_me:$LINENO: result: $F77" >&5
6556 echo "${ECHO_T}$F77" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6563 test -n "$F77" && break
6566 if test -z "$F77"; then
6568 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
6570 # Extract the first word of "$ac_prog", so it can be a program name with args.
6571 set dummy $ac_prog; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$ac_ct_F77"; then
6578 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_F77="$ac_prog"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6598 if test -n "$ac_ct_F77"; then
6599 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6600 echo "${ECHO_T}$ac_ct_F77" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6607 test -n "$ac_ct_F77" && break
6610 if test "x$ac_ct_F77" = x; then
6613 case $cross_compiling:$ac_tool_warned in
6615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet. If you think this
6617 configuration is useful to you, please write to autoconf@gnu.org." >&5
6618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6619 whose name does not start with the host triplet. If you think this
6620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6621 ac_tool_warned=yes ;;
6628 # Provide some information about the compiler.
6629 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6630 ac_compiler=`set X $ac_compile; echo $2`
6631 { (ac_try="$ac_compiler --version >&5"
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_compiler --version >&5") 2>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }
6641 { (ac_try="$ac_compiler -v >&5"
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compiler -v >&5") 2>&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }
6651 { (ac_try="$ac_compiler -V >&5"
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657 (eval "$ac_compiler -V >&5") 2>&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }
6663 # If we don't use `.F' as extension, the preprocessor is not run on the
6664 # input file. (Note that this only needs to work for GNU compilers.)
6667 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6668 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6669 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 cat >conftest.$ac_ext <<_ACEOF
6680 rm -f conftest.$ac_objext
6681 if { (ac_try="$ac_compile"
6683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_compile") 2>conftest.er1
6689 grep -v '^ *+' conftest.er1 >conftest.err
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6695 { (case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_try") 2>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_try") 2>&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6726 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6727 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6729 ac_test_FFLAGS=${FFLAGS+set}
6730 ac_save_FFLAGS=$FFLAGS
6732 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6733 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_f77_g+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 cat >conftest.$ac_ext <<_ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750 (eval "$ac_compile") 2>conftest.er1
6752 grep -v '^ *+' conftest.er1 >conftest.err
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6758 { (case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_try") 2>&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest.$ac_objext'
6768 { (case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_try") 2>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_cv_prog_f77_g=yes
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6789 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6790 if test "$ac_test_FFLAGS" = set; then
6791 FFLAGS=$ac_save_FFLAGS
6792 elif test $ac_cv_prog_f77_g = yes; then
6793 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6799 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6806 G77=`test $ac_compiler_gnu = yes && echo yes`
6808 ac_cpp='$CPP $CPPFLAGS'
6809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6817 # find the maximum length of command line arguments
6818 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6819 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6820 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 # On DJGPP, this test can blow up pretty badly due to problems in libc
6829 # (any single argument exceeding 2000 bytes causes a buffer overrun
6830 # during glob expansion). Even if it were fixed, the result of this
6831 # check would be larger than it should be.
6832 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6836 # Under GNU Hurd, this test is not required because there is
6837 # no limit to the length of command line arguments.
6838 # Libtool will interpret -1 as no limit whatsoever
6839 lt_cv_sys_max_cmd_len=-1;
6843 # On Win9x/ME, this test blows up -- it succeeds, but takes
6844 # about 5 minutes as the teststring grows exponentially.
6845 # Worse, since 9x/ME are not pre-emptively multitasking,
6846 # you end up with a "frozen" computer, even though with patience
6847 # the test eventually succeeds (with a max line length of 256k).
6848 # Instead, let's just punt: use the minimum linelength reported by
6849 # all of the supported platforms: 8192 (on NT/2K/XP).
6850 lt_cv_sys_max_cmd_len=8192;
6854 # On AmigaOS with pdksh, this test takes hours, literally.
6855 # So we just punt and use a minimum line length of 8192.
6856 lt_cv_sys_max_cmd_len=8192;
6859 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6860 # This has been around since 386BSD, at least. Likely further.
6861 if test -x /sbin/sysctl; then
6862 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6863 elif test -x /usr/sbin/sysctl; then
6864 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6866 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6868 # And add a safety zone
6869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6874 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6875 lt_cv_sys_max_cmd_len=196608
6879 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6880 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6881 # nice to cause kernel panics so lets avoid the loop below.
6882 # First set a reasonable default.
6883 lt_cv_sys_max_cmd_len=16384
6885 if test -x /sbin/sysconfig; then
6886 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6887 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6892 lt_cv_sys_max_cmd_len=102400
6894 sysv5* | sco5v6* | sysv4.2uw2*)
6895 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6896 if test -n "$kargmax"; then
6897 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6899 lt_cv_sys_max_cmd_len=32768
6903 # If test is not a shell built-in, we'll probably end up computing a
6904 # maximum length that is only half of the actual maximum length, but
6906 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6907 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6908 = "XX$teststring") >/dev/null 2>&1 &&
6909 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6910 lt_cv_sys_max_cmd_len=$new_result &&
6911 test $i != 17 # 1/2 MB should be enough
6914 teststring=$teststring$teststring
6917 # Add a significant safety factor because C++ compilers can tack on massive
6918 # amounts of additional arguments before passing them to the linker.
6919 # It appears as though 1/2 is a usable value.
6920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6926 if test -n $lt_cv_sys_max_cmd_len ; then
6927 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6928 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6930 { echo "$as_me:$LINENO: result: none" >&5
6931 echo "${ECHO_T}none" >&6; }
6937 # Check for command to grab the raw symbol name followed by C symbol from nm.
6938 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6939 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6940 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 # These are sane defaults that work on at least a few old systems.
6945 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6947 # Character class describing NM global symbol codes.
6948 symcode='[BCDEGRST]'
6950 # Regexp to match symbols that can be accessed directly from C.
6951 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6953 # Transform an extracted symbol line into a proper C declaration
6954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6956 # Transform an extracted symbol line into symbol name and symbol address
6957 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'"
6959 # Define system-specific variables.
6964 cygwin* | mingw* | pw32*)
6965 symcode='[ABCDGISTW]'
6967 hpux*) # Its linker distinguishes data from code symbols
6968 if test "$host_cpu" = ia64; then
6969 symcode='[ABCDEGRST]'
6971 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6972 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'"
6975 if test "$host_cpu" = ia64; then
6976 symcode='[ABCDGIRSTW]'
6977 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6978 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'"
6982 symcode='[BCDEGRST]'
6985 symcode='[BCDEGQRST]'
6996 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7004 # Handle CRLF in mingw tool chain
7008 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7012 # If we're using GNU nm, then use its standard symbol codes.
7013 case `$NM -V 2>&1` in
7014 *GNU* | *'with BFD'*)
7015 symcode='[ABCDGIRSTW]' ;;
7018 # Try without a prefix undercore, then with it.
7019 for ac_symprfx in "" "_"; do
7021 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7022 symxfrm="\\1 $ac_symprfx\\2 \\2"
7024 # Write the raw and C identifiers.
7025 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7027 # Check to see that the pipe works correctly.
7031 cat > conftest.$ac_ext <<EOF
7036 void nm_test_func(){}
7040 int main(){nm_test_var='a';nm_test_func();return(0);}
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; then
7048 # Now try to grab the symbols.
7050 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7051 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && test -s "$nlist"; then
7055 # Try sorting and uniquifying the output.
7056 if sort "$nlist" | uniq > "$nlist"T; then
7057 mv -f "$nlist"T "$nlist"
7062 # Make sure that we snagged all the symbols we need.
7063 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7064 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7065 cat <<EOF > conftest.$ac_ext
7071 # Now generate the symbol file.
7072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7074 cat <<EOF >> conftest.$ac_ext
7075 #if defined (__STDC__) && __STDC__
7076 # define lt_ptr_t void *
7078 # define lt_ptr_t char *
7082 /* The mapping between symbol names and symbols. */
7087 lt_preloaded_symbols[] =
7090 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7091 cat <<\EOF >> conftest.$ac_ext
7099 # Now try linking the two files.
7100 mv conftest.$ac_objext conftstm.$ac_objext
7101 lt_save_LIBS="$LIBS"
7102 lt_save_CFLAGS="$CFLAGS"
7103 LIBS="conftstm.$ac_objext"
7104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106 (eval $ac_link) 2>&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7112 LIBS="$lt_save_LIBS"
7113 CFLAGS="$lt_save_CFLAGS"
7115 echo "cannot find nm_test_func in $nlist" >&5
7118 echo "cannot find nm_test_var in $nlist" >&5
7121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7124 echo "$progname: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7127 rm -f conftest* conftst*
7129 # Do not use the global_symbol_pipe unless it works.
7130 if test "$pipe_works" = yes; then
7133 lt_cv_sys_global_symbol_pipe=
7139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7140 lt_cv_sys_global_symbol_to_cdecl=
7142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7143 { echo "$as_me:$LINENO: result: failed" >&5
7144 echo "${ECHO_T}failed" >&6; }
7146 { echo "$as_me:$LINENO: result: ok" >&5
7147 echo "${ECHO_T}ok" >&6; }
7150 { echo "$as_me:$LINENO: checking for objdir" >&5
7151 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7152 if test "${lt_cv_objdir+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 rm -f .libs 2>/dev/null
7156 mkdir .libs 2>/dev/null
7157 if test -d .libs; then
7160 # MS-DOS does not allow filenames that begin with a dot.
7163 rmdir .libs 2>/dev/null
7165 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7166 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7167 objdir=$lt_cv_objdir
7175 # AIX sometimes has problems with the GCC collect2 program. For some
7176 # reason, if we set the COLLECT_NAMES environment variable, the problems
7177 # vanish in a puff of smoke.
7178 if test "X${COLLECT_NAMES+set}" != Xset; then
7180 export COLLECT_NAMES
7185 # Sed substitution that helps us do robust quoting. It backslashifies
7186 # metacharacters that are still active within double-quoted strings.
7187 Xsed='sed -e 1s/^X//'
7188 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7190 # Same as above, but do not quote variable references.
7191 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7193 # Sed substitution to delay expansion of an escaped shell variable in a
7194 # double_quote_subst'ed string.
7195 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7197 # Sed substitution to avoid accidental globbing in evaled expressions
7198 no_glob_subst='s/\*/\\\*/g'
7204 default_ofile=libtool
7205 can_build_shared=yes
7207 # All known linkers require a `.a' archive for static linking (except MSVC,
7208 # which needs '.lib').
7210 ltmain="$ac_aux_dir/ltmain.sh"
7211 ofile="$default_ofile"
7212 with_gnu_ld="$lt_cv_prog_gnu_ld"
7214 if test -n "$ac_tool_prefix"; then
7215 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7216 set dummy ${ac_tool_prefix}ar; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_prog_AR+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 if test -n "$AR"; then
7223 ac_cv_prog_AR="$AR" # Let the user override the test.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_prog_AR="${ac_tool_prefix}ar"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 if test -n "$AR"; then
7244 { echo "$as_me:$LINENO: result: $AR" >&5
7245 echo "${ECHO_T}$AR" >&6; }
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7253 if test -z "$ac_cv_prog_AR"; then
7255 # Extract the first word of "ar", so it can be a program name with args.
7256 set dummy ar; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 if test -n "$ac_ct_AR"; then
7263 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_prog_ac_ct_AR="ar"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7283 if test -n "$ac_ct_AR"; then
7284 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7285 echo "${ECHO_T}$ac_ct_AR" >&6; }
7287 { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7291 if test "x$ac_ct_AR" = x; then
7294 case $cross_compiling:$ac_tool_warned in
7296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7297 whose name does not start with the host triplet. If you think this
7298 configuration is useful to you, please write to autoconf@gnu.org." >&5
7299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7300 whose name does not start with the host triplet. If you think this
7301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7302 ac_tool_warned=yes ;;
7310 if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_prog_RANLIB+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 if test -n "$RANLIB"; then
7319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 RANLIB=$ac_cv_prog_RANLIB
7339 if test -n "$RANLIB"; then
7340 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7341 echo "${ECHO_T}$RANLIB" >&6; }
7343 { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7349 if test -z "$ac_cv_prog_RANLIB"; then
7350 ac_ct_RANLIB=$RANLIB
7351 # Extract the first word of "ranlib", so it can be a program name with args.
7352 set dummy ranlib; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 if test -n "$ac_ct_RANLIB"; then
7359 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_ac_ct_RANLIB="ranlib"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7379 if test -n "$ac_ct_RANLIB"; then
7380 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7381 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7383 { echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6; }
7387 if test "x$ac_ct_RANLIB" = x; then
7390 case $cross_compiling:$ac_tool_warned in
7392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7393 whose name does not start with the host triplet. If you think this
7394 configuration is useful to you, please write to autoconf@gnu.org." >&5
7395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7396 whose name does not start with the host triplet. If you think this
7397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7398 ac_tool_warned=yes ;;
7400 RANLIB=$ac_ct_RANLIB
7403 RANLIB="$ac_cv_prog_RANLIB"
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}strip; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_STRIP+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 if test -n "$STRIP"; then
7415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 STRIP=$ac_cv_prog_STRIP
7435 if test -n "$STRIP"; then
7436 { echo "$as_me:$LINENO: result: $STRIP" >&5
7437 echo "${ECHO_T}$STRIP" >&6; }
7439 { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7445 if test -z "$ac_cv_prog_STRIP"; then
7447 # Extract the first word of "strip", so it can be a program name with args.
7448 set dummy strip; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 if test -n "$ac_ct_STRIP"; then
7455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_ac_ct_STRIP="strip"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7475 if test -n "$ac_ct_STRIP"; then
7476 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7477 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7479 { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7483 if test "x$ac_ct_STRIP" = x; then
7486 case $cross_compiling:$ac_tool_warned in
7488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7489 whose name does not start with the host triplet. If you think this
7490 configuration is useful to you, please write to autoconf@gnu.org." >&5
7491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7492 whose name does not start with the host triplet. If you think this
7493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7494 ac_tool_warned=yes ;;
7499 STRIP="$ac_cv_prog_STRIP"
7504 old_CFLAGS="$CFLAGS"
7506 # Set sane defaults for various variables
7507 test -z "$AR" && AR=ar
7508 test -z "$AR_FLAGS" && AR_FLAGS=cru
7509 test -z "$AS" && AS=as
7510 test -z "$CC" && CC=cc
7511 test -z "$LTCC" && LTCC=$CC
7512 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7513 test -z "$DLLTOOL" && DLLTOOL=dlltool
7514 test -z "$LD" && LD=ld
7515 test -z "$LN_S" && LN_S="ln -s"
7516 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7517 test -z "$NM" && NM=nm
7518 test -z "$SED" && SED=sed
7519 test -z "$OBJDUMP" && OBJDUMP=objdump
7520 test -z "$RANLIB" && RANLIB=:
7521 test -z "$STRIP" && STRIP=:
7522 test -z "$ac_objext" && ac_objext=o
7524 # Determine commands to create old-style static archives.
7525 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7526 old_postinstall_cmds='chmod 644 $oldlib'
7527 old_postuninstall_cmds=
7529 if test -n "$RANLIB"; then
7532 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7535 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7538 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7541 for cc_temp in $compiler""; do
7543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7552 # Only perform the check for file, if the check method requires it
7553 case $deplibs_check_method in
7555 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7556 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7557 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7558 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7566 lt_save_MAGIC_CMD="$MAGIC_CMD"
7567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7569 for ac_dir in $ac_dummy; do
7571 test -z "$ac_dir" && ac_dir=.
7572 if test -f $ac_dir/${ac_tool_prefix}file; then
7573 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7574 if test -n "$file_magic_test_file"; then
7575 case $deplibs_check_method in
7577 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7580 $EGREP "$file_magic_regex" > /dev/null; then
7585 *** Warning: the command libtool uses to detect shared libraries,
7586 *** $file_magic_cmd, produces output that libtool cannot recognize.
7587 *** The result is that libtool may fail to recognize shared libraries
7588 *** as such. This will affect the creation of libtool libraries that
7589 *** depend on shared libraries, but programs linked with such libtool
7590 *** libraries will work regardless of this problem. Nevertheless, you
7591 *** may want to report the problem to your system manager and/or to
7592 *** bug-libtool@gnu.org
7602 MAGIC_CMD="$lt_save_MAGIC_CMD"
7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if test -n "$MAGIC_CMD"; then
7609 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7610 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7612 { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7616 if test -z "$lt_cv_path_MAGIC_CMD"; then
7617 if test -n "$ac_tool_prefix"; then
7618 { echo "$as_me:$LINENO: checking for file" >&5
7619 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7620 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7628 lt_save_MAGIC_CMD="$MAGIC_CMD"
7629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631 for ac_dir in $ac_dummy; do
7633 test -z "$ac_dir" && ac_dir=.
7634 if test -f $ac_dir/file; then
7635 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7636 if test -n "$file_magic_test_file"; then
7637 case $deplibs_check_method in
7639 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642 $EGREP "$file_magic_regex" > /dev/null; then
7647 *** Warning: the command libtool uses to detect shared libraries,
7648 *** $file_magic_cmd, produces output that libtool cannot recognize.
7649 *** The result is that libtool may fail to recognize shared libraries
7650 *** as such. This will affect the creation of libtool libraries that
7651 *** depend on shared libraries, but programs linked with such libtool
7652 *** libraries will work regardless of this problem. Nevertheless, you
7653 *** may want to report the problem to your system manager and/or to
7654 *** bug-libtool@gnu.org
7664 MAGIC_CMD="$lt_save_MAGIC_CMD"
7669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670 if test -n "$MAGIC_CMD"; then
7671 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7672 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7674 { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7690 # Check whether --enable-libtool-lock was given.
7691 if test "${enable_libtool_lock+set}" = set; then
7692 enableval=$enable_libtool_lock;
7695 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7698 # Check whether --with-pic was given.
7699 if test "${with_pic+set}" = set; then
7700 withval=$with_pic; pic_mode="$withval"
7705 test -z "$pic_mode" && pic_mode=default
7707 # Use C for the default configuration in the libtool script
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717 # Source file extension for C test sources.
7720 # Object file extension for compiled C test sources.
7724 # Code to be used in simple compile tests
7725 lt_simple_compile_test_code="int some_variable = 0;\n"
7727 # Code to be used in simple link tests
7728 lt_simple_link_test_code='int main(){return(0);}\n'
7731 # If no C compiler was specified, use CC.
7734 # If no C compiler flags were specified, use CFLAGS.
7735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7737 # Allow CC to be a program name with arguments.
7741 # save warnings/boilerplate of simple test code
7742 ac_outfile=conftest.$ac_objext
7743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7745 _lt_compiler_boilerplate=`cat conftest.err`
7748 ac_outfile=conftest.$ac_objext
7749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7751 _lt_linker_boilerplate=`cat conftest.err`
7756 ## There is no encapsulation within the following macros, do not change
7757 ## the running order or otherwise move them around unless you know exactly
7758 ## what you are doing...
7760 lt_prog_compiler_no_builtin_flag=
7762 if test "$GCC" = yes; then
7763 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7766 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7767 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7768 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 lt_cv_prog_compiler_rtti_exceptions=no
7772 ac_outfile=conftest.$ac_objext
7773 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7774 lt_compiler_flag="-fno-rtti -fno-exceptions"
7775 # Insert the option either (1) after the last *FLAGS variable, or
7776 # (2) before a word containing "conftest.", or (3) at the end.
7777 # Note that $ac_compile itself does not contain backslashes and begins
7778 # with a dollar sign (not a hyphen), so the echo should work correctly.
7779 # The option is referenced via a variable to avoid confusing sed.
7780 lt_compile=`echo "$ac_compile" | $SED \
7781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783 -e 's:$: $lt_compiler_flag:'`
7784 (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
7785 (eval "$lt_compile" 2>conftest.err)
7787 cat conftest.err >&5
7788 echo "$as_me:7788: \$? = $ac_status" >&5
7789 if (exit $ac_status) && test -s "$ac_outfile"; then
7790 # The compiler can only warn and ignore the option if not recognized
7791 # So say no if there are warnings other than the usual output.
7792 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795 lt_cv_prog_compiler_rtti_exceptions=yes
7801 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7802 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7812 lt_prog_compiler_wl=
7813 lt_prog_compiler_pic=
7814 lt_prog_compiler_static=
7816 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7817 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7819 if test "$GCC" = yes; then
7820 lt_prog_compiler_wl='-Wl,'
7821 lt_prog_compiler_static='-static'
7825 # All AIX code is PIC.
7826 if test "$host_cpu" = ia64; then
7827 # AIX 5 now supports IA64 processor
7828 lt_prog_compiler_static='-Bstatic'
7833 # FIXME: we need at least 68020 code to build shared libraries, but
7834 # adding the `-m68020' flag to GCC prevents building anything better,
7836 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7839 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7840 # PIC is the default for these OSes.
7843 mingw* | pw32* | os2*)
7844 # This hack is so that the source file can tell whether it is being
7845 # built for inclusion in a dll (and should export symbols for example).
7846 lt_prog_compiler_pic='-DDLL_EXPORT'
7849 darwin* | rhapsody*)
7850 # PIC is the default on this platform
7851 # Common symbols not allowed in MH_DYLIB files
7852 lt_prog_compiler_pic='-fno-common'
7856 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7857 # Instead, we relocate shared libraries at runtime.
7861 # Just because we use GCC doesn't mean we suddenly get shared libraries
7862 # on systems that don't support them.
7863 lt_prog_compiler_can_build_shared=no
7868 if test -d /usr/nec; then
7869 lt_prog_compiler_pic=-Kconform_pic
7874 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7881 lt_prog_compiler_pic='-fPIC'
7887 lt_prog_compiler_pic='-fPIC'
7891 # PORTME Check for flag to pass linker flags through the system compiler.
7894 lt_prog_compiler_wl='-Wl,'
7895 if test "$host_cpu" = ia64; then
7896 # AIX 5 now supports IA64 processor
7897 lt_prog_compiler_static='-Bstatic'
7899 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7903 # PIC is the default on this platform
7904 # Common symbols not allowed in MH_DYLIB files
7905 case $cc_basename in
7907 lt_prog_compiler_pic='-qnocommon'
7908 lt_prog_compiler_wl='-Wl,'
7913 mingw* | pw32* | os2*)
7914 # This hack is so that the source file can tell whether it is being
7915 # built for inclusion in a dll (and should export symbols for example).
7916 lt_prog_compiler_pic='-DDLL_EXPORT'
7919 hpux9* | hpux10* | hpux11*)
7920 lt_prog_compiler_wl='-Wl,'
7921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7928 lt_prog_compiler_pic='+Z'
7931 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7932 lt_prog_compiler_static='${wl}-a ${wl}archive'
7935 irix5* | irix6* | nonstopux*)
7936 lt_prog_compiler_wl='-Wl,'
7937 # PIC (with -KPIC) is the default.
7938 lt_prog_compiler_static='-non_shared'
7942 lt_prog_compiler_pic='-KPIC'
7943 lt_prog_compiler_static='-Bstatic'
7947 case $cc_basename in
7949 lt_prog_compiler_wl='-Wl,'
7950 lt_prog_compiler_pic='-KPIC'
7951 lt_prog_compiler_static='-static'
7953 pgcc* | pgf77* | pgf90* | pgf95*)
7954 # Portland Group compilers (*not* the Pentium gcc compiler,
7955 # which looks to be a dead project)
7956 lt_prog_compiler_wl='-Wl,'
7957 lt_prog_compiler_pic='-fpic'
7958 lt_prog_compiler_static='-Bstatic'
7961 lt_prog_compiler_wl='-Wl,'
7962 # All Alpha code is PIC.
7963 lt_prog_compiler_static='-non_shared'
7968 osf3* | osf4* | osf5*)
7969 lt_prog_compiler_wl='-Wl,'
7970 # All OSF/1 code is PIC.
7971 lt_prog_compiler_static='-non_shared'
7975 lt_prog_compiler_pic='-KPIC'
7976 lt_prog_compiler_static='-Bstatic'
7977 case $cc_basename in
7979 lt_prog_compiler_wl='-Qoption ld ';;
7981 lt_prog_compiler_wl='-Wl,';;
7986 lt_prog_compiler_wl='-Qoption ld '
7987 lt_prog_compiler_pic='-PIC'
7988 lt_prog_compiler_static='-Bstatic'
7991 sysv4 | sysv4.2uw2* | sysv4.3*)
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='-KPIC'
7994 lt_prog_compiler_static='-Bstatic'
7998 if test -d /usr/nec ;then
7999 lt_prog_compiler_pic='-Kconform_pic'
8000 lt_prog_compiler_static='-Bstatic'
8004 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
8011 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_can_build_shared=no
8016 lt_prog_compiler_pic='-pic'
8017 lt_prog_compiler_static='-Bstatic'
8021 lt_prog_compiler_can_build_shared=no
8026 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8027 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8030 # Check to make sure the PIC flag actually works.
8032 if test -n "$lt_prog_compiler_pic"; then
8034 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8035 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8036 if test "${lt_prog_compiler_pic_works+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 lt_prog_compiler_pic_works=no
8040 ac_outfile=conftest.$ac_objext
8041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8042 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8043 # Insert the option either (1) after the last *FLAGS variable, or
8044 # (2) before a word containing "conftest.", or (3) at the end.
8045 # Note that $ac_compile itself does not contain backslashes and begins
8046 # with a dollar sign (not a hyphen), so the echo should work correctly.
8047 # The option is referenced via a variable to avoid confusing sed.
8048 lt_compile=`echo "$ac_compile" | $SED \
8049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051 -e 's:$: $lt_compiler_flag:'`
8052 (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053 (eval "$lt_compile" 2>conftest.err)
8055 cat conftest.err >&5
8056 echo "$as_me:8056: \$? = $ac_status" >&5
8057 if (exit $ac_status) && test -s "$ac_outfile"; then
8058 # The compiler can only warn and ignore the option if not recognized
8059 # So say no if there are warnings other than the usual output.
8060 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8063 lt_prog_compiler_pic_works=yes
8069 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8070 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8072 if test x"$lt_prog_compiler_pic_works" = xyes; then
8073 case $lt_prog_compiler_pic in
8075 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8078 lt_prog_compiler_pic=
8079 lt_prog_compiler_can_build_shared=no
8084 # For platforms which do not support PIC, -DPIC is meaningless:
8086 lt_prog_compiler_pic=
8089 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8094 # Check to make sure the static flag actually works.
8096 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8097 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8098 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8099 if test "${lt_prog_compiler_static_works+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 lt_prog_compiler_static_works=no
8103 save_LDFLAGS="$LDFLAGS"
8104 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8105 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8107 # The linker can only warn and ignore the option if not recognized
8108 # So say no if there are warnings
8109 if test -s conftest.err; then
8110 # Append any errors to the config.log.
8111 cat conftest.err 1>&5
8112 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8114 if diff conftest.exp conftest.er2 >/dev/null; then
8115 lt_prog_compiler_static_works=yes
8118 lt_prog_compiler_static_works=yes
8122 LDFLAGS="$save_LDFLAGS"
8125 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8126 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8128 if test x"$lt_prog_compiler_static_works" = xyes; then
8131 lt_prog_compiler_static=
8135 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8136 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8137 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 lt_cv_prog_compiler_c_o=no
8141 $rm -r conftest 2>/dev/null
8145 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8147 lt_compiler_flag="-o out/conftest2.$ac_objext"
8148 # Insert the option either (1) after the last *FLAGS variable, or
8149 # (2) before a word containing "conftest.", or (3) at the end.
8150 # Note that $ac_compile itself does not contain backslashes and begins
8151 # with a dollar sign (not a hyphen), so the echo should work correctly.
8152 lt_compile=`echo "$ac_compile" | $SED \
8153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8155 -e 's:$: $lt_compiler_flag:'`
8156 (eval echo "\"\$as_me:8156: $lt_compile\"" >&5)
8157 (eval "$lt_compile" 2>out/conftest.err)
8159 cat out/conftest.err >&5
8160 echo "$as_me:8160: \$? = $ac_status" >&5
8161 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8163 # The compiler can only warn and ignore the option if not recognized
8164 # So say no if there are warnings
8165 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8166 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8167 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8168 lt_cv_prog_compiler_c_o=yes
8173 # SGI C++ compiler will create directory out/ii_files/ for
8174 # template instantiation
8175 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8176 $rm out/* && rmdir out
8182 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8183 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8186 hard_links="nottested"
8187 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8188 # do not overwrite the value of need_locks provided by the user
8189 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8190 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8195 ln conftest.a conftest.b 2>&5 || hard_links=no
8196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8197 { echo "$as_me:$LINENO: result: $hard_links" >&5
8198 echo "${ECHO_T}$hard_links" >&6; }
8199 if test "$hard_links" = no; then
8200 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8201 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8208 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8209 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8212 allow_undefined_flag=
8213 enable_shared_with_static_runtimes=no
8215 archive_expsym_cmds=
8216 old_archive_From_new_cmds=
8217 old_archive_from_expsyms_cmds=
8218 export_dynamic_flag_spec=
8219 whole_archive_flag_spec=
8220 thread_safe_flag_spec=
8221 hardcode_libdir_flag_spec=
8222 hardcode_libdir_flag_spec_ld=
8223 hardcode_libdir_separator=
8226 hardcode_shlibpath_var=unsupported
8227 link_all_deplibs=unknown
8228 hardcode_automatic=no
8231 always_export_symbols=no
8232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8233 # include_expsyms should be a list of space-separated symbols to be *always*
8234 # included in the symbol list
8236 # exclude_expsyms can be an extended regexp of symbols to exclude
8237 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8238 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8239 # as well as any symbol that contains `d'.
8240 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8241 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8242 # platforms (ab)use it in PIC code, but their linkers get confused if
8243 # the symbol is explicitly referenced. Since portable code cannot
8244 # rely on this symbol name, it's probably fine to never include it in
8245 # preloaded symbol tables.
8246 extract_expsyms_cmds=
8247 # Just being paranoid about ensuring that cc_basename is set.
8248 for cc_temp in $compiler""; do
8250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8256 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8259 cygwin* | mingw* | pw32*)
8260 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8261 # When not using gcc, we currently assume that we are using
8262 # Microsoft Visual C++.
8263 if test "$GCC" != yes; then
8268 # we just hope/assume this is gcc and not c89 (= MSVC++)
8277 if test "$with_gnu_ld" = yes; then
8278 # If archive_cmds runs LD, not CC, wlarc should be empty
8281 # Set some defaults for GNU ld with shared library support. These
8282 # are reset later if shared libraries are not supported. Putting them
8283 # here allows them to be overridden if necessary.
8284 runpath_var=LD_RUN_PATH
8285 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8286 export_dynamic_flag_spec='${wl}--export-dynamic'
8287 # ancient GNU ld didn't support --whole-archive et. al.
8288 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8289 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8291 whole_archive_flag_spec=
8293 supports_anon_versioning=no
8294 case `$LD -v 2>/dev/null` in
8295 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8296 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8297 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8298 *\ 2.11.*) ;; # other 2.11 versions
8299 *) supports_anon_versioning=yes ;;
8302 # See if GNU ld supports shared libraries.
8304 aix3* | aix4* | aix5*)
8305 # On AIX/PPC, the GNU linker is very broken
8306 if test "$host_cpu" != ia64; then
8310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8311 *** to be unable to reliably create shared libraries on AIX.
8312 *** Therefore, libtool is disabling shared libraries support. If you
8313 *** really care for shared libraries, you may want to modify your PATH
8314 *** so that a non-GNU linker is found, and then restart.
8321 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)'
8322 hardcode_libdir_flag_spec='-L$libdir'
8323 hardcode_minus_L=yes
8325 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8326 # that the semantics of dynamic libraries on AmigaOS, at least up
8327 # to version 4, is to share data among multiple programs linked
8328 # with the same dynamic library. Since this doesn't match the
8329 # behavior of shared libraries on other platforms, we can't use
8335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8336 allow_undefined_flag=unsupported
8337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8338 # support --undefined. This deserves some investigation. FIXME
8339 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345 cygwin* | mingw* | pw32*)
8346 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8347 # as there is no search path for DLLs.
8348 hardcode_libdir_flag_spec='-L$libdir'
8349 allow_undefined_flag=unsupported
8350 always_export_symbols=no
8351 enable_shared_with_static_runtimes=yes
8352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8354 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8356 # If the export-symbols file already is a .def file (1st line
8357 # is EXPORTS), use it as is; otherwise, prepend...
8358 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8359 cp $export_symbols $output_objdir/$soname.def;
8361 echo EXPORTS > $output_objdir/$soname.def;
8362 cat $export_symbols >> $output_objdir/$soname.def;
8364 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8372 hardcode_shlibpath_var=no
8373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8374 export_dynamic_flag_spec='${wl}-E'
8375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8376 # Instead, shared libraries are loaded at an image base (0x10000000 by
8377 # default) and relocated if they conflict, which is a slow very memory
8378 # consuming and fragmenting process. To avoid this, we pick a random,
8379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8382 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'
8386 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8388 case $cc_basename,$host_cpu in
8389 pgcc*) # Portland Group C compiler
8390 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'
8391 tmp_addflag=' $pic_flag'
8393 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8394 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'
8395 tmp_addflag=' $pic_flag -Mnomain' ;;
8396 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8397 tmp_addflag=' -i_dynamic' ;;
8398 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8399 tmp_addflag=' -i_dynamic -nofor_main' ;;
8400 ifc* | ifort*) # Intel Fortran compiler
8401 tmp_addflag=' -nofor_main' ;;
8403 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8405 if test $supports_anon_versioning = yes; then
8406 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8407 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8408 $echo "local: *; };" >> $output_objdir/$libname.ver~
8409 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8427 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8432 *** create shared libraries on Solaris systems. Therefore, libtool
8433 *** is disabling shared libraries support. We urge you to upgrade GNU
8434 *** binutils to release 2.9.1 or newer. Another option is to modify
8435 *** your PATH or compiler configuration so that the native linker is
8436 *** used, and then restart.
8439 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8448 case `$LD -v 2>&1` in
8449 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8454 *** reliably create shared libraries on SCO systems. Therefore, libtool
8455 *** is disabling shared libraries support. We urge you to upgrade GNU
8456 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8457 *** your PATH or compiler configuration so that the native linker is
8458 *** used, and then restart.
8463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8464 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8475 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_shlibpath_var=no
8482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8491 if test "$ld_shlibs" = no; then
8493 hardcode_libdir_flag_spec=
8494 export_dynamic_flag_spec=
8495 whole_archive_flag_spec=
8498 # PORTME fill in a description of your system's linker (not GNU ld)
8501 allow_undefined_flag=unsupported
8502 always_export_symbols=yes
8503 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'
8504 # Note: this linker hardcodes the directories in LIBPATH if there
8505 # are no directories specified by -L.
8506 hardcode_minus_L=yes
8507 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8508 # Neither direct hardcoding nor static linking is supported with a
8510 hardcode_direct=unsupported
8515 if test "$host_cpu" = ia64; then
8516 # On IA64, the linker does run time linking by default, so we don't
8517 # have to do anything special.
8518 aix_use_runtimelinking=no
8519 exp_sym_flag='-Bexport'
8522 # If we're using GNU nm, then we don't want the "-C" option.
8523 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8524 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8525 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'
8527 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'
8529 aix_use_runtimelinking=no
8531 # Test if we are trying to use run time linking or normal
8532 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8533 # need to do runtime linking.
8534 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8535 for ld_flag in $LDFLAGS; do
8536 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8537 aix_use_runtimelinking=yes
8544 exp_sym_flag='-bexport'
8545 no_entry_flag='-bnoentry'
8548 # When large executables or shared objects are built, AIX ld can
8549 # have problems creating the table of contents. If linking a library
8550 # or program results in "error TOC overflow" add -mminimal-toc to
8551 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8552 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8556 hardcode_libdir_separator=':'
8557 link_all_deplibs=yes
8559 if test "$GCC" = yes; then
8560 case $host_os in aix4.[012]|aix4.[012].*)
8561 # We only want to do this on AIX 4.2 and lower, the check
8562 # below for broken collect2 doesn't work under 4.3+
8563 collect2name=`${CC} -print-prog-name=collect2`
8564 if test -f "$collect2name" && \
8565 strings "$collect2name" | grep resolve_lib_name >/dev/null
8567 # We have reworked collect2
8570 # We have old collect2
8571 hardcode_direct=unsupported
8572 # It fails to find uninstalled libraries when the uninstalled
8573 # path is not listed in the libpath. Setting hardcode_minus_L
8574 # to unsupported forces relinking
8575 hardcode_minus_L=yes
8576 hardcode_libdir_flag_spec='-L$libdir'
8577 hardcode_libdir_separator=
8581 shared_flag='-shared'
8582 if test "$aix_use_runtimelinking" = yes; then
8583 shared_flag="$shared_flag "'${wl}-G'
8587 if test "$host_cpu" = ia64; then
8588 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8589 # chokes on -Wl,-G. The following line is correct:
8592 if test "$aix_use_runtimelinking" = yes; then
8593 shared_flag='${wl}-G'
8595 shared_flag='${wl}-bM:SRE'
8600 # It seems that -bexpall does not export symbols beginning with
8601 # underscore (_), so it is better to generate a list of symbols to export.
8602 always_export_symbols=yes
8603 if test "$aix_use_runtimelinking" = yes; then
8604 # Warning - without using the other runtime loading flags (-brtl),
8605 # -berok will link without error, but may produce a broken library.
8606 allow_undefined_flag='-berok'
8607 # Determine the default libpath from the value encoded in an empty executable.
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_link") 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8638 { (case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_try") 2>&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (case "(($ac_try" in
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_try") 2>&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8660 # Check for a 64-bit object if we didn't find anything.
8661 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; }
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8670 rm -f core conftest.err conftest.$ac_objext \
8671 conftest$ac_exeext conftest.$ac_ext
8672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8675 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"
8677 if test "$host_cpu" = ia64; then
8678 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8679 allow_undefined_flag="-z nodefs"
8680 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"
8682 # Determine the default libpath from the value encoded in an empty executable.
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (ac_try="$ac_link"
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_link") 2>conftest.er1
8707 grep -v '^ *+' conftest.er1 >conftest.err
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8713 { (case "(($ac_try" in
8714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715 *) ac_try_echo=$ac_try;;
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718 (eval "$ac_try") 2>&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest$ac_exeext'
8723 { (case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_try") 2>&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8735 # Check for a 64-bit object if we didn't find anything.
8736 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; }
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8745 rm -f core conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8750 # Warning - without using the other run time loading flags,
8751 # -berok will link without error, but may produce a broken library.
8752 no_undefined_flag=' ${wl}-bernotok'
8753 allow_undefined_flag=' ${wl}-berok'
8754 # Exported symbols can be pulled into shared objects from archives
8755 whole_archive_flag_spec='$convenience'
8756 archive_cmds_need_lc=yes
8757 # This is similar to how AIX traditionally builds its shared libraries.
8758 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'
8764 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)'
8765 hardcode_libdir_flag_spec='-L$libdir'
8766 hardcode_minus_L=yes
8767 # see comment about different semantics on the GNU ld section
8772 export_dynamic_flag_spec=-rdynamic
8775 cygwin* | mingw* | pw32*)
8776 # When not using gcc, we currently assume that we are using
8777 # Microsoft Visual C++.
8778 # hardcode_libdir_flag_spec is actually meaningless, as there is
8779 # no search path for DLLs.
8780 hardcode_libdir_flag_spec=' '
8781 allow_undefined_flag=unsupported
8782 # Tell ltmain to make .lib files, not .a files.
8784 # Tell ltmain to make .dll files, not .so files.
8786 # FIXME: Setting linknames here is a bad hack.
8787 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8788 # The linker will automatically build a .lib file if we build a DLL.
8789 old_archive_From_new_cmds='true'
8790 # FIXME: Should let the user specify the lib program.
8791 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8792 fix_srcfile_path='`cygpath -w "$srcfile"`'
8793 enable_shared_with_static_runtimes=yes
8796 darwin* | rhapsody*)
8798 rhapsody* | darwin1.[012])
8799 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8802 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8803 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8805 case ${MACOSX_DEPLOYMENT_TARGET} in
8807 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8810 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8816 archive_cmds_need_lc=no
8818 hardcode_automatic=yes
8819 hardcode_shlibpath_var=unsupported
8820 whole_archive_flag_spec=''
8821 link_all_deplibs=yes
8822 if test "$GCC" = yes ; then
8823 output_verbose_link_cmd='echo'
8824 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8825 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8826 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8827 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}'
8828 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}'
8830 case $cc_basename in
8832 output_verbose_link_cmd='echo'
8833 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8834 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8835 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8836 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}'
8837 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}'
8847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_shlibpath_var=no
8856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8857 # support. Future versions do this automatically, but an explicit c++rt0.o
8858 # does not break anything, and helps significantly (at the cost of a little
8861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8862 hardcode_libdir_flag_spec='-R$libdir'
8864 hardcode_shlibpath_var=no
8867 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871 hardcode_minus_L=yes
8872 hardcode_shlibpath_var=no
8875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8876 freebsd* | kfreebsd*-gnu | dragonfly*)
8877 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8878 hardcode_libdir_flag_spec='-R$libdir'
8880 hardcode_shlibpath_var=no
8884 if test "$GCC" = yes; then
8885 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'
8887 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'
8889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8890 hardcode_libdir_separator=:
8893 # hardcode_minus_L: Not really in the search PATH,
8894 # but as the default location of the library.
8895 hardcode_minus_L=yes
8896 export_dynamic_flag_spec='${wl}-E'
8900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8901 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8905 if test "$with_gnu_ld" = no; then
8906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8907 hardcode_libdir_separator=:
8910 export_dynamic_flag_spec='${wl}-E'
8912 # hardcode_minus_L: Not really in the search PATH,
8913 # but as the default location of the library.
8914 hardcode_minus_L=yes
8919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8922 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8925 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8928 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8934 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8937 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8940 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8944 if test "$with_gnu_ld" = no; then
8945 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8946 hardcode_libdir_separator=:
8950 hardcode_libdir_flag_spec_ld='+b $libdir'
8952 hardcode_shlibpath_var=no
8956 export_dynamic_flag_spec='${wl}-E'
8958 # hardcode_minus_L: Not really in the search PATH,
8959 # but as the default location of the library.
8960 hardcode_minus_L=yes
8966 irix5* | irix6* | nonstopux*)
8967 if test "$GCC" = yes; then
8968 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'
8970 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'
8971 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8974 hardcode_libdir_separator=:
8975 link_all_deplibs=yes
8979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8984 hardcode_libdir_flag_spec='-R$libdir'
8986 hardcode_shlibpath_var=no
8990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993 hardcode_libdir_separator=:
8994 hardcode_shlibpath_var=no
8999 hardcode_shlibpath_var=no
9000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9004 export_dynamic_flag_spec='${wl}-E'
9007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9009 hardcode_libdir_flag_spec='-R$libdir'
9012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 hardcode_minus_L=yes
9022 allow_undefined_flag=unsupported
9023 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'
9024 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9028 if test "$GCC" = yes; then
9029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9030 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'
9032 allow_undefined_flag=' -expect_unresolved \*'
9033 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'
9035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9036 hardcode_libdir_separator=:
9039 osf4* | osf5*) # as osf3* with the addition of -msym flag
9040 if test "$GCC" = yes; then
9041 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9042 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'
9043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9045 allow_undefined_flag=' -expect_unresolved \*'
9046 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'
9047 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9048 $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'
9050 # Both c and cxx compiler support -rpath directly
9051 hardcode_libdir_flag_spec='-rpath $libdir'
9053 hardcode_libdir_separator=:
9057 no_undefined_flag=' -z text'
9058 if test "$GCC" = yes; then
9060 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9062 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9065 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9067 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9069 hardcode_libdir_flag_spec='-R$libdir'
9070 hardcode_shlibpath_var=no
9072 solaris2.[0-5] | solaris2.[0-5].*) ;;
9074 # The compiler driver will combine linker options so we
9075 # cannot just pass the convience library names through
9076 # without $wl, iff we do not link with $LD.
9077 # Luckily, gcc supports the same syntax we need for Sun Studio.
9078 # Supported since Solaris 2.6 (maybe 2.5.1?)
9081 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9083 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' ;;
9086 link_all_deplibs=yes
9090 if test "x$host_vendor" = xsequent; then
9091 # Use $CC to link under sequent, because it throws in some extra .o
9092 # files that make .init and .fini sections work.
9093 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9095 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9097 hardcode_libdir_flag_spec='-L$libdir'
9099 hardcode_minus_L=yes
9100 hardcode_shlibpath_var=no
9104 case $host_vendor in
9106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107 hardcode_direct=yes # is this really true???
9110 ## LD is ld it makes a PLAMLIB
9111 ## CC just makes a GrossModule.
9112 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9113 reload_cmds='$CC -r -o $output$reload_objs'
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9121 runpath_var='LD_RUN_PATH'
9122 hardcode_shlibpath_var=no
9126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_shlibpath_var=no
9128 export_dynamic_flag_spec='-Bexport'
9132 if test -d /usr/nec; then
9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_shlibpath_var=no
9135 runpath_var=LD_RUN_PATH
9136 hardcode_runpath_var=yes
9141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9142 no_undefined_flag='${wl}-z,text'
9143 archive_cmds_need_lc=no
9144 hardcode_shlibpath_var=no
9145 runpath_var='LD_RUN_PATH'
9147 if test "$GCC" = yes; then
9148 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9151 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 sysv5* | sco3.2v5* | sco5v6*)
9157 # Note: We can NOT use -z defs as we might desire, because we do not
9158 # link with -lc, and that would cause any symbols used from libc to
9159 # always be unresolved, which means just about no library would
9160 # ever link correctly. If we're not using GNU ld we use -z text
9161 # though, which does catch some bad symbols but isn't as heavy-handed
9163 no_undefined_flag='${wl}-z,text'
9164 allow_undefined_flag='${wl}-z,nodefs'
9165 archive_cmds_need_lc=no
9166 hardcode_shlibpath_var=no
9167 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9168 hardcode_libdir_separator=':'
9169 link_all_deplibs=yes
9170 export_dynamic_flag_spec='${wl}-Bexport'
9171 runpath_var='LD_RUN_PATH'
9173 if test "$GCC" = yes; then
9174 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9177 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184 hardcode_libdir_flag_spec='-L$libdir'
9185 hardcode_shlibpath_var=no
9194 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9195 echo "${ECHO_T}$ld_shlibs" >&6; }
9196 test "$ld_shlibs" = no && can_build_shared=no
9199 # Do we need to explicitly link libc?
9201 case "x$archive_cmds_need_lc" in
9203 # Assume -lc should be added
9204 archive_cmds_need_lc=yes
9206 if test "$enable_shared" = yes && test "$GCC" = yes; then
9207 case $archive_cmds in
9209 # FIXME: we may have to deal with multi-command sequences.
9212 # Test whether the compiler implicitly links with -lc since on some
9213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9214 # to ld, don't add -lc before -lgcc.
9215 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221 (eval $ac_compile) 2>&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } 2>conftest.err; then
9227 libobjs=conftest.$ac_objext
9229 wl=$lt_prog_compiler_wl
9230 pic_flag=$lt_prog_compiler_pic
9236 lt_save_allow_undefined_flag=$allow_undefined_flag
9237 allow_undefined_flag=
9238 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9239 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }
9244 archive_cmds_need_lc=no
9246 archive_cmds_need_lc=yes
9248 allow_undefined_flag=$lt_save_allow_undefined_flag
9250 cat conftest.err 1>&5
9253 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9254 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9261 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9262 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9264 libname_spec='lib$name'
9272 shlibpath_overrides_runpath=unknown
9274 dynamic_linker="$host_os ld.so"
9275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9276 if test "$GCC" = yes; then
9277 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9278 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9279 # if the path contains ";" then we assume it to be the separator
9280 # otherwise default to the standard path separator (i.e. ":") - it is
9281 # assumed that no part of a normal pathname contains ";" but that should
9282 # okay in the real world where ";" in dirpaths is itself problematic.
9283 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9290 need_lib_prefix=unknown
9291 hardcode_into_libs=no
9293 # when you set need_version to no, make sure it does not cause -set_version
9294 # flags to be left without arguments
9295 need_version=unknown
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9301 shlibpath_var=LIBPATH
9303 # AIX 3 has no versioning support, so we append a major version to the name.
9304 soname_spec='${libname}${release}${shared_ext}$major'
9311 hardcode_into_libs=yes
9312 if test "$host_cpu" = ia64; then
9313 # AIX 5 supports IA64
9314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9315 shlibpath_var=LD_LIBRARY_PATH
9317 # With GCC up to 2.95.x, collect2 would create an import file
9318 # for dependence libraries. The import file would start with
9319 # the line `#! .'. This would cause the generated library to
9320 # depend on `.', always an invalid library. This was fixed in
9321 # development snapshots of GCC prior to 3.0.
9323 aix4 | aix4.[01] | aix4.[01].*)
9324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9326 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9334 # soname into executable. Probably we can add versioning support to
9335 # collect2, so additional links can be useful in future.
9336 if test "$aix_use_runtimelinking" = yes; then
9337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9338 # instead of lib<name>.a to let people know that these are not
9339 # typical AIX shared libraries.
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342 # We preserve .a as extension for shared libraries through AIX4.2
9343 # and later when we are not doing run time linking.
9344 library_names_spec='${libname}${release}.a $libname.a'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9347 shlibpath_var=LIBPATH
9352 library_names_spec='$libname.ixlibrary $libname.a'
9353 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9354 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'
9358 library_names_spec='${libname}${shared_ext}'
9359 dynamic_linker="$host_os ld.so"
9360 shlibpath_var=LIBRARY_PATH
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9371 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9372 # the default ld.so.conf also contains /usr/contrib/lib and
9373 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9374 # libtool to hard-code these into programs
9377 cygwin* | mingw* | pw32*)
9378 version_type=windows
9383 case $GCC,$host_os in
9384 yes,cygwin* | yes,mingw* | yes,pw32*)
9385 library_names_spec='$libname.dll.a'
9386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9387 postinstall_cmds='base_file=`basename \${file}`~
9388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9389 dldir=$destdir/`dirname \$dlpath`~
9390 test -d \$dldir || mkdir -p \$dldir~
9391 $install_prog $dir/$dlname \$dldir/$dlname~
9392 chmod a+x \$dldir/$dlname'
9393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9394 dlpath=$dir/\$dldll~
9396 shlibpath_overrides_runpath=yes
9400 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9405 # MinGW DLLs use traditional 'lib' prefix
9406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9408 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9409 # It is most probably a Windows format PATH printed by
9410 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9411 # path with ; separators, and with drive letters. We can handle the
9412 # drive letters (cygwin fileutils understands them), so leave them,
9413 # especially as we might pass files found there to a mingw objdump,
9414 # which wouldn't understand a cygwinified path. Ahh.
9415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9421 # pw32 DLLs use 'pw' prefix rather than 'lib'
9422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9431 dynamic_linker='Win32 ld.exe'
9432 # FIXME: first we should search . and the directory the executable is in
9436 darwin* | rhapsody*)
9437 dynamic_linker="$host_os dyld"
9441 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9442 soname_spec='${libname}${release}${major}$shared_ext'
9443 shlibpath_overrides_runpath=yes
9444 shlibpath_var=DYLD_LIBRARY_PATH
9445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9446 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9447 if test "$GCC" = yes; then
9448 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"`
9450 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 shlibpath_var=LD_LIBRARY_PATH
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=no
9476 hardcode_into_libs=yes
9477 dynamic_linker='GNU ld.so'
9480 freebsd* | dragonfly*)
9481 # DragonFly does not have aout. When/if they implement a new
9482 # versioning mechanism, adjust this.
9483 if test -x /usr/bin/objformat; then
9484 objformat=`/usr/bin/objformat`
9487 freebsd[123]*) objformat=aout ;;
9491 version_type=freebsd-$objformat
9492 case $version_type in
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9503 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes
9508 freebsd3.[01]* | freebsdelf3.[01]*)
9509 shlibpath_overrides_runpath=yes
9510 hardcode_into_libs=yes
9512 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9513 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9514 shlibpath_overrides_runpath=no
9515 hardcode_into_libs=yes
9517 freebsd*) # from 4.6 on
9518 shlibpath_overrides_runpath=yes
9519 hardcode_into_libs=yes
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 hardcode_into_libs=yes
9534 hpux9* | hpux10* | hpux11*)
9535 # Give a soname corresponding to the major version so that dld.sl refuses to
9536 # link against other versions.
9543 hardcode_into_libs=yes
9544 dynamic_linker="$host_os dld.so"
9545 shlibpath_var=LD_LIBRARY_PATH
9546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 if test "X$HPUX_IA64_MODE" = X32; then
9550 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9558 hardcode_into_libs=yes
9559 dynamic_linker="$host_os dld.sl"
9560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9569 dynamic_linker="$host_os dld.sl"
9570 shlibpath_var=SHLIB_PATH
9571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573 soname_spec='${libname}${release}${shared_ext}$major'
9576 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9577 postinstall_cmds='chmod 555 $lib'
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9587 shlibpath_var=LD_LIBRARY_PATH
9588 shlibpath_overrides_runpath=no
9589 hardcode_into_libs=yes
9592 irix5* | irix6* | nonstopux*)
9594 nonstopux*) version_type=nonstopux ;;
9596 if test "$lt_cv_prog_gnu_ld" = yes; then
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9607 irix5* | nonstopux*)
9611 case $LD in # libtool.m4 will add one of these switches to LD
9612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9613 libsuff= shlibsuff= libmagic=32-bit;;
9614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9615 libsuff=32 shlibsuff=N32 libmagic=N32;;
9616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9617 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9618 *) libsuff= shlibsuff= libmagic=never-match;;
9622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9623 shlibpath_overrides_runpath=no
9624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9626 hardcode_into_libs=yes
9629 # No shared lib support for Linux oldld, aout, or coff.
9630 linux*oldld* | linux*aout* | linux*coff*)
9634 # This must be Linux ELF.
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=no
9644 # This implies no fast_install, which is unacceptable.
9645 # Some rework will be needed to allow for fast_install
9646 # before this can be enabled.
9647 hardcode_into_libs=yes
9649 # Append ld.so.conf contents to the search path
9650 if test -f /etc/ld.so.conf; then
9651 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' ' '`
9652 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9655 # We used to test for /lib/ld.so.1 and disable shared libraries on
9656 # powerpc, because MkLinux only supported shared libraries with the
9657 # GNU dynamic linker. Since this was broken with cross compilers,
9658 # most powerpc-linux boxes support dynamic linking these days and
9659 # people can always --disable-shared, the test was removed, and we
9660 # assume the GNU/Linux dynamic linker is in use.
9661 dynamic_linker='GNU/Linux ld.so'
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 shlibpath_overrides_runpath=no
9672 hardcode_into_libs=yes
9673 dynamic_linker='GNU ld.so'
9680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9683 dynamic_linker='NetBSD (a.out) ld.so'
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 dynamic_linker='NetBSD ld.elf_so'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 shlibpath_overrides_runpath=yes
9691 hardcode_into_libs=yes
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 shlibpath_var=LD_LIBRARY_PATH
9698 shlibpath_overrides_runpath=yes
9705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=yes
9713 sys_lib_dlsearch_path_spec="/usr/lib"
9715 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9717 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9718 *) need_version=no ;;
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9722 shlibpath_var=LD_LIBRARY_PATH
9723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9725 openbsd2.[89] | openbsd2.[89].*)
9726 shlibpath_overrides_runpath=no
9729 shlibpath_overrides_runpath=yes
9733 shlibpath_overrides_runpath=yes
9738 libname_spec='$name'
9741 library_names_spec='$libname${shared_ext} $libname.a'
9742 dynamic_linker='OS/2 ld.exe'
9743 shlibpath_var=LIBPATH
9746 osf3* | osf4* | osf5*)
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9754 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765 hardcode_into_libs=yes
9766 # ldd complains unless libraries are executable
9767 postinstall_cmds='chmod +x $lib'
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9774 shlibpath_var=LD_LIBRARY_PATH
9775 shlibpath_overrides_runpath=yes
9776 if test "$with_gnu_ld" = yes; then
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 shlibpath_var=LD_LIBRARY_PATH
9787 case $host_vendor in
9789 shlibpath_overrides_runpath=no
9791 export_dynamic_flag_spec='${wl}-Blargedynsym'
9792 runpath_var=LD_RUN_PATH
9800 shlibpath_overrides_runpath=no
9801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9807 if test -d /usr/nec ;then
9809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9810 soname_spec='$libname${shared_ext}.$major'
9811 shlibpath_var=LD_LIBRARY_PATH
9815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9816 version_type=freebsd-elf
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 shlibpath_var=LD_LIBRARY_PATH
9822 hardcode_into_libs=yes
9823 if test "$with_gnu_ld" = yes; then
9824 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9825 shlibpath_overrides_runpath=no
9827 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9828 shlibpath_overrides_runpath=yes
9831 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9835 sys_lib_dlsearch_path_spec='/usr/lib'
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 shlibpath_var=LD_LIBRARY_PATH
9849 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9850 echo "${ECHO_T}$dynamic_linker" >&6; }
9851 test "$dynamic_linker" = no && can_build_shared=no
9853 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9854 if test "$GCC" = yes; then
9855 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9858 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9859 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9861 if test -n "$hardcode_libdir_flag_spec" || \
9862 test -n "$runpath_var" || \
9863 test "X$hardcode_automatic" = "Xyes" ; then
9865 # We can hardcode non-existant directories.
9866 if test "$hardcode_direct" != no &&
9867 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9868 # have to relink, otherwise we might link with an installed library
9869 # when we should be linking with a yet-to-be-installed one
9870 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9871 test "$hardcode_minus_L" != no; then
9872 # Linking always hardcodes the temporary library directory.
9873 hardcode_action=relink
9875 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9876 hardcode_action=immediate
9879 # We cannot hardcode anything, or else we can only hardcode existing
9881 hardcode_action=unsupported
9883 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9884 echo "${ECHO_T}$hardcode_action" >&6; }
9886 if test "$hardcode_action" = relink; then
9887 # Fast installation is not supported
9888 enable_fast_install=no
9889 elif test "$shlibpath_overrides_runpath" = yes ||
9890 test "$enable_shared" = no; then
9891 # Fast installation is not necessary
9892 enable_fast_install=needless
9897 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9898 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9899 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9900 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9901 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9902 { echo "$as_me:$LINENO: result: yes" >&5
9903 echo "${ECHO_T}yes" >&6; }
9905 # FIXME - insert some real tests, host_os isn't really good enough
9908 if test -n "$STRIP" ; then
9909 striplib="$STRIP -x"
9910 { echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6; }
9913 { echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6; }
9918 { echo "$as_me:$LINENO: result: no" >&5
9919 echo "${ECHO_T}no" >&6; }
9924 if test "x$enable_dlopen" != xyes; then
9925 enable_dlopen=unknown
9926 enable_dlopen_self=unknown
9927 enable_dlopen_self_static=unknown
9934 lt_cv_dlopen="load_add_on"
9936 lt_cv_dlopen_self=yes
9940 lt_cv_dlopen="LoadLibrary"
9945 lt_cv_dlopen="dlopen"
9950 # if libdl is installed we need to link against it
9951 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 ac_check_lib_save_LIBS=$LIBS
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_link") 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9995 { (case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_try") 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest$ac_exeext'
10005 { (case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_try") 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_lib_dl_dlopen=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_cv_lib_dl_dlopen=no
10022 rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10028 if test $ac_cv_lib_dl_dlopen = yes; then
10029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10032 lt_cv_dlopen="dyld"
10034 lt_cv_dlopen_self=yes
10041 { echo "$as_me:$LINENO: checking for shl_load" >&5
10042 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10043 if test "${ac_cv_func_shl_load+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 cat >conftest.$ac_ext <<_ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10054 #define shl_load innocuous_shl_load
10056 /* System header to define __stub macros and hopefully few prototypes,
10057 which can conflict with char shl_load (); below.
10058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059 <limits.h> exists even on freestanding compilers. */
10062 # include <limits.h>
10064 # include <assert.h>
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10076 /* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079 #if defined __stub_shl_load || defined __stub___shl_load
10086 return shl_load ();
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (ac_try="$ac_link"
10093 case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_link") 2>conftest.er1
10100 grep -v '^ *+' conftest.er1 >conftest.err
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10106 { (case "(($ac_try" in
10107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108 *) ac_try_echo=$ac_try;;
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_try") 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; } &&
10115 { ac_try='test -s conftest$ac_exeext'
10116 { (case "(($ac_try" in
10117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_try") 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 ac_cv_func_shl_load=yes
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_cv_func_shl_load=no
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10136 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10137 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10138 if test $ac_cv_func_shl_load = yes; then
10139 lt_cv_dlopen="shl_load"
10141 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10142 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 ac_check_lib_save_LIBS=$LIBS
10148 cat >conftest.$ac_ext <<_ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10165 return shl_load ();
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; } &&
10194 { ac_try='test -s conftest$ac_exeext'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 ac_cv_lib_dld_shl_load=yes
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_cv_lib_dld_shl_load=no
10212 rm -f core conftest.err conftest.$ac_objext \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10218 if test $ac_cv_lib_dld_shl_load = yes; then
10219 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10221 { echo "$as_me:$LINENO: checking for dlopen" >&5
10222 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10223 if test "${ac_cv_func_dlopen+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10234 #define dlopen innocuous_dlopen
10236 /* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char dlopen (); below.
10238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239 <limits.h> exists even on freestanding compilers. */
10242 # include <limits.h>
10244 # include <assert.h>
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10256 /* The GNU C library defines this for functions which it implements
10257 to always fail with ENOSYS. Some functions are actually named
10258 something starting with __ and the normal name is an alias. */
10259 #if defined __stub_dlopen || defined __stub___dlopen
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (ac_try="$ac_link"
10273 case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_link") 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286 { (case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_try") 2>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; } &&
10295 { ac_try='test -s conftest$ac_exeext'
10296 { (case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_try") 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_func_dlopen=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_func_dlopen=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10316 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10317 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10318 if test $ac_cv_func_dlopen = yes; then
10319 lt_cv_dlopen="dlopen"
10321 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10322 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 ac_check_lib_save_LIBS=$LIBS
10328 cat >conftest.$ac_ext <<_ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h. */
10335 /* Override any GCC internal prototype to avoid an error.
10336 Use char because int might match the return type of a GCC
10337 builtin and then its argument prototype would still apply. */
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_try") 2>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
10384 ac_cv_lib_dl_dlopen=yes
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_cv_lib_dl_dlopen=no
10392 rm -f core conftest.err conftest.$ac_objext \
10393 conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10397 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10398 if test $ac_cv_lib_dl_dlopen = yes; then
10399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10401 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10402 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 ac_check_lib_save_LIBS=$LIBS
10407 LIBS="-lsvld $LIBS"
10408 cat >conftest.$ac_ext <<_ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10415 /* Override any GCC internal prototype to avoid an error.
10416 Use char because int might match the return type of a GCC
10417 builtin and then its argument prototype would still apply. */
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (ac_try="$ac_link"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_link") 2>conftest.er1
10439 grep -v '^ *+' conftest.er1 >conftest.err
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445 { (case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450 (eval "$ac_try") 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try='test -s conftest$ac_exeext'
10455 { (case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_try") 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_cv_lib_svld_dlopen=yes
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_cv_lib_svld_dlopen=no
10472 rm -f core conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10476 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10477 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10478 if test $ac_cv_lib_svld_dlopen = yes; then
10479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10481 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10482 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10483 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 ac_check_lib_save_LIBS=$LIBS
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10495 /* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10505 return dld_link ();
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_try") 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_lib_dld_dld_link=yes
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_lib_dld_dld_link=no
10552 rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext conftest.$ac_ext
10554 LIBS=$ac_check_lib_save_LIBS
10556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10557 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10558 if test $ac_cv_lib_dld_dld_link = yes; then
10559 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10580 if test "x$lt_cv_dlopen" != xno; then
10586 case $lt_cv_dlopen in
10588 save_CPPFLAGS="$CPPFLAGS"
10589 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10591 save_LDFLAGS="$LDFLAGS"
10592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10595 LIBS="$lt_cv_dlopen_libs $LIBS"
10597 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10598 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10599 if test "${lt_cv_dlopen_self+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 if test "$cross_compiling" = yes; then :
10603 lt_cv_dlopen_self=cross
10605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10606 lt_status=$lt_dlunknown
10607 cat > conftest.$ac_ext <<EOF
10608 #line 10608 "configure"
10609 #include "confdefs.h"
10618 # define LT_DLGLOBAL RTLD_GLOBAL
10621 # define LT_DLGLOBAL DL_GLOBAL
10623 # define LT_DLGLOBAL 0
10627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10628 find out it does not work in some platform. */
10629 #ifndef LT_DLLAZY_OR_NOW
10631 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10634 # define LT_DLLAZY_OR_NOW DL_LAZY
10637 # define LT_DLLAZY_OR_NOW RTLD_NOW
10640 # define LT_DLLAZY_OR_NOW DL_NOW
10642 # define LT_DLLAZY_OR_NOW 0
10650 extern "C" void exit (int);
10653 void fnord() { int i=42;}
10656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10657 int status = $lt_dlunknown;
10661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10662 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10663 /* dlclose (self); */
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10676 (./conftest; exit; ) >&5 2>/dev/null
10678 case x$lt_status in
10679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10681 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10684 # compilation failed
10685 lt_cv_dlopen_self=no
10692 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10693 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10695 if test "x$lt_cv_dlopen_self" = xyes; then
10696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10697 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10698 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10699 if test "${lt_cv_dlopen_self_static+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 if test "$cross_compiling" = yes; then :
10703 lt_cv_dlopen_self_static=cross
10705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10706 lt_status=$lt_dlunknown
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10708 "configure"
10709 #include "confdefs.h"
10718 # define LT_DLGLOBAL RTLD_GLOBAL
10721 # define LT_DLGLOBAL DL_GLOBAL
10723 # define LT_DLGLOBAL 0
10727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10728 find out it does not work in some platform. */
10729 #ifndef LT_DLLAZY_OR_NOW
10731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10734 # define LT_DLLAZY_OR_NOW DL_LAZY
10737 # define LT_DLLAZY_OR_NOW RTLD_NOW
10740 # define LT_DLLAZY_OR_NOW DL_NOW
10742 # define LT_DLLAZY_OR_NOW 0
10750 extern "C" void exit (int);
10753 void fnord() { int i=42;}
10756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10757 int status = $lt_dlunknown;
10761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10762 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10763 /* dlclose (self); */
10771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772 (eval $ac_link) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10776 (./conftest; exit; ) >&5 2>/dev/null
10778 case x$lt_status in
10779 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10780 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10781 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10784 # compilation failed
10785 lt_cv_dlopen_self_static=no
10792 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10793 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10796 CPPFLAGS="$save_CPPFLAGS"
10797 LDFLAGS="$save_LDFLAGS"
10802 case $lt_cv_dlopen_self in
10803 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10804 *) enable_dlopen_self=unknown ;;
10807 case $lt_cv_dlopen_self_static in
10808 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10809 *) enable_dlopen_self_static=unknown ;;
10814 # Report which library types will actually be built
10815 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10816 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10817 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10818 echo "${ECHO_T}$can_build_shared" >&6; }
10820 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10821 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10822 test "$can_build_shared" = "no" && enable_shared=no
10824 # On AIX, shared libraries and static libraries use the same namespace, and
10825 # are all built from PIC.
10828 test "$enable_shared" = yes && enable_static=no
10829 if test -n "$RANLIB"; then
10830 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10831 postinstall_cmds='$RANLIB $lib'
10836 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10837 test "$enable_shared" = yes && enable_static=no
10841 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10842 echo "${ECHO_T}$enable_shared" >&6; }
10844 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10845 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10846 # Make sure either enable_shared or enable_static is yes.
10847 test "$enable_shared" = yes || enable_static=yes
10848 { echo "$as_me:$LINENO: result: $enable_static" >&5
10849 echo "${ECHO_T}$enable_static" >&6; }
10851 # The else clause should only fire when bootstrapping the
10852 # libtool distribution, otherwise you forgot to ship ltmain.sh
10853 # with your package, and you will get complaints that there are
10854 # no rules to generate ltmain.sh.
10855 if test -f "$ltmain"; then
10856 # See if we are running on zsh, and set the options which allow our commands through
10857 # without removal of \ escapes.
10858 if test -n "${ZSH_VERSION+set}" ; then
10859 setopt NO_GLOB_SUBST
10861 # Now quote all the things that may contain metacharacters while being
10862 # careful not to overquote the AC_SUBSTed values. We take copies of the
10863 # variables and quote the copies for generation of the libtool script.
10864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10868 deplibs_check_method reload_flag reload_cmds need_locks \
10869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10870 lt_cv_sys_global_symbol_to_c_name_address \
10871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10872 old_postinstall_cmds old_postuninstall_cmds \
10876 lt_prog_compiler_wl \
10877 lt_prog_compiler_pic \
10878 lt_prog_compiler_static \
10879 lt_prog_compiler_no_builtin_flag \
10880 export_dynamic_flag_spec \
10881 thread_safe_flag_spec \
10882 whole_archive_flag_spec \
10883 enable_shared_with_static_runtimes \
10885 old_archive_from_new_cmds \
10890 compiler_lib_search_path \
10892 archive_expsym_cmds \
10894 postuninstall_cmds \
10895 old_archive_from_expsyms_cmds \
10896 allow_undefined_flag \
10897 no_undefined_flag \
10898 export_symbols_cmds \
10899 hardcode_libdir_flag_spec \
10900 hardcode_libdir_flag_spec_ld \
10901 hardcode_libdir_separator \
10902 hardcode_automatic \
10904 module_expsym_cmds \
10905 lt_cv_prog_compiler_c_o \
10907 include_expsyms; do
10910 old_archive_cmds | \
10911 old_archive_from_new_cmds | \
10913 archive_expsym_cmds | \
10915 module_expsym_cmds | \
10916 old_archive_from_expsyms_cmds | \
10917 export_symbols_cmds | \
10918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10919 postinstall_cmds | postuninstall_cmds | \
10920 old_postinstall_cmds | old_postuninstall_cmds | \
10921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10922 # Double-quote double-evaled strings.
10923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10932 *'\$0 --fallback-echo"')
10933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10937 cfgfile="${ofile}T"
10938 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10940 { echo "$as_me:$LINENO: creating $ofile" >&5
10941 echo "$as_me: creating $ofile" >&6;}
10943 cat <<__EOF__ >> "$cfgfile"
10946 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10947 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10948 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10950 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10951 # Free Software Foundation, Inc.
10953 # This file is part of GNU Libtool:
10954 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10956 # This program is free software; you can redistribute it and/or modify
10957 # it under the terms of the GNU General Public License as published by
10958 # the Free Software Foundation; either version 2 of the License, or
10959 # (at your option) any later version.
10961 # This program is distributed in the hope that it will be useful, but
10962 # WITHOUT ANY WARRANTY; without even the implied warranty of
10963 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10964 # General Public License for more details.
10966 # You should have received a copy of the GNU General Public License
10967 # along with this program; if not, write to the Free Software
10968 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10970 # As a special exception to the GNU General Public License, if you
10971 # distribute this file as part of a program that contains a
10972 # configuration script generated by Autoconf, you may include it under
10973 # the same distribution terms that you use for the rest of that program.
10975 # A sed program that does not truncate output.
10978 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10979 Xsed="$SED -e 1s/^X//"
10981 # The HP-UX ksh and POSIX shell print the target directory to stdout
10982 # if CDPATH is set.
10983 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10985 # The names of the tagged configurations supported by this script.
10988 # ### BEGIN LIBTOOL CONFIG
10990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10992 # Shell to use when invoking shell scripts.
10995 # Whether or not to build shared libraries.
10996 build_libtool_libs=$enable_shared
10998 # Whether or not to build static libraries.
10999 build_old_libs=$enable_static
11001 # Whether or not to add -lc for building shared libraries.
11002 build_libtool_need_lc=$archive_cmds_need_lc
11004 # Whether or not to disallow shared libs when runtime libs are static
11005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11007 # Whether or not to optimize for fast installation.
11008 fast_install=$enable_fast_install
11011 host_alias=$host_alias
11015 # The build system.
11016 build_alias=$build_alias
11020 # An echo program that does not interpret backslashes.
11025 AR_FLAGS=$lt_AR_FLAGS
11030 # LTCC compiler flags.
11031 LTCFLAGS=$lt_LTCFLAGS
11033 # A language-specific compiler.
11036 # Is the compiler the GNU C compiler?
11042 # The linker used to build libraries.
11045 # Whether we need hard or soft links.
11048 # A BSD-compatible nm program.
11051 # A symbol stripping program
11054 # Used to examine libraries when file_magic_cmd begins "file"
11055 MAGIC_CMD=$MAGIC_CMD
11057 # Used on cygwin: DLL creation program.
11060 # Used on cygwin: object dumper.
11063 # Used on cygwin: assembler.
11066 # The name of the directory that contains temporary libtool files.
11069 # How to create reloadable object files.
11070 reload_flag=$lt_reload_flag
11071 reload_cmds=$lt_reload_cmds
11073 # How to pass a linker flag through the compiler.
11074 wl=$lt_lt_prog_compiler_wl
11076 # Object file suffix (normally "o").
11077 objext="$ac_objext"
11079 # Old archive suffix (normally "a").
11082 # Shared library suffix (normally ".so").
11083 shrext_cmds='$shrext_cmds'
11085 # Executable file suffix (normally "").
11088 # Additional compiler flags for building library objects.
11089 pic_flag=$lt_lt_prog_compiler_pic
11092 # What is the maximum length of a command?
11093 max_cmd_len=$lt_cv_sys_max_cmd_len
11095 # Does compiler simultaneously support -c and -o options?
11096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11098 # Must we lock files when doing compilation?
11099 need_locks=$lt_need_locks
11101 # Do we need the lib prefix for modules?
11102 need_lib_prefix=$need_lib_prefix
11104 # Do we need a version for libraries?
11105 need_version=$need_version
11107 # Whether dlopen is supported.
11108 dlopen_support=$enable_dlopen
11110 # Whether dlopen of programs is supported.
11111 dlopen_self=$enable_dlopen_self
11113 # Whether dlopen of statically linked programs is supported.
11114 dlopen_self_static=$enable_dlopen_self_static
11116 # Compiler flag to prevent dynamic linking.
11117 link_static_flag=$lt_lt_prog_compiler_static
11119 # Compiler flag to turn off builtin functions.
11120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11122 # Compiler flag to allow reflexive dlopens.
11123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11125 # Compiler flag to generate shared objects directly from archives.
11126 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11128 # Compiler flag to generate thread-safe objects.
11129 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11131 # Library versioning type.
11132 version_type=$version_type
11134 # Format of library name prefix.
11135 libname_spec=$lt_libname_spec
11137 # List of archive names. First name is the real one, the rest are links.
11138 # The last name is the one that the linker finds with -lNAME.
11139 library_names_spec=$lt_library_names_spec
11141 # The coded name of the library, if different from the real name.
11142 soname_spec=$lt_soname_spec
11144 # Commands used to build and install an old-style archive.
11146 old_archive_cmds=$lt_old_archive_cmds
11147 old_postinstall_cmds=$lt_old_postinstall_cmds
11148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11150 # Create an old-style archive from a shared archive.
11151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11153 # Create a temporary old-style archive to link instead of a shared archive.
11154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11156 # Commands used to build and install a shared archive.
11157 archive_cmds=$lt_archive_cmds
11158 archive_expsym_cmds=$lt_archive_expsym_cmds
11159 postinstall_cmds=$lt_postinstall_cmds
11160 postuninstall_cmds=$lt_postuninstall_cmds
11162 # Commands used to build a loadable module (assumed same as above if empty)
11163 module_cmds=$lt_module_cmds
11164 module_expsym_cmds=$lt_module_expsym_cmds
11166 # Commands to strip libraries.
11167 old_striplib=$lt_old_striplib
11168 striplib=$lt_striplib
11170 # Dependencies to place before the objects being linked to create a
11172 predep_objects=$lt_predep_objects
11174 # Dependencies to place after the objects being linked to create a
11176 postdep_objects=$lt_postdep_objects
11178 # Dependencies to place before the objects being linked to create a
11180 predeps=$lt_predeps
11182 # Dependencies to place after the objects being linked to create a
11184 postdeps=$lt_postdeps
11186 # The library search path used internally by the compiler when linking
11187 # a shared library.
11188 compiler_lib_search_path=$lt_compiler_lib_search_path
11190 # Method to check whether dependent libraries are shared objects.
11191 deplibs_check_method=$lt_deplibs_check_method
11193 # Command to use when deplibs_check_method == file_magic.
11194 file_magic_cmd=$lt_file_magic_cmd
11196 # Flag that allows shared libraries with undefined symbols to be built.
11197 allow_undefined_flag=$lt_allow_undefined_flag
11199 # Flag that forces no undefined symbols.
11200 no_undefined_flag=$lt_no_undefined_flag
11202 # Commands used to finish a libtool library installation in a directory.
11203 finish_cmds=$lt_finish_cmds
11205 # Same as above, but a single script fragment to be evaled but not shown.
11206 finish_eval=$lt_finish_eval
11208 # Take the output of nm and produce a listing of raw symbols and C names.
11209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11211 # Transform the output of nm in a proper C declaration
11212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11214 # Transform the output of nm in a C name address pair
11215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11217 # This is the shared library runtime path variable.
11218 runpath_var=$runpath_var
11220 # This is the shared library path variable.
11221 shlibpath_var=$shlibpath_var
11223 # Is shlibpath searched before the hard-coded library search path?
11224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11226 # How to hardcode a shared library path into an executable.
11227 hardcode_action=$hardcode_action
11229 # Whether we should hardcode library paths into libraries.
11230 hardcode_into_libs=$hardcode_into_libs
11232 # Flag to hardcode \$libdir into a binary during linking.
11233 # This must work even if \$libdir does not exist.
11234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11236 # If ld is used when linking, flag to hardcode \$libdir into
11237 # a binary during linking. This must work even if \$libdir does
11239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11241 # Whether we need a single -rpath flag with a separated argument.
11242 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11245 # resulting binary.
11246 hardcode_direct=$hardcode_direct
11248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11249 # resulting binary.
11250 hardcode_minus_L=$hardcode_minus_L
11252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11253 # the resulting binary.
11254 hardcode_shlibpath_var=$hardcode_shlibpath_var
11256 # Set to yes if building a shared library automatically hardcodes DIR into the library
11257 # and all subsequent libraries and executables linked against it.
11258 hardcode_automatic=$hardcode_automatic
11260 # Variables whose values should be saved in libtool wrapper scripts and
11261 # restored at relink time.
11262 variables_saved_for_relink="$variables_saved_for_relink"
11264 # Whether libtool must link a program against all its dependency libraries.
11265 link_all_deplibs=$link_all_deplibs
11267 # Compile-time system search path for libraries
11268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11270 # Run-time system search path for libraries
11271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11273 # Fix the shell variable \$srcfile for the compiler.
11274 fix_srcfile_path="$fix_srcfile_path"
11276 # Set to yes if exported symbols are required.
11277 always_export_symbols=$always_export_symbols
11279 # The commands to list exported symbols.
11280 export_symbols_cmds=$lt_export_symbols_cmds
11282 # The commands to extract the exported symbol list from a shared archive.
11283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11285 # Symbols that should not be listed in the preloaded symbols.
11286 exclude_expsyms=$lt_exclude_expsyms
11288 # Symbols that must always be exported.
11289 include_expsyms=$lt_include_expsyms
11291 # ### END LIBTOOL CONFIG
11298 cat <<\EOF >> "$cfgfile"
11300 # AIX sometimes has problems with the GCC collect2 program. For some
11301 # reason, if we set the COLLECT_NAMES environment variable, the problems
11302 # vanish in a puff of smoke.
11303 if test "X${COLLECT_NAMES+set}" != Xset; then
11305 export COLLECT_NAMES
11311 # We use sed instead of cat because bash on DJGPP gets confused if
11312 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11313 # text mode, it properly converts lines to CR/LF. This bash problem
11314 # is reportedly fixed, but why not run on old versions too?
11315 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11317 mv -f "$cfgfile" "$ofile" || \
11318 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11322 # If there is no Makefile yet, we rely on a make rule to execute
11323 # `config.status --recheck' to rerun these tests and create the
11324 # libtool script then.
11325 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11326 if test -f "$ltmain_in"; then
11327 test -f Makefile && make "$ltmain"
11333 ac_cpp='$CPP $CPPFLAGS'
11334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11341 # Check whether --with-tags was given.
11342 if test "${with_tags+set}" = set; then
11343 withval=$with_tags; tagnames="$withval"
11347 if test -f "$ltmain" && test -n "$tagnames"; then
11348 if test ! -f "${ofile}"; then
11349 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11350 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11353 if test -z "$LTCC"; then
11354 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11355 if test -z "$LTCC"; then
11356 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11357 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11360 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11363 if test -z "$LTCFLAGS"; then
11364 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11367 # Extract list of available tagged configurations in $ofile.
11368 # Note that this assumes the entire list is on one line.
11369 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11371 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11372 for tagname in $tagnames; do
11374 # Check whether tagname contains only valid characters
11375 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11377 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11378 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11379 { (exit 1); exit 1; }; }
11383 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11385 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11386 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11387 { (exit 1); exit 1; }; }
11390 # Update the list of available tags.
11391 if test -n "$tagname"; then
11392 echo appending configuration tag \"$tagname\" to $ofile
11396 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11397 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11398 (test "X$CXX" != "Xg++"))) ; then
11400 ac_cpp='$CXXCPP $CPPFLAGS'
11401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11408 archive_cmds_need_lc_CXX=no
11409 allow_undefined_flag_CXX=
11410 always_export_symbols_CXX=no
11411 archive_expsym_cmds_CXX=
11412 export_dynamic_flag_spec_CXX=
11413 hardcode_direct_CXX=no
11414 hardcode_libdir_flag_spec_CXX=
11415 hardcode_libdir_flag_spec_ld_CXX=
11416 hardcode_libdir_separator_CXX=
11417 hardcode_minus_L_CXX=no
11418 hardcode_shlibpath_var_CXX=unsupported
11419 hardcode_automatic_CXX=no
11421 module_expsym_cmds_CXX=
11422 link_all_deplibs_CXX=unknown
11423 old_archive_cmds_CXX=$old_archive_cmds
11424 no_undefined_flag_CXX=
11425 whole_archive_flag_spec_CXX=
11426 enable_shared_with_static_runtimes_CXX=no
11428 # Dependencies to place before and after the object being linked:
11429 predep_objects_CXX=
11430 postdep_objects_CXX=
11433 compiler_lib_search_path_CXX=
11435 # Source file extension for C++ test sources.
11438 # Object file extension for compiled C++ test sources.
11442 # Code to be used in simple compile tests
11443 lt_simple_compile_test_code="int some_variable = 0;\n"
11445 # Code to be used in simple link tests
11446 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11450 # If no C compiler was specified, use CC.
11453 # If no C compiler flags were specified, use CFLAGS.
11454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11456 # Allow CC to be a program name with arguments.
11460 # save warnings/boilerplate of simple test code
11461 ac_outfile=conftest.$ac_objext
11462 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11464 _lt_compiler_boilerplate=`cat conftest.err`
11467 ac_outfile=conftest.$ac_objext
11468 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11470 _lt_linker_boilerplate=`cat conftest.err`
11474 # Allow CC to be a program name with arguments.
11479 lt_save_with_gnu_ld=$with_gnu_ld
11480 lt_save_path_LD=$lt_cv_path_LD
11481 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11482 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11484 $as_unset lt_cv_prog_gnu_ld
11486 if test -n "${lt_cv_path_LDCXX+set}"; then
11487 lt_cv_path_LD=$lt_cv_path_LDCXX
11489 $as_unset lt_cv_path_LD
11491 test -z "${LDCXX+set}" || LD=$LDCXX
11495 for cc_temp in $compiler""; do
11497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11503 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11506 # We don't want -fno-exception wen compiling C++ code, so set the
11507 # no_builtin_flag separately
11508 if test "$GXX" = yes; then
11509 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11511 lt_prog_compiler_no_builtin_flag_CXX=
11514 if test "$GXX" = yes; then
11515 # Set up default GNU C++ configuration
11518 # Check whether --with-gnu-ld was given.
11519 if test "${with_gnu_ld+set}" = set; then
11520 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11526 if test "$GCC" = yes; then
11527 # Check if gcc -print-prog-name=ld gives a path.
11528 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11529 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11532 # gcc leaves a trailing carriage return which upsets mingw
11533 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11535 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11538 # Accept absolute paths.
11540 re_direlt='/[^/][^/]*/\.\./'
11541 # Canonicalize the pathname of ld
11542 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11543 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11544 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11546 test -z "$LD" && LD="$ac_prog"
11549 # If it fails, then pretend we aren't using GCC.
11553 # If it is relative, then search for the first ld in PATH.
11554 with_gnu_ld=unknown
11557 elif test "$with_gnu_ld" = yes; then
11558 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11559 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11561 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11562 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11564 if test "${lt_cv_path_LD+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 if test -z "$LD"; then
11568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11569 for ac_dir in $PATH; do
11571 test -z "$ac_dir" && ac_dir=.
11572 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11573 lt_cv_path_LD="$ac_dir/$ac_prog"
11574 # Check to see if the program is GNU ld. I'd rather use --version,
11575 # but apparently some variants of GNU ld only accept -v.
11576 # Break only if it was the GNU/non-GNU ld that we prefer.
11577 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11578 *GNU* | *'with BFD'*)
11579 test "$with_gnu_ld" != no && break
11582 test "$with_gnu_ld" != yes && break
11589 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11593 LD="$lt_cv_path_LD"
11594 if test -n "$LD"; then
11595 { echo "$as_me:$LINENO: result: $LD" >&5
11596 echo "${ECHO_T}$LD" >&6; }
11598 { echo "$as_me:$LINENO: result: no" >&5
11599 echo "${ECHO_T}no" >&6; }
11601 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11602 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11603 { (exit 1); exit 1; }; }
11604 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11605 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11606 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11610 case `$LD -v 2>&1 </dev/null` in
11611 *GNU* | *'with BFD'*)
11612 lt_cv_prog_gnu_ld=yes
11615 lt_cv_prog_gnu_ld=no
11619 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11620 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11621 with_gnu_ld=$lt_cv_prog_gnu_ld
11625 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11626 # archiving commands below assume that GNU ld is being used.
11627 if test "$with_gnu_ld" = yes; then
11628 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11629 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'
11631 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11634 # If archive_cmds runs LD, not CC, wlarc should be empty
11635 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11636 # investigate it a little bit more. (MM)
11639 # ancient GNU ld didn't support --whole-archive et. al.
11640 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11641 grep 'no-whole-archive' > /dev/null; then
11642 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11644 whole_archive_flag_spec_CXX=
11650 # A generic and very simple default shared library creation
11651 # command for GNU C++ for the case where it uses the native
11652 # linker, instead of GNU ld. If possible, this setting should
11653 # overridden to take advantage of the native linker features on
11654 # the platform it is being used on.
11655 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11661 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11669 # PORTME: fill in a description of your system's C++ link characteristics
11670 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11671 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11675 # FIXME: insert proper C++ library support
11679 if test "$host_cpu" = ia64; then
11680 # On IA64, the linker does run time linking by default, so we don't
11681 # have to do anything special.
11682 aix_use_runtimelinking=no
11683 exp_sym_flag='-Bexport'
11686 aix_use_runtimelinking=no
11688 # Test if we are trying to use run time linking or normal
11689 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11690 # need to do runtime linking.
11691 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11692 for ld_flag in $LDFLAGS; do
11695 aix_use_runtimelinking=yes
11703 exp_sym_flag='-bexport'
11704 no_entry_flag='-bnoentry'
11707 # When large executables or shared objects are built, AIX ld can
11708 # have problems creating the table of contents. If linking a library
11709 # or program results in "error TOC overflow" add -mminimal-toc to
11710 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11711 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11713 archive_cmds_CXX=''
11714 hardcode_direct_CXX=yes
11715 hardcode_libdir_separator_CXX=':'
11716 link_all_deplibs_CXX=yes
11718 if test "$GXX" = yes; then
11719 case $host_os in aix4.[012]|aix4.[012].*)
11720 # We only want to do this on AIX 4.2 and lower, the check
11721 # below for broken collect2 doesn't work under 4.3+
11722 collect2name=`${CC} -print-prog-name=collect2`
11723 if test -f "$collect2name" && \
11724 strings "$collect2name" | grep resolve_lib_name >/dev/null
11726 # We have reworked collect2
11727 hardcode_direct_CXX=yes
11729 # We have old collect2
11730 hardcode_direct_CXX=unsupported
11731 # It fails to find uninstalled libraries when the uninstalled
11732 # path is not listed in the libpath. Setting hardcode_minus_L
11733 # to unsupported forces relinking
11734 hardcode_minus_L_CXX=yes
11735 hardcode_libdir_flag_spec_CXX='-L$libdir'
11736 hardcode_libdir_separator_CXX=
11740 shared_flag='-shared'
11741 if test "$aix_use_runtimelinking" = yes; then
11742 shared_flag="$shared_flag "'${wl}-G'
11746 if test "$host_cpu" = ia64; then
11747 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11748 # chokes on -Wl,-G. The following line is correct:
11751 if test "$aix_use_runtimelinking" = yes; then
11752 shared_flag='${wl}-G'
11754 shared_flag='${wl}-bM:SRE'
11759 # It seems that -bexpall does not export symbols beginning with
11760 # underscore (_), so it is better to generate a list of symbols to export.
11761 always_export_symbols_CXX=yes
11762 if test "$aix_use_runtimelinking" = yes; then
11763 # Warning - without using the other runtime loading flags (-brtl),
11764 # -berok will link without error, but may produce a broken library.
11765 allow_undefined_flag_CXX='-berok'
11766 # Determine the default libpath from the value encoded in an empty executable.
11767 cat >conftest.$ac_ext <<_ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_link") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11797 { (case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_try") 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest$ac_exeext'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11819 # Check for a 64-bit object if we didn't find anything.
11820 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; }
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11833 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11835 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"
11837 if test "$host_cpu" = ia64; then
11838 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11839 allow_undefined_flag_CXX="-z nodefs"
11840 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"
11842 # Determine the default libpath from the value encoded in an empty executable.
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_link") 2>conftest.er1
11867 grep -v '^ *+' conftest.er1 >conftest.err
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest$ac_exeext'
11883 { (case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_try") 2>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; }; then
11893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11895 # Check for a 64-bit object if we didn't find anything.
11896 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; }
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11905 rm -f core conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11909 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11910 # Warning - without using the other run time loading flags,
11911 # -berok will link without error, but may produce a broken library.
11912 no_undefined_flag_CXX=' ${wl}-bernotok'
11913 allow_undefined_flag_CXX=' ${wl}-berok'
11914 # Exported symbols can be pulled into shared objects from archives
11915 whole_archive_flag_spec_CXX='$convenience'
11916 archive_cmds_need_lc_CXX=yes
11917 # This is similar to how AIX traditionally builds its shared libraries.
11918 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'
11924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11925 allow_undefined_flag_CXX=unsupported
11926 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11927 # support --undefined. This deserves some investigation. FIXME
11928 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11935 case $cc_basename in
11937 # FIXME: insert proper C++ library support
11943 cygwin* | mingw* | pw32*)
11944 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11945 # as there is no search path for DLLs.
11946 hardcode_libdir_flag_spec_CXX='-L$libdir'
11947 allow_undefined_flag_CXX=unsupported
11948 always_export_symbols_CXX=no
11949 enable_shared_with_static_runtimes_CXX=yes
11951 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11952 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'
11953 # If the export-symbols file already is a .def file (1st line
11954 # is EXPORTS), use it as is; otherwise, prepend...
11955 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11956 cp $export_symbols $output_objdir/$soname.def;
11958 echo EXPORTS > $output_objdir/$soname.def;
11959 cat $export_symbols >> $output_objdir/$soname.def;
11961 $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'
11966 darwin* | rhapsody*)
11968 rhapsody* | darwin1.[012])
11969 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11972 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11973 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11975 case ${MACOSX_DEPLOYMENT_TARGET} in
11977 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11980 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11986 archive_cmds_need_lc_CXX=no
11987 hardcode_direct_CXX=no
11988 hardcode_automatic_CXX=yes
11989 hardcode_shlibpath_var_CXX=unsupported
11990 whole_archive_flag_spec_CXX=''
11991 link_all_deplibs_CXX=yes
11993 if test "$GXX" = yes ; then
11994 lt_int_apple_cc_single_mod=no
11995 output_verbose_link_cmd='echo'
11996 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11997 lt_int_apple_cc_single_mod=yes
11999 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12000 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12002 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'
12004 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12005 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12006 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12007 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}'
12009 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}'
12011 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}'
12013 case $cc_basename in
12015 output_verbose_link_cmd='echo'
12016 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'
12017 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12018 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12019 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}'
12020 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}'
12030 case $cc_basename in
12032 # FIXME: insert proper C++ library support
12036 # Green Hills C++ Compiler
12037 # FIXME: insert proper C++ library support
12041 # FIXME: insert proper C++ library support
12047 # C++ shared libraries reported to be fairly broken before switch to ELF
12051 archive_cmds_need_lc_CXX=no
12053 freebsd* | kfreebsd*-gnu | dragonfly*)
12054 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12061 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12062 hardcode_libdir_separator_CXX=:
12063 export_dynamic_flag_spec_CXX='${wl}-E'
12064 hardcode_direct_CXX=yes
12065 hardcode_minus_L_CXX=yes # Not in the search PATH,
12066 # but as the default
12067 # location of the library.
12069 case $cc_basename in
12071 # FIXME: insert proper C++ library support
12075 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'
12076 # Commands to make compiler produce verbose output that lists
12077 # what "hidden" libraries, object files and flags are used when
12078 # linking a shared library.
12080 # There doesn't appear to be a way to prevent this compiler from
12081 # explicitly linking system object files so we need to strip them
12082 # from the output so that they don't get included in the library
12084 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'
12087 if test "$GXX" = yes; then
12088 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'
12090 # FIXME: insert proper C++ library support
12097 if test $with_gnu_ld = no; then
12098 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12099 hardcode_libdir_separator_CXX=:
12103 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12106 export_dynamic_flag_spec_CXX='${wl}-E'
12112 hardcode_direct_CXX=no
12113 hardcode_shlibpath_var_CXX=no
12116 hardcode_direct_CXX=yes
12117 hardcode_minus_L_CXX=yes # Not in the search PATH,
12118 # but as the default
12119 # location of the library.
12123 case $cc_basename in
12125 # FIXME: insert proper C++ library support
12131 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12134 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12137 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12140 # Commands to make compiler produce verbose output that lists
12141 # what "hidden" libraries, object files and flags are used when
12142 # linking a shared library.
12144 # There doesn't appear to be a way to prevent this compiler from
12145 # explicitly linking system object files so we need to strip them
12146 # from the output so that they don't get included in the library
12148 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'
12151 if test "$GXX" = yes; then
12152 if test $with_gnu_ld = no; then
12155 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12158 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12161 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'
12166 # FIXME: insert proper C++ library support
12173 hardcode_direct_CXX=no
12174 hardcode_shlibpath_var_CXX=no
12175 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12176 export_dynamic_flag_spec_CXX='${wl}-E'
12177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12178 # Instead, shared libraries are loaded at an image base (0x10000000 by
12179 # default) and relocated if they conflict, which is a slow very memory
12180 # consuming and fragmenting process. To avoid this, we pick a random,
12181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12182 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12183 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'
12184 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'
12187 case $cc_basename in
12190 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'
12192 # Archives containing C++ object files must be created using
12193 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12194 # necessary to make sure instantiated templates are included
12196 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12199 if test "$GXX" = yes; then
12200 if test "$with_gnu_ld" = no; then
12201 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'
12203 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'
12206 link_all_deplibs_CXX=yes
12209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12210 hardcode_libdir_separator_CXX=:
12213 case $cc_basename in
12215 # Kuck and Associates, Inc. (KAI) C++ Compiler
12217 # KCC will only create a shared library if the output file
12218 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12219 # to its proper name (with version) after linking.
12220 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'
12221 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'
12222 # Commands to make compiler produce verbose output that lists
12223 # what "hidden" libraries, object files and flags are used when
12224 # linking a shared library.
12226 # There doesn't appear to be a way to prevent this compiler from
12227 # explicitly linking system object files so we need to strip them
12228 # from the output so that they don't get included in the library
12230 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'
12232 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12235 # Archives containing C++ object files must be created using
12236 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12237 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12242 # version 8.0 and above of icpc choke on multiply defined symbols
12243 # if we add $predep_objects and $postdep_objects, however 7.1 and
12244 # earlier do not add the objects themselves.
12245 case `$CC -V 2>&1` in
12247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248 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'
12250 *) # Version 8.0 or newer
12253 ia64*) tmp_idyn=' -i_dynamic';;
12255 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12256 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'
12259 archive_cmds_need_lc_CXX=no
12260 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12261 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12262 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12265 # Portland Group C++ compiler
12266 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12267 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'
12269 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12271 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'
12275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12276 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'
12278 runpath_var=LD_RUN_PATH
12279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12280 hardcode_libdir_separator_CXX=:
12282 # Commands to make compiler produce verbose output that lists
12283 # what "hidden" libraries, object files and flags are used when
12284 # linking a shared library.
12286 # There doesn't appear to be a way to prevent this compiler from
12287 # explicitly linking system object files so we need to strip them
12288 # from the output so that they don't get included in the library
12290 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'
12295 # FIXME: insert proper C++ library support
12299 # FIXME: insert proper C++ library support
12303 case $cc_basename in
12305 # FIXME: insert proper C++ library support
12309 # FIXME: insert proper C++ library support
12315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12316 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12318 hardcode_libdir_flag_spec_CXX='-R$libdir'
12319 hardcode_direct_CXX=yes
12320 hardcode_shlibpath_var_CXX=no
12322 # Workaround some broken pre-1.5 toolchains
12323 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12326 # C++ shared libraries are fairly broken
12330 hardcode_direct_CXX=yes
12331 hardcode_shlibpath_var_CXX=no
12332 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12333 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12335 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12336 export_dynamic_flag_spec_CXX='${wl}-E'
12337 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12339 output_verbose_link_cmd='echo'
12342 case $cc_basename in
12344 # Kuck and Associates, Inc. (KAI) C++ Compiler
12346 # KCC will only create a shared library if the output file
12347 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12348 # to its proper name (with version) after linking.
12349 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'
12351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12352 hardcode_libdir_separator_CXX=:
12354 # Archives containing C++ object files must be created using
12355 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12356 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12360 # Rational C++ 2.4.1
12361 # FIXME: insert proper C++ library support
12365 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12366 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'
12368 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12369 hardcode_libdir_separator_CXX=:
12371 # Commands to make compiler produce verbose output that lists
12372 # what "hidden" libraries, object files and flags are used when
12373 # linking a shared library.
12375 # There doesn't appear to be a way to prevent this compiler from
12376 # explicitly linking system object files so we need to strip them
12377 # from the output so that they don't get included in the library
12379 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'
12382 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12383 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12384 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'
12386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12387 hardcode_libdir_separator_CXX=:
12389 # Commands to make compiler produce verbose output that lists
12390 # what "hidden" libraries, object files and flags are used when
12391 # linking a shared library.
12392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12395 # FIXME: insert proper C++ library support
12402 case $cc_basename in
12404 # Kuck and Associates, Inc. (KAI) C++ Compiler
12406 # KCC will only create a shared library if the output file
12407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12408 # to its proper name (with version) after linking.
12409 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'
12411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12412 hardcode_libdir_separator_CXX=:
12414 # Archives containing C++ object files must be created using
12415 # the KAI C++ compiler.
12416 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12419 # Rational C++ 2.4.1
12420 # FIXME: insert proper C++ library support
12424 allow_undefined_flag_CXX=' -expect_unresolved \*'
12425 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'
12426 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12427 echo "-hidden">> $lib.exp~
12428 $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~
12431 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12432 hardcode_libdir_separator_CXX=:
12434 # Commands to make compiler produce verbose output that lists
12435 # what "hidden" libraries, object files and flags are used when
12436 # linking a shared library.
12438 # There doesn't appear to be a way to prevent this compiler from
12439 # explicitly linking system object files so we need to strip them
12440 # from the output so that they don't get included in the library
12442 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'
12445 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12446 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12447 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'
12449 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12450 hardcode_libdir_separator_CXX=:
12452 # Commands to make compiler produce verbose output that lists
12453 # what "hidden" libraries, object files and flags are used when
12454 # linking a shared library.
12455 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12458 # FIXME: insert proper C++ library support
12465 # FIXME: insert proper C++ library support
12469 case $cc_basename in
12472 # FIXME: insert proper C++ library support
12477 # FIXME: insert proper C++ library support
12481 # FIXME: insert proper C++ library support
12487 case $cc_basename in
12489 # Sun C++ 4.2, 5.x and Centerline C++
12490 archive_cmds_need_lc_CXX=yes
12491 no_undefined_flag_CXX=' -zdefs'
12492 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12493 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12494 $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'
12496 hardcode_libdir_flag_spec_CXX='-R$libdir'
12497 hardcode_shlibpath_var_CXX=no
12499 solaris2.[0-5] | solaris2.[0-5].*) ;;
12501 # The C++ compiler is used as linker so we must use $wl
12502 # flag to pass the commands to the underlying system
12503 # linker. We must also pass each convience library through
12504 # to the system linker between allextract/defaultextract.
12505 # The C++ compiler will combine linker options so we
12506 # cannot just pass the convience library names through
12508 # Supported since Solaris 2.6 (maybe 2.5.1?)
12509 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'
12512 link_all_deplibs_CXX=yes
12514 output_verbose_link_cmd='echo'
12516 # Archives containing C++ object files must be created using
12517 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12518 # necessary to make sure instantiated templates are included
12520 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12523 # Green Hills C++ Compiler
12524 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12526 # The C++ compiler must be used to create the archive.
12527 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12530 # GNU C++ compiler with Solaris linker
12531 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12532 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12533 if $CC --version | grep -v '^2\.7' > /dev/null; then
12534 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12535 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12536 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12538 # Commands to make compiler produce verbose output that lists
12539 # what "hidden" libraries, object files and flags are used when
12540 # linking a shared library.
12541 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12543 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12545 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12546 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12547 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12549 # Commands to make compiler produce verbose output that lists
12550 # what "hidden" libraries, object files and flags are used when
12551 # linking a shared library.
12552 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12555 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12560 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12561 no_undefined_flag_CXX='${wl}-z,text'
12562 archive_cmds_need_lc_CXX=no
12563 hardcode_shlibpath_var_CXX=no
12564 runpath_var='LD_RUN_PATH'
12566 case $cc_basename in
12568 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12572 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12577 sysv5* | sco3.2v5* | sco5v6*)
12578 # Note: We can NOT use -z defs as we might desire, because we do not
12579 # link with -lc, and that would cause any symbols used from libc to
12580 # always be unresolved, which means just about no library would
12581 # ever link correctly. If we're not using GNU ld we use -z text
12582 # though, which does catch some bad symbols but isn't as heavy-handed
12584 # For security reasons, it is highly recommended that you always
12585 # use absolute paths for naming shared libraries, and exclude the
12586 # DT_RUNPATH tag from executables and libraries. But doing so
12587 # requires that you compile everything twice, which is a pain.
12588 # So that behaviour is only enabled if SCOABSPATH is set to a
12589 # non-empty value in the environment. Most likely only useful for
12590 # creating official distributions of packages.
12591 # This is a hack until libtool officially supports absolute path
12592 # names for shared libraries.
12593 no_undefined_flag_CXX='${wl}-z,text'
12594 allow_undefined_flag_CXX='${wl}-z,nodefs'
12595 archive_cmds_need_lc_CXX=no
12596 hardcode_shlibpath_var_CXX=no
12597 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12598 hardcode_libdir_separator_CXX=':'
12599 link_all_deplibs_CXX=yes
12600 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12601 runpath_var='LD_RUN_PATH'
12603 case $cc_basename in
12605 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12606 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12609 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12610 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12615 case $cc_basename in
12617 # NonStop-UX NCC 3.20
12618 # FIXME: insert proper C++ library support
12622 # FIXME: insert proper C++ library support
12628 # FIXME: insert proper C++ library support
12632 # FIXME: insert proper C++ library support
12636 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12637 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12638 test "$ld_shlibs_CXX" = no && can_build_shared=no
12644 ## There is no encapsulation within the following macros, do not change
12645 ## the running order or otherwise move them around unless you know exactly
12646 ## what you are doing...
12648 cat > conftest.$ac_ext <<EOF
12652 Foo (void) { a = 0; }
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659 (eval $ac_compile) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; then
12663 # Parse the compiler output and extract the necessary
12664 # objects, libraries and library flags.
12666 # Sentinel used to keep track of whether or not we are before
12667 # the conftest object file.
12668 pre_test_object_deps_done=no
12670 # The `*' in the case matches for architectures that use `case' in
12671 # $output_verbose_cmd can trigger glob expansion during the loop
12672 # eval without this substitution.
12673 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12675 for p in `eval $output_verbose_link_cmd`; do
12679 # Some compilers place space between "-{L,R}" and the path.
12680 # Remove the space.
12681 if test $p = "-L" \
12682 || test $p = "-R"; then
12689 if test "$pre_test_object_deps_done" = no; then
12692 # Internal compiler library paths should come after those
12693 # provided the user. The postdeps already come after the
12694 # user supplied libs so there is no need to process them.
12695 if test -z "$compiler_lib_search_path_CXX"; then
12696 compiler_lib_search_path_CXX="${prev}${p}"
12698 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12701 # The "-l" case would never come before the object being
12702 # linked, so don't bother handling this case.
12705 if test -z "$postdeps_CXX"; then
12706 postdeps_CXX="${prev}${p}"
12708 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12714 # This assumes that the test object file only shows up
12715 # once in the compiler output.
12716 if test "$p" = "conftest.$objext"; then
12717 pre_test_object_deps_done=yes
12721 if test "$pre_test_object_deps_done" = no; then
12722 if test -z "$predep_objects_CXX"; then
12723 predep_objects_CXX="$p"
12725 predep_objects_CXX="$predep_objects_CXX $p"
12728 if test -z "$postdep_objects_CXX"; then
12729 postdep_objects_CXX="$p"
12731 postdep_objects_CXX="$postdep_objects_CXX $p"
12736 *) ;; # Ignore the rest.
12744 echo "libtool.m4: error: problem compiling CXX test program"
12747 $rm -f confest.$objext
12749 # PORTME: override above test on systems where it is broken
12752 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12753 # hack all around it, let's just trust "g++" to DTRT.
12754 predep_objects_CXX=
12755 postdep_objects_CXX=
12760 case $cc_basename in
12762 # Adding this requires a known-good setup of shared libraries for
12763 # Sun compiler versions before 5.6, else PIC objects from an old
12764 # archive will be linked into the output, leading to subtle bugs.
12765 postdeps_CXX='-lCstd -lCrun'
12772 case " $postdeps_CXX " in
12773 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12776 lt_prog_compiler_wl_CXX=
12777 lt_prog_compiler_pic_CXX=
12778 lt_prog_compiler_static_CXX=
12780 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12781 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12783 # C++ specific cases for pic, static, wl, etc.
12784 if test "$GXX" = yes; then
12785 lt_prog_compiler_wl_CXX='-Wl,'
12786 lt_prog_compiler_static_CXX='-static'
12790 # All AIX code is PIC.
12791 if test "$host_cpu" = ia64; then
12792 # AIX 5 now supports IA64 processor
12793 lt_prog_compiler_static_CXX='-Bstatic'
12797 # FIXME: we need at least 68020 code to build shared libraries, but
12798 # adding the `-m68020' flag to GCC prevents building anything better,
12800 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12802 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12803 # PIC is the default for these OSes.
12805 mingw* | os2* | pw32*)
12806 # This hack is so that the source file can tell whether it is being
12807 # built for inclusion in a dll (and should export symbols for example).
12808 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12810 darwin* | rhapsody*)
12811 # PIC is the default on this platform
12812 # Common symbols not allowed in MH_DYLIB files
12813 lt_prog_compiler_pic_CXX='-fno-common'
12816 # DJGPP does not support shared libraries at all
12817 lt_prog_compiler_pic_CXX=
12820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12821 # Instead, we relocate shared libraries at runtime.
12824 if test -d /usr/nec; then
12825 lt_prog_compiler_pic_CXX=-Kconform_pic
12829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12830 # not for PA HP-UX.
12835 lt_prog_compiler_pic_CXX='-fPIC'
12840 lt_prog_compiler_pic_CXX='-fPIC'
12846 # All AIX code is PIC.
12847 if test "$host_cpu" = ia64; then
12848 # AIX 5 now supports IA64 processor
12849 lt_prog_compiler_static_CXX='-Bstatic'
12851 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12855 case $cc_basename in
12857 # Green Hills C++ Compiler
12858 # _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"
12863 # PIC is the default on this platform
12864 # Common symbols not allowed in MH_DYLIB files
12865 case $cc_basename in
12867 lt_prog_compiler_pic_CXX='-qnocommon'
12868 lt_prog_compiler_wl_CXX='-Wl,'
12873 case $cc_basename in
12875 lt_prog_compiler_pic_CXX='-KPIC'
12878 # Green Hills C++ Compiler
12879 lt_prog_compiler_pic_CXX='-pic'
12885 freebsd* | kfreebsd*-gnu | dragonfly*)
12886 # FreeBSD uses GNU C++
12888 hpux9* | hpux10* | hpux11*)
12889 case $cc_basename in
12891 lt_prog_compiler_wl_CXX='-Wl,'
12892 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12893 if test "$host_cpu" != ia64; then
12894 lt_prog_compiler_pic_CXX='+Z'
12898 lt_prog_compiler_wl_CXX='-Wl,'
12899 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12905 lt_prog_compiler_pic_CXX='+Z'
12914 # This is c89, which is MS Visual C++ (no shared libs)
12915 # Anyone wants to do a port?
12917 irix5* | irix6* | nonstopux*)
12918 case $cc_basename in
12920 lt_prog_compiler_wl_CXX='-Wl,'
12921 lt_prog_compiler_static_CXX='-non_shared'
12922 # CC pic flag -KPIC is the default.
12929 case $cc_basename in
12932 lt_prog_compiler_wl_CXX='--backend -Wl,'
12933 lt_prog_compiler_pic_CXX='-fPIC'
12937 lt_prog_compiler_wl_CXX='-Wl,'
12938 lt_prog_compiler_pic_CXX='-KPIC'
12939 lt_prog_compiler_static_CXX='-static'
12942 # Portland Group C++ compiler.
12943 lt_prog_compiler_wl_CXX='-Wl,'
12944 lt_prog_compiler_pic_CXX='-fpic'
12945 lt_prog_compiler_static_CXX='-Bstatic'
12949 # Make sure the PIC flag is empty. It appears that all Alpha
12950 # Linux and Compaq Tru64 Unix objects are PIC.
12951 lt_prog_compiler_pic_CXX=
12952 lt_prog_compiler_static_CXX='-non_shared'
12963 case $cc_basename in
12965 lt_prog_compiler_pic_CXX='-W c,exportall'
12973 osf3* | osf4* | osf5*)
12974 case $cc_basename in
12976 lt_prog_compiler_wl_CXX='--backend -Wl,'
12979 # Rational C++ 2.4.1
12980 lt_prog_compiler_pic_CXX='-pic'
12983 # Digital/Compaq C++
12984 lt_prog_compiler_wl_CXX='-Wl,'
12985 # Make sure the PIC flag is empty. It appears that all Alpha
12986 # Linux and Compaq Tru64 Unix objects are PIC.
12987 lt_prog_compiler_pic_CXX=
12988 lt_prog_compiler_static_CXX='-non_shared'
12997 case $cc_basename in
12999 # Sun C++ 4.2, 5.x and Centerline C++
13000 lt_prog_compiler_pic_CXX='-KPIC'
13001 lt_prog_compiler_static_CXX='-Bstatic'
13002 lt_prog_compiler_wl_CXX='-Qoption ld '
13005 # Green Hills C++ Compiler
13006 lt_prog_compiler_pic_CXX='-PIC'
13013 case $cc_basename in
13016 lt_prog_compiler_pic_CXX='-pic'
13017 lt_prog_compiler_static_CXX='-Bstatic'
13021 lt_prog_compiler_pic_CXX='-pic'
13028 case $cc_basename in
13030 # NonStop-UX NCC 3.20
13031 lt_prog_compiler_pic_CXX='-KPIC'
13037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13038 case $cc_basename in
13040 lt_prog_compiler_wl_CXX='-Wl,'
13041 lt_prog_compiler_pic_CXX='-KPIC'
13042 lt_prog_compiler_static_CXX='-Bstatic'
13049 lt_prog_compiler_can_build_shared_CXX=no
13054 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13055 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13058 # Check to make sure the PIC flag actually works.
13060 if test -n "$lt_prog_compiler_pic_CXX"; then
13062 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13063 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13064 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 lt_prog_compiler_pic_works_CXX=no
13068 ac_outfile=conftest.$ac_objext
13069 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13070 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13071 # Insert the option either (1) after the last *FLAGS variable, or
13072 # (2) before a word containing "conftest.", or (3) at the end.
13073 # Note that $ac_compile itself does not contain backslashes and begins
13074 # with a dollar sign (not a hyphen), so the echo should work correctly.
13075 # The option is referenced via a variable to avoid confusing sed.
13076 lt_compile=`echo "$ac_compile" | $SED \
13077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13079 -e 's:$: $lt_compiler_flag:'`
13080 (eval echo "\"\$as_me:13080: $lt_compile\"" >&5)
13081 (eval "$lt_compile" 2>conftest.err)
13083 cat conftest.err >&5
13084 echo "$as_me:13084: \$? = $ac_status" >&5
13085 if (exit $ac_status) && test -s "$ac_outfile"; then
13086 # The compiler can only warn and ignore the option if not recognized
13087 # So say no if there are warnings other than the usual output.
13088 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13091 lt_prog_compiler_pic_works_CXX=yes
13097 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13098 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13100 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13101 case $lt_prog_compiler_pic_CXX in
13103 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13106 lt_prog_compiler_pic_CXX=
13107 lt_prog_compiler_can_build_shared_CXX=no
13112 # For platforms which do not support PIC, -DPIC is meaningless:
13114 lt_prog_compiler_pic_CXX=
13117 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13122 # Check to make sure the static flag actually works.
13124 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13125 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13126 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13127 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 lt_prog_compiler_static_works_CXX=no
13131 save_LDFLAGS="$LDFLAGS"
13132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13133 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13135 # The linker can only warn and ignore the option if not recognized
13136 # So say no if there are warnings
13137 if test -s conftest.err; then
13138 # Append any errors to the config.log.
13139 cat conftest.err 1>&5
13140 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13142 if diff conftest.exp conftest.er2 >/dev/null; then
13143 lt_prog_compiler_static_works_CXX=yes
13146 lt_prog_compiler_static_works_CXX=yes
13150 LDFLAGS="$save_LDFLAGS"
13153 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13154 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13156 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13159 lt_prog_compiler_static_CXX=
13163 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13164 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13165 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 lt_cv_prog_compiler_c_o_CXX=no
13169 $rm -r conftest 2>/dev/null
13173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13175 lt_compiler_flag="-o out/conftest2.$ac_objext"
13176 # Insert the option either (1) after the last *FLAGS variable, or
13177 # (2) before a word containing "conftest.", or (3) at the end.
13178 # Note that $ac_compile itself does not contain backslashes and begins
13179 # with a dollar sign (not a hyphen), so the echo should work correctly.
13180 lt_compile=`echo "$ac_compile" | $SED \
13181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183 -e 's:$: $lt_compiler_flag:'`
13184 (eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
13185 (eval "$lt_compile" 2>out/conftest.err)
13187 cat out/conftest.err >&5
13188 echo "$as_me:13188: \$? = $ac_status" >&5
13189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13191 # The compiler can only warn and ignore the option if not recognized
13192 # So say no if there are warnings
13193 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13196 lt_cv_prog_compiler_c_o_CXX=yes
13201 # SGI C++ compiler will create directory out/ii_files/ for
13202 # template instantiation
13203 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13204 $rm out/* && rmdir out
13210 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13211 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13214 hard_links="nottested"
13215 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13216 # do not overwrite the value of need_locks provided by the user
13217 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13218 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13223 ln conftest.a conftest.b 2>&5 || hard_links=no
13224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13225 { echo "$as_me:$LINENO: result: $hard_links" >&5
13226 echo "${ECHO_T}$hard_links" >&6; }
13227 if test "$hard_links" = no; then
13228 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13229 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13236 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13237 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13239 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13242 # If we're using GNU nm, then we don't want the "-C" option.
13243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13244 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13245 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'
13247 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'
13251 export_symbols_cmds_CXX="$ltdll_cmds"
13254 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'
13257 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13261 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13262 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13263 test "$ld_shlibs_CXX" = no && can_build_shared=no
13266 # Do we need to explicitly link libc?
13268 case "x$archive_cmds_need_lc_CXX" in
13270 # Assume -lc should be added
13271 archive_cmds_need_lc_CXX=yes
13273 if test "$enable_shared" = yes && test "$GCC" = yes; then
13274 case $archive_cmds_CXX in
13276 # FIXME: we may have to deal with multi-command sequences.
13279 # Test whether the compiler implicitly links with -lc since on some
13280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13281 # to ld, don't add -lc before -lgcc.
13282 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13283 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288 (eval $ac_compile) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } 2>conftest.err; then
13294 libobjs=conftest.$ac_objext
13296 wl=$lt_prog_compiler_wl_CXX
13297 pic_flag=$lt_prog_compiler_pic_CXX
13303 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13304 allow_undefined_flag_CXX=
13305 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13306 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }
13311 archive_cmds_need_lc_CXX=no
13313 archive_cmds_need_lc_CXX=yes
13315 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13317 cat conftest.err 1>&5
13320 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13321 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13328 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13330 library_names_spec=
13331 libname_spec='lib$name'
13335 postuninstall_cmds=
13339 shlibpath_overrides_runpath=unknown
13341 dynamic_linker="$host_os ld.so"
13342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13343 if test "$GCC" = yes; then
13344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13345 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13346 # if the path contains ";" then we assume it to be the separator
13347 # otherwise default to the standard path separator (i.e. ":") - it is
13348 # assumed that no part of a normal pathname contains ";" but that should
13349 # okay in the real world where ";" in dirpaths is itself problematic.
13350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13357 need_lib_prefix=unknown
13358 hardcode_into_libs=no
13360 # when you set need_version to no, make sure it does not cause -set_version
13361 # flags to be left without arguments
13362 need_version=unknown
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13368 shlibpath_var=LIBPATH
13370 # AIX 3 has no versioning support, so we append a major version to the name.
13371 soname_spec='${libname}${release}${shared_ext}$major'
13378 hardcode_into_libs=yes
13379 if test "$host_cpu" = ia64; then
13380 # AIX 5 supports IA64
13381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13382 shlibpath_var=LD_LIBRARY_PATH
13384 # With GCC up to 2.95.x, collect2 would create an import file
13385 # for dependence libraries. The import file would start with
13386 # the line `#! .'. This would cause the generated library to
13387 # depend on `.', always an invalid library. This was fixed in
13388 # development snapshots of GCC prior to 3.0.
13390 aix4 | aix4.[01] | aix4.[01].*)
13391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13393 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13396 can_build_shared=no
13400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13401 # soname into executable. Probably we can add versioning support to
13402 # collect2, so additional links can be useful in future.
13403 if test "$aix_use_runtimelinking" = yes; then
13404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13405 # instead of lib<name>.a to let people know that these are not
13406 # typical AIX shared libraries.
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409 # We preserve .a as extension for shared libraries through AIX4.2
13410 # and later when we are not doing run time linking.
13411 library_names_spec='${libname}${release}.a $libname.a'
13412 soname_spec='${libname}${release}${shared_ext}$major'
13414 shlibpath_var=LIBPATH
13419 library_names_spec='$libname.ixlibrary $libname.a'
13420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13421 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'
13425 library_names_spec='${libname}${shared_ext}'
13426 dynamic_linker="$host_os ld.so"
13427 shlibpath_var=LIBRARY_PATH
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434 soname_spec='${libname}${release}${shared_ext}$major'
13435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13436 shlibpath_var=LD_LIBRARY_PATH
13437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13439 # the default ld.so.conf also contains /usr/contrib/lib and
13440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13441 # libtool to hard-code these into programs
13444 cygwin* | mingw* | pw32*)
13445 version_type=windows
13450 case $GCC,$host_os in
13451 yes,cygwin* | yes,mingw* | yes,pw32*)
13452 library_names_spec='$libname.dll.a'
13453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13454 postinstall_cmds='base_file=`basename \${file}`~
13455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13456 dldir=$destdir/`dirname \$dlpath`~
13457 test -d \$dldir || mkdir -p \$dldir~
13458 $install_prog $dir/$dlname \$dldir/$dlname~
13459 chmod a+x \$dldir/$dlname'
13460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13461 dlpath=$dir/\$dldll~
13463 shlibpath_overrides_runpath=yes
13467 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13469 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13472 # MinGW DLLs use traditional 'lib' prefix
13473 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13475 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13476 # It is most probably a Windows format PATH printed by
13477 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13478 # path with ; separators, and with drive letters. We can handle the
13479 # drive letters (cygwin fileutils understands them), so leave them,
13480 # especially as we might pass files found there to a mingw objdump,
13481 # which wouldn't understand a cygwinified path. Ahh.
13482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13488 # pw32 DLLs use 'pw' prefix rather than 'lib'
13489 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13495 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13498 dynamic_linker='Win32 ld.exe'
13499 # FIXME: first we should search . and the directory the executable is in
13503 darwin* | rhapsody*)
13504 dynamic_linker="$host_os dyld"
13505 version_type=darwin
13508 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13509 soname_spec='${libname}${release}${major}$shared_ext'
13510 shlibpath_overrides_runpath=yes
13511 shlibpath_var=DYLD_LIBRARY_PATH
13512 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13513 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13514 if test "$GCC" = yes; then
13515 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"`
13517 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13527 soname_spec='${libname}${release}${shared_ext}$major'
13528 shlibpath_var=LD_LIBRARY_PATH
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 shlibpath_var=LD_LIBRARY_PATH
13542 shlibpath_overrides_runpath=no
13543 hardcode_into_libs=yes
13544 dynamic_linker='GNU ld.so'
13547 freebsd* | dragonfly*)
13548 # DragonFly does not have aout. When/if they implement a new
13549 # versioning mechanism, adjust this.
13550 if test -x /usr/bin/objformat; then
13551 objformat=`/usr/bin/objformat`
13554 freebsd[123]*) objformat=aout ;;
13555 *) objformat=elf ;;
13558 version_type=freebsd-$objformat
13559 case $version_type in
13561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13570 shlibpath_var=LD_LIBRARY_PATH
13573 shlibpath_overrides_runpath=yes
13575 freebsd3.[01]* | freebsdelf3.[01]*)
13576 shlibpath_overrides_runpath=yes
13577 hardcode_into_libs=yes
13579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13581 shlibpath_overrides_runpath=no
13582 hardcode_into_libs=yes
13584 freebsd*) # from 4.6 on
13585 shlibpath_overrides_runpath=yes
13586 hardcode_into_libs=yes
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13596 soname_spec='${libname}${release}${shared_ext}$major'
13597 shlibpath_var=LD_LIBRARY_PATH
13598 hardcode_into_libs=yes
13601 hpux9* | hpux10* | hpux11*)
13602 # Give a soname corresponding to the major version so that dld.sl refuses to
13603 # link against other versions.
13610 hardcode_into_libs=yes
13611 dynamic_linker="$host_os dld.so"
13612 shlibpath_var=LD_LIBRARY_PATH
13613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615 soname_spec='${libname}${release}${shared_ext}$major'
13616 if test "X$HPUX_IA64_MODE" = X32; then
13617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13625 hardcode_into_libs=yes
13626 dynamic_linker="$host_os dld.sl"
13627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630 soname_spec='${libname}${release}${shared_ext}$major'
13631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13636 dynamic_linker="$host_os dld.sl"
13637 shlibpath_var=SHLIB_PATH
13638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640 soname_spec='${libname}${release}${shared_ext}$major'
13643 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13644 postinstall_cmds='chmod 555 $lib'
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13652 soname_spec='${libname}${release}${shared_ext}$major'
13653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13654 shlibpath_var=LD_LIBRARY_PATH
13655 shlibpath_overrides_runpath=no
13656 hardcode_into_libs=yes
13659 irix5* | irix6* | nonstopux*)
13661 nonstopux*) version_type=nonstopux ;;
13663 if test "$lt_cv_prog_gnu_ld" = yes; then
13671 soname_spec='${libname}${release}${shared_ext}$major'
13672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13674 irix5* | nonstopux*)
13675 libsuff= shlibsuff=
13678 case $LD in # libtool.m4 will add one of these switches to LD
13679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13680 libsuff= shlibsuff= libmagic=32-bit;;
13681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13682 libsuff=32 shlibsuff=N32 libmagic=N32;;
13683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13685 *) libsuff= shlibsuff= libmagic=never-match;;
13689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13690 shlibpath_overrides_runpath=no
13691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13693 hardcode_into_libs=yes
13696 # No shared lib support for Linux oldld, aout, or coff.
13697 linux*oldld* | linux*aout* | linux*coff*)
13701 # This must be Linux ELF.
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707 soname_spec='${libname}${release}${shared_ext}$major'
13708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13709 shlibpath_var=LD_LIBRARY_PATH
13710 shlibpath_overrides_runpath=no
13711 # This implies no fast_install, which is unacceptable.
13712 # Some rework will be needed to allow for fast_install
13713 # before this can be enabled.
13714 hardcode_into_libs=yes
13716 # Append ld.so.conf contents to the search path
13717 if test -f /etc/ld.so.conf; then
13718 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' ' '`
13719 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13722 # We used to test for /lib/ld.so.1 and disable shared libraries on
13723 # powerpc, because MkLinux only supported shared libraries with the
13724 # GNU dynamic linker. Since this was broken with cross compilers,
13725 # most powerpc-linux boxes support dynamic linking these days and
13726 # people can always --disable-shared, the test was removed, and we
13727 # assume the GNU/Linux dynamic linker is in use.
13728 dynamic_linker='GNU/Linux ld.so'
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13736 soname_spec='${libname}${release}${shared_ext}$major'
13737 shlibpath_var=LD_LIBRARY_PATH
13738 shlibpath_overrides_runpath=no
13739 hardcode_into_libs=yes
13740 dynamic_linker='GNU ld.so'
13747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13750 dynamic_linker='NetBSD (a.out) ld.so'
13752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13753 soname_spec='${libname}${release}${shared_ext}$major'
13754 dynamic_linker='NetBSD ld.elf_so'
13756 shlibpath_var=LD_LIBRARY_PATH
13757 shlibpath_overrides_runpath=yes
13758 hardcode_into_libs=yes
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 shlibpath_var=LD_LIBRARY_PATH
13765 shlibpath_overrides_runpath=yes
13772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773 soname_spec='${libname}${release}${shared_ext}$major'
13774 shlibpath_var=LD_LIBRARY_PATH
13775 shlibpath_overrides_runpath=yes
13780 sys_lib_dlsearch_path_spec="/usr/lib"
13782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13784 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13785 *) need_version=no ;;
13787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13789 shlibpath_var=LD_LIBRARY_PATH
13790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13792 openbsd2.[89] | openbsd2.[89].*)
13793 shlibpath_overrides_runpath=no
13796 shlibpath_overrides_runpath=yes
13800 shlibpath_overrides_runpath=yes
13805 libname_spec='$name'
13808 library_names_spec='$libname${shared_ext} $libname.a'
13809 dynamic_linker='OS/2 ld.exe'
13810 shlibpath_var=LIBPATH
13813 osf3* | osf4* | osf5*)
13817 soname_spec='${libname}${release}${shared_ext}$major'
13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819 shlibpath_var=LD_LIBRARY_PATH
13820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829 soname_spec='${libname}${release}${shared_ext}$major'
13830 shlibpath_var=LD_LIBRARY_PATH
13831 shlibpath_overrides_runpath=yes
13832 hardcode_into_libs=yes
13833 # ldd complains unless libraries are executable
13834 postinstall_cmds='chmod +x $lib'
13839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13841 shlibpath_var=LD_LIBRARY_PATH
13842 shlibpath_overrides_runpath=yes
13843 if test "$with_gnu_ld" = yes; then
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 shlibpath_var=LD_LIBRARY_PATH
13854 case $host_vendor in
13856 shlibpath_overrides_runpath=no
13858 export_dynamic_flag_spec='${wl}-Blargedynsym'
13859 runpath_var=LD_RUN_PATH
13867 shlibpath_overrides_runpath=no
13868 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13874 if test -d /usr/nec ;then
13876 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13877 soname_spec='$libname${shared_ext}.$major'
13878 shlibpath_var=LD_LIBRARY_PATH
13882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13883 version_type=freebsd-elf
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13887 soname_spec='${libname}${release}${shared_ext}$major'
13888 shlibpath_var=LD_LIBRARY_PATH
13889 hardcode_into_libs=yes
13890 if test "$with_gnu_ld" = yes; then
13891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13892 shlibpath_overrides_runpath=no
13894 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13895 shlibpath_overrides_runpath=yes
13898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13902 sys_lib_dlsearch_path_spec='/usr/lib'
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13908 soname_spec='${libname}${release}${shared_ext}$major'
13909 shlibpath_var=LD_LIBRARY_PATH
13916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13917 echo "${ECHO_T}$dynamic_linker" >&6; }
13918 test "$dynamic_linker" = no && can_build_shared=no
13920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13921 if test "$GCC" = yes; then
13922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13925 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13926 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13927 hardcode_action_CXX=
13928 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13929 test -n "$runpath_var_CXX" || \
13930 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13932 # We can hardcode non-existant directories.
13933 if test "$hardcode_direct_CXX" != no &&
13934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13935 # have to relink, otherwise we might link with an installed library
13936 # when we should be linking with a yet-to-be-installed one
13937 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13938 test "$hardcode_minus_L_CXX" != no; then
13939 # Linking always hardcodes the temporary library directory.
13940 hardcode_action_CXX=relink
13942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13943 hardcode_action_CXX=immediate
13946 # We cannot hardcode anything, or else we can only hardcode existing
13948 hardcode_action_CXX=unsupported
13950 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13951 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13953 if test "$hardcode_action_CXX" = relink; then
13954 # Fast installation is not supported
13955 enable_fast_install=no
13956 elif test "$shlibpath_overrides_runpath" = yes ||
13957 test "$enable_shared" = no; then
13958 # Fast installation is not necessary
13959 enable_fast_install=needless
13963 # The else clause should only fire when bootstrapping the
13964 # libtool distribution, otherwise you forgot to ship ltmain.sh
13965 # with your package, and you will get complaints that there are
13966 # no rules to generate ltmain.sh.
13967 if test -f "$ltmain"; then
13968 # See if we are running on zsh, and set the options which allow our commands through
13969 # without removal of \ escapes.
13970 if test -n "${ZSH_VERSION+set}" ; then
13971 setopt NO_GLOB_SUBST
13973 # Now quote all the things that may contain metacharacters while being
13974 # careful not to overquote the AC_SUBSTed values. We take copies of the
13975 # variables and quote the copies for generation of the libtool script.
13976 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13978 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13979 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13980 deplibs_check_method reload_flag reload_cmds need_locks \
13981 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13982 lt_cv_sys_global_symbol_to_c_name_address \
13983 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13984 old_postinstall_cmds old_postuninstall_cmds \
13988 lt_prog_compiler_wl_CXX \
13989 lt_prog_compiler_pic_CXX \
13990 lt_prog_compiler_static_CXX \
13991 lt_prog_compiler_no_builtin_flag_CXX \
13992 export_dynamic_flag_spec_CXX \
13993 thread_safe_flag_spec_CXX \
13994 whole_archive_flag_spec_CXX \
13995 enable_shared_with_static_runtimes_CXX \
13996 old_archive_cmds_CXX \
13997 old_archive_from_new_cmds_CXX \
13998 predep_objects_CXX \
13999 postdep_objects_CXX \
14002 compiler_lib_search_path_CXX \
14004 archive_expsym_cmds_CXX \
14005 postinstall_cmds_CXX \
14006 postuninstall_cmds_CXX \
14007 old_archive_from_expsyms_cmds_CXX \
14008 allow_undefined_flag_CXX \
14009 no_undefined_flag_CXX \
14010 export_symbols_cmds_CXX \
14011 hardcode_libdir_flag_spec_CXX \
14012 hardcode_libdir_flag_spec_ld_CXX \
14013 hardcode_libdir_separator_CXX \
14014 hardcode_automatic_CXX \
14016 module_expsym_cmds_CXX \
14017 lt_cv_prog_compiler_c_o_CXX \
14018 exclude_expsyms_CXX \
14019 include_expsyms_CXX; do
14022 old_archive_cmds_CXX | \
14023 old_archive_from_new_cmds_CXX | \
14024 archive_cmds_CXX | \
14025 archive_expsym_cmds_CXX | \
14026 module_cmds_CXX | \
14027 module_expsym_cmds_CXX | \
14028 old_archive_from_expsyms_cmds_CXX | \
14029 export_symbols_cmds_CXX | \
14030 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14031 postinstall_cmds | postuninstall_cmds | \
14032 old_postinstall_cmds | old_postuninstall_cmds | \
14033 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14034 # Double-quote double-evaled strings.
14035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14044 *'\$0 --fallback-echo"')
14045 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14051 cat <<__EOF__ >> "$cfgfile"
14052 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14056 # Shell to use when invoking shell scripts.
14059 # Whether or not to build shared libraries.
14060 build_libtool_libs=$enable_shared
14062 # Whether or not to build static libraries.
14063 build_old_libs=$enable_static
14065 # Whether or not to add -lc for building shared libraries.
14066 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14068 # Whether or not to disallow shared libs when runtime libs are static
14069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14071 # Whether or not to optimize for fast installation.
14072 fast_install=$enable_fast_install
14075 host_alias=$host_alias
14079 # The build system.
14080 build_alias=$build_alias
14084 # An echo program that does not interpret backslashes.
14089 AR_FLAGS=$lt_AR_FLAGS
14094 # LTCC compiler flags.
14095 LTCFLAGS=$lt_LTCFLAGS
14097 # A language-specific compiler.
14098 CC=$lt_compiler_CXX
14100 # Is the compiler the GNU C compiler?
14106 # The linker used to build libraries.
14109 # Whether we need hard or soft links.
14112 # A BSD-compatible nm program.
14115 # A symbol stripping program
14118 # Used to examine libraries when file_magic_cmd begins "file"
14119 MAGIC_CMD=$MAGIC_CMD
14121 # Used on cygwin: DLL creation program.
14124 # Used on cygwin: object dumper.
14127 # Used on cygwin: assembler.
14130 # The name of the directory that contains temporary libtool files.
14133 # How to create reloadable object files.
14134 reload_flag=$lt_reload_flag
14135 reload_cmds=$lt_reload_cmds
14137 # How to pass a linker flag through the compiler.
14138 wl=$lt_lt_prog_compiler_wl_CXX
14140 # Object file suffix (normally "o").
14141 objext="$ac_objext"
14143 # Old archive suffix (normally "a").
14146 # Shared library suffix (normally ".so").
14147 shrext_cmds='$shrext_cmds'
14149 # Executable file suffix (normally "").
14152 # Additional compiler flags for building library objects.
14153 pic_flag=$lt_lt_prog_compiler_pic_CXX
14156 # What is the maximum length of a command?
14157 max_cmd_len=$lt_cv_sys_max_cmd_len
14159 # Does compiler simultaneously support -c and -o options?
14160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14162 # Must we lock files when doing compilation?
14163 need_locks=$lt_need_locks
14165 # Do we need the lib prefix for modules?
14166 need_lib_prefix=$need_lib_prefix
14168 # Do we need a version for libraries?
14169 need_version=$need_version
14171 # Whether dlopen is supported.
14172 dlopen_support=$enable_dlopen
14174 # Whether dlopen of programs is supported.
14175 dlopen_self=$enable_dlopen_self
14177 # Whether dlopen of statically linked programs is supported.
14178 dlopen_self_static=$enable_dlopen_self_static
14180 # Compiler flag to prevent dynamic linking.
14181 link_static_flag=$lt_lt_prog_compiler_static_CXX
14183 # Compiler flag to turn off builtin functions.
14184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14186 # Compiler flag to allow reflexive dlopens.
14187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14189 # Compiler flag to generate shared objects directly from archives.
14190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14192 # Compiler flag to generate thread-safe objects.
14193 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14195 # Library versioning type.
14196 version_type=$version_type
14198 # Format of library name prefix.
14199 libname_spec=$lt_libname_spec
14201 # List of archive names. First name is the real one, the rest are links.
14202 # The last name is the one that the linker finds with -lNAME.
14203 library_names_spec=$lt_library_names_spec
14205 # The coded name of the library, if different from the real name.
14206 soname_spec=$lt_soname_spec
14208 # Commands used to build and install an old-style archive.
14210 old_archive_cmds=$lt_old_archive_cmds_CXX
14211 old_postinstall_cmds=$lt_old_postinstall_cmds
14212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14214 # Create an old-style archive from a shared archive.
14215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14217 # Create a temporary old-style archive to link instead of a shared archive.
14218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14220 # Commands used to build and install a shared archive.
14221 archive_cmds=$lt_archive_cmds_CXX
14222 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14223 postinstall_cmds=$lt_postinstall_cmds
14224 postuninstall_cmds=$lt_postuninstall_cmds
14226 # Commands used to build a loadable module (assumed same as above if empty)
14227 module_cmds=$lt_module_cmds_CXX
14228 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14230 # Commands to strip libraries.
14231 old_striplib=$lt_old_striplib
14232 striplib=$lt_striplib
14234 # Dependencies to place before the objects being linked to create a
14236 predep_objects=$lt_predep_objects_CXX
14238 # Dependencies to place after the objects being linked to create a
14240 postdep_objects=$lt_postdep_objects_CXX
14242 # Dependencies to place before the objects being linked to create a
14244 predeps=$lt_predeps_CXX
14246 # Dependencies to place after the objects being linked to create a
14248 postdeps=$lt_postdeps_CXX
14250 # The library search path used internally by the compiler when linking
14251 # a shared library.
14252 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14254 # Method to check whether dependent libraries are shared objects.
14255 deplibs_check_method=$lt_deplibs_check_method
14257 # Command to use when deplibs_check_method == file_magic.
14258 file_magic_cmd=$lt_file_magic_cmd
14260 # Flag that allows shared libraries with undefined symbols to be built.
14261 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14263 # Flag that forces no undefined symbols.
14264 no_undefined_flag=$lt_no_undefined_flag_CXX
14266 # Commands used to finish a libtool library installation in a directory.
14267 finish_cmds=$lt_finish_cmds
14269 # Same as above, but a single script fragment to be evaled but not shown.
14270 finish_eval=$lt_finish_eval
14272 # Take the output of nm and produce a listing of raw symbols and C names.
14273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14275 # Transform the output of nm in a proper C declaration
14276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14278 # Transform the output of nm in a C name address pair
14279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14281 # This is the shared library runtime path variable.
14282 runpath_var=$runpath_var
14284 # This is the shared library path variable.
14285 shlibpath_var=$shlibpath_var
14287 # Is shlibpath searched before the hard-coded library search path?
14288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14290 # How to hardcode a shared library path into an executable.
14291 hardcode_action=$hardcode_action_CXX
14293 # Whether we should hardcode library paths into libraries.
14294 hardcode_into_libs=$hardcode_into_libs
14296 # Flag to hardcode \$libdir into a binary during linking.
14297 # This must work even if \$libdir does not exist.
14298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14300 # If ld is used when linking, flag to hardcode \$libdir into
14301 # a binary during linking. This must work even if \$libdir does
14303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14305 # Whether we need a single -rpath flag with a separated argument.
14306 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14309 # resulting binary.
14310 hardcode_direct=$hardcode_direct_CXX
14312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14313 # resulting binary.
14314 hardcode_minus_L=$hardcode_minus_L_CXX
14316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14317 # the resulting binary.
14318 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14320 # Set to yes if building a shared library automatically hardcodes DIR into the library
14321 # and all subsequent libraries and executables linked against it.
14322 hardcode_automatic=$hardcode_automatic_CXX
14324 # Variables whose values should be saved in libtool wrapper scripts and
14325 # restored at relink time.
14326 variables_saved_for_relink="$variables_saved_for_relink"
14328 # Whether libtool must link a program against all its dependency libraries.
14329 link_all_deplibs=$link_all_deplibs_CXX
14331 # Compile-time system search path for libraries
14332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14334 # Run-time system search path for libraries
14335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14337 # Fix the shell variable \$srcfile for the compiler.
14338 fix_srcfile_path="$fix_srcfile_path_CXX"
14340 # Set to yes if exported symbols are required.
14341 always_export_symbols=$always_export_symbols_CXX
14343 # The commands to list exported symbols.
14344 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14346 # The commands to extract the exported symbol list from a shared archive.
14347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14349 # Symbols that should not be listed in the preloaded symbols.
14350 exclude_expsyms=$lt_exclude_expsyms_CXX
14352 # Symbols that must always be exported.
14353 include_expsyms=$lt_include_expsyms_CXX
14355 # ### END LIBTOOL TAG CONFIG: $tagname
14361 # If there is no Makefile yet, we rely on a make rule to execute
14362 # `config.status --recheck' to rerun these tests and create the
14363 # libtool script then.
14364 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14365 if test -f "$ltmain_in"; then
14366 test -f Makefile && make "$ltmain"
14372 ac_cpp='$CPP $CPPFLAGS'
14373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14381 with_gnu_ldcxx=$with_gnu_ld
14382 with_gnu_ld=$lt_save_with_gnu_ld
14383 lt_cv_path_LDCXX=$lt_cv_path_LD
14384 lt_cv_path_LD=$lt_save_path_LD
14385 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14386 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14394 if test -n "$F77" && test "X$F77" != "Xno"; then
14397 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14398 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14402 archive_cmds_need_lc_F77=no
14403 allow_undefined_flag_F77=
14404 always_export_symbols_F77=no
14405 archive_expsym_cmds_F77=
14406 export_dynamic_flag_spec_F77=
14407 hardcode_direct_F77=no
14408 hardcode_libdir_flag_spec_F77=
14409 hardcode_libdir_flag_spec_ld_F77=
14410 hardcode_libdir_separator_F77=
14411 hardcode_minus_L_F77=no
14412 hardcode_automatic_F77=no
14414 module_expsym_cmds_F77=
14415 link_all_deplibs_F77=unknown
14416 old_archive_cmds_F77=$old_archive_cmds
14417 no_undefined_flag_F77=
14418 whole_archive_flag_spec_F77=
14419 enable_shared_with_static_runtimes_F77=no
14421 # Source file extension for f77 test sources.
14424 # Object file extension for compiled f77 test sources.
14428 # Code to be used in simple compile tests
14429 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14431 # Code to be used in simple link tests
14432 lt_simple_link_test_code=" program t\n end\n"
14434 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14436 # If no C compiler was specified, use CC.
14439 # If no C compiler flags were specified, use CFLAGS.
14440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14442 # Allow CC to be a program name with arguments.
14446 # save warnings/boilerplate of simple test code
14447 ac_outfile=conftest.$ac_objext
14448 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14450 _lt_compiler_boilerplate=`cat conftest.err`
14453 ac_outfile=conftest.$ac_objext
14454 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14456 _lt_linker_boilerplate=`cat conftest.err`
14460 # Allow CC to be a program name with arguments.
14465 for cc_temp in $compiler""; do
14467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14473 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14476 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14477 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14478 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14479 echo "${ECHO_T}$can_build_shared" >&6; }
14481 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14482 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14483 test "$can_build_shared" = "no" && enable_shared=no
14485 # On AIX, shared libraries and static libraries use the same namespace, and
14486 # are all built from PIC.
14489 test "$enable_shared" = yes && enable_static=no
14490 if test -n "$RANLIB"; then
14491 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14492 postinstall_cmds='$RANLIB $lib'
14496 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14497 test "$enable_shared" = yes && enable_static=no
14501 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14502 echo "${ECHO_T}$enable_shared" >&6; }
14504 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14505 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14506 # Make sure either enable_shared or enable_static is yes.
14507 test "$enable_shared" = yes || enable_static=yes
14508 { echo "$as_me:$LINENO: result: $enable_static" >&5
14509 echo "${ECHO_T}$enable_static" >&6; }
14514 lt_prog_compiler_wl_F77=
14515 lt_prog_compiler_pic_F77=
14516 lt_prog_compiler_static_F77=
14518 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14521 if test "$GCC" = yes; then
14522 lt_prog_compiler_wl_F77='-Wl,'
14523 lt_prog_compiler_static_F77='-static'
14527 # All AIX code is PIC.
14528 if test "$host_cpu" = ia64; then
14529 # AIX 5 now supports IA64 processor
14530 lt_prog_compiler_static_F77='-Bstatic'
14535 # FIXME: we need at least 68020 code to build shared libraries, but
14536 # adding the `-m68020' flag to GCC prevents building anything better,
14538 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14541 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14542 # PIC is the default for these OSes.
14545 mingw* | pw32* | os2*)
14546 # This hack is so that the source file can tell whether it is being
14547 # built for inclusion in a dll (and should export symbols for example).
14548 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14551 darwin* | rhapsody*)
14552 # PIC is the default on this platform
14553 # Common symbols not allowed in MH_DYLIB files
14554 lt_prog_compiler_pic_F77='-fno-common'
14558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14559 # Instead, we relocate shared libraries at runtime.
14563 # Just because we use GCC doesn't mean we suddenly get shared libraries
14564 # on systems that don't support them.
14565 lt_prog_compiler_can_build_shared_F77=no
14570 if test -d /usr/nec; then
14571 lt_prog_compiler_pic_F77=-Kconform_pic
14576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14577 # not for PA HP-UX.
14583 lt_prog_compiler_pic_F77='-fPIC'
14589 lt_prog_compiler_pic_F77='-fPIC'
14593 # PORTME Check for flag to pass linker flags through the system compiler.
14596 lt_prog_compiler_wl_F77='-Wl,'
14597 if test "$host_cpu" = ia64; then
14598 # AIX 5 now supports IA64 processor
14599 lt_prog_compiler_static_F77='-Bstatic'
14601 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14605 # PIC is the default on this platform
14606 # Common symbols not allowed in MH_DYLIB files
14607 case $cc_basename in
14609 lt_prog_compiler_pic_F77='-qnocommon'
14610 lt_prog_compiler_wl_F77='-Wl,'
14615 mingw* | pw32* | os2*)
14616 # This hack is so that the source file can tell whether it is being
14617 # built for inclusion in a dll (and should export symbols for example).
14618 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14621 hpux9* | hpux10* | hpux11*)
14622 lt_prog_compiler_wl_F77='-Wl,'
14623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14624 # not for PA HP-UX.
14630 lt_prog_compiler_pic_F77='+Z'
14633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14634 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14637 irix5* | irix6* | nonstopux*)
14638 lt_prog_compiler_wl_F77='-Wl,'
14639 # PIC (with -KPIC) is the default.
14640 lt_prog_compiler_static_F77='-non_shared'
14644 lt_prog_compiler_pic_F77='-KPIC'
14645 lt_prog_compiler_static_F77='-Bstatic'
14649 case $cc_basename in
14651 lt_prog_compiler_wl_F77='-Wl,'
14652 lt_prog_compiler_pic_F77='-KPIC'
14653 lt_prog_compiler_static_F77='-static'
14655 pgcc* | pgf77* | pgf90* | pgf95*)
14656 # Portland Group compilers (*not* the Pentium gcc compiler,
14657 # which looks to be a dead project)
14658 lt_prog_compiler_wl_F77='-Wl,'
14659 lt_prog_compiler_pic_F77='-fpic'
14660 lt_prog_compiler_static_F77='-Bstatic'
14663 lt_prog_compiler_wl_F77='-Wl,'
14664 # All Alpha code is PIC.
14665 lt_prog_compiler_static_F77='-non_shared'
14670 osf3* | osf4* | osf5*)
14671 lt_prog_compiler_wl_F77='-Wl,'
14672 # All OSF/1 code is PIC.
14673 lt_prog_compiler_static_F77='-non_shared'
14677 lt_prog_compiler_pic_F77='-KPIC'
14678 lt_prog_compiler_static_F77='-Bstatic'
14679 case $cc_basename in
14680 f77* | f90* | f95*)
14681 lt_prog_compiler_wl_F77='-Qoption ld ';;
14683 lt_prog_compiler_wl_F77='-Wl,';;
14688 lt_prog_compiler_wl_F77='-Qoption ld '
14689 lt_prog_compiler_pic_F77='-PIC'
14690 lt_prog_compiler_static_F77='-Bstatic'
14693 sysv4 | sysv4.2uw2* | sysv4.3*)
14694 lt_prog_compiler_wl_F77='-Wl,'
14695 lt_prog_compiler_pic_F77='-KPIC'
14696 lt_prog_compiler_static_F77='-Bstatic'
14700 if test -d /usr/nec ;then
14701 lt_prog_compiler_pic_F77='-Kconform_pic'
14702 lt_prog_compiler_static_F77='-Bstatic'
14706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14707 lt_prog_compiler_wl_F77='-Wl,'
14708 lt_prog_compiler_pic_F77='-KPIC'
14709 lt_prog_compiler_static_F77='-Bstatic'
14713 lt_prog_compiler_wl_F77='-Wl,'
14714 lt_prog_compiler_can_build_shared_F77=no
14718 lt_prog_compiler_pic_F77='-pic'
14719 lt_prog_compiler_static_F77='-Bstatic'
14723 lt_prog_compiler_can_build_shared_F77=no
14728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14729 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14732 # Check to make sure the PIC flag actually works.
14734 if test -n "$lt_prog_compiler_pic_F77"; then
14736 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14738 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 lt_prog_compiler_pic_works_F77=no
14742 ac_outfile=conftest.$ac_objext
14743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14744 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14745 # Insert the option either (1) after the last *FLAGS variable, or
14746 # (2) before a word containing "conftest.", or (3) at the end.
14747 # Note that $ac_compile itself does not contain backslashes and begins
14748 # with a dollar sign (not a hyphen), so the echo should work correctly.
14749 # The option is referenced via a variable to avoid confusing sed.
14750 lt_compile=`echo "$ac_compile" | $SED \
14751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753 -e 's:$: $lt_compiler_flag:'`
14754 (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755 (eval "$lt_compile" 2>conftest.err)
14757 cat conftest.err >&5
14758 echo "$as_me:14758: \$? = $ac_status" >&5
14759 if (exit $ac_status) && test -s "$ac_outfile"; then
14760 # The compiler can only warn and ignore the option if not recognized
14761 # So say no if there are warnings other than the usual output.
14762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14765 lt_prog_compiler_pic_works_F77=yes
14771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14772 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14774 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14775 case $lt_prog_compiler_pic_F77 in
14777 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14780 lt_prog_compiler_pic_F77=
14781 lt_prog_compiler_can_build_shared_F77=no
14786 # For platforms which do not support PIC, -DPIC is meaningless:
14788 lt_prog_compiler_pic_F77=
14791 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14796 # Check to make sure the static flag actually works.
14798 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14799 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14800 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14801 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 lt_prog_compiler_static_works_F77=no
14805 save_LDFLAGS="$LDFLAGS"
14806 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14807 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14809 # The linker can only warn and ignore the option if not recognized
14810 # So say no if there are warnings
14811 if test -s conftest.err; then
14812 # Append any errors to the config.log.
14813 cat conftest.err 1>&5
14814 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14816 if diff conftest.exp conftest.er2 >/dev/null; then
14817 lt_prog_compiler_static_works_F77=yes
14820 lt_prog_compiler_static_works_F77=yes
14824 LDFLAGS="$save_LDFLAGS"
14827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14828 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14830 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14833 lt_prog_compiler_static_F77=
14837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14839 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 lt_cv_prog_compiler_c_o_F77=no
14843 $rm -r conftest 2>/dev/null
14847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14849 lt_compiler_flag="-o out/conftest2.$ac_objext"
14850 # Insert the option either (1) after the last *FLAGS variable, or
14851 # (2) before a word containing "conftest.", or (3) at the end.
14852 # Note that $ac_compile itself does not contain backslashes and begins
14853 # with a dollar sign (not a hyphen), so the echo should work correctly.
14854 lt_compile=`echo "$ac_compile" | $SED \
14855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14857 -e 's:$: $lt_compiler_flag:'`
14858 (eval echo "\"\$as_me:14858: $lt_compile\"" >&5)
14859 (eval "$lt_compile" 2>out/conftest.err)
14861 cat out/conftest.err >&5
14862 echo "$as_me:14862: \$? = $ac_status" >&5
14863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14865 # The compiler can only warn and ignore the option if not recognized
14866 # So say no if there are warnings
14867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14870 lt_cv_prog_compiler_c_o_F77=yes
14875 # SGI C++ compiler will create directory out/ii_files/ for
14876 # template instantiation
14877 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14878 $rm out/* && rmdir out
14884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14888 hard_links="nottested"
14889 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14890 # do not overwrite the value of need_locks provided by the user
14891 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14897 ln conftest.a conftest.b 2>&5 || hard_links=no
14898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14899 { echo "$as_me:$LINENO: result: $hard_links" >&5
14900 echo "${ECHO_T}$hard_links" >&6; }
14901 if test "$hard_links" = no; then
14902 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14914 allow_undefined_flag_F77=
14915 enable_shared_with_static_runtimes_F77=no
14917 archive_expsym_cmds_F77=
14918 old_archive_From_new_cmds_F77=
14919 old_archive_from_expsyms_cmds_F77=
14920 export_dynamic_flag_spec_F77=
14921 whole_archive_flag_spec_F77=
14922 thread_safe_flag_spec_F77=
14923 hardcode_libdir_flag_spec_F77=
14924 hardcode_libdir_flag_spec_ld_F77=
14925 hardcode_libdir_separator_F77=
14926 hardcode_direct_F77=no
14927 hardcode_minus_L_F77=no
14928 hardcode_shlibpath_var_F77=unsupported
14929 link_all_deplibs_F77=unknown
14930 hardcode_automatic_F77=no
14932 module_expsym_cmds_F77=
14933 always_export_symbols_F77=no
14934 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14935 # include_expsyms should be a list of space-separated symbols to be *always*
14936 # included in the symbol list
14937 include_expsyms_F77=
14938 # exclude_expsyms can be an extended regexp of symbols to exclude
14939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14941 # as well as any symbol that contains `d'.
14942 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14944 # platforms (ab)use it in PIC code, but their linkers get confused if
14945 # the symbol is explicitly referenced. Since portable code cannot
14946 # rely on this symbol name, it's probably fine to never include it in
14947 # preloaded symbol tables.
14948 extract_expsyms_cmds=
14949 # Just being paranoid about ensuring that cc_basename is set.
14950 for cc_temp in $compiler""; do
14952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14961 cygwin* | mingw* | pw32*)
14962 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14963 # When not using gcc, we currently assume that we are using
14964 # Microsoft Visual C++.
14965 if test "$GCC" != yes; then
14970 # we just hope/assume this is gcc and not c89 (= MSVC++)
14979 if test "$with_gnu_ld" = yes; then
14980 # If archive_cmds runs LD, not CC, wlarc should be empty
14983 # Set some defaults for GNU ld with shared library support. These
14984 # are reset later if shared libraries are not supported. Putting them
14985 # here allows them to be overridden if necessary.
14986 runpath_var=LD_RUN_PATH
14987 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14988 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14989 # ancient GNU ld didn't support --whole-archive et. al.
14990 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14991 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14993 whole_archive_flag_spec_F77=
14995 supports_anon_versioning=no
14996 case `$LD -v 2>/dev/null` in
14997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15000 *\ 2.11.*) ;; # other 2.11 versions
15001 *) supports_anon_versioning=yes ;;
15004 # See if GNU ld supports shared libraries.
15006 aix3* | aix4* | aix5*)
15007 # On AIX/PPC, the GNU linker is very broken
15008 if test "$host_cpu" != ia64; then
15012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15013 *** to be unable to reliably create shared libraries on AIX.
15014 *** Therefore, libtool is disabling shared libraries support. If you
15015 *** really care for shared libraries, you may want to modify your PATH
15016 *** so that a non-GNU linker is found, and then restart.
15023 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)'
15024 hardcode_libdir_flag_spec_F77='-L$libdir'
15025 hardcode_minus_L_F77=yes
15027 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15028 # that the semantics of dynamic libraries on AmigaOS, at least up
15029 # to version 4, is to share data among multiple programs linked
15030 # with the same dynamic library. Since this doesn't match the
15031 # behavior of shared libraries on other platforms, we can't use
15037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15038 allow_undefined_flag_F77=unsupported
15039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15040 # support --undefined. This deserves some investigation. FIXME
15041 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047 cygwin* | mingw* | pw32*)
15048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15049 # as there is no search path for DLLs.
15050 hardcode_libdir_flag_spec_F77='-L$libdir'
15051 allow_undefined_flag_F77=unsupported
15052 always_export_symbols_F77=no
15053 enable_shared_with_static_runtimes_F77=yes
15054 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15057 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15058 # If the export-symbols file already is a .def file (1st line
15059 # is EXPORTS), use it as is; otherwise, prepend...
15060 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15061 cp $export_symbols $output_objdir/$soname.def;
15063 echo EXPORTS > $output_objdir/$soname.def;
15064 cat $export_symbols >> $output_objdir/$soname.def;
15066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15073 hardcode_direct_F77=no
15074 hardcode_shlibpath_var_F77=no
15075 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15076 export_dynamic_flag_spec_F77='${wl}-E'
15077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15078 # Instead, shared libraries are loaded at an image base (0x10000000 by
15079 # default) and relocated if they conflict, which is a slow very memory
15080 # consuming and fragmenting process. To avoid this, we pick a random,
15081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15082 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15083 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'
15084 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'
15088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090 case $cc_basename,$host_cpu in
15091 pgcc*) # Portland Group C compiler
15092 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'
15093 tmp_addflag=' $pic_flag'
15095 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15096 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'
15097 tmp_addflag=' $pic_flag -Mnomain' ;;
15098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15099 tmp_addflag=' -i_dynamic' ;;
15100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15101 tmp_addflag=' -i_dynamic -nofor_main' ;;
15102 ifc* | ifort*) # Intel Fortran compiler
15103 tmp_addflag=' -nofor_main' ;;
15105 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107 if test $supports_anon_versioning = yes; then
15108 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15110 $echo "local: *; };" >> $output_objdir/$libname.ver~
15111 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15119 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15120 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15123 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15129 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15134 *** create shared libraries on Solaris systems. Therefore, libtool
15135 *** is disabling shared libraries support. We urge you to upgrade GNU
15136 *** binutils to release 2.9.1 or newer. Another option is to modify
15137 *** your PATH or compiler configuration so that the native linker is
15138 *** used, and then restart.
15141 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15142 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15150 case `$LD -v 2>&1` in
15151 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15156 *** reliably create shared libraries on SCO systems. Therefore, libtool
15157 *** is disabling shared libraries support. We urge you to upgrade GNU
15158 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15159 *** your PATH or compiler configuration so that the native linker is
15160 *** used, and then restart.
15165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15166 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15167 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15168 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15177 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15179 hardcode_direct_F77=yes
15180 hardcode_shlibpath_var_F77=no
15184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15185 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15186 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15193 if test "$ld_shlibs_F77" = no; then
15195 hardcode_libdir_flag_spec_F77=
15196 export_dynamic_flag_spec_F77=
15197 whole_archive_flag_spec_F77=
15200 # PORTME fill in a description of your system's linker (not GNU ld)
15203 allow_undefined_flag_F77=unsupported
15204 always_export_symbols_F77=yes
15205 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'
15206 # Note: this linker hardcodes the directories in LIBPATH if there
15207 # are no directories specified by -L.
15208 hardcode_minus_L_F77=yes
15209 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15210 # Neither direct hardcoding nor static linking is supported with a
15212 hardcode_direct_F77=unsupported
15217 if test "$host_cpu" = ia64; then
15218 # On IA64, the linker does run time linking by default, so we don't
15219 # have to do anything special.
15220 aix_use_runtimelinking=no
15221 exp_sym_flag='-Bexport'
15224 # If we're using GNU nm, then we don't want the "-C" option.
15225 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15226 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15227 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'
15229 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'
15231 aix_use_runtimelinking=no
15233 # Test if we are trying to use run time linking or normal
15234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15235 # need to do runtime linking.
15236 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15237 for ld_flag in $LDFLAGS; do
15238 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15239 aix_use_runtimelinking=yes
15246 exp_sym_flag='-bexport'
15247 no_entry_flag='-bnoentry'
15250 # When large executables or shared objects are built, AIX ld can
15251 # have problems creating the table of contents. If linking a library
15252 # or program results in "error TOC overflow" add -mminimal-toc to
15253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15256 archive_cmds_F77=''
15257 hardcode_direct_F77=yes
15258 hardcode_libdir_separator_F77=':'
15259 link_all_deplibs_F77=yes
15261 if test "$GCC" = yes; then
15262 case $host_os in aix4.[012]|aix4.[012].*)
15263 # We only want to do this on AIX 4.2 and lower, the check
15264 # below for broken collect2 doesn't work under 4.3+
15265 collect2name=`${CC} -print-prog-name=collect2`
15266 if test -f "$collect2name" && \
15267 strings "$collect2name" | grep resolve_lib_name >/dev/null
15269 # We have reworked collect2
15270 hardcode_direct_F77=yes
15272 # We have old collect2
15273 hardcode_direct_F77=unsupported
15274 # It fails to find uninstalled libraries when the uninstalled
15275 # path is not listed in the libpath. Setting hardcode_minus_L
15276 # to unsupported forces relinking
15277 hardcode_minus_L_F77=yes
15278 hardcode_libdir_flag_spec_F77='-L$libdir'
15279 hardcode_libdir_separator_F77=
15283 shared_flag='-shared'
15284 if test "$aix_use_runtimelinking" = yes; then
15285 shared_flag="$shared_flag "'${wl}-G'
15289 if test "$host_cpu" = ia64; then
15290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15291 # chokes on -Wl,-G. The following line is correct:
15294 if test "$aix_use_runtimelinking" = yes; then
15295 shared_flag='${wl}-G'
15297 shared_flag='${wl}-bM:SRE'
15302 # It seems that -bexpall does not export symbols beginning with
15303 # underscore (_), so it is better to generate a list of symbols to export.
15304 always_export_symbols_F77=yes
15305 if test "$aix_use_runtimelinking" = yes; then
15306 # Warning - without using the other runtime loading flags (-brtl),
15307 # -berok will link without error, but may produce a broken library.
15308 allow_undefined_flag_F77='-berok'
15309 # Determine the default libpath from the value encoded in an empty executable.
15310 cat >conftest.$ac_ext <<_ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_link") 2>conftest.er1
15324 grep -v '^ *+' conftest.er1 >conftest.err
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15330 { (case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_try") 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (case "(($ac_try" in
15341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342 *) ac_try_echo=$ac_try;;
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_try") 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15352 # Check for a 64-bit object if we didn't find anything.
15353 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; }
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15362 rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
15364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15366 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15367 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"
15369 if test "$host_cpu" = ia64; then
15370 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15371 allow_undefined_flag_F77="-z nodefs"
15372 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"
15374 # Determine the default libpath from the value encoded in an empty executable.
15375 cat >conftest.$ac_ext <<_ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_link") 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15395 { (case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_try") 2>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; } &&
15404 { ac_try='test -s conftest$ac_exeext'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15417 # Check for a 64-bit object if we didn't find anything.
15418 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; }
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15427 rm -f core conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15431 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15432 # Warning - without using the other run time loading flags,
15433 # -berok will link without error, but may produce a broken library.
15434 no_undefined_flag_F77=' ${wl}-bernotok'
15435 allow_undefined_flag_F77=' ${wl}-berok'
15436 # Exported symbols can be pulled into shared objects from archives
15437 whole_archive_flag_spec_F77='$convenience'
15438 archive_cmds_need_lc_F77=yes
15439 # This is similar to how AIX traditionally builds its shared libraries.
15440 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'
15446 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)'
15447 hardcode_libdir_flag_spec_F77='-L$libdir'
15448 hardcode_minus_L_F77=yes
15449 # see comment about different semantics on the GNU ld section
15454 export_dynamic_flag_spec_F77=-rdynamic
15457 cygwin* | mingw* | pw32*)
15458 # When not using gcc, we currently assume that we are using
15459 # Microsoft Visual C++.
15460 # hardcode_libdir_flag_spec is actually meaningless, as there is
15461 # no search path for DLLs.
15462 hardcode_libdir_flag_spec_F77=' '
15463 allow_undefined_flag_F77=unsupported
15464 # Tell ltmain to make .lib files, not .a files.
15466 # Tell ltmain to make .dll files, not .so files.
15468 # FIXME: Setting linknames here is a bad hack.
15469 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15470 # The linker will automatically build a .lib file if we build a DLL.
15471 old_archive_From_new_cmds_F77='true'
15472 # FIXME: Should let the user specify the lib program.
15473 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15474 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15475 enable_shared_with_static_runtimes_F77=yes
15478 darwin* | rhapsody*)
15480 rhapsody* | darwin1.[012])
15481 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15484 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15485 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15487 case ${MACOSX_DEPLOYMENT_TARGET} in
15489 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15492 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15498 archive_cmds_need_lc_F77=no
15499 hardcode_direct_F77=no
15500 hardcode_automatic_F77=yes
15501 hardcode_shlibpath_var_F77=unsupported
15502 whole_archive_flag_spec_F77=''
15503 link_all_deplibs_F77=yes
15504 if test "$GCC" = yes ; then
15505 output_verbose_link_cmd='echo'
15506 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15507 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15509 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}'
15510 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}'
15512 case $cc_basename in
15514 output_verbose_link_cmd='echo'
15515 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15516 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15518 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}'
15519 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}'
15529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530 hardcode_libdir_flag_spec_F77='-L$libdir'
15531 hardcode_shlibpath_var_F77=no
15538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15539 # support. Future versions do this automatically, but an explicit c++rt0.o
15540 # does not break anything, and helps significantly (at the cost of a little
15543 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15544 hardcode_libdir_flag_spec_F77='-R$libdir'
15545 hardcode_direct_F77=yes
15546 hardcode_shlibpath_var_F77=no
15549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15551 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15552 hardcode_direct_F77=yes
15553 hardcode_minus_L_F77=yes
15554 hardcode_shlibpath_var_F77=no
15557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15558 freebsd* | kfreebsd*-gnu | dragonfly*)
15559 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15560 hardcode_libdir_flag_spec_F77='-R$libdir'
15561 hardcode_direct_F77=yes
15562 hardcode_shlibpath_var_F77=no
15566 if test "$GCC" = yes; then
15567 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'
15569 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'
15571 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15572 hardcode_libdir_separator_F77=:
15573 hardcode_direct_F77=yes
15575 # hardcode_minus_L: Not really in the search PATH,
15576 # but as the default location of the library.
15577 hardcode_minus_L_F77=yes
15578 export_dynamic_flag_spec_F77='${wl}-E'
15582 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15583 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15587 if test "$with_gnu_ld" = no; then
15588 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15589 hardcode_libdir_separator_F77=:
15591 hardcode_direct_F77=yes
15592 export_dynamic_flag_spec_F77='${wl}-E'
15594 # hardcode_minus_L: Not really in the search PATH,
15595 # but as the default location of the library.
15596 hardcode_minus_L_F77=yes
15601 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15604 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15607 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15610 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15616 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15619 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15622 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15626 if test "$with_gnu_ld" = no; then
15627 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15628 hardcode_libdir_separator_F77=:
15632 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15633 hardcode_direct_F77=no
15634 hardcode_shlibpath_var_F77=no
15637 hardcode_direct_F77=yes
15638 export_dynamic_flag_spec_F77='${wl}-E'
15640 # hardcode_minus_L: Not really in the search PATH,
15641 # but as the default location of the library.
15642 hardcode_minus_L_F77=yes
15648 irix5* | irix6* | nonstopux*)
15649 if test "$GCC" = yes; then
15650 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'
15652 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'
15653 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15655 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15656 hardcode_libdir_separator_F77=:
15657 link_all_deplibs_F77=yes
15661 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15662 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15664 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15666 hardcode_libdir_flag_spec_F77='-R$libdir'
15667 hardcode_direct_F77=yes
15668 hardcode_shlibpath_var_F77=no
15672 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 hardcode_direct_F77=yes
15674 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15675 hardcode_libdir_separator_F77=:
15676 hardcode_shlibpath_var_F77=no
15680 hardcode_direct_F77=yes
15681 hardcode_shlibpath_var_F77=no
15682 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15683 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15684 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15685 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15686 export_dynamic_flag_spec_F77='${wl}-E'
15689 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15690 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15691 hardcode_libdir_flag_spec_F77='-R$libdir'
15694 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15695 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15702 hardcode_libdir_flag_spec_F77='-L$libdir'
15703 hardcode_minus_L_F77=yes
15704 allow_undefined_flag_F77=unsupported
15705 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'
15706 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15710 if test "$GCC" = yes; then
15711 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15712 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'
15714 allow_undefined_flag_F77=' -expect_unresolved \*'
15715 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'
15717 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15718 hardcode_libdir_separator_F77=:
15721 osf4* | osf5*) # as osf3* with the addition of -msym flag
15722 if test "$GCC" = yes; then
15723 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15724 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'
15725 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15727 allow_undefined_flag_F77=' -expect_unresolved \*'
15728 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'
15729 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~
15730 $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'
15732 # Both c and cxx compiler support -rpath directly
15733 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15735 hardcode_libdir_separator_F77=:
15739 no_undefined_flag_F77=' -z text'
15740 if test "$GCC" = yes; then
15742 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15744 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15747 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15751 hardcode_libdir_flag_spec_F77='-R$libdir'
15752 hardcode_shlibpath_var_F77=no
15754 solaris2.[0-5] | solaris2.[0-5].*) ;;
15756 # The compiler driver will combine linker options so we
15757 # cannot just pass the convience library names through
15758 # without $wl, iff we do not link with $LD.
15759 # Luckily, gcc supports the same syntax we need for Sun Studio.
15760 # Supported since Solaris 2.6 (maybe 2.5.1?)
15763 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15765 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' ;;
15768 link_all_deplibs_F77=yes
15772 if test "x$host_vendor" = xsequent; then
15773 # Use $CC to link under sequent, because it throws in some extra .o
15774 # files that make .init and .fini sections work.
15775 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15779 hardcode_libdir_flag_spec_F77='-L$libdir'
15780 hardcode_direct_F77=yes
15781 hardcode_minus_L_F77=yes
15782 hardcode_shlibpath_var_F77=no
15786 case $host_vendor in
15788 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789 hardcode_direct_F77=yes # is this really true???
15792 ## LD is ld it makes a PLAMLIB
15793 ## CC just makes a GrossModule.
15794 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15795 reload_cmds_F77='$CC -r -o $output$reload_objs'
15796 hardcode_direct_F77=no
15799 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15803 runpath_var='LD_RUN_PATH'
15804 hardcode_shlibpath_var_F77=no
15808 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_shlibpath_var_F77=no
15810 export_dynamic_flag_spec_F77='-Bexport'
15814 if test -d /usr/nec; then
15815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_shlibpath_var_F77=no
15817 runpath_var=LD_RUN_PATH
15818 hardcode_runpath_var=yes
15823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15824 no_undefined_flag_F77='${wl}-z,text'
15825 archive_cmds_need_lc_F77=no
15826 hardcode_shlibpath_var_F77=no
15827 runpath_var='LD_RUN_PATH'
15829 if test "$GCC" = yes; then
15830 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15831 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15838 sysv5* | sco3.2v5* | sco5v6*)
15839 # Note: We can NOT use -z defs as we might desire, because we do not
15840 # link with -lc, and that would cause any symbols used from libc to
15841 # always be unresolved, which means just about no library would
15842 # ever link correctly. If we're not using GNU ld we use -z text
15843 # though, which does catch some bad symbols but isn't as heavy-handed
15845 no_undefined_flag_F77='${wl}-z,text'
15846 allow_undefined_flag_F77='${wl}-z,nodefs'
15847 archive_cmds_need_lc_F77=no
15848 hardcode_shlibpath_var_F77=no
15849 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15850 hardcode_libdir_separator_F77=':'
15851 link_all_deplibs_F77=yes
15852 export_dynamic_flag_spec_F77='${wl}-Bexport'
15853 runpath_var='LD_RUN_PATH'
15855 if test "$GCC" = yes; then
15856 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15857 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15859 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15860 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866 hardcode_libdir_flag_spec_F77='-L$libdir'
15867 hardcode_shlibpath_var_F77=no
15876 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15877 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15878 test "$ld_shlibs_F77" = no && can_build_shared=no
15881 # Do we need to explicitly link libc?
15883 case "x$archive_cmds_need_lc_F77" in
15885 # Assume -lc should be added
15886 archive_cmds_need_lc_F77=yes
15888 if test "$enable_shared" = yes && test "$GCC" = yes; then
15889 case $archive_cmds_F77 in
15891 # FIXME: we may have to deal with multi-command sequences.
15894 # Test whether the compiler implicitly links with -lc since on some
15895 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15896 # to ld, don't add -lc before -lgcc.
15897 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15898 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15903 (eval $ac_compile) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } 2>conftest.err; then
15909 libobjs=conftest.$ac_objext
15911 wl=$lt_prog_compiler_wl_F77
15912 pic_flag=$lt_prog_compiler_pic_F77
15918 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15919 allow_undefined_flag_F77=
15920 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15921 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }
15926 archive_cmds_need_lc_F77=no
15928 archive_cmds_need_lc_F77=yes
15930 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15932 cat conftest.err 1>&5
15935 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15936 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15943 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15944 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15945 library_names_spec=
15946 libname_spec='lib$name'
15950 postuninstall_cmds=
15954 shlibpath_overrides_runpath=unknown
15956 dynamic_linker="$host_os ld.so"
15957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15958 if test "$GCC" = yes; then
15959 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15960 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15961 # if the path contains ";" then we assume it to be the separator
15962 # otherwise default to the standard path separator (i.e. ":") - it is
15963 # assumed that no part of a normal pathname contains ";" but that should
15964 # okay in the real world where ";" in dirpaths is itself problematic.
15965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15970 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15972 need_lib_prefix=unknown
15973 hardcode_into_libs=no
15975 # when you set need_version to no, make sure it does not cause -set_version
15976 # flags to be left without arguments
15977 need_version=unknown
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15983 shlibpath_var=LIBPATH
15985 # AIX 3 has no versioning support, so we append a major version to the name.
15986 soname_spec='${libname}${release}${shared_ext}$major'
15993 hardcode_into_libs=yes
15994 if test "$host_cpu" = ia64; then
15995 # AIX 5 supports IA64
15996 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15997 shlibpath_var=LD_LIBRARY_PATH
15999 # With GCC up to 2.95.x, collect2 would create an import file
16000 # for dependence libraries. The import file would start with
16001 # the line `#! .'. This would cause the generated library to
16002 # depend on `.', always an invalid library. This was fixed in
16003 # development snapshots of GCC prior to 3.0.
16005 aix4 | aix4.[01] | aix4.[01].*)
16006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16008 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16011 can_build_shared=no
16015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16016 # soname into executable. Probably we can add versioning support to
16017 # collect2, so additional links can be useful in future.
16018 if test "$aix_use_runtimelinking" = yes; then
16019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16020 # instead of lib<name>.a to let people know that these are not
16021 # typical AIX shared libraries.
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16024 # We preserve .a as extension for shared libraries through AIX4.2
16025 # and later when we are not doing run time linking.
16026 library_names_spec='${libname}${release}.a $libname.a'
16027 soname_spec='${libname}${release}${shared_ext}$major'
16029 shlibpath_var=LIBPATH
16034 library_names_spec='$libname.ixlibrary $libname.a'
16035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16036 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'
16040 library_names_spec='${libname}${shared_ext}'
16041 dynamic_linker="$host_os ld.so"
16042 shlibpath_var=LIBRARY_PATH
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16053 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16054 # the default ld.so.conf also contains /usr/contrib/lib and
16055 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16056 # libtool to hard-code these into programs
16059 cygwin* | mingw* | pw32*)
16060 version_type=windows
16065 case $GCC,$host_os in
16066 yes,cygwin* | yes,mingw* | yes,pw32*)
16067 library_names_spec='$libname.dll.a'
16068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16069 postinstall_cmds='base_file=`basename \${file}`~
16070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16071 dldir=$destdir/`dirname \$dlpath`~
16072 test -d \$dldir || mkdir -p \$dldir~
16073 $install_prog $dir/$dlname \$dldir/$dlname~
16074 chmod a+x \$dldir/$dlname'
16075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16076 dlpath=$dir/\$dldll~
16078 shlibpath_overrides_runpath=yes
16082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16087 # MinGW DLLs use traditional 'lib' prefix
16088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16090 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16091 # It is most probably a Windows format PATH printed by
16092 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16093 # path with ; separators, and with drive letters. We can handle the
16094 # drive letters (cygwin fileutils understands them), so leave them,
16095 # especially as we might pass files found there to a mingw objdump,
16096 # which wouldn't understand a cygwinified path. Ahh.
16097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16103 # pw32 DLLs use 'pw' prefix rather than 'lib'
16104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16113 dynamic_linker='Win32 ld.exe'
16114 # FIXME: first we should search . and the directory the executable is in
16118 darwin* | rhapsody*)
16119 dynamic_linker="$host_os dyld"
16120 version_type=darwin
16123 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16124 soname_spec='${libname}${release}${major}$shared_ext'
16125 shlibpath_overrides_runpath=yes
16126 shlibpath_var=DYLD_LIBRARY_PATH
16127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16128 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16129 if test "$GCC" = yes; then
16130 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"`
16132 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16134 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 shlibpath_var=LD_LIBRARY_PATH
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=no
16158 hardcode_into_libs=yes
16159 dynamic_linker='GNU ld.so'
16162 freebsd* | dragonfly*)
16163 # DragonFly does not have aout. When/if they implement a new
16164 # versioning mechanism, adjust this.
16165 if test -x /usr/bin/objformat; then
16166 objformat=`/usr/bin/objformat`
16169 freebsd[123]*) objformat=aout ;;
16170 *) objformat=elf ;;
16173 version_type=freebsd-$objformat
16174 case $version_type in
16176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16185 shlibpath_var=LD_LIBRARY_PATH
16188 shlibpath_overrides_runpath=yes
16190 freebsd3.[01]* | freebsdelf3.[01]*)
16191 shlibpath_overrides_runpath=yes
16192 hardcode_into_libs=yes
16194 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16195 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16196 shlibpath_overrides_runpath=no
16197 hardcode_into_libs=yes
16199 freebsd*) # from 4.6 on
16200 shlibpath_overrides_runpath=yes
16201 hardcode_into_libs=yes
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 hardcode_into_libs=yes
16216 hpux9* | hpux10* | hpux11*)
16217 # Give a soname corresponding to the major version so that dld.sl refuses to
16218 # link against other versions.
16225 hardcode_into_libs=yes
16226 dynamic_linker="$host_os dld.so"
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 if test "X$HPUX_IA64_MODE" = X32; then
16232 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16234 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16240 hardcode_into_libs=yes
16241 dynamic_linker="$host_os dld.sl"
16242 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16251 dynamic_linker="$host_os dld.sl"
16252 shlibpath_var=SHLIB_PATH
16253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255 soname_spec='${libname}${release}${shared_ext}$major'
16258 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16259 postinstall_cmds='chmod 555 $lib'
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16267 soname_spec='${libname}${release}${shared_ext}$major'
16268 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16269 shlibpath_var=LD_LIBRARY_PATH
16270 shlibpath_overrides_runpath=no
16271 hardcode_into_libs=yes
16274 irix5* | irix6* | nonstopux*)
16276 nonstopux*) version_type=nonstopux ;;
16278 if test "$lt_cv_prog_gnu_ld" = yes; then
16286 soname_spec='${libname}${release}${shared_ext}$major'
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16289 irix5* | nonstopux*)
16290 libsuff= shlibsuff=
16293 case $LD in # libtool.m4 will add one of these switches to LD
16294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16295 libsuff= shlibsuff= libmagic=32-bit;;
16296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16297 libsuff=32 shlibsuff=N32 libmagic=N32;;
16298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16299 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16300 *) libsuff= shlibsuff= libmagic=never-match;;
16304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16305 shlibpath_overrides_runpath=no
16306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16308 hardcode_into_libs=yes
16311 # No shared lib support for Linux oldld, aout, or coff.
16312 linux*oldld* | linux*aout* | linux*coff*)
16316 # This must be Linux ELF.
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16324 shlibpath_var=LD_LIBRARY_PATH
16325 shlibpath_overrides_runpath=no
16326 # This implies no fast_install, which is unacceptable.
16327 # Some rework will be needed to allow for fast_install
16328 # before this can be enabled.
16329 hardcode_into_libs=yes
16331 # Append ld.so.conf contents to the search path
16332 if test -f /etc/ld.so.conf; then
16333 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' ' '`
16334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16337 # We used to test for /lib/ld.so.1 and disable shared libraries on
16338 # powerpc, because MkLinux only supported shared libraries with the
16339 # GNU dynamic linker. Since this was broken with cross compilers,
16340 # most powerpc-linux boxes support dynamic linking these days and
16341 # people can always --disable-shared, the test was removed, and we
16342 # assume the GNU/Linux dynamic linker is in use.
16343 dynamic_linker='GNU/Linux ld.so'
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16351 soname_spec='${libname}${release}${shared_ext}$major'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 shlibpath_overrides_runpath=no
16354 hardcode_into_libs=yes
16355 dynamic_linker='GNU ld.so'
16362 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16365 dynamic_linker='NetBSD (a.out) ld.so'
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 dynamic_linker='NetBSD ld.elf_so'
16371 shlibpath_var=LD_LIBRARY_PATH
16372 shlibpath_overrides_runpath=yes
16373 hardcode_into_libs=yes
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 shlibpath_overrides_runpath=yes
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 shlibpath_var=LD_LIBRARY_PATH
16390 shlibpath_overrides_runpath=yes
16395 sys_lib_dlsearch_path_spec="/usr/lib"
16397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16400 *) need_version=no ;;
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16407 openbsd2.[89] | openbsd2.[89].*)
16408 shlibpath_overrides_runpath=no
16411 shlibpath_overrides_runpath=yes
16415 shlibpath_overrides_runpath=yes
16420 libname_spec='$name'
16423 library_names_spec='$libname${shared_ext} $libname.a'
16424 dynamic_linker='OS/2 ld.exe'
16425 shlibpath_var=LIBPATH
16428 osf3* | osf4* | osf5*)
16432 soname_spec='${libname}${release}${shared_ext}$major'
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444 soname_spec='${libname}${release}${shared_ext}$major'
16445 shlibpath_var=LD_LIBRARY_PATH
16446 shlibpath_overrides_runpath=yes
16447 hardcode_into_libs=yes
16448 # ldd complains unless libraries are executable
16449 postinstall_cmds='chmod +x $lib'
16454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16455 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 shlibpath_overrides_runpath=yes
16458 if test "$with_gnu_ld" = yes; then
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 case $host_vendor in
16471 shlibpath_overrides_runpath=no
16473 export_dynamic_flag_spec='${wl}-Blargedynsym'
16474 runpath_var=LD_RUN_PATH
16482 shlibpath_overrides_runpath=no
16483 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16489 if test -d /usr/nec ;then
16491 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16492 soname_spec='$libname${shared_ext}.$major'
16493 shlibpath_var=LD_LIBRARY_PATH
16497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16498 version_type=freebsd-elf
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 hardcode_into_libs=yes
16505 if test "$with_gnu_ld" = yes; then
16506 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16507 shlibpath_overrides_runpath=no
16509 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16510 shlibpath_overrides_runpath=yes
16513 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16517 sys_lib_dlsearch_path_spec='/usr/lib'
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523 soname_spec='${libname}${release}${shared_ext}$major'
16524 shlibpath_var=LD_LIBRARY_PATH
16531 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16532 echo "${ECHO_T}$dynamic_linker" >&6; }
16533 test "$dynamic_linker" = no && can_build_shared=no
16535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16536 if test "$GCC" = yes; then
16537 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16540 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16541 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16542 hardcode_action_F77=
16543 if test -n "$hardcode_libdir_flag_spec_F77" || \
16544 test -n "$runpath_var_F77" || \
16545 test "X$hardcode_automatic_F77" = "Xyes" ; then
16547 # We can hardcode non-existant directories.
16548 if test "$hardcode_direct_F77" != no &&
16549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16550 # have to relink, otherwise we might link with an installed library
16551 # when we should be linking with a yet-to-be-installed one
16552 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16553 test "$hardcode_minus_L_F77" != no; then
16554 # Linking always hardcodes the temporary library directory.
16555 hardcode_action_F77=relink
16557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16558 hardcode_action_F77=immediate
16561 # We cannot hardcode anything, or else we can only hardcode existing
16563 hardcode_action_F77=unsupported
16565 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16566 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16568 if test "$hardcode_action_F77" = relink; then
16569 # Fast installation is not supported
16570 enable_fast_install=no
16571 elif test "$shlibpath_overrides_runpath" = yes ||
16572 test "$enable_shared" = no; then
16573 # Fast installation is not necessary
16574 enable_fast_install=needless
16578 # The else clause should only fire when bootstrapping the
16579 # libtool distribution, otherwise you forgot to ship ltmain.sh
16580 # with your package, and you will get complaints that there are
16581 # no rules to generate ltmain.sh.
16582 if test -f "$ltmain"; then
16583 # See if we are running on zsh, and set the options which allow our commands through
16584 # without removal of \ escapes.
16585 if test -n "${ZSH_VERSION+set}" ; then
16586 setopt NO_GLOB_SUBST
16588 # Now quote all the things that may contain metacharacters while being
16589 # careful not to overquote the AC_SUBSTed values. We take copies of the
16590 # variables and quote the copies for generation of the libtool script.
16591 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16593 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16594 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16595 deplibs_check_method reload_flag reload_cmds need_locks \
16596 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16597 lt_cv_sys_global_symbol_to_c_name_address \
16598 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16599 old_postinstall_cmds old_postuninstall_cmds \
16603 lt_prog_compiler_wl_F77 \
16604 lt_prog_compiler_pic_F77 \
16605 lt_prog_compiler_static_F77 \
16606 lt_prog_compiler_no_builtin_flag_F77 \
16607 export_dynamic_flag_spec_F77 \
16608 thread_safe_flag_spec_F77 \
16609 whole_archive_flag_spec_F77 \
16610 enable_shared_with_static_runtimes_F77 \
16611 old_archive_cmds_F77 \
16612 old_archive_from_new_cmds_F77 \
16613 predep_objects_F77 \
16614 postdep_objects_F77 \
16617 compiler_lib_search_path_F77 \
16619 archive_expsym_cmds_F77 \
16620 postinstall_cmds_F77 \
16621 postuninstall_cmds_F77 \
16622 old_archive_from_expsyms_cmds_F77 \
16623 allow_undefined_flag_F77 \
16624 no_undefined_flag_F77 \
16625 export_symbols_cmds_F77 \
16626 hardcode_libdir_flag_spec_F77 \
16627 hardcode_libdir_flag_spec_ld_F77 \
16628 hardcode_libdir_separator_F77 \
16629 hardcode_automatic_F77 \
16631 module_expsym_cmds_F77 \
16632 lt_cv_prog_compiler_c_o_F77 \
16633 exclude_expsyms_F77 \
16634 include_expsyms_F77; do
16637 old_archive_cmds_F77 | \
16638 old_archive_from_new_cmds_F77 | \
16639 archive_cmds_F77 | \
16640 archive_expsym_cmds_F77 | \
16641 module_cmds_F77 | \
16642 module_expsym_cmds_F77 | \
16643 old_archive_from_expsyms_cmds_F77 | \
16644 export_symbols_cmds_F77 | \
16645 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16646 postinstall_cmds | postuninstall_cmds | \
16647 old_postinstall_cmds | old_postuninstall_cmds | \
16648 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16649 # Double-quote double-evaled strings.
16650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16659 *'\$0 --fallback-echo"')
16660 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16666 cat <<__EOF__ >> "$cfgfile"
16667 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16669 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16671 # Shell to use when invoking shell scripts.
16674 # Whether or not to build shared libraries.
16675 build_libtool_libs=$enable_shared
16677 # Whether or not to build static libraries.
16678 build_old_libs=$enable_static
16680 # Whether or not to add -lc for building shared libraries.
16681 build_libtool_need_lc=$archive_cmds_need_lc_F77
16683 # Whether or not to disallow shared libs when runtime libs are static
16684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16686 # Whether or not to optimize for fast installation.
16687 fast_install=$enable_fast_install
16690 host_alias=$host_alias
16694 # The build system.
16695 build_alias=$build_alias
16699 # An echo program that does not interpret backslashes.
16704 AR_FLAGS=$lt_AR_FLAGS
16709 # LTCC compiler flags.
16710 LTCFLAGS=$lt_LTCFLAGS
16712 # A language-specific compiler.
16713 CC=$lt_compiler_F77
16715 # Is the compiler the GNU C compiler?
16721 # The linker used to build libraries.
16724 # Whether we need hard or soft links.
16727 # A BSD-compatible nm program.
16730 # A symbol stripping program
16733 # Used to examine libraries when file_magic_cmd begins "file"
16734 MAGIC_CMD=$MAGIC_CMD
16736 # Used on cygwin: DLL creation program.
16739 # Used on cygwin: object dumper.
16742 # Used on cygwin: assembler.
16745 # The name of the directory that contains temporary libtool files.
16748 # How to create reloadable object files.
16749 reload_flag=$lt_reload_flag
16750 reload_cmds=$lt_reload_cmds
16752 # How to pass a linker flag through the compiler.
16753 wl=$lt_lt_prog_compiler_wl_F77
16755 # Object file suffix (normally "o").
16756 objext="$ac_objext"
16758 # Old archive suffix (normally "a").
16761 # Shared library suffix (normally ".so").
16762 shrext_cmds='$shrext_cmds'
16764 # Executable file suffix (normally "").
16767 # Additional compiler flags for building library objects.
16768 pic_flag=$lt_lt_prog_compiler_pic_F77
16771 # What is the maximum length of a command?
16772 max_cmd_len=$lt_cv_sys_max_cmd_len
16774 # Does compiler simultaneously support -c and -o options?
16775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16777 # Must we lock files when doing compilation?
16778 need_locks=$lt_need_locks
16780 # Do we need the lib prefix for modules?
16781 need_lib_prefix=$need_lib_prefix
16783 # Do we need a version for libraries?
16784 need_version=$need_version
16786 # Whether dlopen is supported.
16787 dlopen_support=$enable_dlopen
16789 # Whether dlopen of programs is supported.
16790 dlopen_self=$enable_dlopen_self
16792 # Whether dlopen of statically linked programs is supported.
16793 dlopen_self_static=$enable_dlopen_self_static
16795 # Compiler flag to prevent dynamic linking.
16796 link_static_flag=$lt_lt_prog_compiler_static_F77
16798 # Compiler flag to turn off builtin functions.
16799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16801 # Compiler flag to allow reflexive dlopens.
16802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16804 # Compiler flag to generate shared objects directly from archives.
16805 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16807 # Compiler flag to generate thread-safe objects.
16808 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16810 # Library versioning type.
16811 version_type=$version_type
16813 # Format of library name prefix.
16814 libname_spec=$lt_libname_spec
16816 # List of archive names. First name is the real one, the rest are links.
16817 # The last name is the one that the linker finds with -lNAME.
16818 library_names_spec=$lt_library_names_spec
16820 # The coded name of the library, if different from the real name.
16821 soname_spec=$lt_soname_spec
16823 # Commands used to build and install an old-style archive.
16825 old_archive_cmds=$lt_old_archive_cmds_F77
16826 old_postinstall_cmds=$lt_old_postinstall_cmds
16827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16829 # Create an old-style archive from a shared archive.
16830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16832 # Create a temporary old-style archive to link instead of a shared archive.
16833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16835 # Commands used to build and install a shared archive.
16836 archive_cmds=$lt_archive_cmds_F77
16837 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16838 postinstall_cmds=$lt_postinstall_cmds
16839 postuninstall_cmds=$lt_postuninstall_cmds
16841 # Commands used to build a loadable module (assumed same as above if empty)
16842 module_cmds=$lt_module_cmds_F77
16843 module_expsym_cmds=$lt_module_expsym_cmds_F77
16845 # Commands to strip libraries.
16846 old_striplib=$lt_old_striplib
16847 striplib=$lt_striplib
16849 # Dependencies to place before the objects being linked to create a
16851 predep_objects=$lt_predep_objects_F77
16853 # Dependencies to place after the objects being linked to create a
16855 postdep_objects=$lt_postdep_objects_F77
16857 # Dependencies to place before the objects being linked to create a
16859 predeps=$lt_predeps_F77
16861 # Dependencies to place after the objects being linked to create a
16863 postdeps=$lt_postdeps_F77
16865 # The library search path used internally by the compiler when linking
16866 # a shared library.
16867 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16869 # Method to check whether dependent libraries are shared objects.
16870 deplibs_check_method=$lt_deplibs_check_method
16872 # Command to use when deplibs_check_method == file_magic.
16873 file_magic_cmd=$lt_file_magic_cmd
16875 # Flag that allows shared libraries with undefined symbols to be built.
16876 allow_undefined_flag=$lt_allow_undefined_flag_F77
16878 # Flag that forces no undefined symbols.
16879 no_undefined_flag=$lt_no_undefined_flag_F77
16881 # Commands used to finish a libtool library installation in a directory.
16882 finish_cmds=$lt_finish_cmds
16884 # Same as above, but a single script fragment to be evaled but not shown.
16885 finish_eval=$lt_finish_eval
16887 # Take the output of nm and produce a listing of raw symbols and C names.
16888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16890 # Transform the output of nm in a proper C declaration
16891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16893 # Transform the output of nm in a C name address pair
16894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16896 # This is the shared library runtime path variable.
16897 runpath_var=$runpath_var
16899 # This is the shared library path variable.
16900 shlibpath_var=$shlibpath_var
16902 # Is shlibpath searched before the hard-coded library search path?
16903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16905 # How to hardcode a shared library path into an executable.
16906 hardcode_action=$hardcode_action_F77
16908 # Whether we should hardcode library paths into libraries.
16909 hardcode_into_libs=$hardcode_into_libs
16911 # Flag to hardcode \$libdir into a binary during linking.
16912 # This must work even if \$libdir does not exist.
16913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16915 # If ld is used when linking, flag to hardcode \$libdir into
16916 # a binary during linking. This must work even if \$libdir does
16918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16920 # Whether we need a single -rpath flag with a separated argument.
16921 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16924 # resulting binary.
16925 hardcode_direct=$hardcode_direct_F77
16927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16928 # resulting binary.
16929 hardcode_minus_L=$hardcode_minus_L_F77
16931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16932 # the resulting binary.
16933 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16935 # Set to yes if building a shared library automatically hardcodes DIR into the library
16936 # and all subsequent libraries and executables linked against it.
16937 hardcode_automatic=$hardcode_automatic_F77
16939 # Variables whose values should be saved in libtool wrapper scripts and
16940 # restored at relink time.
16941 variables_saved_for_relink="$variables_saved_for_relink"
16943 # Whether libtool must link a program against all its dependency libraries.
16944 link_all_deplibs=$link_all_deplibs_F77
16946 # Compile-time system search path for libraries
16947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16949 # Run-time system search path for libraries
16950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16952 # Fix the shell variable \$srcfile for the compiler.
16953 fix_srcfile_path="$fix_srcfile_path_F77"
16955 # Set to yes if exported symbols are required.
16956 always_export_symbols=$always_export_symbols_F77
16958 # The commands to list exported symbols.
16959 export_symbols_cmds=$lt_export_symbols_cmds_F77
16961 # The commands to extract the exported symbol list from a shared archive.
16962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16964 # Symbols that should not be listed in the preloaded symbols.
16965 exclude_expsyms=$lt_exclude_expsyms_F77
16967 # Symbols that must always be exported.
16968 include_expsyms=$lt_include_expsyms_F77
16970 # ### END LIBTOOL TAG CONFIG: $tagname
16976 # If there is no Makefile yet, we rely on a make rule to execute
16977 # `config.status --recheck' to rerun these tests and create the
16978 # libtool script then.
16979 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16980 if test -f "$ltmain_in"; then
16981 test -f Makefile && make "$ltmain"
16987 ac_cpp='$CPP $CPPFLAGS'
16988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17000 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17003 # Source file extension for Java test sources.
17006 # Object file extension for compiled Java test sources.
17010 # Code to be used in simple compile tests
17011 lt_simple_compile_test_code="class foo {}\n"
17013 # Code to be used in simple link tests
17014 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17016 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17018 # If no C compiler was specified, use CC.
17021 # If no C compiler flags were specified, use CFLAGS.
17022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17024 # Allow CC to be a program name with arguments.
17028 # save warnings/boilerplate of simple test code
17029 ac_outfile=conftest.$ac_objext
17030 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17032 _lt_compiler_boilerplate=`cat conftest.err`
17035 ac_outfile=conftest.$ac_objext
17036 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17038 _lt_linker_boilerplate=`cat conftest.err`
17042 # Allow CC to be a program name with arguments.
17047 for cc_temp in $compiler""; do
17049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17055 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17058 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17059 archive_cmds_need_lc_GCJ=no
17061 old_archive_cmds_GCJ=$old_archive_cmds
17064 ## There is no encapsulation within the following macros, do not change
17065 ## the running order or otherwise move them around unless you know exactly
17066 ## what you are doing...
17068 lt_prog_compiler_no_builtin_flag_GCJ=
17070 if test "$GCC" = yes; then
17071 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17074 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17075 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17076 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 lt_cv_prog_compiler_rtti_exceptions=no
17080 ac_outfile=conftest.$ac_objext
17081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17082 lt_compiler_flag="-fno-rtti -fno-exceptions"
17083 # Insert the option either (1) after the last *FLAGS variable, or
17084 # (2) before a word containing "conftest.", or (3) at the end.
17085 # Note that $ac_compile itself does not contain backslashes and begins
17086 # with a dollar sign (not a hyphen), so the echo should work correctly.
17087 # The option is referenced via a variable to avoid confusing sed.
17088 lt_compile=`echo "$ac_compile" | $SED \
17089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17091 -e 's:$: $lt_compiler_flag:'`
17092 (eval echo "\"\$as_me:17092: $lt_compile\"" >&5)
17093 (eval "$lt_compile" 2>conftest.err)
17095 cat conftest.err >&5
17096 echo "$as_me:17096: \$? = $ac_status" >&5
17097 if (exit $ac_status) && test -s "$ac_outfile"; then
17098 # The compiler can only warn and ignore the option if not recognized
17099 # So say no if there are warnings other than the usual output.
17100 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17103 lt_cv_prog_compiler_rtti_exceptions=yes
17109 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17110 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17113 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17120 lt_prog_compiler_wl_GCJ=
17121 lt_prog_compiler_pic_GCJ=
17122 lt_prog_compiler_static_GCJ=
17124 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17125 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17127 if test "$GCC" = yes; then
17128 lt_prog_compiler_wl_GCJ='-Wl,'
17129 lt_prog_compiler_static_GCJ='-static'
17133 # All AIX code is PIC.
17134 if test "$host_cpu" = ia64; then
17135 # AIX 5 now supports IA64 processor
17136 lt_prog_compiler_static_GCJ='-Bstatic'
17141 # FIXME: we need at least 68020 code to build shared libraries, but
17142 # adding the `-m68020' flag to GCC prevents building anything better,
17144 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17147 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17148 # PIC is the default for these OSes.
17151 mingw* | pw32* | os2*)
17152 # This hack is so that the source file can tell whether it is being
17153 # built for inclusion in a dll (and should export symbols for example).
17154 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17157 darwin* | rhapsody*)
17158 # PIC is the default on this platform
17159 # Common symbols not allowed in MH_DYLIB files
17160 lt_prog_compiler_pic_GCJ='-fno-common'
17164 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17165 # Instead, we relocate shared libraries at runtime.
17169 # Just because we use GCC doesn't mean we suddenly get shared libraries
17170 # on systems that don't support them.
17171 lt_prog_compiler_can_build_shared_GCJ=no
17176 if test -d /usr/nec; then
17177 lt_prog_compiler_pic_GCJ=-Kconform_pic
17182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17183 # not for PA HP-UX.
17189 lt_prog_compiler_pic_GCJ='-fPIC'
17195 lt_prog_compiler_pic_GCJ='-fPIC'
17199 # PORTME Check for flag to pass linker flags through the system compiler.
17202 lt_prog_compiler_wl_GCJ='-Wl,'
17203 if test "$host_cpu" = ia64; then
17204 # AIX 5 now supports IA64 processor
17205 lt_prog_compiler_static_GCJ='-Bstatic'
17207 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17211 # PIC is the default on this platform
17212 # Common symbols not allowed in MH_DYLIB files
17213 case $cc_basename in
17215 lt_prog_compiler_pic_GCJ='-qnocommon'
17216 lt_prog_compiler_wl_GCJ='-Wl,'
17221 mingw* | pw32* | os2*)
17222 # This hack is so that the source file can tell whether it is being
17223 # built for inclusion in a dll (and should export symbols for example).
17224 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17227 hpux9* | hpux10* | hpux11*)
17228 lt_prog_compiler_wl_GCJ='-Wl,'
17229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17230 # not for PA HP-UX.
17236 lt_prog_compiler_pic_GCJ='+Z'
17239 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17240 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17243 irix5* | irix6* | nonstopux*)
17244 lt_prog_compiler_wl_GCJ='-Wl,'
17245 # PIC (with -KPIC) is the default.
17246 lt_prog_compiler_static_GCJ='-non_shared'
17250 lt_prog_compiler_pic_GCJ='-KPIC'
17251 lt_prog_compiler_static_GCJ='-Bstatic'
17255 case $cc_basename in
17257 lt_prog_compiler_wl_GCJ='-Wl,'
17258 lt_prog_compiler_pic_GCJ='-KPIC'
17259 lt_prog_compiler_static_GCJ='-static'
17261 pgcc* | pgf77* | pgf90* | pgf95*)
17262 # Portland Group compilers (*not* the Pentium gcc compiler,
17263 # which looks to be a dead project)
17264 lt_prog_compiler_wl_GCJ='-Wl,'
17265 lt_prog_compiler_pic_GCJ='-fpic'
17266 lt_prog_compiler_static_GCJ='-Bstatic'
17269 lt_prog_compiler_wl_GCJ='-Wl,'
17270 # All Alpha code is PIC.
17271 lt_prog_compiler_static_GCJ='-non_shared'
17276 osf3* | osf4* | osf5*)
17277 lt_prog_compiler_wl_GCJ='-Wl,'
17278 # All OSF/1 code is PIC.
17279 lt_prog_compiler_static_GCJ='-non_shared'
17283 lt_prog_compiler_pic_GCJ='-KPIC'
17284 lt_prog_compiler_static_GCJ='-Bstatic'
17285 case $cc_basename in
17286 f77* | f90* | f95*)
17287 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17289 lt_prog_compiler_wl_GCJ='-Wl,';;
17294 lt_prog_compiler_wl_GCJ='-Qoption ld '
17295 lt_prog_compiler_pic_GCJ='-PIC'
17296 lt_prog_compiler_static_GCJ='-Bstatic'
17299 sysv4 | sysv4.2uw2* | sysv4.3*)
17300 lt_prog_compiler_wl_GCJ='-Wl,'
17301 lt_prog_compiler_pic_GCJ='-KPIC'
17302 lt_prog_compiler_static_GCJ='-Bstatic'
17306 if test -d /usr/nec ;then
17307 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17308 lt_prog_compiler_static_GCJ='-Bstatic'
17312 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17313 lt_prog_compiler_wl_GCJ='-Wl,'
17314 lt_prog_compiler_pic_GCJ='-KPIC'
17315 lt_prog_compiler_static_GCJ='-Bstatic'
17319 lt_prog_compiler_wl_GCJ='-Wl,'
17320 lt_prog_compiler_can_build_shared_GCJ=no
17324 lt_prog_compiler_pic_GCJ='-pic'
17325 lt_prog_compiler_static_GCJ='-Bstatic'
17329 lt_prog_compiler_can_build_shared_GCJ=no
17334 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17335 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17338 # Check to make sure the PIC flag actually works.
17340 if test -n "$lt_prog_compiler_pic_GCJ"; then
17342 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17344 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 lt_prog_compiler_pic_works_GCJ=no
17348 ac_outfile=conftest.$ac_objext
17349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17350 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17351 # Insert the option either (1) after the last *FLAGS variable, or
17352 # (2) before a word containing "conftest.", or (3) at the end.
17353 # Note that $ac_compile itself does not contain backslashes and begins
17354 # with a dollar sign (not a hyphen), so the echo should work correctly.
17355 # The option is referenced via a variable to avoid confusing sed.
17356 lt_compile=`echo "$ac_compile" | $SED \
17357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17359 -e 's:$: $lt_compiler_flag:'`
17360 (eval echo "\"\$as_me:17360: $lt_compile\"" >&5)
17361 (eval "$lt_compile" 2>conftest.err)
17363 cat conftest.err >&5
17364 echo "$as_me:17364: \$? = $ac_status" >&5
17365 if (exit $ac_status) && test -s "$ac_outfile"; then
17366 # The compiler can only warn and ignore the option if not recognized
17367 # So say no if there are warnings other than the usual output.
17368 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17371 lt_prog_compiler_pic_works_GCJ=yes
17377 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17378 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17380 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17381 case $lt_prog_compiler_pic_GCJ in
17383 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17386 lt_prog_compiler_pic_GCJ=
17387 lt_prog_compiler_can_build_shared_GCJ=no
17392 # For platforms which do not support PIC, -DPIC is meaningless:
17394 lt_prog_compiler_pic_GCJ=
17397 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17402 # Check to make sure the static flag actually works.
17404 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17405 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17406 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17407 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 lt_prog_compiler_static_works_GCJ=no
17411 save_LDFLAGS="$LDFLAGS"
17412 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17413 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17415 # The linker can only warn and ignore the option if not recognized
17416 # So say no if there are warnings
17417 if test -s conftest.err; then
17418 # Append any errors to the config.log.
17419 cat conftest.err 1>&5
17420 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17422 if diff conftest.exp conftest.er2 >/dev/null; then
17423 lt_prog_compiler_static_works_GCJ=yes
17426 lt_prog_compiler_static_works_GCJ=yes
17430 LDFLAGS="$save_LDFLAGS"
17433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17434 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17436 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17439 lt_prog_compiler_static_GCJ=
17443 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17444 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17445 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 lt_cv_prog_compiler_c_o_GCJ=no
17449 $rm -r conftest 2>/dev/null
17453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17455 lt_compiler_flag="-o out/conftest2.$ac_objext"
17456 # Insert the option either (1) after the last *FLAGS variable, or
17457 # (2) before a word containing "conftest.", or (3) at the end.
17458 # Note that $ac_compile itself does not contain backslashes and begins
17459 # with a dollar sign (not a hyphen), so the echo should work correctly.
17460 lt_compile=`echo "$ac_compile" | $SED \
17461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17463 -e 's:$: $lt_compiler_flag:'`
17464 (eval echo "\"\$as_me:17464: $lt_compile\"" >&5)
17465 (eval "$lt_compile" 2>out/conftest.err)
17467 cat out/conftest.err >&5
17468 echo "$as_me:17468: \$? = $ac_status" >&5
17469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17471 # The compiler can only warn and ignore the option if not recognized
17472 # So say no if there are warnings
17473 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17476 lt_cv_prog_compiler_c_o_GCJ=yes
17481 # SGI C++ compiler will create directory out/ii_files/ for
17482 # template instantiation
17483 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17484 $rm out/* && rmdir out
17490 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17491 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17494 hard_links="nottested"
17495 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17496 # do not overwrite the value of need_locks provided by the user
17497 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17498 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17501 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17503 ln conftest.a conftest.b 2>&5 || hard_links=no
17504 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17505 { echo "$as_me:$LINENO: result: $hard_links" >&5
17506 echo "${ECHO_T}$hard_links" >&6; }
17507 if test "$hard_links" = no; then
17508 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17509 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17516 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17517 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17520 allow_undefined_flag_GCJ=
17521 enable_shared_with_static_runtimes_GCJ=no
17523 archive_expsym_cmds_GCJ=
17524 old_archive_From_new_cmds_GCJ=
17525 old_archive_from_expsyms_cmds_GCJ=
17526 export_dynamic_flag_spec_GCJ=
17527 whole_archive_flag_spec_GCJ=
17528 thread_safe_flag_spec_GCJ=
17529 hardcode_libdir_flag_spec_GCJ=
17530 hardcode_libdir_flag_spec_ld_GCJ=
17531 hardcode_libdir_separator_GCJ=
17532 hardcode_direct_GCJ=no
17533 hardcode_minus_L_GCJ=no
17534 hardcode_shlibpath_var_GCJ=unsupported
17535 link_all_deplibs_GCJ=unknown
17536 hardcode_automatic_GCJ=no
17538 module_expsym_cmds_GCJ=
17539 always_export_symbols_GCJ=no
17540 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17541 # include_expsyms should be a list of space-separated symbols to be *always*
17542 # included in the symbol list
17543 include_expsyms_GCJ=
17544 # exclude_expsyms can be an extended regexp of symbols to exclude
17545 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17546 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17547 # as well as any symbol that contains `d'.
17548 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17549 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17550 # platforms (ab)use it in PIC code, but their linkers get confused if
17551 # the symbol is explicitly referenced. Since portable code cannot
17552 # rely on this symbol name, it's probably fine to never include it in
17553 # preloaded symbol tables.
17554 extract_expsyms_cmds=
17555 # Just being paranoid about ensuring that cc_basename is set.
17556 for cc_temp in $compiler""; do
17558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17564 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17567 cygwin* | mingw* | pw32*)
17568 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17569 # When not using gcc, we currently assume that we are using
17570 # Microsoft Visual C++.
17571 if test "$GCC" != yes; then
17576 # we just hope/assume this is gcc and not c89 (= MSVC++)
17585 if test "$with_gnu_ld" = yes; then
17586 # If archive_cmds runs LD, not CC, wlarc should be empty
17589 # Set some defaults for GNU ld with shared library support. These
17590 # are reset later if shared libraries are not supported. Putting them
17591 # here allows them to be overridden if necessary.
17592 runpath_var=LD_RUN_PATH
17593 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17594 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17595 # ancient GNU ld didn't support --whole-archive et. al.
17596 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17597 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17599 whole_archive_flag_spec_GCJ=
17601 supports_anon_versioning=no
17602 case `$LD -v 2>/dev/null` in
17603 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17604 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17605 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17606 *\ 2.11.*) ;; # other 2.11 versions
17607 *) supports_anon_versioning=yes ;;
17610 # See if GNU ld supports shared libraries.
17612 aix3* | aix4* | aix5*)
17613 # On AIX/PPC, the GNU linker is very broken
17614 if test "$host_cpu" != ia64; then
17618 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17619 *** to be unable to reliably create shared libraries on AIX.
17620 *** Therefore, libtool is disabling shared libraries support. If you
17621 *** really care for shared libraries, you may want to modify your PATH
17622 *** so that a non-GNU linker is found, and then restart.
17629 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)'
17630 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17631 hardcode_minus_L_GCJ=yes
17633 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17634 # that the semantics of dynamic libraries on AmigaOS, at least up
17635 # to version 4, is to share data among multiple programs linked
17636 # with the same dynamic library. Since this doesn't match the
17637 # behavior of shared libraries on other platforms, we can't use
17643 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644 allow_undefined_flag_GCJ=unsupported
17645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17646 # support --undefined. This deserves some investigation. FIXME
17647 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17653 cygwin* | mingw* | pw32*)
17654 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17655 # as there is no search path for DLLs.
17656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657 allow_undefined_flag_GCJ=unsupported
17658 always_export_symbols_GCJ=no
17659 enable_shared_with_static_runtimes_GCJ=yes
17660 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17662 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17663 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17664 # If the export-symbols file already is a .def file (1st line
17665 # is EXPORTS), use it as is; otherwise, prepend...
17666 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17667 cp $export_symbols $output_objdir/$soname.def;
17669 echo EXPORTS > $output_objdir/$soname.def;
17670 cat $export_symbols >> $output_objdir/$soname.def;
17672 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17679 hardcode_direct_GCJ=no
17680 hardcode_shlibpath_var_GCJ=no
17681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17682 export_dynamic_flag_spec_GCJ='${wl}-E'
17683 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17684 # Instead, shared libraries are loaded at an image base (0x10000000 by
17685 # default) and relocated if they conflict, which is a slow very memory
17686 # consuming and fragmenting process. To avoid this, we pick a random,
17687 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17688 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17689 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'
17690 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'
17694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17696 case $cc_basename,$host_cpu in
17697 pgcc*) # Portland Group C compiler
17698 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'
17699 tmp_addflag=' $pic_flag'
17701 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17702 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'
17703 tmp_addflag=' $pic_flag -Mnomain' ;;
17704 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17705 tmp_addflag=' -i_dynamic' ;;
17706 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17707 tmp_addflag=' -i_dynamic -nofor_main' ;;
17708 ifc* | ifort*) # Intel Fortran compiler
17709 tmp_addflag=' -nofor_main' ;;
17711 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17713 if test $supports_anon_versioning = yes; then
17714 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17716 $echo "local: *; };" >> $output_objdir/$libname.ver~
17717 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17726 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17735 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17740 *** create shared libraries on Solaris systems. Therefore, libtool
17741 *** is disabling shared libraries support. We urge you to upgrade GNU
17742 *** binutils to release 2.9.1 or newer. Another option is to modify
17743 *** your PATH or compiler configuration so that the native linker is
17744 *** used, and then restart.
17747 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17748 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17749 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17756 case `$LD -v 2>&1` in
17757 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17762 *** reliably create shared libraries on SCO systems. Therefore, libtool
17763 *** is disabling shared libraries support. We urge you to upgrade GNU
17764 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17765 *** your PATH or compiler configuration so that the native linker is
17766 *** used, and then restart.
17771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17772 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17773 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17774 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17783 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17785 hardcode_direct_GCJ=yes
17786 hardcode_shlibpath_var_GCJ=no
17790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17791 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17792 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17799 if test "$ld_shlibs_GCJ" = no; then
17801 hardcode_libdir_flag_spec_GCJ=
17802 export_dynamic_flag_spec_GCJ=
17803 whole_archive_flag_spec_GCJ=
17806 # PORTME fill in a description of your system's linker (not GNU ld)
17809 allow_undefined_flag_GCJ=unsupported
17810 always_export_symbols_GCJ=yes
17811 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'
17812 # Note: this linker hardcodes the directories in LIBPATH if there
17813 # are no directories specified by -L.
17814 hardcode_minus_L_GCJ=yes
17815 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17816 # Neither direct hardcoding nor static linking is supported with a
17818 hardcode_direct_GCJ=unsupported
17823 if test "$host_cpu" = ia64; then
17824 # On IA64, the linker does run time linking by default, so we don't
17825 # have to do anything special.
17826 aix_use_runtimelinking=no
17827 exp_sym_flag='-Bexport'
17830 # If we're using GNU nm, then we don't want the "-C" option.
17831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17833 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'
17835 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'
17837 aix_use_runtimelinking=no
17839 # Test if we are trying to use run time linking or normal
17840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17841 # need to do runtime linking.
17842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17843 for ld_flag in $LDFLAGS; do
17844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17845 aix_use_runtimelinking=yes
17852 exp_sym_flag='-bexport'
17853 no_entry_flag='-bnoentry'
17856 # When large executables or shared objects are built, AIX ld can
17857 # have problems creating the table of contents. If linking a library
17858 # or program results in "error TOC overflow" add -mminimal-toc to
17859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17862 archive_cmds_GCJ=''
17863 hardcode_direct_GCJ=yes
17864 hardcode_libdir_separator_GCJ=':'
17865 link_all_deplibs_GCJ=yes
17867 if test "$GCC" = yes; then
17868 case $host_os in aix4.[012]|aix4.[012].*)
17869 # We only want to do this on AIX 4.2 and lower, the check
17870 # below for broken collect2 doesn't work under 4.3+
17871 collect2name=`${CC} -print-prog-name=collect2`
17872 if test -f "$collect2name" && \
17873 strings "$collect2name" | grep resolve_lib_name >/dev/null
17875 # We have reworked collect2
17876 hardcode_direct_GCJ=yes
17878 # We have old collect2
17879 hardcode_direct_GCJ=unsupported
17880 # It fails to find uninstalled libraries when the uninstalled
17881 # path is not listed in the libpath. Setting hardcode_minus_L
17882 # to unsupported forces relinking
17883 hardcode_minus_L_GCJ=yes
17884 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17885 hardcode_libdir_separator_GCJ=
17889 shared_flag='-shared'
17890 if test "$aix_use_runtimelinking" = yes; then
17891 shared_flag="$shared_flag "'${wl}-G'
17895 if test "$host_cpu" = ia64; then
17896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17897 # chokes on -Wl,-G. The following line is correct:
17900 if test "$aix_use_runtimelinking" = yes; then
17901 shared_flag='${wl}-G'
17903 shared_flag='${wl}-bM:SRE'
17908 # It seems that -bexpall does not export symbols beginning with
17909 # underscore (_), so it is better to generate a list of symbols to export.
17910 always_export_symbols_GCJ=yes
17911 if test "$aix_use_runtimelinking" = yes; then
17912 # Warning - without using the other runtime loading flags (-brtl),
17913 # -berok will link without error, but may produce a broken library.
17914 allow_undefined_flag_GCJ='-berok'
17915 # Determine the default libpath from the value encoded in an empty executable.
17916 cat >conftest.$ac_ext <<_ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17931 rm -f conftest.$ac_objext conftest$ac_exeext
17932 if { (ac_try="$ac_link"
17933 case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>conftest.er1
17940 grep -v '^ *+' conftest.er1 >conftest.err
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946 { (case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_try") 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest$ac_exeext'
17956 { (case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_try") 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17968 # Check for a 64-bit object if we didn't find anything.
17969 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; }
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17978 rm -f core conftest.err conftest.$ac_objext \
17979 conftest$ac_exeext conftest.$ac_ext
17980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17982 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17983 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"
17985 if test "$host_cpu" = ia64; then
17986 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17987 allow_undefined_flag_GCJ="-z nodefs"
17988 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"
17990 # Determine the default libpath from the value encoded in an empty executable.
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_link") 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18043 # Check for a 64-bit object if we didn't find anything.
18044 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; }
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18053 rm -f core conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18057 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18058 # Warning - without using the other run time loading flags,
18059 # -berok will link without error, but may produce a broken library.
18060 no_undefined_flag_GCJ=' ${wl}-bernotok'
18061 allow_undefined_flag_GCJ=' ${wl}-berok'
18062 # Exported symbols can be pulled into shared objects from archives
18063 whole_archive_flag_spec_GCJ='$convenience'
18064 archive_cmds_need_lc_GCJ=yes
18065 # This is similar to how AIX traditionally builds its shared libraries.
18066 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'
18072 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)'
18073 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18074 hardcode_minus_L_GCJ=yes
18075 # see comment about different semantics on the GNU ld section
18080 export_dynamic_flag_spec_GCJ=-rdynamic
18083 cygwin* | mingw* | pw32*)
18084 # When not using gcc, we currently assume that we are using
18085 # Microsoft Visual C++.
18086 # hardcode_libdir_flag_spec is actually meaningless, as there is
18087 # no search path for DLLs.
18088 hardcode_libdir_flag_spec_GCJ=' '
18089 allow_undefined_flag_GCJ=unsupported
18090 # Tell ltmain to make .lib files, not .a files.
18092 # Tell ltmain to make .dll files, not .so files.
18094 # FIXME: Setting linknames here is a bad hack.
18095 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18096 # The linker will automatically build a .lib file if we build a DLL.
18097 old_archive_From_new_cmds_GCJ='true'
18098 # FIXME: Should let the user specify the lib program.
18099 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18100 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18101 enable_shared_with_static_runtimes_GCJ=yes
18104 darwin* | rhapsody*)
18106 rhapsody* | darwin1.[012])
18107 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18110 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18111 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18113 case ${MACOSX_DEPLOYMENT_TARGET} in
18115 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18118 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18124 archive_cmds_need_lc_GCJ=no
18125 hardcode_direct_GCJ=no
18126 hardcode_automatic_GCJ=yes
18127 hardcode_shlibpath_var_GCJ=unsupported
18128 whole_archive_flag_spec_GCJ=''
18129 link_all_deplibs_GCJ=yes
18130 if test "$GCC" = yes ; then
18131 output_verbose_link_cmd='echo'
18132 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18133 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18134 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18135 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}'
18136 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}'
18138 case $cc_basename in
18140 output_verbose_link_cmd='echo'
18141 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18142 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18143 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18144 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}'
18145 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}'
18155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18157 hardcode_shlibpath_var_GCJ=no
18164 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18165 # support. Future versions do this automatically, but an explicit c++rt0.o
18166 # does not break anything, and helps significantly (at the cost of a little
18169 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18170 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18171 hardcode_direct_GCJ=yes
18172 hardcode_shlibpath_var_GCJ=no
18175 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18177 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18178 hardcode_direct_GCJ=yes
18179 hardcode_minus_L_GCJ=yes
18180 hardcode_shlibpath_var_GCJ=no
18183 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18184 freebsd* | kfreebsd*-gnu | dragonfly*)
18185 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18186 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18187 hardcode_direct_GCJ=yes
18188 hardcode_shlibpath_var_GCJ=no
18192 if test "$GCC" = yes; then
18193 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'
18195 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'
18197 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18198 hardcode_libdir_separator_GCJ=:
18199 hardcode_direct_GCJ=yes
18201 # hardcode_minus_L: Not really in the search PATH,
18202 # but as the default location of the library.
18203 hardcode_minus_L_GCJ=yes
18204 export_dynamic_flag_spec_GCJ='${wl}-E'
18208 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18209 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18211 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18213 if test "$with_gnu_ld" = no; then
18214 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18215 hardcode_libdir_separator_GCJ=:
18217 hardcode_direct_GCJ=yes
18218 export_dynamic_flag_spec_GCJ='${wl}-E'
18220 # hardcode_minus_L: Not really in the search PATH,
18221 # but as the default location of the library.
18222 hardcode_minus_L_GCJ=yes
18227 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18230 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18233 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18236 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18242 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18245 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18248 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18252 if test "$with_gnu_ld" = no; then
18253 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18254 hardcode_libdir_separator_GCJ=:
18258 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18259 hardcode_direct_GCJ=no
18260 hardcode_shlibpath_var_GCJ=no
18263 hardcode_direct_GCJ=yes
18264 export_dynamic_flag_spec_GCJ='${wl}-E'
18266 # hardcode_minus_L: Not really in the search PATH,
18267 # but as the default location of the library.
18268 hardcode_minus_L_GCJ=yes
18274 irix5* | irix6* | nonstopux*)
18275 if test "$GCC" = yes; then
18276 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'
18278 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'
18279 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18281 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18282 hardcode_libdir_separator_GCJ=:
18283 link_all_deplibs_GCJ=yes
18287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18288 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18290 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18292 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18293 hardcode_direct_GCJ=yes
18294 hardcode_shlibpath_var_GCJ=no
18298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18299 hardcode_direct_GCJ=yes
18300 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18301 hardcode_libdir_separator_GCJ=:
18302 hardcode_shlibpath_var_GCJ=no
18306 hardcode_direct_GCJ=yes
18307 hardcode_shlibpath_var_GCJ=no
18308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18309 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18310 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18311 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18312 export_dynamic_flag_spec_GCJ='${wl}-E'
18315 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18316 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18317 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18320 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18321 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18329 hardcode_minus_L_GCJ=yes
18330 allow_undefined_flag_GCJ=unsupported
18331 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'
18332 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18336 if test "$GCC" = yes; then
18337 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18338 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'
18340 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18341 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'
18343 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18344 hardcode_libdir_separator_GCJ=:
18347 osf4* | osf5*) # as osf3* with the addition of -msym flag
18348 if test "$GCC" = yes; then
18349 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18350 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'
18351 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18353 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18354 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'
18355 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~
18356 $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'
18358 # Both c and cxx compiler support -rpath directly
18359 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18361 hardcode_libdir_separator_GCJ=:
18365 no_undefined_flag_GCJ=' -z text'
18366 if test "$GCC" = yes; then
18368 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18369 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18370 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18373 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18374 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18375 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18377 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18378 hardcode_shlibpath_var_GCJ=no
18380 solaris2.[0-5] | solaris2.[0-5].*) ;;
18382 # The compiler driver will combine linker options so we
18383 # cannot just pass the convience library names through
18384 # without $wl, iff we do not link with $LD.
18385 # Luckily, gcc supports the same syntax we need for Sun Studio.
18386 # Supported since Solaris 2.6 (maybe 2.5.1?)
18389 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18391 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' ;;
18394 link_all_deplibs_GCJ=yes
18398 if test "x$host_vendor" = xsequent; then
18399 # Use $CC to link under sequent, because it throws in some extra .o
18400 # files that make .init and .fini sections work.
18401 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18403 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18406 hardcode_direct_GCJ=yes
18407 hardcode_minus_L_GCJ=yes
18408 hardcode_shlibpath_var_GCJ=no
18412 case $host_vendor in
18414 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18415 hardcode_direct_GCJ=yes # is this really true???
18418 ## LD is ld it makes a PLAMLIB
18419 ## CC just makes a GrossModule.
18420 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18421 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18422 hardcode_direct_GCJ=no
18425 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18426 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18429 runpath_var='LD_RUN_PATH'
18430 hardcode_shlibpath_var_GCJ=no
18434 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18435 hardcode_shlibpath_var_GCJ=no
18436 export_dynamic_flag_spec_GCJ='-Bexport'
18440 if test -d /usr/nec; then
18441 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18442 hardcode_shlibpath_var_GCJ=no
18443 runpath_var=LD_RUN_PATH
18444 hardcode_runpath_var=yes
18449 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18450 no_undefined_flag_GCJ='${wl}-z,text'
18451 archive_cmds_need_lc_GCJ=no
18452 hardcode_shlibpath_var_GCJ=no
18453 runpath_var='LD_RUN_PATH'
18455 if test "$GCC" = yes; then
18456 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18457 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18459 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18460 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18464 sysv5* | sco3.2v5* | sco5v6*)
18465 # Note: We can NOT use -z defs as we might desire, because we do not
18466 # link with -lc, and that would cause any symbols used from libc to
18467 # always be unresolved, which means just about no library would
18468 # ever link correctly. If we're not using GNU ld we use -z text
18469 # though, which does catch some bad symbols but isn't as heavy-handed
18471 no_undefined_flag_GCJ='${wl}-z,text'
18472 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18473 archive_cmds_need_lc_GCJ=no
18474 hardcode_shlibpath_var_GCJ=no
18475 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18476 hardcode_libdir_separator_GCJ=':'
18477 link_all_deplibs_GCJ=yes
18478 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18479 runpath_var='LD_RUN_PATH'
18481 if test "$GCC" = yes; then
18482 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18483 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18485 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18486 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18492 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18493 hardcode_shlibpath_var_GCJ=no
18502 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18503 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18504 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18507 # Do we need to explicitly link libc?
18509 case "x$archive_cmds_need_lc_GCJ" in
18511 # Assume -lc should be added
18512 archive_cmds_need_lc_GCJ=yes
18514 if test "$enable_shared" = yes && test "$GCC" = yes; then
18515 case $archive_cmds_GCJ in
18517 # FIXME: we may have to deal with multi-command sequences.
18520 # Test whether the compiler implicitly links with -lc since on some
18521 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18522 # to ld, don't add -lc before -lgcc.
18523 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18524 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18526 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18529 (eval $ac_compile) 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } 2>conftest.err; then
18535 libobjs=conftest.$ac_objext
18537 wl=$lt_prog_compiler_wl_GCJ
18538 pic_flag=$lt_prog_compiler_pic_GCJ
18544 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18545 allow_undefined_flag_GCJ=
18546 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18547 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }
18552 archive_cmds_need_lc_GCJ=no
18554 archive_cmds_need_lc_GCJ=yes
18556 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18558 cat conftest.err 1>&5
18561 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18562 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18569 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18570 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18571 library_names_spec=
18572 libname_spec='lib$name'
18576 postuninstall_cmds=
18580 shlibpath_overrides_runpath=unknown
18582 dynamic_linker="$host_os ld.so"
18583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18584 if test "$GCC" = yes; then
18585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18586 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18587 # if the path contains ";" then we assume it to be the separator
18588 # otherwise default to the standard path separator (i.e. ":") - it is
18589 # assumed that no part of a normal pathname contains ";" but that should
18590 # okay in the real world where ";" in dirpaths is itself problematic.
18591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18598 need_lib_prefix=unknown
18599 hardcode_into_libs=no
18601 # when you set need_version to no, make sure it does not cause -set_version
18602 # flags to be left without arguments
18603 need_version=unknown
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18609 shlibpath_var=LIBPATH
18611 # AIX 3 has no versioning support, so we append a major version to the name.
18612 soname_spec='${libname}${release}${shared_ext}$major'
18619 hardcode_into_libs=yes
18620 if test "$host_cpu" = ia64; then
18621 # AIX 5 supports IA64
18622 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18623 shlibpath_var=LD_LIBRARY_PATH
18625 # With GCC up to 2.95.x, collect2 would create an import file
18626 # for dependence libraries. The import file would start with
18627 # the line `#! .'. This would cause the generated library to
18628 # depend on `.', always an invalid library. This was fixed in
18629 # development snapshots of GCC prior to 3.0.
18631 aix4 | aix4.[01] | aix4.[01].*)
18632 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18634 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18637 can_build_shared=no
18641 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18642 # soname into executable. Probably we can add versioning support to
18643 # collect2, so additional links can be useful in future.
18644 if test "$aix_use_runtimelinking" = yes; then
18645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18646 # instead of lib<name>.a to let people know that these are not
18647 # typical AIX shared libraries.
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18650 # We preserve .a as extension for shared libraries through AIX4.2
18651 # and later when we are not doing run time linking.
18652 library_names_spec='${libname}${release}.a $libname.a'
18653 soname_spec='${libname}${release}${shared_ext}$major'
18655 shlibpath_var=LIBPATH
18660 library_names_spec='$libname.ixlibrary $libname.a'
18661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18662 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'
18666 library_names_spec='${libname}${shared_ext}'
18667 dynamic_linker="$host_os ld.so"
18668 shlibpath_var=LIBRARY_PATH
18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675 soname_spec='${libname}${release}${shared_ext}$major'
18676 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18677 shlibpath_var=LD_LIBRARY_PATH
18678 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18679 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18680 # the default ld.so.conf also contains /usr/contrib/lib and
18681 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18682 # libtool to hard-code these into programs
18685 cygwin* | mingw* | pw32*)
18686 version_type=windows
18691 case $GCC,$host_os in
18692 yes,cygwin* | yes,mingw* | yes,pw32*)
18693 library_names_spec='$libname.dll.a'
18694 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18695 postinstall_cmds='base_file=`basename \${file}`~
18696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18697 dldir=$destdir/`dirname \$dlpath`~
18698 test -d \$dldir || mkdir -p \$dldir~
18699 $install_prog $dir/$dlname \$dldir/$dlname~
18700 chmod a+x \$dldir/$dlname'
18701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18702 dlpath=$dir/\$dldll~
18704 shlibpath_overrides_runpath=yes
18708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18709 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18710 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18713 # MinGW DLLs use traditional 'lib' prefix
18714 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18716 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18717 # It is most probably a Windows format PATH printed by
18718 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18719 # path with ; separators, and with drive letters. We can handle the
18720 # drive letters (cygwin fileutils understands them), so leave them,
18721 # especially as we might pass files found there to a mingw objdump,
18722 # which wouldn't understand a cygwinified path. Ahh.
18723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18729 # pw32 DLLs use 'pw' prefix rather than 'lib'
18730 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18736 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18739 dynamic_linker='Win32 ld.exe'
18740 # FIXME: first we should search . and the directory the executable is in
18744 darwin* | rhapsody*)
18745 dynamic_linker="$host_os dyld"
18746 version_type=darwin
18749 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18750 soname_spec='${libname}${release}${major}$shared_ext'
18751 shlibpath_overrides_runpath=yes
18752 shlibpath_var=DYLD_LIBRARY_PATH
18753 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18754 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18755 if test "$GCC" = yes; then
18756 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"`
18758 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 shlibpath_var=LD_LIBRARY_PATH
18780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18781 soname_spec='${libname}${release}${shared_ext}$major'
18782 shlibpath_var=LD_LIBRARY_PATH
18783 shlibpath_overrides_runpath=no
18784 hardcode_into_libs=yes
18785 dynamic_linker='GNU ld.so'
18788 freebsd* | dragonfly*)
18789 # DragonFly does not have aout. When/if they implement a new
18790 # versioning mechanism, adjust this.
18791 if test -x /usr/bin/objformat; then
18792 objformat=`/usr/bin/objformat`
18795 freebsd[123]*) objformat=aout ;;
18796 *) objformat=elf ;;
18799 version_type=freebsd-$objformat
18800 case $version_type in
18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18811 shlibpath_var=LD_LIBRARY_PATH
18814 shlibpath_overrides_runpath=yes
18816 freebsd3.[01]* | freebsdelf3.[01]*)
18817 shlibpath_overrides_runpath=yes
18818 hardcode_into_libs=yes
18820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18822 shlibpath_overrides_runpath=no
18823 hardcode_into_libs=yes
18825 freebsd*) # from 4.6 on
18826 shlibpath_overrides_runpath=yes
18827 hardcode_into_libs=yes
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18837 soname_spec='${libname}${release}${shared_ext}$major'
18838 shlibpath_var=LD_LIBRARY_PATH
18839 hardcode_into_libs=yes
18842 hpux9* | hpux10* | hpux11*)
18843 # Give a soname corresponding to the major version so that dld.sl refuses to
18844 # link against other versions.
18851 hardcode_into_libs=yes
18852 dynamic_linker="$host_os dld.so"
18853 shlibpath_var=LD_LIBRARY_PATH
18854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18856 soname_spec='${libname}${release}${shared_ext}$major'
18857 if test "X$HPUX_IA64_MODE" = X32; then
18858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18866 hardcode_into_libs=yes
18867 dynamic_linker="$host_os dld.sl"
18868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871 soname_spec='${libname}${release}${shared_ext}$major'
18872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18877 dynamic_linker="$host_os dld.sl"
18878 shlibpath_var=SHLIB_PATH
18879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881 soname_spec='${libname}${release}${shared_ext}$major'
18884 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18885 postinstall_cmds='chmod 555 $lib'
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18895 shlibpath_var=LD_LIBRARY_PATH
18896 shlibpath_overrides_runpath=no
18897 hardcode_into_libs=yes
18900 irix5* | irix6* | nonstopux*)
18902 nonstopux*) version_type=nonstopux ;;
18904 if test "$lt_cv_prog_gnu_ld" = yes; then
18912 soname_spec='${libname}${release}${shared_ext}$major'
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18915 irix5* | nonstopux*)
18916 libsuff= shlibsuff=
18919 case $LD in # libtool.m4 will add one of these switches to LD
18920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18921 libsuff= shlibsuff= libmagic=32-bit;;
18922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18923 libsuff=32 shlibsuff=N32 libmagic=N32;;
18924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18926 *) libsuff= shlibsuff= libmagic=never-match;;
18930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18931 shlibpath_overrides_runpath=no
18932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18934 hardcode_into_libs=yes
18937 # No shared lib support for Linux oldld, aout, or coff.
18938 linux*oldld* | linux*aout* | linux*coff*)
18942 # This must be Linux ELF.
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18950 shlibpath_var=LD_LIBRARY_PATH
18951 shlibpath_overrides_runpath=no
18952 # This implies no fast_install, which is unacceptable.
18953 # Some rework will be needed to allow for fast_install
18954 # before this can be enabled.
18955 hardcode_into_libs=yes
18957 # Append ld.so.conf contents to the search path
18958 if test -f /etc/ld.so.conf; then
18959 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' ' '`
18960 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18963 # We used to test for /lib/ld.so.1 and disable shared libraries on
18964 # powerpc, because MkLinux only supported shared libraries with the
18965 # GNU dynamic linker. Since this was broken with cross compilers,
18966 # most powerpc-linux boxes support dynamic linking these days and
18967 # people can always --disable-shared, the test was removed, and we
18968 # assume the GNU/Linux dynamic linker is in use.
18969 dynamic_linker='GNU/Linux ld.so'
18976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18977 soname_spec='${libname}${release}${shared_ext}$major'
18978 shlibpath_var=LD_LIBRARY_PATH
18979 shlibpath_overrides_runpath=no
18980 hardcode_into_libs=yes
18981 dynamic_linker='GNU ld.so'
18988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18991 dynamic_linker='NetBSD (a.out) ld.so'
18993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18994 soname_spec='${libname}${release}${shared_ext}$major'
18995 dynamic_linker='NetBSD ld.elf_so'
18997 shlibpath_var=LD_LIBRARY_PATH
18998 shlibpath_overrides_runpath=yes
18999 hardcode_into_libs=yes
19004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19005 shlibpath_var=LD_LIBRARY_PATH
19006 shlibpath_overrides_runpath=yes
19013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19014 soname_spec='${libname}${release}${shared_ext}$major'
19015 shlibpath_var=LD_LIBRARY_PATH
19016 shlibpath_overrides_runpath=yes
19021 sys_lib_dlsearch_path_spec="/usr/lib"
19023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19026 *) need_version=no ;;
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19030 shlibpath_var=LD_LIBRARY_PATH
19031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19033 openbsd2.[89] | openbsd2.[89].*)
19034 shlibpath_overrides_runpath=no
19037 shlibpath_overrides_runpath=yes
19041 shlibpath_overrides_runpath=yes
19046 libname_spec='$name'
19049 library_names_spec='$libname${shared_ext} $libname.a'
19050 dynamic_linker='OS/2 ld.exe'
19051 shlibpath_var=LIBPATH
19054 osf3* | osf4* | osf5*)
19058 soname_spec='${libname}${release}${shared_ext}$major'
19059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19060 shlibpath_var=LD_LIBRARY_PATH
19061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19070 soname_spec='${libname}${release}${shared_ext}$major'
19071 shlibpath_var=LD_LIBRARY_PATH
19072 shlibpath_overrides_runpath=yes
19073 hardcode_into_libs=yes
19074 # ldd complains unless libraries are executable
19075 postinstall_cmds='chmod +x $lib'
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19081 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19082 shlibpath_var=LD_LIBRARY_PATH
19083 shlibpath_overrides_runpath=yes
19084 if test "$with_gnu_ld" = yes; then
19092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19093 soname_spec='${libname}${release}${shared_ext}$major'
19094 shlibpath_var=LD_LIBRARY_PATH
19095 case $host_vendor in
19097 shlibpath_overrides_runpath=no
19099 export_dynamic_flag_spec='${wl}-Blargedynsym'
19100 runpath_var=LD_RUN_PATH
19108 shlibpath_overrides_runpath=no
19109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19115 if test -d /usr/nec ;then
19117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19118 soname_spec='$libname${shared_ext}.$major'
19119 shlibpath_var=LD_LIBRARY_PATH
19123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19124 version_type=freebsd-elf
19127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19128 soname_spec='${libname}${release}${shared_ext}$major'
19129 shlibpath_var=LD_LIBRARY_PATH
19130 hardcode_into_libs=yes
19131 if test "$with_gnu_ld" = yes; then
19132 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19133 shlibpath_overrides_runpath=no
19135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19136 shlibpath_overrides_runpath=yes
19139 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19143 sys_lib_dlsearch_path_spec='/usr/lib'
19148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 shlibpath_var=LD_LIBRARY_PATH
19157 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19158 echo "${ECHO_T}$dynamic_linker" >&6; }
19159 test "$dynamic_linker" = no && can_build_shared=no
19161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19162 if test "$GCC" = yes; then
19163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19166 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19167 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19168 hardcode_action_GCJ=
19169 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19170 test -n "$runpath_var_GCJ" || \
19171 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19173 # We can hardcode non-existant directories.
19174 if test "$hardcode_direct_GCJ" != no &&
19175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19176 # have to relink, otherwise we might link with an installed library
19177 # when we should be linking with a yet-to-be-installed one
19178 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19179 test "$hardcode_minus_L_GCJ" != no; then
19180 # Linking always hardcodes the temporary library directory.
19181 hardcode_action_GCJ=relink
19183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19184 hardcode_action_GCJ=immediate
19187 # We cannot hardcode anything, or else we can only hardcode existing
19189 hardcode_action_GCJ=unsupported
19191 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19192 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19194 if test "$hardcode_action_GCJ" = relink; then
19195 # Fast installation is not supported
19196 enable_fast_install=no
19197 elif test "$shlibpath_overrides_runpath" = yes ||
19198 test "$enable_shared" = no; then
19199 # Fast installation is not necessary
19200 enable_fast_install=needless
19204 # The else clause should only fire when bootstrapping the
19205 # libtool distribution, otherwise you forgot to ship ltmain.sh
19206 # with your package, and you will get complaints that there are
19207 # no rules to generate ltmain.sh.
19208 if test -f "$ltmain"; then
19209 # See if we are running on zsh, and set the options which allow our commands through
19210 # without removal of \ escapes.
19211 if test -n "${ZSH_VERSION+set}" ; then
19212 setopt NO_GLOB_SUBST
19214 # Now quote all the things that may contain metacharacters while being
19215 # careful not to overquote the AC_SUBSTed values. We take copies of the
19216 # variables and quote the copies for generation of the libtool script.
19217 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19219 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19220 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19221 deplibs_check_method reload_flag reload_cmds need_locks \
19222 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19223 lt_cv_sys_global_symbol_to_c_name_address \
19224 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19225 old_postinstall_cmds old_postuninstall_cmds \
19229 lt_prog_compiler_wl_GCJ \
19230 lt_prog_compiler_pic_GCJ \
19231 lt_prog_compiler_static_GCJ \
19232 lt_prog_compiler_no_builtin_flag_GCJ \
19233 export_dynamic_flag_spec_GCJ \
19234 thread_safe_flag_spec_GCJ \
19235 whole_archive_flag_spec_GCJ \
19236 enable_shared_with_static_runtimes_GCJ \
19237 old_archive_cmds_GCJ \
19238 old_archive_from_new_cmds_GCJ \
19239 predep_objects_GCJ \
19240 postdep_objects_GCJ \
19243 compiler_lib_search_path_GCJ \
19245 archive_expsym_cmds_GCJ \
19246 postinstall_cmds_GCJ \
19247 postuninstall_cmds_GCJ \
19248 old_archive_from_expsyms_cmds_GCJ \
19249 allow_undefined_flag_GCJ \
19250 no_undefined_flag_GCJ \
19251 export_symbols_cmds_GCJ \
19252 hardcode_libdir_flag_spec_GCJ \
19253 hardcode_libdir_flag_spec_ld_GCJ \
19254 hardcode_libdir_separator_GCJ \
19255 hardcode_automatic_GCJ \
19257 module_expsym_cmds_GCJ \
19258 lt_cv_prog_compiler_c_o_GCJ \
19259 exclude_expsyms_GCJ \
19260 include_expsyms_GCJ; do
19263 old_archive_cmds_GCJ | \
19264 old_archive_from_new_cmds_GCJ | \
19265 archive_cmds_GCJ | \
19266 archive_expsym_cmds_GCJ | \
19267 module_cmds_GCJ | \
19268 module_expsym_cmds_GCJ | \
19269 old_archive_from_expsyms_cmds_GCJ | \
19270 export_symbols_cmds_GCJ | \
19271 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19272 postinstall_cmds | postuninstall_cmds | \
19273 old_postinstall_cmds | old_postuninstall_cmds | \
19274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19275 # Double-quote double-evaled strings.
19276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19285 *'\$0 --fallback-echo"')
19286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19292 cat <<__EOF__ >> "$cfgfile"
19293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19297 # Shell to use when invoking shell scripts.
19300 # Whether or not to build shared libraries.
19301 build_libtool_libs=$enable_shared
19303 # Whether or not to build static libraries.
19304 build_old_libs=$enable_static
19306 # Whether or not to add -lc for building shared libraries.
19307 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19309 # Whether or not to disallow shared libs when runtime libs are static
19310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19312 # Whether or not to optimize for fast installation.
19313 fast_install=$enable_fast_install
19316 host_alias=$host_alias
19320 # The build system.
19321 build_alias=$build_alias
19325 # An echo program that does not interpret backslashes.
19330 AR_FLAGS=$lt_AR_FLAGS
19335 # LTCC compiler flags.
19336 LTCFLAGS=$lt_LTCFLAGS
19338 # A language-specific compiler.
19339 CC=$lt_compiler_GCJ
19341 # Is the compiler the GNU C compiler?
19347 # The linker used to build libraries.
19350 # Whether we need hard or soft links.
19353 # A BSD-compatible nm program.
19356 # A symbol stripping program
19359 # Used to examine libraries when file_magic_cmd begins "file"
19360 MAGIC_CMD=$MAGIC_CMD
19362 # Used on cygwin: DLL creation program.
19365 # Used on cygwin: object dumper.
19368 # Used on cygwin: assembler.
19371 # The name of the directory that contains temporary libtool files.
19374 # How to create reloadable object files.
19375 reload_flag=$lt_reload_flag
19376 reload_cmds=$lt_reload_cmds
19378 # How to pass a linker flag through the compiler.
19379 wl=$lt_lt_prog_compiler_wl_GCJ
19381 # Object file suffix (normally "o").
19382 objext="$ac_objext"
19384 # Old archive suffix (normally "a").
19387 # Shared library suffix (normally ".so").
19388 shrext_cmds='$shrext_cmds'
19390 # Executable file suffix (normally "").
19393 # Additional compiler flags for building library objects.
19394 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19397 # What is the maximum length of a command?
19398 max_cmd_len=$lt_cv_sys_max_cmd_len
19400 # Does compiler simultaneously support -c and -o options?
19401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19403 # Must we lock files when doing compilation?
19404 need_locks=$lt_need_locks
19406 # Do we need the lib prefix for modules?
19407 need_lib_prefix=$need_lib_prefix
19409 # Do we need a version for libraries?
19410 need_version=$need_version
19412 # Whether dlopen is supported.
19413 dlopen_support=$enable_dlopen
19415 # Whether dlopen of programs is supported.
19416 dlopen_self=$enable_dlopen_self
19418 # Whether dlopen of statically linked programs is supported.
19419 dlopen_self_static=$enable_dlopen_self_static
19421 # Compiler flag to prevent dynamic linking.
19422 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19424 # Compiler flag to turn off builtin functions.
19425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19427 # Compiler flag to allow reflexive dlopens.
19428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19430 # Compiler flag to generate shared objects directly from archives.
19431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19433 # Compiler flag to generate thread-safe objects.
19434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19436 # Library versioning type.
19437 version_type=$version_type
19439 # Format of library name prefix.
19440 libname_spec=$lt_libname_spec
19442 # List of archive names. First name is the real one, the rest are links.
19443 # The last name is the one that the linker finds with -lNAME.
19444 library_names_spec=$lt_library_names_spec
19446 # The coded name of the library, if different from the real name.
19447 soname_spec=$lt_soname_spec
19449 # Commands used to build and install an old-style archive.
19451 old_archive_cmds=$lt_old_archive_cmds_GCJ
19452 old_postinstall_cmds=$lt_old_postinstall_cmds
19453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19455 # Create an old-style archive from a shared archive.
19456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19458 # Create a temporary old-style archive to link instead of a shared archive.
19459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19461 # Commands used to build and install a shared archive.
19462 archive_cmds=$lt_archive_cmds_GCJ
19463 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19464 postinstall_cmds=$lt_postinstall_cmds
19465 postuninstall_cmds=$lt_postuninstall_cmds
19467 # Commands used to build a loadable module (assumed same as above if empty)
19468 module_cmds=$lt_module_cmds_GCJ
19469 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19471 # Commands to strip libraries.
19472 old_striplib=$lt_old_striplib
19473 striplib=$lt_striplib
19475 # Dependencies to place before the objects being linked to create a
19477 predep_objects=$lt_predep_objects_GCJ
19479 # Dependencies to place after the objects being linked to create a
19481 postdep_objects=$lt_postdep_objects_GCJ
19483 # Dependencies to place before the objects being linked to create a
19485 predeps=$lt_predeps_GCJ
19487 # Dependencies to place after the objects being linked to create a
19489 postdeps=$lt_postdeps_GCJ
19491 # The library search path used internally by the compiler when linking
19492 # a shared library.
19493 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19495 # Method to check whether dependent libraries are shared objects.
19496 deplibs_check_method=$lt_deplibs_check_method
19498 # Command to use when deplibs_check_method == file_magic.
19499 file_magic_cmd=$lt_file_magic_cmd
19501 # Flag that allows shared libraries with undefined symbols to be built.
19502 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19504 # Flag that forces no undefined symbols.
19505 no_undefined_flag=$lt_no_undefined_flag_GCJ
19507 # Commands used to finish a libtool library installation in a directory.
19508 finish_cmds=$lt_finish_cmds
19510 # Same as above, but a single script fragment to be evaled but not shown.
19511 finish_eval=$lt_finish_eval
19513 # Take the output of nm and produce a listing of raw symbols and C names.
19514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19516 # Transform the output of nm in a proper C declaration
19517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19519 # Transform the output of nm in a C name address pair
19520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19522 # This is the shared library runtime path variable.
19523 runpath_var=$runpath_var
19525 # This is the shared library path variable.
19526 shlibpath_var=$shlibpath_var
19528 # Is shlibpath searched before the hard-coded library search path?
19529 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19531 # How to hardcode a shared library path into an executable.
19532 hardcode_action=$hardcode_action_GCJ
19534 # Whether we should hardcode library paths into libraries.
19535 hardcode_into_libs=$hardcode_into_libs
19537 # Flag to hardcode \$libdir into a binary during linking.
19538 # This must work even if \$libdir does not exist.
19539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19541 # If ld is used when linking, flag to hardcode \$libdir into
19542 # a binary during linking. This must work even if \$libdir does
19544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19546 # Whether we need a single -rpath flag with a separated argument.
19547 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19549 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19550 # resulting binary.
19551 hardcode_direct=$hardcode_direct_GCJ
19553 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19554 # resulting binary.
19555 hardcode_minus_L=$hardcode_minus_L_GCJ
19557 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19558 # the resulting binary.
19559 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19561 # Set to yes if building a shared library automatically hardcodes DIR into the library
19562 # and all subsequent libraries and executables linked against it.
19563 hardcode_automatic=$hardcode_automatic_GCJ
19565 # Variables whose values should be saved in libtool wrapper scripts and
19566 # restored at relink time.
19567 variables_saved_for_relink="$variables_saved_for_relink"
19569 # Whether libtool must link a program against all its dependency libraries.
19570 link_all_deplibs=$link_all_deplibs_GCJ
19572 # Compile-time system search path for libraries
19573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19575 # Run-time system search path for libraries
19576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19578 # Fix the shell variable \$srcfile for the compiler.
19579 fix_srcfile_path="$fix_srcfile_path_GCJ"
19581 # Set to yes if exported symbols are required.
19582 always_export_symbols=$always_export_symbols_GCJ
19584 # The commands to list exported symbols.
19585 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19587 # The commands to extract the exported symbol list from a shared archive.
19588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19590 # Symbols that should not be listed in the preloaded symbols.
19591 exclude_expsyms=$lt_exclude_expsyms_GCJ
19593 # Symbols that must always be exported.
19594 include_expsyms=$lt_include_expsyms_GCJ
19596 # ### END LIBTOOL TAG CONFIG: $tagname
19602 # If there is no Makefile yet, we rely on a make rule to execute
19603 # `config.status --recheck' to rerun these tests and create the
19604 # libtool script then.
19605 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19606 if test -f "$ltmain_in"; then
19607 test -f Makefile && make "$ltmain"
19613 ac_cpp='$CPP $CPPFLAGS'
19614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19628 # Source file extension for RC test sources.
19631 # Object file extension for compiled RC test sources.
19635 # Code to be used in simple compile tests
19636 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19638 # Code to be used in simple link tests
19639 lt_simple_link_test_code="$lt_simple_compile_test_code"
19641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19643 # If no C compiler was specified, use CC.
19646 # If no C compiler flags were specified, use CFLAGS.
19647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19649 # Allow CC to be a program name with arguments.
19653 # save warnings/boilerplate of simple test code
19654 ac_outfile=conftest.$ac_objext
19655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19657 _lt_compiler_boilerplate=`cat conftest.err`
19660 ac_outfile=conftest.$ac_objext
19661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19663 _lt_linker_boilerplate=`cat conftest.err`
19667 # Allow CC to be a program name with arguments.
19672 for cc_temp in $compiler""; do
19674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19682 lt_cv_prog_compiler_c_o_RC=yes
19684 # The else clause should only fire when bootstrapping the
19685 # libtool distribution, otherwise you forgot to ship ltmain.sh
19686 # with your package, and you will get complaints that there are
19687 # no rules to generate ltmain.sh.
19688 if test -f "$ltmain"; then
19689 # See if we are running on zsh, and set the options which allow our commands through
19690 # without removal of \ escapes.
19691 if test -n "${ZSH_VERSION+set}" ; then
19692 setopt NO_GLOB_SUBST
19694 # Now quote all the things that may contain metacharacters while being
19695 # careful not to overquote the AC_SUBSTed values. We take copies of the
19696 # variables and quote the copies for generation of the libtool script.
19697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19701 deplibs_check_method reload_flag reload_cmds need_locks \
19702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19703 lt_cv_sys_global_symbol_to_c_name_address \
19704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19705 old_postinstall_cmds old_postuninstall_cmds \
19709 lt_prog_compiler_wl_RC \
19710 lt_prog_compiler_pic_RC \
19711 lt_prog_compiler_static_RC \
19712 lt_prog_compiler_no_builtin_flag_RC \
19713 export_dynamic_flag_spec_RC \
19714 thread_safe_flag_spec_RC \
19715 whole_archive_flag_spec_RC \
19716 enable_shared_with_static_runtimes_RC \
19717 old_archive_cmds_RC \
19718 old_archive_from_new_cmds_RC \
19719 predep_objects_RC \
19720 postdep_objects_RC \
19723 compiler_lib_search_path_RC \
19725 archive_expsym_cmds_RC \
19726 postinstall_cmds_RC \
19727 postuninstall_cmds_RC \
19728 old_archive_from_expsyms_cmds_RC \
19729 allow_undefined_flag_RC \
19730 no_undefined_flag_RC \
19731 export_symbols_cmds_RC \
19732 hardcode_libdir_flag_spec_RC \
19733 hardcode_libdir_flag_spec_ld_RC \
19734 hardcode_libdir_separator_RC \
19735 hardcode_automatic_RC \
19737 module_expsym_cmds_RC \
19738 lt_cv_prog_compiler_c_o_RC \
19739 exclude_expsyms_RC \
19740 include_expsyms_RC; do
19743 old_archive_cmds_RC | \
19744 old_archive_from_new_cmds_RC | \
19745 archive_cmds_RC | \
19746 archive_expsym_cmds_RC | \
19748 module_expsym_cmds_RC | \
19749 old_archive_from_expsyms_cmds_RC | \
19750 export_symbols_cmds_RC | \
19751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19752 postinstall_cmds | postuninstall_cmds | \
19753 old_postinstall_cmds | old_postuninstall_cmds | \
19754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19755 # Double-quote double-evaled strings.
19756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19765 *'\$0 --fallback-echo"')
19766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19772 cat <<__EOF__ >> "$cfgfile"
19773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19777 # Shell to use when invoking shell scripts.
19780 # Whether or not to build shared libraries.
19781 build_libtool_libs=$enable_shared
19783 # Whether or not to build static libraries.
19784 build_old_libs=$enable_static
19786 # Whether or not to add -lc for building shared libraries.
19787 build_libtool_need_lc=$archive_cmds_need_lc_RC
19789 # Whether or not to disallow shared libs when runtime libs are static
19790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19792 # Whether or not to optimize for fast installation.
19793 fast_install=$enable_fast_install
19796 host_alias=$host_alias
19800 # The build system.
19801 build_alias=$build_alias
19805 # An echo program that does not interpret backslashes.
19810 AR_FLAGS=$lt_AR_FLAGS
19815 # LTCC compiler flags.
19816 LTCFLAGS=$lt_LTCFLAGS
19818 # A language-specific compiler.
19821 # Is the compiler the GNU C compiler?
19827 # The linker used to build libraries.
19830 # Whether we need hard or soft links.
19833 # A BSD-compatible nm program.
19836 # A symbol stripping program
19839 # Used to examine libraries when file_magic_cmd begins "file"
19840 MAGIC_CMD=$MAGIC_CMD
19842 # Used on cygwin: DLL creation program.
19845 # Used on cygwin: object dumper.
19848 # Used on cygwin: assembler.
19851 # The name of the directory that contains temporary libtool files.
19854 # How to create reloadable object files.
19855 reload_flag=$lt_reload_flag
19856 reload_cmds=$lt_reload_cmds
19858 # How to pass a linker flag through the compiler.
19859 wl=$lt_lt_prog_compiler_wl_RC
19861 # Object file suffix (normally "o").
19862 objext="$ac_objext"
19864 # Old archive suffix (normally "a").
19867 # Shared library suffix (normally ".so").
19868 shrext_cmds='$shrext_cmds'
19870 # Executable file suffix (normally "").
19873 # Additional compiler flags for building library objects.
19874 pic_flag=$lt_lt_prog_compiler_pic_RC
19877 # What is the maximum length of a command?
19878 max_cmd_len=$lt_cv_sys_max_cmd_len
19880 # Does compiler simultaneously support -c and -o options?
19881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19883 # Must we lock files when doing compilation?
19884 need_locks=$lt_need_locks
19886 # Do we need the lib prefix for modules?
19887 need_lib_prefix=$need_lib_prefix
19889 # Do we need a version for libraries?
19890 need_version=$need_version
19892 # Whether dlopen is supported.
19893 dlopen_support=$enable_dlopen
19895 # Whether dlopen of programs is supported.
19896 dlopen_self=$enable_dlopen_self
19898 # Whether dlopen of statically linked programs is supported.
19899 dlopen_self_static=$enable_dlopen_self_static
19901 # Compiler flag to prevent dynamic linking.
19902 link_static_flag=$lt_lt_prog_compiler_static_RC
19904 # Compiler flag to turn off builtin functions.
19905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19907 # Compiler flag to allow reflexive dlopens.
19908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19910 # Compiler flag to generate shared objects directly from archives.
19911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19913 # Compiler flag to generate thread-safe objects.
19914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19916 # Library versioning type.
19917 version_type=$version_type
19919 # Format of library name prefix.
19920 libname_spec=$lt_libname_spec
19922 # List of archive names. First name is the real one, the rest are links.
19923 # The last name is the one that the linker finds with -lNAME.
19924 library_names_spec=$lt_library_names_spec
19926 # The coded name of the library, if different from the real name.
19927 soname_spec=$lt_soname_spec
19929 # Commands used to build and install an old-style archive.
19931 old_archive_cmds=$lt_old_archive_cmds_RC
19932 old_postinstall_cmds=$lt_old_postinstall_cmds
19933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19935 # Create an old-style archive from a shared archive.
19936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19938 # Create a temporary old-style archive to link instead of a shared archive.
19939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19941 # Commands used to build and install a shared archive.
19942 archive_cmds=$lt_archive_cmds_RC
19943 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19944 postinstall_cmds=$lt_postinstall_cmds
19945 postuninstall_cmds=$lt_postuninstall_cmds
19947 # Commands used to build a loadable module (assumed same as above if empty)
19948 module_cmds=$lt_module_cmds_RC
19949 module_expsym_cmds=$lt_module_expsym_cmds_RC
19951 # Commands to strip libraries.
19952 old_striplib=$lt_old_striplib
19953 striplib=$lt_striplib
19955 # Dependencies to place before the objects being linked to create a
19957 predep_objects=$lt_predep_objects_RC
19959 # Dependencies to place after the objects being linked to create a
19961 postdep_objects=$lt_postdep_objects_RC
19963 # Dependencies to place before the objects being linked to create a
19965 predeps=$lt_predeps_RC
19967 # Dependencies to place after the objects being linked to create a
19969 postdeps=$lt_postdeps_RC
19971 # The library search path used internally by the compiler when linking
19972 # a shared library.
19973 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19975 # Method to check whether dependent libraries are shared objects.
19976 deplibs_check_method=$lt_deplibs_check_method
19978 # Command to use when deplibs_check_method == file_magic.
19979 file_magic_cmd=$lt_file_magic_cmd
19981 # Flag that allows shared libraries with undefined symbols to be built.
19982 allow_undefined_flag=$lt_allow_undefined_flag_RC
19984 # Flag that forces no undefined symbols.
19985 no_undefined_flag=$lt_no_undefined_flag_RC
19987 # Commands used to finish a libtool library installation in a directory.
19988 finish_cmds=$lt_finish_cmds
19990 # Same as above, but a single script fragment to be evaled but not shown.
19991 finish_eval=$lt_finish_eval
19993 # Take the output of nm and produce a listing of raw symbols and C names.
19994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19996 # Transform the output of nm in a proper C declaration
19997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19999 # Transform the output of nm in a C name address pair
20000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20002 # This is the shared library runtime path variable.
20003 runpath_var=$runpath_var
20005 # This is the shared library path variable.
20006 shlibpath_var=$shlibpath_var
20008 # Is shlibpath searched before the hard-coded library search path?
20009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20011 # How to hardcode a shared library path into an executable.
20012 hardcode_action=$hardcode_action_RC
20014 # Whether we should hardcode library paths into libraries.
20015 hardcode_into_libs=$hardcode_into_libs
20017 # Flag to hardcode \$libdir into a binary during linking.
20018 # This must work even if \$libdir does not exist.
20019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20021 # If ld is used when linking, flag to hardcode \$libdir into
20022 # a binary during linking. This must work even if \$libdir does
20024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20026 # Whether we need a single -rpath flag with a separated argument.
20027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20030 # resulting binary.
20031 hardcode_direct=$hardcode_direct_RC
20033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20034 # resulting binary.
20035 hardcode_minus_L=$hardcode_minus_L_RC
20037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20038 # the resulting binary.
20039 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20041 # Set to yes if building a shared library automatically hardcodes DIR into the library
20042 # and all subsequent libraries and executables linked against it.
20043 hardcode_automatic=$hardcode_automatic_RC
20045 # Variables whose values should be saved in libtool wrapper scripts and
20046 # restored at relink time.
20047 variables_saved_for_relink="$variables_saved_for_relink"
20049 # Whether libtool must link a program against all its dependency libraries.
20050 link_all_deplibs=$link_all_deplibs_RC
20052 # Compile-time system search path for libraries
20053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20055 # Run-time system search path for libraries
20056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20058 # Fix the shell variable \$srcfile for the compiler.
20059 fix_srcfile_path="$fix_srcfile_path_RC"
20061 # Set to yes if exported symbols are required.
20062 always_export_symbols=$always_export_symbols_RC
20064 # The commands to list exported symbols.
20065 export_symbols_cmds=$lt_export_symbols_cmds_RC
20067 # The commands to extract the exported symbol list from a shared archive.
20068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20070 # Symbols that should not be listed in the preloaded symbols.
20071 exclude_expsyms=$lt_exclude_expsyms_RC
20073 # Symbols that must always be exported.
20074 include_expsyms=$lt_include_expsyms_RC
20076 # ### END LIBTOOL TAG CONFIG: $tagname
20082 # If there is no Makefile yet, we rely on a make rule to execute
20083 # `config.status --recheck' to rerun these tests and create the
20084 # libtool script then.
20085 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20086 if test -f "$ltmain_in"; then
20087 test -f Makefile && make "$ltmain"
20093 ac_cpp='$CPP $CPPFLAGS'
20094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20103 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20104 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20105 { (exit 1); exit 1; }; }
20109 # Append the new tag name to the list of available tags.
20110 if test -n "$tagname" ; then
20111 available_tags="$available_tags $tagname"
20117 # Now substitute the updated list of available tags.
20118 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20119 mv "${ofile}T" "$ofile"
20123 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20124 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20125 { (exit 1); exit 1; }; }
20131 # This can be used to rebuild libtool when needed
20132 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20134 # Always use our own libtool.
20135 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20137 # Prevent multiple expansion
20150 # Check whether --with-system-libtool was given.
20151 if test "${with_system_libtool+set}" = set; then
20152 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
20153 set dummy libtool; ac_word=$2
20154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20156 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 as_dummy="$PATH:/usr/local/bin"
20166 for as_dir in $as_dummy
20169 test -z "$as_dir" && as_dir=.
20170 for ac_exec_ext in '' $ac_executable_extensions; do
20171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20172 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20183 LIBTOOL=$ac_cv_path_LIBTOOL
20184 if test -n "$LIBTOOL"; then
20185 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20186 echo "${ECHO_T}$LIBTOOL" >&6; }
20188 { echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6; }
20195 LIBTOOL="`pwd`/libtool"
20215 # Check whether --enable-strict-dependencies was given.
20216 if test "${enable_strict_dependencies+set}" = set; then
20217 enableval=$enable_strict_dependencies;
20221 docdir='${datadir}/doc/freeradius'
20222 { echo "$as_me:$LINENO: checking docdir" >&5
20223 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20225 # Check whether --with-docdir was given.
20226 if test "${with_docdir+set}" = set; then
20227 withval=$with_docdir; case "$withval" in
20233 [\\/$]* | ?:[\\/]* )
20237 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20238 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20239 { (exit 1); exit 1; }; }
20246 { echo "$as_me:$LINENO: result: $docdir" >&5
20247 echo "${ECHO_T}$docdir" >&6; }
20248 if test "x$docdir" = xno; then
20249 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20250 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20253 logdir='${localstatedir}/log/radius'
20254 { echo "$as_me:$LINENO: checking logdir" >&5
20255 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20257 # Check whether --with-logdir was given.
20258 if test "${with_logdir+set}" = set; then
20259 withval=$with_logdir; case "$withval" in
20261 { { echo "$as_me:$LINENO: error: Need logdir" >&5
20262 echo "$as_me: error: Need logdir" >&2;}
20263 { (exit 1); exit 1; }; }
20267 [\\/$]* | ?:[\\/]* )
20271 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20272 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20273 { (exit 1); exit 1; }; }
20280 { echo "$as_me:$LINENO: result: $logdir" >&5
20281 echo "${ECHO_T}$logdir" >&6; }
20283 radacctdir='${logdir}/radacct'
20284 { echo "$as_me:$LINENO: checking radacctdir" >&5
20285 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20287 # Check whether --with-radacctdir was given.
20288 if test "${with_radacctdir+set}" = set; then
20289 withval=$with_radacctdir; case "$withval" in
20291 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20292 echo "$as_me: error: Need radacctdir" >&2;}
20293 { (exit 1); exit 1; }; }
20297 [\\/$]* | ?:[\\/]* )
20298 radacctdir="$withval"
20301 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20302 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20303 { (exit 1); exit 1; }; }
20310 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20311 echo "${ECHO_T}$radacctdir" >&6; }
20313 raddbdir='${sysconfdir}/raddb'
20314 { echo "$as_me:$LINENO: checking raddbdir" >&5
20315 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20317 # Check whether --with-raddbdir was given.
20318 if test "${with_raddbdir+set}" = set; then
20319 withval=$with_raddbdir; case "$withval" in
20321 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20322 echo "$as_me: error: Need raddbdir" >&2;}
20323 { (exit 1); exit 1; }; }
20327 [\\/$]* | ?:[\\/]* )
20328 raddbdir="$withval"
20331 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20332 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20333 { (exit 1); exit 1; }; }
20340 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20341 echo "${ECHO_T}$raddbdir" >&6; }
20345 # Check whether --with-ascend-binary was given.
20346 if test "${with_ascend_binary+set}" = set; then
20347 withval=$with_ascend_binary; case "$withval" in
20356 if test "X$ASCEND_BINARY" = "Xyes"; then
20358 cat >>confdefs.h <<\_ACEOF
20359 #define ASCEND_BINARY
20366 # Check whether --with-threads was given.
20367 if test "${with_threads+set}" = set; then
20368 withval=$with_threads; case "$withval" in
20380 # Check whether --with-snmp was given.
20381 if test "${with_snmp+set}" = set; then
20382 withval=$with_snmp; case "$withval" in
20394 # Check whether --with-static_modules was given.
20395 if test "${with_static_modules+set}" = set; then
20396 withval=$with_static_modules;
20397 for i in $withval; do
20398 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20406 # Check whether --with-modules was given.
20407 if test "${with_modules+set}" = set; then
20408 withval=$with_modules;
20409 for i in $withval; do
20410 MODULES="$MODULES $i"
20416 # Check whether --enable-developer was given.
20417 if test "${enable_developer+set}" = set; then
20418 enableval=$enable_developer; case "$enableval" in
20429 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20435 # Check whether --with-experimental-modules was given.
20436 if test "${with_experimental_modules+set}" = set; then
20437 withval=$with_experimental_modules; case "$withval" in
20447 OPENSSL_INCLUDE_DIR=
20449 # Check whether --with-openssl-includes was given.
20450 if test "${with_openssl_includes+set}" = set; then
20451 withval=$with_openssl_includes; case "$withval" in
20452 *) OPENSSL_INCLUDE_DIR="$withval"
20461 # Check whether --with-openssl-libraries was given.
20462 if test "${with_openssl_libraries+set}" = set; then
20463 withval=$with_openssl_libraries; case "$withval" in
20464 *) OPENSSL_LIB_DIR="$withval"
20473 # Check whether --with-rlm-FOO-lib-dir was given.
20474 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20475 withval=$with_rlm_FOO_lib_dir; case "$withval" in
20484 # Check whether --with-rlm-FOO-include-dir was given.
20485 if test "${with_rlm_FOO_include_dir+set}" = set; then
20486 withval=$with_rlm_FOO_include_dir; case "$withval" in
20497 # Check whether --with-udpfromto was given.
20498 if test "${with_udpfromto+set}" = set; then
20499 withval=$with_udpfromto; case "$withval" in
20510 if test "x$WITH_UDPFROMTO" = "xyes"; then
20512 cat >>confdefs.h <<\_ACEOF
20513 #define WITH_UDPFROMTO
20519 CHECKRAD=checkrad.pl
20520 # Extract the first word of "perl", so it can be a program name with args.
20521 set dummy perl; ac_word=$2
20522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20524 if test "${ac_cv_path_PERL+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20533 for as_dir in $PATH
20536 test -z "$as_dir" && as_dir=.
20537 for ac_exec_ext in '' $ac_executable_extensions; do
20538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20539 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20547 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20551 PERL=$ac_cv_path_PERL
20552 if test -n "$PERL"; then
20553 { echo "$as_me:$LINENO: result: $PERL" >&5
20554 echo "${ECHO_T}$PERL" >&6; }
20556 { echo "$as_me:$LINENO: result: no" >&5
20557 echo "${ECHO_T}no" >&6; }
20561 if test "x$ac_cv_path_PERL" = "x"; then
20562 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20563 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20565 # Extract the first word of "snmpget", so it can be a program name with args.
20566 set dummy snmpget; ac_word=$2
20567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20569 if test "${ac_cv_path_SNMPGET+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20578 for as_dir in $PATH
20581 test -z "$as_dir" && as_dir=.
20582 for ac_exec_ext in '' $ac_executable_extensions; do
20583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20584 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20595 SNMPGET=$ac_cv_path_SNMPGET
20596 if test -n "$SNMPGET"; then
20597 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20598 echo "${ECHO_T}$SNMPGET" >&6; }
20600 { echo "$as_me:$LINENO: result: no" >&5
20601 echo "${ECHO_T}no" >&6; }
20605 if test "x$ac_cv_path_SNMPGET" = "x"; then
20606 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20607 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20610 # Extract the first word of "snmpwalk", so it can be a program name with args.
20611 set dummy snmpwalk; ac_word=$2
20612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20614 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20619 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20623 for as_dir in $PATH
20626 test -z "$as_dir" && as_dir=.
20627 for ac_exec_ext in '' $ac_executable_extensions; do
20628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20629 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20640 SNMPWALK=$ac_cv_path_SNMPWALK
20641 if test -n "$SNMPWALK"; then
20642 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20643 echo "${ECHO_T}$SNMPWALK" >&6; }
20645 { echo "$as_me:$LINENO: result: no" >&5
20646 echo "${ECHO_T}no" >&6; }
20650 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20651 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20652 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20655 # Extract the first word of "rusers", so it can be a program name with args.
20656 set dummy rusers; ac_word=$2
20657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20659 if test "${ac_cv_path_RUSERS+set}" = set; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20668 for as_dir in $PATH
20671 test -z "$as_dir" && as_dir=.
20672 for ac_exec_ext in '' $ac_executable_extensions; do
20673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20674 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20682 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20686 RUSERS=$ac_cv_path_RUSERS
20687 if test -n "$RUSERS"; then
20688 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20689 echo "${ECHO_T}$RUSERS" >&6; }
20691 { echo "$as_me:$LINENO: result: no" >&5
20692 echo "${ECHO_T}no" >&6; }
20697 missing_dir=`cd $ac_aux_dir && pwd`
20698 # expand $ac_aux_dir to an absolute path
20699 am_aux_dir=`cd $ac_aux_dir && pwd`
20701 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20702 # Use eval to expand $SHELL
20703 if eval "$MISSING --run true"; then
20704 am_missing_run="$MISSING --run "
20707 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20708 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20712 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20715 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20718 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20721 # Extract the first word of "locate", so it can be a program name with args.
20722 set dummy locate; ac_word=$2
20723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20725 if test "${ac_cv_path_LOCATE+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20734 for as_dir in $PATH
20737 test -z "$as_dir" && as_dir=.
20738 for ac_exec_ext in '' $ac_executable_extensions; do
20739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20740 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20751 LOCATE=$ac_cv_path_LOCATE
20752 if test -n "$LOCATE"; then
20753 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20754 echo "${ECHO_T}$LOCATE" >&6; }
20756 { echo "$as_me:$LINENO: result: no" >&5
20757 echo "${ECHO_T}no" >&6; }
20761 # Extract the first word of "dirname", so it can be a program name with args.
20762 set dummy dirname; ac_word=$2
20763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20765 if test "${ac_cv_path_DIRNAME+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20774 for as_dir in $PATH
20777 test -z "$as_dir" && as_dir=.
20778 for ac_exec_ext in '' $ac_executable_extensions; do
20779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20780 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20791 DIRNAME=$ac_cv_path_DIRNAME
20792 if test -n "$DIRNAME"; then
20793 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20794 echo "${ECHO_T}$DIRNAME" >&6; }
20796 { echo "$as_me:$LINENO: result: no" >&5
20797 echo "${ECHO_T}no" >&6; }
20801 # Extract the first word of "grep", so it can be a program name with args.
20802 set dummy grep; ac_word=$2
20803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20805 if test "${ac_cv_path_GREP+set}" = set; then
20806 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20814 for as_dir in $PATH
20817 test -z "$as_dir" && as_dir=.
20818 for ac_exec_ext in '' $ac_executable_extensions; do
20819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20820 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20831 GREP=$ac_cv_path_GREP
20832 if test -n "$GREP"; then
20833 { echo "$as_me:$LINENO: result: $GREP" >&5
20834 echo "${ECHO_T}$GREP" >&6; }
20836 { echo "$as_me:$LINENO: result: no" >&5
20837 echo "${ECHO_T}no" >&6; }
20844 if test "x$WITH_THREADS" = "xyes"; then
20845 if test $ac_cv_prog_suncc = "yes"; then
20846 CFLAGS="$CFLAGS -mt"
20850 for ac_header in pthread.h
20852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 ac_res=`eval echo '${'$as_ac_Header'}'`
20860 { echo "$as_me:$LINENO: result: $ac_res" >&5
20861 echo "${ECHO_T}$ac_res" >&6; }
20863 # Is the header compilable?
20864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20866 cat >conftest.$ac_ext <<_ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 $ac_includes_default
20873 #include <$ac_header>
20875 rm -f conftest.$ac_objext
20876 if { (ac_try="$ac_compile"
20877 case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_compile") 2>conftest.er1
20884 grep -v '^ *+' conftest.er1 >conftest.err
20886 cat conftest.err >&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } &&
20889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20890 { (case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_try") 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; } &&
20899 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 ac_header_compiler=yes
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 ac_header_compiler=no
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20919 echo "${ECHO_T}$ac_header_compiler" >&6; }
20921 # Is the header present?
20922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20924 cat >conftest.$ac_ext <<_ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 #include <$ac_header>
20932 if { (ac_try="$ac_cpp conftest.$ac_ext"
20933 case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20940 grep -v '^ *+' conftest.er1 >conftest.err
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } >/dev/null; then
20945 if test -s conftest.err; then
20946 ac_cpp_err=$ac_c_preproc_warn_flag
20947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20954 if test -z "$ac_cpp_err"; then
20955 ac_header_preproc=yes
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 ac_header_preproc=no
20963 rm -f conftest.err conftest.$ac_ext
20964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20965 echo "${ECHO_T}$ac_header_preproc" >&6; }
20967 # So? What about this header?
20968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20974 ac_header_preproc=yes
20977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20997 eval "$as_ac_Header=\$ac_header_preproc"
20999 ac_res=`eval echo '${'$as_ac_Header'}'`
21000 { echo "$as_me:$LINENO: result: $ac_res" >&5
21001 echo "${ECHO_T}$ac_res" >&6; }
21004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21005 cat >>confdefs.h <<_ACEOF
21006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21016 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21017 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21018 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 ac_check_lib_save_LIBS=$LIBS
21022 LIBS="-lpthread $LIBS"
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21030 /* Override any GCC internal prototype to avoid an error.
21031 Use char because int might match the return type of a GCC
21032 builtin and then its argument prototype would still apply. */
21036 char pthread_create ();
21040 return pthread_create ();
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (ac_try="$ac_link"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_link") 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } &&
21059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21060 { (case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_try") 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; }; then
21079 ac_cv_lib_pthread_pthread_create=yes
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_cv_lib_pthread_pthread_create=no
21087 rm -f core conftest.err conftest.$ac_objext \
21088 conftest$ac_exeext conftest.$ac_ext
21089 LIBS=$ac_check_lib_save_LIBS
21091 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21092 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21093 if test $ac_cv_lib_pthread_pthread_create = yes; then
21094 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21095 LIBS="$LIBS -lpthread"
21097 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21098 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21099 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21102 ac_check_lib_save_LIBS=$LIBS
21104 cat >conftest.$ac_ext <<_ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21111 /* Override any GCC internal prototype to avoid an error.
21112 Use char because int might match the return type of a GCC
21113 builtin and then its argument prototype would still apply. */
21117 char pthread_create ();
21121 return pthread_create ();
21126 rm -f conftest.$ac_objext conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_link") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 ac_cv_lib_c_r_pthread_create=yes
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ac_cv_lib_c_r_pthread_create=no
21168 rm -f core conftest.err conftest.$ac_objext \
21169 conftest$ac_exeext conftest.$ac_ext
21170 LIBS=$ac_check_lib_save_LIBS
21172 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21173 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21174 if test $ac_cv_lib_c_r_pthread_create = yes; then
21175 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21186 if test "x$WITH_THREADS" != "xyes"; then
21188 ac_cv_header_pthread_h="no"
21192 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21193 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21194 if test "${ac_cv_search_sem_init+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21197 ac_func_search_save_LIBS=$LIBS
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21205 /* Override any GCC internal prototype to avoid an error.
21206 Use char because int might match the return type of a GCC
21207 builtin and then its argument prototype would still apply. */
21215 return sem_init ();
21220 for ac_lib in '' pthread sem posix4 rt semaphore; do
21221 if test -z "$ac_lib"; then
21222 ac_res="none required"
21225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21227 rm -f conftest.$ac_objext conftest$ac_exeext
21228 if { (ac_try="$ac_link"
21229 case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_link") 2>conftest.er1
21236 grep -v '^ *+' conftest.er1 >conftest.err
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } &&
21241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21242 { (case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_try") 2>&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
21261 ac_cv_search_sem_init=$ac_res
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21269 rm -f core conftest.err conftest.$ac_objext \
21271 if test "${ac_cv_search_sem_init+set}" = set; then
21275 if test "${ac_cv_search_sem_init+set}" = set; then
21278 ac_cv_search_sem_init=no
21280 rm conftest.$ac_ext
21281 LIBS=$ac_func_search_save_LIBS
21283 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21284 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21285 ac_res=$ac_cv_search_sem_init
21286 if test "$ac_res" != no; then
21287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21290 { { 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
21291 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;}
21292 { (exit 1); exit 1; }; }
21299 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21300 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21301 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21304 ac_check_lib_save_LIBS=$LIBS
21305 LIBS="-lsocket $LIBS"
21306 cat >conftest.$ac_ext <<_ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21313 /* Override any GCC internal prototype to avoid an error.
21314 Use char because int might match the return type of a GCC
21315 builtin and then its argument prototype would still apply. */
21319 char getsockname ();
21323 return getsockname ();
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>conftest.er1
21337 grep -v '^ *+' conftest.er1 >conftest.err
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21343 { (case "(($ac_try" in
21344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_try") 2>&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; } &&
21352 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; }; then
21362 ac_cv_lib_socket_getsockname=yes
21364 echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21367 ac_cv_lib_socket_getsockname=no
21370 rm -f core conftest.err conftest.$ac_objext \
21371 conftest$ac_exeext conftest.$ac_ext
21372 LIBS=$ac_check_lib_save_LIBS
21374 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21375 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21376 if test $ac_cv_lib_socket_getsockname = yes; then
21377 cat >>confdefs.h <<_ACEOF
21378 #define HAVE_LIBSOCKET 1
21381 LIBS="-lsocket $LIBS"
21387 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21388 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21389 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 ac_check_lib_save_LIBS=$LIBS
21393 LIBS="-lresolv $LIBS"
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21401 /* Override any GCC internal prototype to avoid an error.
21402 Use char because int might match the return type of a GCC
21403 builtin and then its argument prototype would still apply. */
21411 return inet_aton ();
21416 rm -f conftest.$ac_objext conftest$ac_exeext
21417 if { (ac_try="$ac_link"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_link") 2>conftest.er1
21425 grep -v '^ *+' conftest.er1 >conftest.err
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } &&
21430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21431 { (case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_try") 2>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; } &&
21440 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 ac_cv_lib_resolv_inet_aton=yes
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21455 ac_cv_lib_resolv_inet_aton=no
21458 rm -f core conftest.err conftest.$ac_objext \
21459 conftest$ac_exeext conftest.$ac_ext
21460 LIBS=$ac_check_lib_save_LIBS
21462 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21463 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21464 if test $ac_cv_lib_resolv_inet_aton = yes; then
21465 cat >>confdefs.h <<_ACEOF
21466 #define HAVE_LIBRESOLV 1
21469 LIBS="-lresolv $LIBS"
21475 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21476 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21477 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 ac_check_lib_save_LIBS=$LIBS
21482 cat >conftest.$ac_ext <<_ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h. */
21489 /* Override any GCC internal prototype to avoid an error.
21490 Use char because int might match the return type of a GCC
21491 builtin and then its argument prototype would still apply. */
21499 return inet_ntoa ();
21504 rm -f conftest.$ac_objext conftest$ac_exeext
21505 if { (ac_try="$ac_link"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_link") 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } &&
21518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21519 { (case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_try") 2>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); }; } &&
21528 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_cv_lib_nsl_inet_ntoa=yes
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ac_cv_lib_nsl_inet_ntoa=no
21546 rm -f core conftest.err conftest.$ac_objext \
21547 conftest$ac_exeext conftest.$ac_ext
21548 LIBS=$ac_check_lib_save_LIBS
21550 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21551 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21552 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21553 cat >>confdefs.h <<_ACEOF
21554 #define HAVE_LIBNSL 1
21564 if test "x$OPENSSL_LIB_DIR" != "x"; then
21565 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21567 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21568 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21569 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21572 ac_check_lib_save_LIBS=$LIBS
21573 LIBS="-lcrypto $LIBS"
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21581 /* Override any GCC internal prototype to avoid an error.
21582 Use char because int might match the return type of a GCC
21583 builtin and then its argument prototype would still apply. */
21596 rm -f conftest.$ac_objext conftest$ac_exeext
21597 if { (ac_try="$ac_link"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_link") 2>conftest.er1
21605 grep -v '^ *+' conftest.er1 >conftest.err
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } &&
21610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21611 { (case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_try") 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; } &&
21620 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; }; then
21630 ac_cv_lib_crypto_DH_new=yes
21632 echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21635 ac_cv_lib_crypto_DH_new=no
21638 rm -f core conftest.err conftest.$ac_objext \
21639 conftest$ac_exeext conftest.$ac_ext
21640 LIBS=$ac_check_lib_save_LIBS
21642 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21643 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21644 if test $ac_cv_lib_crypto_DH_new = yes; then
21647 cat >>confdefs.h <<\_ACEOF
21648 #define HAVE_LIBCRYPTO 1
21651 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21652 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21653 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 ac_check_lib_save_LIBS=$LIBS
21658 cat >conftest.$ac_ext <<_ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h. */
21665 /* Override any GCC internal prototype to avoid an error.
21666 Use char because int might match the return type of a GCC
21667 builtin and then its argument prototype would still apply. */
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (ac_try="$ac_link"
21682 case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_link") 2>conftest.er1
21689 grep -v '^ *+' conftest.er1 >conftest.err
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } &&
21694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21695 { (case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_try") 2>&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; } &&
21704 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; }; then
21714 ac_cv_lib_ssl_SSL_new=yes
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_cv_lib_ssl_SSL_new=no
21722 rm -f core conftest.err conftest.$ac_objext \
21723 conftest$ac_exeext conftest.$ac_ext
21724 LIBS=$ac_check_lib_save_LIBS
21726 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21727 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21728 if test $ac_cv_lib_ssl_SSL_new = yes; then
21731 cat >>confdefs.h <<\_ACEOF
21732 #define HAVE_LIBSSL 1
21735 if test "x$OPENSSL_LIB_DIR" != "x"; then
21736 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21738 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21748 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21749 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21750 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
21753 ac_check_lib_save_LIBS=$LIBS
21754 LIBS="-lws2_32 $LIBS"
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21762 /* Override any GCC internal prototype to avoid an error.
21763 Use char because int might match the return type of a GCC
21764 builtin and then its argument prototype would still apply. */
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_link") 2>conftest.er1
21786 grep -v '^ *+' conftest.er1 >conftest.err
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } &&
21791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21792 { (case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_try") 2>&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); }; } &&
21801 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ac_cv_lib_ws2_32_htonl=yes
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21816 ac_cv_lib_ws2_32_htonl=no
21819 rm -f core conftest.err conftest.$ac_objext \
21820 conftest$ac_exeext conftest.$ac_ext
21821 LIBS=$ac_check_lib_save_LIBS
21823 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21824 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21825 if test $ac_cv_lib_ws2_32_htonl = yes; then
21826 cat >>confdefs.h <<_ACEOF
21827 #define HAVE_LIBWS2_32 1
21830 LIBS="-lws2_32 $LIBS"
21836 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21837 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21838 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 ac_check_lib_save_LIBS=$LIBS
21842 LIBS="-lpcap $LIBS"
21843 cat >conftest.$ac_ext <<_ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21850 /* Override any GCC internal prototype to avoid an error.
21851 Use char because int might match the return type of a GCC
21852 builtin and then its argument prototype would still apply. */
21856 char pcap_open_live ();
21860 return pcap_open_live ();
21865 rm -f conftest.$ac_objext conftest$ac_exeext
21866 if { (ac_try="$ac_link"
21867 case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_link") 2>conftest.er1
21874 grep -v '^ *+' conftest.er1 >conftest.err
21876 cat conftest.err >&5
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21880 { (case "(($ac_try" in
21881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_try") 2>&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; } &&
21889 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_cv_lib_pcap_pcap_open_live=yes
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_cv_lib_pcap_pcap_open_live=no
21907 rm -f core conftest.err conftest.$ac_objext \
21908 conftest$ac_exeext conftest.$ac_ext
21909 LIBS=$ac_check_lib_save_LIBS
21911 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21912 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21913 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21916 cat >>confdefs.h <<\_ACEOF
21917 #define HAVE_LIBPCAP 1
21922 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21923 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21930 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21933 CFLAGS="$CFLAGS -DDARWIN"
21942 ac_header_dirent=no
21943 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21944 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21945 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21946 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21950 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21956 #include <sys/types.h>
21968 rm -f conftest.$ac_objext
21969 if { (ac_try="$ac_compile"
21970 case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_compile") 2>conftest.er1
21977 grep -v '^ *+' conftest.er1 >conftest.err
21979 cat conftest.err >&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } &&
21982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21983 { (case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_try") 2>&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; } &&
21992 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; }; then
22002 eval "$as_ac_Header=yes"
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 eval "$as_ac_Header=no"
22010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 ac_res=`eval echo '${'$as_ac_Header'}'`
22013 { echo "$as_me:$LINENO: result: $ac_res" >&5
22014 echo "${ECHO_T}$ac_res" >&6; }
22015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22016 cat >>confdefs.h <<_ACEOF
22017 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22020 ac_header_dirent=$ac_hdr; break
22024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22025 if test $ac_header_dirent = dirent.h; then
22026 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22027 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22028 if test "${ac_cv_search_opendir+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 ac_func_search_save_LIBS=$LIBS
22032 cat >conftest.$ac_ext <<_ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h. */
22039 /* Override any GCC internal prototype to avoid an error.
22040 Use char because int might match the return type of a GCC
22041 builtin and then its argument prototype would still apply. */
22054 for ac_lib in '' dir; do
22055 if test -z "$ac_lib"; then
22056 ac_res="none required"
22059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22061 rm -f conftest.$ac_objext conftest$ac_exeext
22062 if { (ac_try="$ac_link"
22063 case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_link") 2>conftest.er1
22070 grep -v '^ *+' conftest.er1 >conftest.err
22072 cat conftest.err >&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); } &&
22075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22076 { (case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_try") 2>&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; } &&
22085 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); }; }; then
22095 ac_cv_search_opendir=$ac_res
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22103 rm -f core conftest.err conftest.$ac_objext \
22105 if test "${ac_cv_search_opendir+set}" = set; then
22109 if test "${ac_cv_search_opendir+set}" = set; then
22112 ac_cv_search_opendir=no
22114 rm conftest.$ac_ext
22115 LIBS=$ac_func_search_save_LIBS
22117 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22118 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22119 ac_res=$ac_cv_search_opendir
22120 if test "$ac_res" != no; then
22121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22126 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22128 if test "${ac_cv_search_opendir+set}" = set; then
22129 echo $ECHO_N "(cached) $ECHO_C" >&6
22131 ac_func_search_save_LIBS=$LIBS
22132 cat >conftest.$ac_ext <<_ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22139 /* Override any GCC internal prototype to avoid an error.
22140 Use char because int might match the return type of a GCC
22141 builtin and then its argument prototype would still apply. */
22154 for ac_lib in '' x; do
22155 if test -z "$ac_lib"; then
22156 ac_res="none required"
22159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22161 rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168 (eval "$ac_link") 2>conftest.er1
22170 grep -v '^ *+' conftest.er1 >conftest.err
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } &&
22175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22176 { (case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_try") 2>&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; } &&
22185 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; }; then
22195 ac_cv_search_opendir=$ac_res
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22203 rm -f core conftest.err conftest.$ac_objext \
22205 if test "${ac_cv_search_opendir+set}" = set; then
22209 if test "${ac_cv_search_opendir+set}" = set; then
22212 ac_cv_search_opendir=no
22214 rm conftest.$ac_ext
22215 LIBS=$ac_func_search_save_LIBS
22217 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22218 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22219 ac_res=$ac_cv_search_opendir
22220 if test "$ac_res" != no; then
22221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22227 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22229 if test "${ac_cv_header_stdc+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 cat >conftest.$ac_ext <<_ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h. */
22238 #include <stdlib.h>
22239 #include <stdarg.h>
22240 #include <string.h>
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_compile") 2>conftest.er1
22260 grep -v '^ *+' conftest.er1 >conftest.err
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } &&
22265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22266 { (case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_try") 2>&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); }; } &&
22275 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; }; then
22285 ac_cv_header_stdc=yes
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 ac_cv_header_stdc=no
22293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22295 if test $ac_cv_header_stdc = yes; then
22296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22297 cat >conftest.$ac_ext <<_ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h. */
22303 #include <string.h>
22306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22307 $EGREP "memchr" >/dev/null 2>&1; then
22310 ac_cv_header_stdc=no
22316 if test $ac_cv_header_stdc = yes; then
22317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22318 cat >conftest.$ac_ext <<_ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22324 #include <stdlib.h>
22327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22328 $EGREP "free" >/dev/null 2>&1; then
22331 ac_cv_header_stdc=no
22337 if test $ac_cv_header_stdc = yes; then
22338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22339 if test "$cross_compiling" = yes; then
22342 cat >conftest.$ac_ext <<_ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22349 #include <stdlib.h>
22350 #if ((' ' & 0x0FF) == 0x020)
22351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22354 # define ISLOWER(c) \
22355 (('a' <= (c) && (c) <= 'i') \
22356 || ('j' <= (c) && (c) <= 'r') \
22357 || ('s' <= (c) && (c) <= 'z'))
22358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22366 for (i = 0; i < 256; i++)
22367 if (XOR (islower (i), ISLOWER (i))
22368 || toupper (i) != TOUPPER (i))
22373 rm -f conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380 (eval "$ac_link") 2>&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22384 { (case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_try") 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
22395 echo "$as_me: program exited with status $ac_status" >&5
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ( exit $ac_status )
22400 ac_cv_header_stdc=no
22402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22410 if test $ac_cv_header_stdc = yes; then
22412 cat >>confdefs.h <<\_ACEOF
22413 #define STDC_HEADERS 1
22418 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22419 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22420 if test "${ac_cv_header_time+set}" = set; then
22421 echo $ECHO_N "(cached) $ECHO_C" >&6
22423 cat >conftest.$ac_ext <<_ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 #include <sys/types.h>
22430 #include <sys/time.h>
22436 if ((struct tm *) 0)
22442 rm -f conftest.$ac_objext
22443 if { (ac_try="$ac_compile"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_compile") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1 >conftest.err
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } &&
22456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22457 { (case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_try") 2>&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; } &&
22466 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_header_time=yes
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_cv_header_time=no
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22486 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22487 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22488 if test $ac_cv_header_time = yes; then
22490 cat >>confdefs.h <<\_ACEOF
22491 #define TIME_WITH_SYS_TIME 1
22496 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22497 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22498 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 #include <sys/types.h>
22508 #include <sys/wait.h>
22509 #ifndef WEXITSTATUS
22510 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22513 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22521 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_compile") 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
22540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22541 { (case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_try") 2>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; } &&
22550 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; }; then
22560 ac_cv_header_sys_wait_h=yes
22562 echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22565 ac_cv_header_sys_wait_h=no
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22571 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22572 if test $ac_cv_header_sys_wait_h = yes; then
22574 cat >>confdefs.h <<\_ACEOF
22575 #define HAVE_SYS_WAIT_H 1
22650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 ac_res=`eval echo '${'$as_ac_Header'}'`
22658 { echo "$as_me:$LINENO: result: $ac_res" >&5
22659 echo "${ECHO_T}$ac_res" >&6; }
22661 # Is the header compilable?
22662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 $ac_includes_default
22671 #include <$ac_header>
22673 rm -f conftest.$ac_objext
22674 if { (ac_try="$ac_compile"
22675 case "(($ac_try" in
22676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680 (eval "$ac_compile") 2>conftest.er1
22682 grep -v '^ *+' conftest.er1 >conftest.err
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } &&
22687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22688 { (case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_try") 2>&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); }; } &&
22697 { ac_try='test -s conftest.$ac_objext'
22698 { (case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703 (eval "$ac_try") 2>&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); }; }; then
22707 ac_header_compiler=yes
22709 echo "$as_me: failed program was:" >&5
22710 sed 's/^/| /' conftest.$ac_ext >&5
22712 ac_header_compiler=no
22715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22717 echo "${ECHO_T}$ac_header_compiler" >&6; }
22719 # Is the header present?
22720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 #include <$ac_header>
22730 if { (ac_try="$ac_cpp conftest.$ac_ext"
22731 case "(($ac_try" in
22732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22738 grep -v '^ *+' conftest.er1 >conftest.err
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } >/dev/null; then
22743 if test -s conftest.err; then
22744 ac_cpp_err=$ac_c_preproc_warn_flag
22745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22752 if test -z "$ac_cpp_err"; then
22753 ac_header_preproc=yes
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22758 ac_header_preproc=no
22761 rm -f conftest.err conftest.$ac_ext
22762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22763 echo "${ECHO_T}$ac_header_preproc" >&6; }
22765 # So? What about this header?
22766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22772 ac_header_preproc=yes
22775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22782 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 eval "$as_ac_Header=\$ac_header_preproc"
22797 ac_res=`eval echo '${'$as_ac_Header'}'`
22798 { echo "$as_me:$LINENO: result: $ac_res" >&5
22799 echo "${ECHO_T}$ac_res" >&6; }
22802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22803 cat >>confdefs.h <<_ACEOF
22804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22813 if test "${ac_cv_header_regex_h+set}" = set; then
22814 { echo "$as_me:$LINENO: checking for regex.h" >&5
22815 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22816 if test "${ac_cv_header_regex_h+set}" = set; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
22819 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22820 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22822 # Is the header compilable?
22823 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22824 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22825 cat >conftest.$ac_ext <<_ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h. */
22831 $ac_includes_default
22834 rm -f conftest.$ac_objext
22835 if { (ac_try="$ac_compile"
22836 case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841 (eval "$ac_compile") 2>conftest.er1
22843 grep -v '^ *+' conftest.er1 >conftest.err
22845 cat conftest.err >&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } &&
22848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22849 { (case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_try") 2>&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); }; } &&
22858 { ac_try='test -s conftest.$ac_objext'
22859 { (case "(($ac_try" in
22860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861 *) ac_try_echo=$ac_try;;
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864 (eval "$ac_try") 2>&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; }; then
22868 ac_header_compiler=yes
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 ac_header_compiler=no
22876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22878 echo "${ECHO_T}$ac_header_compiler" >&6; }
22880 # Is the header present?
22881 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22882 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22883 cat >conftest.$ac_ext <<_ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h. */
22891 if { (ac_try="$ac_cpp conftest.$ac_ext"
22892 case "(($ac_try" in
22893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894 *) ac_try_echo=$ac_try;;
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22899 grep -v '^ *+' conftest.er1 >conftest.err
22901 cat conftest.err >&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); } >/dev/null; then
22904 if test -s conftest.err; then
22905 ac_cpp_err=$ac_c_preproc_warn_flag
22906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22913 if test -z "$ac_cpp_err"; then
22914 ac_header_preproc=yes
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22919 ac_header_preproc=no
22922 rm -f conftest.err conftest.$ac_ext
22923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22924 echo "${ECHO_T}$ac_header_preproc" >&6; }
22926 # So? What about this header?
22927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22929 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22930 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22931 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22932 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22933 ac_header_preproc=yes
22936 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22937 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22938 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22939 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22940 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22941 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22942 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22943 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22944 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22945 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22946 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22947 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22951 { echo "$as_me:$LINENO: checking for regex.h" >&5
22952 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22953 if test "${ac_cv_header_regex_h+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22956 ac_cv_header_regex_h=$ac_header_preproc
22958 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22959 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22962 if test $ac_cv_header_regex_h = yes; then
22964 cat >>confdefs.h <<\_ACEOF
22965 #define HAVE_REGEX_H
22971 if test "x$ac_cv_header_regex_h" = "xyes"; then
22974 cat >conftest.$ac_ext <<_ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22981 #ifdef REG_EXTENDED
22986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22987 $EGREP "yes" >/dev/null 2>&1; then
22989 cat >>confdefs.h <<\_ACEOF
22990 #define HAVE_REG_EXTENDED
23000 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23003 cat >>confdefs.h <<\_ACEOF
23009 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23012 cat >>confdefs.h <<\_ACEOF
23018 OPENSSL_INCLUDE="-DNO_OPENSSL"
23019 if test "x$OPENSSL_LIBS" = "x"; then
23020 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23021 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23023 old_CPPFLAGS=$CPPFLAGS
23024 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23025 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23027 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23045 ac_res=`eval echo '${'$as_ac_Header'}'`
23046 { echo "$as_me:$LINENO: result: $ac_res" >&5
23047 echo "${ECHO_T}$ac_res" >&6; }
23049 # Is the header compilable?
23050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 $ac_includes_default
23059 #include <$ac_header>
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23076 { (case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_try") 2>&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } &&
23085 { ac_try='test -s conftest.$ac_objext'
23086 { (case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_header_compiler=yes
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_header_compiler=no
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23105 echo "${ECHO_T}$ac_header_compiler" >&6; }
23107 # Is the header present?
23108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 #include <$ac_header>
23118 if { (ac_try="$ac_cpp conftest.$ac_ext"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23126 grep -v '^ *+' conftest.er1 >conftest.err
23128 cat conftest.err >&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } >/dev/null; then
23131 if test -s conftest.err; then
23132 ac_cpp_err=$ac_c_preproc_warn_flag
23133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23140 if test -z "$ac_cpp_err"; then
23141 ac_header_preproc=yes
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23146 ac_header_preproc=no
23149 rm -f conftest.err conftest.$ac_ext
23150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23151 echo "${ECHO_T}$ac_header_preproc" >&6; }
23153 # So? What about this header?
23154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23160 ac_header_preproc=yes
23163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23181 echo $ECHO_N "(cached) $ECHO_C" >&6
23183 eval "$as_ac_Header=\$ac_header_preproc"
23185 ac_res=`eval echo '${'$as_ac_Header'}'`
23186 { echo "$as_me:$LINENO: result: $ac_res" >&5
23187 echo "${ECHO_T}$ac_res" >&6; }
23190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23191 cat >>confdefs.h <<_ACEOF
23192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23202 if test "x$OPENSSL_LIBS" != "x"; then
23203 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23204 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23205 cat >conftest.$ac_ext <<_ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 #include <openssl/crypto.h>
23212 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23218 $EGREP "yes" >/dev/null 2>&1; then
23223 if test "x$goodssl" != "xyes"; then
23224 { echo "$as_me:$LINENO: result: no" >&5
23225 echo "${ECHO_T}no" >&6; }
23228 { echo "$as_me:$LINENO: result: yes" >&5
23229 echo "${ECHO_T}yes" >&6; }
23230 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23231 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23233 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23237 CPPFLAGS=$old_CPPFLAGS
23241 export OPENSSL_LIBS
23243 if test "x$PCAP_LIBS" = x; then
23244 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23245 echo "$as_me: skipping test for pcap.h." >&6;}
23247 if test "${ac_cv_header_pcap_h+set}" = set; then
23248 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23249 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23250 if test "${ac_cv_header_pcap_h+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23253 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23254 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23256 # Is the header compilable?
23257 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23258 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23259 cat >conftest.$ac_ext <<_ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23265 $ac_includes_default
23268 rm -f conftest.$ac_objext
23269 if { (ac_try="$ac_compile"
23270 case "(($ac_try" in
23271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272 *) ac_try_echo=$ac_try;;
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_compile") 2>conftest.er1
23277 grep -v '^ *+' conftest.er1 >conftest.err
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } &&
23282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23283 { (case "(($ac_try" in
23284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285 *) ac_try_echo=$ac_try;;
23287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23288 (eval "$ac_try") 2>&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); }; } &&
23292 { ac_try='test -s conftest.$ac_objext'
23293 { (case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298 (eval "$ac_try") 2>&5
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_header_compiler=yes
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 ac_header_compiler=no
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23312 echo "${ECHO_T}$ac_header_compiler" >&6; }
23314 # Is the header present?
23315 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23316 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23325 if { (ac_try="$ac_cpp conftest.$ac_ext"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } >/dev/null; then
23338 if test -s conftest.err; then
23339 ac_cpp_err=$ac_c_preproc_warn_flag
23340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23347 if test -z "$ac_cpp_err"; then
23348 ac_header_preproc=yes
23350 echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23353 ac_header_preproc=no
23356 rm -f conftest.err conftest.$ac_ext
23357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23358 echo "${ECHO_T}$ac_header_preproc" >&6; }
23360 # So? What about this header?
23361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23363 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23364 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23365 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23366 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23367 ac_header_preproc=yes
23370 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23371 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23372 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
23373 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
23374 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23375 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23376 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
23377 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
23378 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23379 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23380 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23381 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23385 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23386 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23387 if test "${ac_cv_header_pcap_h+set}" = set; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23390 ac_cv_header_pcap_h=$ac_header_preproc
23392 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23393 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23396 if test $ac_cv_header_pcap_h = yes; then
23398 cat >>confdefs.h <<\_ACEOF
23399 #define HAVE_PCAP_H 1
23404 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23405 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23414 { echo "$as_me:$LINENO: checking for off_t" >&5
23415 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23416 if test "${ac_cv_type_off_t+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 cat >conftest.$ac_ext <<_ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23425 $ac_includes_default
23426 typedef off_t ac__type_new_;
23430 if ((ac__type_new_ *) 0)
23432 if (sizeof (ac__type_new_))
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445 (eval "$ac_compile") 2>conftest.er1
23447 grep -v '^ *+' conftest.er1 >conftest.err
23449 cat conftest.err >&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } &&
23452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23453 { (case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_try") 2>&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; } &&
23462 { ac_try='test -s conftest.$ac_objext'
23463 { (case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_try") 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; }; then
23472 ac_cv_type_off_t=yes
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 ac_cv_type_off_t=no
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23482 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23483 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23484 if test $ac_cv_type_off_t = yes; then
23488 cat >>confdefs.h <<_ACEOF
23489 #define off_t long int
23494 { echo "$as_me:$LINENO: checking for pid_t" >&5
23495 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23496 if test "${ac_cv_type_pid_t+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 $ac_includes_default
23506 typedef pid_t ac__type_new_;
23510 if ((ac__type_new_ *) 0)
23512 if (sizeof (ac__type_new_))
23518 rm -f conftest.$ac_objext
23519 if { (ac_try="$ac_compile"
23520 case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_compile") 2>conftest.er1
23527 grep -v '^ *+' conftest.er1 >conftest.err
23529 cat conftest.err >&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } &&
23532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23533 { (case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_try") 2>&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; } &&
23542 { ac_try='test -s conftest.$ac_objext'
23543 { (case "(($ac_try" in
23544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545 *) ac_try_echo=$ac_try;;
23547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23548 (eval "$ac_try") 2>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); }; }; then
23552 ac_cv_type_pid_t=yes
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23557 ac_cv_type_pid_t=no
23560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23562 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23563 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23564 if test $ac_cv_type_pid_t = yes; then
23568 cat >>confdefs.h <<_ACEOF
23574 { echo "$as_me:$LINENO: checking for size_t" >&5
23575 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23576 if test "${ac_cv_type_size_t+set}" = set; then
23577 echo $ECHO_N "(cached) $ECHO_C" >&6
23579 cat >conftest.$ac_ext <<_ACEOF
23582 cat confdefs.h >>conftest.$ac_ext
23583 cat >>conftest.$ac_ext <<_ACEOF
23584 /* end confdefs.h. */
23585 $ac_includes_default
23586 typedef size_t ac__type_new_;
23590 if ((ac__type_new_ *) 0)
23592 if (sizeof (ac__type_new_))
23598 rm -f conftest.$ac_objext
23599 if { (ac_try="$ac_compile"
23600 case "(($ac_try" in
23601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23602 *) ac_try_echo=$ac_try;;
23604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23605 (eval "$ac_compile") 2>conftest.er1
23607 grep -v '^ *+' conftest.er1 >conftest.err
23609 cat conftest.err >&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); } &&
23612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23613 { (case "(($ac_try" in
23614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615 *) ac_try_echo=$ac_try;;
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618 (eval "$ac_try") 2>&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; } &&
23622 { ac_try='test -s conftest.$ac_objext'
23623 { (case "(($ac_try" in
23624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628 (eval "$ac_try") 2>&5
23630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); }; }; then
23632 ac_cv_type_size_t=yes
23634 echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 ac_cv_type_size_t=no
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23642 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23643 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23644 if test $ac_cv_type_size_t = yes; then
23648 cat >>confdefs.h <<_ACEOF
23649 #define size_t unsigned int
23654 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23655 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23656 if test "${ac_cv_type_uid_t+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 cat >conftest.$ac_ext <<_ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23665 #include <sys/types.h>
23668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23669 $EGREP "uid_t" >/dev/null 2>&1; then
23670 ac_cv_type_uid_t=yes
23672 ac_cv_type_uid_t=no
23677 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23678 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23679 if test $ac_cv_type_uid_t = no; then
23681 cat >>confdefs.h <<\_ACEOF
23686 cat >>confdefs.h <<\_ACEOF
23694 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23695 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23696 if test "${ac_cv_type_socklen_t+set}" = set; then
23697 echo $ECHO_N "(cached) $ECHO_C" >&6
23699 ac_cv_type_socklen_t=no
23700 cat >conftest.$ac_ext <<_ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h. */
23706 #ifdef HAVE_SYS_TYPES_H
23707 #include <sys/types.h>
23709 #ifdef HAVE_SYS_SOCKET_H
23710 #include <sys/socket.h>
23721 rm -f conftest.$ac_objext
23722 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23730 grep -v '^ *+' conftest.er1 >conftest.err
23732 cat conftest.err >&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } &&
23735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23736 { (case "(($ac_try" in
23737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738 *) ac_try_echo=$ac_try;;
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741 (eval "$ac_try") 2>&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; } &&
23745 { ac_try='test -s conftest.$ac_objext'
23746 { (case "(($ac_try" in
23747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748 *) ac_try_echo=$ac_try;;
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751 (eval "$ac_try") 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 ac_cv_type_socklen_t=yes
23757 echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23768 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23770 if test "$ac_cv_type_socklen_t" != "yes"; then
23772 cat >>confdefs.h <<\_ACEOF
23773 #define socklen_t int
23780 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23781 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23782 if test "${ac_cv_type_uint8_t+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 ac_cv_type_uint8_t=no
23786 cat >conftest.$ac_ext <<_ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h. */
23792 #ifdef HAVE_INTTYPES_H
23793 #include <inttypes.h>
23795 #ifdef HAVE_STDINT_H
23796 #include <stdint.h>
23807 rm -f conftest.$ac_objext
23808 if { (ac_try="$ac_compile"
23809 case "(($ac_try" in
23810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23811 *) ac_try_echo=$ac_try;;
23813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23814 (eval "$ac_compile") 2>conftest.er1
23816 grep -v '^ *+' conftest.er1 >conftest.err
23818 cat conftest.err >&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } &&
23821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23822 { (case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827 (eval "$ac_try") 2>&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; } &&
23831 { ac_try='test -s conftest.$ac_objext'
23832 { (case "(($ac_try" in
23833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834 *) ac_try_echo=$ac_try;;
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837 (eval "$ac_try") 2>&5
23839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840 (exit $ac_status); }; }; then
23841 ac_cv_type_uint8_t=yes
23843 echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23854 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23856 if test "$ac_cv_type_uint8_t" != "yes"; then
23858 cat >>confdefs.h <<\_ACEOF
23859 #define uint8_t unsigned char
23866 { echo "$as_me:$LINENO: checking for uint16_t" >&5
23867 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23868 if test "${ac_cv_type_uint16_t+set}" = set; then
23869 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 ac_cv_type_uint16_t=no
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 #ifdef HAVE_INTTYPES_H
23879 #include <inttypes.h>
23881 #ifdef HAVE_STDINT_H
23882 #include <stdint.h>
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_compile") 2>conftest.er1
23902 grep -v '^ *+' conftest.er1 >conftest.err
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } &&
23907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23908 { (case "(($ac_try" in
23909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910 *) ac_try_echo=$ac_try;;
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913 (eval "$ac_try") 2>&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); }; } &&
23917 { ac_try='test -s conftest.$ac_objext'
23918 { (case "(($ac_try" in
23919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920 *) ac_try_echo=$ac_try;;
23922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23923 (eval "$ac_try") 2>&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; }; then
23927 ac_cv_type_uint16_t=yes
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23940 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23942 if test "$ac_cv_type_uint16_t" != "yes"; then
23944 cat >>confdefs.h <<\_ACEOF
23945 #define uint16_t unsigned short
23952 { echo "$as_me:$LINENO: checking for uint32_t" >&5
23953 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23954 if test "${ac_cv_type_uint32_t+set}" = set; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23957 ac_cv_type_uint32_t=no
23958 cat >conftest.$ac_ext <<_ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23964 #ifdef HAVE_INTTYPES_H
23965 #include <inttypes.h>
23967 #ifdef HAVE_STDINT_H
23968 #include <stdint.h>
23979 rm -f conftest.$ac_objext
23980 if { (ac_try="$ac_compile"
23981 case "(($ac_try" in
23982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23983 *) ac_try_echo=$ac_try;;
23985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23986 (eval "$ac_compile") 2>conftest.er1
23988 grep -v '^ *+' conftest.er1 >conftest.err
23990 cat conftest.err >&5
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } &&
23993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23994 { (case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_try") 2>&5
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); }; } &&
24003 { ac_try='test -s conftest.$ac_objext'
24004 { (case "(($ac_try" in
24005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006 *) ac_try_echo=$ac_try;;
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_try") 2>&5
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; }; then
24013 ac_cv_type_uint32_t=yes
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24026 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24028 if test "$ac_cv_type_uint32_t" != "yes"; then
24030 cat >>confdefs.h <<\_ACEOF
24031 #define uint32_t unsigned int
24037 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24038 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24039 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24040 echo $ECHO_N "(cached) $ECHO_C" >&6
24042 cat >conftest.$ac_ext <<_ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h. */
24049 #ifdef HAVE_NETINET_IN_H
24050 #include <netinet/in.h>
24054 typedef struct in6_addr ac__type_new_;
24058 if ((ac__type_new_ *) 0)
24060 if (sizeof (ac__type_new_))
24066 rm -f conftest.$ac_objext
24067 if { (ac_try="$ac_compile"
24068 case "(($ac_try" in
24069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070 *) ac_try_echo=$ac_try;;
24072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24073 (eval "$ac_compile") 2>conftest.er1
24075 grep -v '^ *+' conftest.er1 >conftest.err
24077 cat conftest.err >&5
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); } &&
24080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); }; } &&
24090 { ac_try='test -s conftest.$ac_objext'
24091 { (case "(($ac_try" in
24092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093 *) ac_try_echo=$ac_try;;
24095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24096 (eval "$ac_try") 2>&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; }; then
24100 ac_cv_type_struct_in6_addr=yes
24102 echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24105 ac_cv_type_struct_in6_addr=no
24108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24110 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24111 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24112 if test $ac_cv_type_struct_in6_addr = yes; then
24114 cat >>confdefs.h <<\_ACEOF
24115 #define HAVE_STRUCT_IN6_ADDR 1
24121 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24122 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24123 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 cat >conftest.$ac_ext <<_ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h. */
24133 #ifdef HAVE_NETINET_IN_H
24134 #include <netinet/in.h>
24136 #ifdef HAVE_SYS_SOCKET_H
24137 #include <sys/socket.h>
24141 typedef struct sockaddr_storage ac__type_new_;
24145 if ((ac__type_new_ *) 0)
24147 if (sizeof (ac__type_new_))
24153 rm -f conftest.$ac_objext
24154 if { (ac_try="$ac_compile"
24155 case "(($ac_try" in
24156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157 *) ac_try_echo=$ac_try;;
24159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24160 (eval "$ac_compile") 2>conftest.er1
24162 grep -v '^ *+' conftest.er1 >conftest.err
24164 cat conftest.err >&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } &&
24167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; } &&
24177 { ac_try='test -s conftest.$ac_objext'
24178 { (case "(($ac_try" in
24179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180 *) ac_try_echo=$ac_try;;
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183 (eval "$ac_try") 2>&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); }; }; then
24187 ac_cv_type_struct_sockaddr_storage=yes
24189 echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24192 ac_cv_type_struct_sockaddr_storage=no
24195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24197 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24198 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24199 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24201 cat >>confdefs.h <<\_ACEOF
24202 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24208 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24209 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24210 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24213 cat >conftest.$ac_ext <<_ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24220 #ifdef HAVE_NETINET_IN_H
24221 #include <netinet/in.h>
24225 typedef struct sockaddr_in6 ac__type_new_;
24229 if ((ac__type_new_ *) 0)
24231 if (sizeof (ac__type_new_))
24237 rm -f conftest.$ac_objext
24238 if { (ac_try="$ac_compile"
24239 case "(($ac_try" in
24240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24241 *) ac_try_echo=$ac_try;;
24243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24244 (eval "$ac_compile") 2>conftest.er1
24246 grep -v '^ *+' conftest.er1 >conftest.err
24248 cat conftest.err >&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } &&
24251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24252 { (case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_try") 2>&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest.$ac_objext'
24262 { (case "(($ac_try" in
24263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264 *) ac_try_echo=$ac_try;;
24266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24267 (eval "$ac_try") 2>&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); }; }; then
24271 ac_cv_type_struct_sockaddr_in6=yes
24273 echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.$ac_ext >&5
24276 ac_cv_type_struct_sockaddr_in6=no
24279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24281 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24282 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24283 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24285 cat >>confdefs.h <<\_ACEOF
24286 #define HAVE_STRUCT_SOCKADDR_IN6 1
24292 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24293 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24294 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24295 echo $ECHO_N "(cached) $ECHO_C" >&6
24297 cat >conftest.$ac_ext <<_ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24304 #ifdef HAVE_SYS_TYPES_H
24305 #include <sys/types.h>
24307 #ifdef HAVE_SYS_SOCKET_H
24308 #include <sys/socket.h>
24310 #ifdef HAVE_NETDB_H
24315 typedef struct addrinfo ac__type_new_;
24319 if ((ac__type_new_ *) 0)
24321 if (sizeof (ac__type_new_))
24327 rm -f conftest.$ac_objext
24328 if { (ac_try="$ac_compile"
24329 case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_compile") 2>conftest.er1
24336 grep -v '^ *+' conftest.er1 >conftest.err
24338 cat conftest.err >&5
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); } &&
24341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24342 { (case "(($ac_try" in
24343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344 *) ac_try_echo=$ac_try;;
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_try") 2>&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; } &&
24351 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24361 ac_cv_type_struct_addrinfo=yes
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_cv_type_struct_addrinfo=no
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24372 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24373 if test $ac_cv_type_struct_addrinfo = yes; then
24375 cat >>confdefs.h <<\_ACEOF
24376 #define HAVE_STRUCT_ADDRINFO 1
24441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24445 echo $ECHO_N "(cached) $ECHO_C" >&6
24447 cat >conftest.$ac_ext <<_ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24455 #define $ac_func innocuous_$ac_func
24457 /* System header to define __stub macros and hopefully few prototypes,
24458 which can conflict with char $ac_func (); below.
24459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24460 <limits.h> exists even on freestanding compilers. */
24463 # include <limits.h>
24465 # include <assert.h>
24470 /* Override any GCC internal prototype to avoid an error.
24471 Use char because int might match the return type of a GCC
24472 builtin and then its argument prototype would still apply. */
24477 /* The GNU C library defines this for functions which it implements
24478 to always fail with ENOSYS. Some functions are actually named
24479 something starting with __ and the normal name is an alias. */
24480 #if defined __stub_$ac_func || defined __stub___$ac_func
24487 return $ac_func ();
24492 rm -f conftest.$ac_objext conftest$ac_exeext
24493 if { (ac_try="$ac_link"
24494 case "(($ac_try" in
24495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_link") 2>conftest.er1
24501 grep -v '^ *+' conftest.er1 >conftest.err
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } &&
24506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24507 { (case "(($ac_try" in
24508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509 *) ac_try_echo=$ac_try;;
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512 (eval "$ac_try") 2>&5
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); }; } &&
24516 { ac_try='test -s conftest$ac_exeext'
24517 { (case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_try") 2>&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; }; then
24526 eval "$as_ac_var=yes"
24528 echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24531 eval "$as_ac_var=no"
24534 rm -f core conftest.err conftest.$ac_objext \
24535 conftest$ac_exeext conftest.$ac_ext
24537 ac_res=`eval echo '${'$as_ac_var'}'`
24538 { echo "$as_me:$LINENO: result: $ac_res" >&5
24539 echo "${ECHO_T}$ac_res" >&6; }
24540 if test `eval echo '${'$as_ac_var'}'` = yes; then
24541 cat >>confdefs.h <<_ACEOF
24542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24558 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24559 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24560 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24561 echo $ECHO_N "(cached) $ECHO_C" >&6
24563 cat >conftest.$ac_ext <<_ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h. */
24571 #include <string.h>
24572 #ifdef HAVE_UNISTD_H
24573 #include <unistd.h>
24575 #ifdef HAVE_CRYPT_H
24578 #ifdef HAVE_ERRNO_H
24581 #ifdef HAVE_RESOURCE_H
24582 #include <resource.h>
24584 #ifdef HAVE_GETOPT_H
24585 #include <getopt.h>
24587 #ifdef HAVE_MALLOC_H
24588 #include <malloc.h>
24593 #ifdef HAVE_UTMPX_H
24596 #ifdef HAVE_SYS_SELECT_H
24597 #include <sys/select.h>
24599 #ifdef HAVE_DLFCN_H
24602 #ifdef HAVE_REGEX_H
24605 #ifdef HAVE_SYSLOG_H
24606 #include <syslog.h>
24608 #ifdef HAVE_INTTYPES_H
24609 #include <inttypes.h>
24611 #ifdef HAVE_STDINT_H
24612 #include <stdint.h>
24614 #ifdef HAVE_ARPA_INET_H
24615 #include <arpa/inet.h>
24621 char *(*pfn) = (char *(*)) $ac_func
24626 rm -f conftest.$ac_objext
24627 if { (ac_try="$ac_compile"
24628 case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633 (eval "$ac_compile") 2>conftest.er1
24635 grep -v '^ *+' conftest.er1 >conftest.err
24637 cat conftest.err >&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } &&
24640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24641 { (case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646 (eval "$ac_try") 2>&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); }; } &&
24650 { ac_try='test -s conftest.$ac_objext'
24651 { (case "(($ac_try" in
24652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653 *) ac_try_echo=$ac_try;;
24655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24656 (eval "$ac_try") 2>&5
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); }; }; then
24660 eval "radius_cv_decl_needed_$ac_func=no"
24662 echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24665 eval "radius_cv_decl_needed_$ac_func=yes"
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24672 { echo "$as_me:$LINENO: result: yes" >&5
24673 echo "${ECHO_T}yes" >&6; }
24674 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24675 cat >>confdefs.h <<_ACEOF
24676 #define $radius_tr_decl 1
24680 { echo "$as_me:$LINENO: result: no" >&5
24681 echo "${ECHO_T}no" >&6; }
24687 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24688 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24689 if test "${ac_cv_type_signal+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 cat >conftest.$ac_ext <<_ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h. */
24698 #include <sys/types.h>
24699 #include <signal.h>
24704 return *(signal (0, 0)) (0) == 1;
24709 rm -f conftest.$ac_objext
24710 if { (ac_try="$ac_compile"
24711 case "(($ac_try" in
24712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713 *) ac_try_echo=$ac_try;;
24715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24716 (eval "$ac_compile") 2>conftest.er1
24718 grep -v '^ *+' conftest.er1 >conftest.err
24720 cat conftest.err >&5
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); } &&
24723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24724 { (case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729 (eval "$ac_try") 2>&5
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); }; } &&
24733 { ac_try='test -s conftest.$ac_objext'
24734 { (case "(($ac_try" in
24735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736 *) ac_try_echo=$ac_try;;
24738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24739 (eval "$ac_try") 2>&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 ac_cv_type_signal=int
24745 echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24748 ac_cv_type_signal=void
24751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24753 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24754 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24756 cat >>confdefs.h <<_ACEOF
24757 #define RETSIGTYPE $ac_cv_type_signal
24762 if test "x$ac_cv_header_utmpx_h" = "xyes"
24765 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24766 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24769 cat >conftest.$ac_ext <<_ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h. */
24778 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24784 int foo = offsetof(struct utmpx, ut_xtime)
24789 rm -f conftest.$ac_objext
24790 if { (ac_try="$ac_compile"
24791 case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796 (eval "$ac_compile") 2>conftest.er1
24798 grep -v '^ *+' conftest.er1 >conftest.err
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } &&
24803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24804 { (case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_try") 2>&5
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; } &&
24813 { ac_try='test -s conftest.$ac_objext'
24814 { (case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819 (eval "$ac_try") 2>&5
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; }; then
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24833 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24834 if test "x$has_element" != "x"; then
24835 { echo "$as_me:$LINENO: result: yes" >&5
24836 echo "${ECHO_T}yes" >&6; }
24837 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24839 { echo "$as_me:$LINENO: result: no" >&5
24840 echo "${ECHO_T}no" >&6; }
24841 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24844 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24847 cat >>confdefs.h <<\_ACEOF
24848 #define ut_xtime ut_tv.tv_sec
24855 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24856 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24859 cat >conftest.$ac_ext <<_ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h. */
24866 #include <netinet/in.h>
24868 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24874 int foo = offsetof(struct in_pktinfo, ipi_addr)
24879 rm -f conftest.$ac_objext
24880 if { (ac_try="$ac_compile"
24881 case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886 (eval "$ac_compile") 2>conftest.er1
24888 grep -v '^ *+' conftest.er1 >conftest.err
24890 cat conftest.err >&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } &&
24893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24894 { (case "(($ac_try" in
24895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896 *) ac_try_echo=$ac_try;;
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899 (eval "$ac_try") 2>&5
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); }; } &&
24903 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24915 echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24923 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24924 if test "x$has_element" != "x"; then
24925 { echo "$as_me:$LINENO: result: yes" >&5
24926 echo "${ECHO_T}yes" >&6; }
24927 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24929 { echo "$as_me:$LINENO: result: no" >&5
24930 echo "${ECHO_T}no" >&6; }
24931 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24934 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24937 cat >>confdefs.h <<\_ACEOF
24938 #define HAVE_IP_PKTINFO
24944 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24945 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24948 cat >conftest.$ac_ext <<_ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24955 #include <netinet/in.h>
24957 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24963 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975 (eval "$ac_compile") 2>conftest.er1
24977 grep -v '^ *+' conftest.er1 >conftest.err
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
24982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24983 { (case "(($ac_try" in
24984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985 *) ac_try_echo=$ac_try;;
24987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988 (eval "$ac_try") 2>&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); }; } &&
24992 { ac_try='test -s conftest.$ac_objext'
24993 { (case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24998 (eval "$ac_try") 2>&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; }; then
25004 echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
25013 if test "x$has_element" != "x"; then
25014 { echo "$as_me:$LINENO: result: yes" >&5
25015 echo "${ECHO_T}yes" >&6; }
25016 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
25018 { echo "$as_me:$LINENO: result: no" >&5
25019 echo "${ECHO_T}no" >&6; }
25020 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
25023 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
25026 cat >>confdefs.h <<\_ACEOF
25027 #define HAVE_IN6_PKTINFO
25033 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25034 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25035 if test "${ac_cv_c_const+set}" = set; then
25036 echo $ECHO_N "(cached) $ECHO_C" >&6
25038 cat >conftest.$ac_ext <<_ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25048 /* FIXME: Include the comments suggested by Paul. */
25049 #ifndef __cplusplus
25050 /* Ultrix mips cc rejects this. */
25051 typedef int charset[2];
25053 /* SunOS 4.1.1 cc rejects this. */
25054 char const *const *ccp;
25056 /* NEC SVR4.0.2 mips cc rejects this. */
25057 struct point {int x, y;};
25058 static struct point const zero = {0,0};
25059 /* AIX XL C 1.02.0.0 rejects this.
25060 It does not let you subtract one const X* pointer from another in
25061 an arm of an if-expression whose if-part is not a constant
25063 const char *g = "string";
25064 ccp = &g + (g ? g-g : 0);
25065 /* HPUX 7.0 cc rejects these. */
25068 ccp = (char const *const *) p;
25069 { /* SCO 3.2v4 cc rejects this. */
25071 char const *s = 0 ? (char *) 0 : (char const *) 0;
25076 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25077 int x[] = {25, 17};
25078 const int *foo = &x[0];
25081 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25082 typedef const int *iptr;
25086 { /* AIX XL C 1.02.0.0 rejects this saying
25087 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25088 struct s { int j; const int *ap[3]; };
25089 struct s *b; b->j = 5;
25091 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25092 const int foo = 10;
25093 if (!foo) return 0;
25095 return !x[0] && !zero.x;
25102 rm -f conftest.$ac_objext
25103 if { (ac_try="$ac_compile"
25104 case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109 (eval "$ac_compile") 2>conftest.er1
25111 grep -v '^ *+' conftest.er1 >conftest.err
25113 cat conftest.err >&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } &&
25116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25117 { (case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_try") 2>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; } &&
25126 { ac_try='test -s conftest.$ac_objext'
25127 { (case "(($ac_try" in
25128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25129 *) ac_try_echo=$ac_try;;
25131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25132 (eval "$ac_try") 2>&5
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); }; }; then
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25147 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25148 if test $ac_cv_c_const = no; then
25150 cat >>confdefs.h <<\_ACEOF
25157 { echo "$as_me:$LINENO: checking type of OS" >&5
25158 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25160 { echo "$as_me:$LINENO: result: $OS" >&5
25161 echo "${ECHO_T}$OS" >&6; }
25162 if test "$OS" = "OS/2"; then
25169 if test "x$GCC" = "xyes"; then
25170 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
25173 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25174 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25175 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25176 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25177 CFLAGS="$CFLAGS $devflags"
25179 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
25180 echo "${ECHO_T}yes. Using $devflags" >&6; }
25183 CFLAGS="$CFLAGS -DNDEBUG"
25185 { echo "$as_me:$LINENO: result: no." >&5
25186 echo "${ECHO_T}no." >&6; }
25190 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25191 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25192 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25193 echo $ECHO_N "(cached) $ECHO_C" >&6
25195 ac_check_lib_save_LIBS=$LIBS
25196 LIBS="-lcrypt $LIBS"
25197 cat >conftest.$ac_ext <<_ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h. */
25204 /* Override any GCC internal prototype to avoid an error.
25205 Use char because int might match the return type of a GCC
25206 builtin and then its argument prototype would still apply. */
25219 rm -f conftest.$ac_objext conftest$ac_exeext
25220 if { (ac_try="$ac_link"
25221 case "(($ac_try" in
25222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223 *) ac_try_echo=$ac_try;;
25225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25226 (eval "$ac_link") 2>conftest.er1
25228 grep -v '^ *+' conftest.er1 >conftest.err
25230 cat conftest.err >&5
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); } &&
25233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25234 { (case "(($ac_try" in
25235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236 *) ac_try_echo=$ac_try;;
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239 (eval "$ac_try") 2>&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; } &&
25243 { ac_try='test -s conftest$ac_exeext'
25244 { (case "(($ac_try" in
25245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246 *) ac_try_echo=$ac_try;;
25248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249 (eval "$ac_try") 2>&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; }; then
25253 ac_cv_lib_crypt_crypt=yes
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25258 ac_cv_lib_crypt_crypt=no
25261 rm -f core conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
25263 LIBS=$ac_check_lib_save_LIBS
25265 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25266 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25267 if test $ac_cv_lib_crypt_crypt = yes; then
25272 if test "$CRYPTLIB" != ""; then
25274 cat >>confdefs.h <<\_ACEOF
25279 { echo "$as_me:$LINENO: checking for crypt" >&5
25280 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25281 if test "${ac_cv_func_crypt+set}" = set; then
25282 echo $ECHO_N "(cached) $ECHO_C" >&6
25284 cat >conftest.$ac_ext <<_ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25292 #define crypt innocuous_crypt
25294 /* System header to define __stub macros and hopefully few prototypes,
25295 which can conflict with char crypt (); below.
25296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25297 <limits.h> exists even on freestanding compilers. */
25300 # include <limits.h>
25302 # include <assert.h>
25307 /* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25314 /* The GNU C library defines this for functions which it implements
25315 to always fail with ENOSYS. Some functions are actually named
25316 something starting with __ and the normal name is an alias. */
25317 #if defined __stub_crypt || defined __stub___crypt
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336 (eval "$ac_link") 2>conftest.er1
25338 grep -v '^ *+' conftest.er1 >conftest.err
25340 cat conftest.err >&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } &&
25343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
25353 { ac_try='test -s conftest$ac_exeext'
25354 { (case "(($ac_try" in
25355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356 *) ac_try_echo=$ac_try;;
25358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359 (eval "$ac_try") 2>&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 ac_cv_func_crypt=yes
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25368 ac_cv_func_crypt=no
25371 rm -f core conftest.err conftest.$ac_objext \
25372 conftest$ac_exeext conftest.$ac_ext
25374 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25375 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25376 if test $ac_cv_func_crypt = yes; then
25378 cat >>confdefs.h <<\_ACEOF
25386 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25387 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25388 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25389 echo $ECHO_N "(cached) $ECHO_C" >&6
25391 ac_check_lib_save_LIBS=$LIBS
25392 LIBS="-lcipher $LIBS"
25393 cat >conftest.$ac_ext <<_ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h. */
25400 /* Override any GCC internal prototype to avoid an error.
25401 Use char because int might match the return type of a GCC
25402 builtin and then its argument prototype would still apply. */
25415 rm -f conftest.$ac_objext conftest$ac_exeext
25416 if { (ac_try="$ac_link"
25417 case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422 (eval "$ac_link") 2>conftest.er1
25424 grep -v '^ *+' conftest.er1 >conftest.err
25426 cat conftest.err >&5
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } &&
25429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25430 { (case "(($ac_try" in
25431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432 *) ac_try_echo=$ac_try;;
25434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25435 (eval "$ac_try") 2>&5
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); }; } &&
25439 { ac_try='test -s conftest$ac_exeext'
25440 { (case "(($ac_try" in
25441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25442 *) ac_try_echo=$ac_try;;
25444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25445 (eval "$ac_try") 2>&5
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); }; }; then
25449 ac_cv_lib_cipher_setkey=yes
25451 echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25454 ac_cv_lib_cipher_setkey=no
25457 rm -f core conftest.err conftest.$ac_objext \
25458 conftest$ac_exeext conftest.$ac_ext
25459 LIBS=$ac_check_lib_save_LIBS
25461 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25462 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25463 if test $ac_cv_lib_cipher_setkey = yes; then
25464 CRYPTLIB="${CRYPTLIB} -lcipher"
25470 if test "x$WITH_SNMP" = "xyes"; then
25475 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
25476 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
25478 cat >conftest.$ac_ext <<_ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25485 #ifdef HAVE_SYS_TYPES_H
25486 #include <sys/types.h>
25488 #ifdef HAVE_STDINT_H
25489 #include <stdint.h>
25491 #ifdef HAVE_STDIO_H
25494 #ifdef HAVE_NETDB_H
25497 #ifdef HAVE_UNISTD_H
25498 #include <unistd.h>
25500 #include <ucd-snmp/ucd-snmp-config.h>
25501 #include <ucd-snmp/asn1.h>
25502 #include <ucd-snmp/snmp.h>
25503 #include <ucd-snmp/snmp_impl.h>
25512 rm -f conftest.$ac_objext
25513 if { (ac_try="$ac_compile"
25514 case "(($ac_try" in
25515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516 *) ac_try_echo=$ac_try;;
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519 (eval "$ac_compile") 2>conftest.er1
25521 grep -v '^ *+' conftest.er1 >conftest.err
25523 cat conftest.err >&5
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); } &&
25526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25527 { (case "(($ac_try" in
25528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25529 *) ac_try_echo=$ac_try;;
25531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25532 (eval "$ac_try") 2>&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; } &&
25536 { ac_try='test -s conftest.$ac_objext'
25537 { (case "(($ac_try" in
25538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539 *) ac_try_echo=$ac_try;;
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542 (eval "$ac_try") 2>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; }; then
25546 SNMP_INCLUDE="";ucdsnmp=yes
25548 echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25556 if test "x$ucdsnmp" = "x"; then
25557 old_CFLAGS="$CFLAGS"
25558 for try in /usr/include /usr/local/include $snmp_include_dir; do
25559 CFLAGS="$old_CFLAGS -I$try"
25560 cat >conftest.$ac_ext <<_ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h. */
25567 #ifdef HAVE_SYS_TYPES_H
25568 #include <sys/types.h>
25570 #ifdef HAVE_STDINT_H
25571 #include <stdint.h>
25573 #ifdef HAVE_STDIO_H
25576 #ifdef HAVE_NETDB_H
25579 #ifdef HAVE_UNISTD_H
25580 #include <unistd.h>
25582 #include <ucd-snmp/ucd-snmp-config.h>
25583 #include <ucd-snmp/asn1.h>
25584 #include <ucd-snmp/snmp.h>
25585 #include <ucd-snmp/snmp_impl.h>
25594 rm -f conftest.$ac_objext
25595 if { (ac_try="$ac_compile"
25596 case "(($ac_try" in
25597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25598 *) ac_try_echo=$ac_try;;
25600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25601 (eval "$ac_compile") 2>conftest.er1
25603 grep -v '^ *+' conftest.er1 >conftest.err
25605 cat conftest.err >&5
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } &&
25608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25609 { (case "(($ac_try" in
25610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25611 *) ac_try_echo=$ac_try;;
25613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25614 (eval "$ac_try") 2>&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; } &&
25618 { ac_try='test -s conftest.$ac_objext'
25619 { (case "(($ac_try" in
25620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621 *) ac_try_echo=$ac_try;;
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624 (eval "$ac_try") 2>&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; }; then
25628 SNMP_INCLUDE="-I$try";ucdsnmp=yes
25630 echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.$ac_ext >&5
25636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25637 if test "x$ucdsnmp" != "x"; then
25641 CFLAGS="$old_CFLAGS"
25644 if test "x$ucdsnmp" = "x"; then
25645 old_CFLAGS="$CFLAGS"
25646 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25647 CFLAGS="$old_CFLAGS -I$try"
25648 cat >conftest.$ac_ext <<_ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25655 #ifdef HAVE_SYS_TYPES_H
25656 #include <sys/types.h>
25658 #ifdef HAVE_STDINT_H
25659 #include <stdint.h>
25661 #ifdef HAVE_STDIO_H
25664 #ifdef HAVE_NETDB_H
25667 #ifdef HAVE_UNISTD_H
25668 #include <unistd.h>
25672 #include <snmp_impl.h>
25681 rm -f conftest.$ac_objext
25682 if { (ac_try="$ac_compile"
25683 case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688 (eval "$ac_compile") 2>conftest.er1
25690 grep -v '^ *+' conftest.er1 >conftest.err
25692 cat conftest.err >&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
25695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }; } &&
25705 { ac_try='test -s conftest.$ac_objext'
25706 { (case "(($ac_try" in
25707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708 *) ac_try_echo=$ac_try;;
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711 (eval "$ac_try") 2>&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); }; }; then
25715 SNMP_INCLUDE="";ucdsnmp=no
25717 echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724 if test "x$ucdsnmp" != "x"; then
25728 CFLAGS="$old_CFLAGS"
25731 if test "x$ucdsnmp" = "x"; then
25732 old_CFLAGS="$CFLAGS"
25733 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25734 CFLAGS="$old_CFLAGS -I$try"
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25742 #ifdef HAVE_SYS_TYPES_H
25743 #include <sys/types.h>
25745 #ifdef HAVE_STDINT_H
25746 #include <stdint.h>
25748 #ifdef HAVE_STDIO_H
25751 #ifdef HAVE_NETDB_H
25754 #ifdef HAVE_UNISTD_H
25755 #include <unistd.h>
25759 #include <snmp_impl.h>
25768 rm -f conftest.$ac_objext
25769 if { (ac_try="$ac_compile"
25770 case "(($ac_try" in
25771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772 *) ac_try_echo=$ac_try;;
25774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25775 (eval "$ac_compile") 2>conftest.er1
25777 grep -v '^ *+' conftest.er1 >conftest.err
25779 cat conftest.err >&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } &&
25782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; } &&
25792 { ac_try='test -s conftest.$ac_objext'
25793 { (case "(($ac_try" in
25794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25795 *) ac_try_echo=$ac_try;;
25797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25798 (eval "$ac_try") 2>&5
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; }; then
25802 SNMP_INCLUDE="-I$try";ucdsnmp=no
25804 echo "$as_me: failed program was:" >&5
25805 sed 's/^/| /' conftest.$ac_ext >&5
25810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25811 if test "x$ucdsnmp" != "x"; then
25815 CFLAGS="$old_CFLAGS"
25818 if test "x$ucdsnmp" = "x"; then
25819 { echo "$as_me:$LINENO: result: no" >&5
25820 echo "${ECHO_T}no" >&6; }
25822 if test "x$ucdsnmp" = "xyes"; then
25823 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
25824 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
25826 cat >>confdefs.h <<\_ACEOF
25827 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
25831 { echo "$as_me:$LINENO: result: yes" >&5
25832 echo "${ECHO_T}yes" >&6; }
25834 cat >>confdefs.h <<\_ACEOF
25835 #define HAVE_ASN1_SNMP_SNMPIMPL_H
25839 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
25840 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
25843 LIBS="$old_LIBS -lsnmp"
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25850 extern char snmp_build_var_op();
25854 snmp_build_var_op()
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (ac_try="$ac_link"
25861 case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866 (eval "$ac_link") 2>conftest.er1
25868 grep -v '^ *+' conftest.er1 >conftest.err
25870 cat conftest.err >&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } &&
25873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25874 { (case "(($ac_try" in
25875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25876 *) ac_try_echo=$ac_try;;
25878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25879 (eval "$ac_try") 2>&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); }; } &&
25883 { ac_try='test -s conftest$ac_exeext'
25884 { (case "(($ac_try" in
25885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25886 *) ac_try_echo=$ac_try;;
25888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25889 (eval "$ac_try") 2>&5
25891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 (exit $ac_status); }; }; then
25895 echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25901 rm -f core conftest.err conftest.$ac_objext \
25902 conftest$ac_exeext conftest.$ac_ext
25904 if test "x$SNMP_LIBS" = "x"; then
25905 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
25906 LIBS="$old_LIBS -L$try -lsnmp"
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913 extern char snmp_build_var_op();
25917 snmp_build_var_op()
25922 rm -f conftest.$ac_objext conftest$ac_exeext
25923 if { (ac_try="$ac_link"
25924 case "(($ac_try" in
25925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25926 *) ac_try_echo=$ac_try;;
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929 (eval "$ac_link") 2>conftest.er1
25931 grep -v '^ *+' conftest.er1 >conftest.err
25933 cat conftest.err >&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } &&
25936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25937 { (case "(($ac_try" in
25938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25939 *) ac_try_echo=$ac_try;;
25941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942 (eval "$ac_try") 2>&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; } &&
25946 { ac_try='test -s conftest$ac_exeext'
25947 { (case "(($ac_try" in
25948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949 *) ac_try_echo=$ac_try;;
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952 (eval "$ac_try") 2>&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 SNMP_LIBS="-L$try -lsnmp"
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25964 rm -f core conftest.err conftest.$ac_objext \
25965 conftest$ac_exeext conftest.$ac_ext
25966 if test "x$SNMP_LIBS" != "x"; then
25969 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
25970 cat >conftest.$ac_ext <<_ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 extern char snmp_build_var_op();
25980 snmp_build_var_op()
25985 rm -f conftest.$ac_objext conftest$ac_exeext
25986 if { (ac_try="$ac_link"
25987 case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992 (eval "$ac_link") 2>conftest.er1
25994 grep -v '^ *+' conftest.er1 >conftest.err
25996 cat conftest.err >&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); } &&
25999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26000 { (case "(($ac_try" in
26001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002 *) ac_try_echo=$ac_try;;
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005 (eval "$ac_try") 2>&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); }; } &&
26009 { ac_try='test -s conftest$ac_exeext'
26010 { (case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015 (eval "$ac_try") 2>&5
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; }; then
26019 SNMP_LIBS="-L$try -lsnmp -lcrypto"
26021 echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26027 rm -f core conftest.err conftest.$ac_objext \
26028 conftest$ac_exeext conftest.$ac_ext
26029 if test "x$SNMP_LIBS" != "x"; then
26032 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 extern char snmp_build_var_op();
26043 snmp_build_var_op()
26048 rm -f conftest.$ac_objext conftest$ac_exeext
26049 if { (ac_try="$ac_link"
26050 case "(($ac_try" in
26051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26052 *) ac_try_echo=$ac_try;;
26054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26055 (eval "$ac_link") 2>conftest.er1
26057 grep -v '^ *+' conftest.er1 >conftest.err
26059 cat conftest.err >&5
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); } &&
26062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26063 { (case "(($ac_try" in
26064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065 *) ac_try_echo=$ac_try;;
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068 (eval "$ac_try") 2>&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); }; } &&
26072 { ac_try='test -s conftest$ac_exeext'
26073 { (case "(($ac_try" in
26074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075 *) ac_try_echo=$ac_try;;
26077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26078 (eval "$ac_try") 2>&5
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; }; then
26082 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
26084 echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26090 rm -f core conftest.err conftest.$ac_objext \
26091 conftest$ac_exeext conftest.$ac_ext
26092 if test "x$SNMP_LIBS" != "x"; then
26099 CFLAGS="$old_CFLAGS"
26100 if test "x$SNMP_LIBS" = "x"; then
26101 { echo "$as_me:$LINENO: result: no" >&5
26102 echo "${ECHO_T}no" >&6; }
26105 { echo "$as_me:$LINENO: result: yes" >&5
26106 echo "${ECHO_T}yes" >&6; }
26108 cat >>confdefs.h <<\_ACEOF
26113 cat >>confdefs.h <<\_ACEOF
26114 #define HAVE_LIBSNMP
26123 cat >>confdefs.h <<\_ACEOF
26128 cat >>confdefs.h <<\_ACEOF
26129 #define SYSVSTYLE 2
26133 cat >>confdefs.h <<\_ACEOF
26137 gethostbyaddrrstyle=""
26138 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
26139 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
26143 cat >>confdefs.h <<\_ACEOF
26144 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26147 gethostbyaddrrstyle=BSD
26148 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
26149 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
26152 if test "x$gethostbyaddrrstyle" = "x"; then
26153 cat >conftest.$ac_ext <<_ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h. */
26166 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
26171 rm -f conftest.$ac_objext conftest$ac_exeext
26172 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26180 grep -v '^ *+' conftest.er1 >conftest.err
26182 cat conftest.err >&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); } &&
26185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26186 { (case "(($ac_try" in
26187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188 *) ac_try_echo=$ac_try;;
26190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26191 (eval "$ac_try") 2>&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); }; } &&
26195 { ac_try='test -s conftest$ac_exeext'
26196 { (case "(($ac_try" in
26197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26198 *) ac_try_echo=$ac_try;;
26200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26201 (eval "$ac_try") 2>&5
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); }; }; then
26207 cat >>confdefs.h <<\_ACEOF
26208 #define GETHOSTBYADDRRSTYLE GNUSTYLE
26211 gethostbyaddrrstyle=GNU
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26220 rm -f core conftest.err conftest.$ac_objext \
26221 conftest$ac_exeext conftest.$ac_ext
26223 if test "x$gethostbyaddrrstyle" = "x"; then
26224 cat >conftest.$ac_ext <<_ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h. */
26237 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
26242 rm -f conftest.$ac_objext conftest$ac_exeext
26243 if { (ac_try="$ac_link"
26244 case "(($ac_try" in
26245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26246 *) ac_try_echo=$ac_try;;
26248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26249 (eval "$ac_link") 2>conftest.er1
26251 grep -v '^ *+' conftest.er1 >conftest.err
26253 cat conftest.err >&5
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); } &&
26256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26257 { (case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262 (eval "$ac_try") 2>&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; } &&
26266 { ac_try='test -s conftest$ac_exeext'
26267 { (case "(($ac_try" in
26268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26269 *) ac_try_echo=$ac_try;;
26271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26272 (eval "$ac_try") 2>&5
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; }; then
26278 cat >>confdefs.h <<\_ACEOF
26279 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
26282 gethostbyaddrrstyle=SYSV
26285 echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26291 rm -f core conftest.err conftest.$ac_objext \
26292 conftest$ac_exeext conftest.$ac_ext
26294 if test "x$gethostbyaddrrstyle" = "x"; then
26295 cat >conftest.$ac_ext <<_ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h. */
26308 gethostbyaddr(NULL, 0, 0)
26313 rm -f conftest.$ac_objext conftest$ac_exeext
26314 if { (ac_try="$ac_link"
26315 case "(($ac_try" in
26316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317 *) ac_try_echo=$ac_try;;
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320 (eval "$ac_link") 2>conftest.er1
26322 grep -v '^ *+' conftest.er1 >conftest.err
26324 cat conftest.err >&5
26325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } &&
26327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26328 { (case "(($ac_try" in
26329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330 *) ac_try_echo=$ac_try;;
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333 (eval "$ac_try") 2>&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; } &&
26337 { ac_try='test -s conftest$ac_exeext'
26338 { (case "(($ac_try" in
26339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340 *) ac_try_echo=$ac_try;;
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343 (eval "$ac_try") 2>&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
26349 cat >>confdefs.h <<\_ACEOF
26350 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26353 gethostbyaddrrstyle=BSD
26356 echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26362 rm -f core conftest.err conftest.$ac_objext \
26363 conftest$ac_exeext conftest.$ac_ext
26366 if test "x$gethostbyaddrrstyle" = "x"; then
26367 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
26368 echo "${ECHO_T}none! It must not exist, here." >&6; }
26370 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
26371 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
26374 if test "x$gethostbyaddrrstyle" = "xBSD"; then
26375 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
26376 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
26379 gethostbynamerstyle=""
26380 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
26381 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
26382 cat >conftest.$ac_ext <<_ACEOF
26385 cat confdefs.h >>conftest.$ac_ext
26386 cat >>conftest.$ac_ext <<_ACEOF
26387 /* end confdefs.h. */
26395 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
26400 rm -f conftest.$ac_objext conftest$ac_exeext
26401 if { (ac_try="$ac_link"
26402 case "(($ac_try" in
26403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26404 *) ac_try_echo=$ac_try;;
26406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26407 (eval "$ac_link") 2>conftest.er1
26409 grep -v '^ *+' conftest.er1 >conftest.err
26411 cat conftest.err >&5
26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413 (exit $ac_status); } &&
26414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26415 { (case "(($ac_try" in
26416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26417 *) ac_try_echo=$ac_try;;
26419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26420 (eval "$ac_try") 2>&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); }; } &&
26424 { ac_try='test -s conftest$ac_exeext'
26425 { (case "(($ac_try" in
26426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427 *) ac_try_echo=$ac_try;;
26429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26430 (eval "$ac_try") 2>&5
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); }; }; then
26436 cat >>confdefs.h <<\_ACEOF
26437 #define GETHOSTBYNAMERSTYLE GNUSTYLE
26440 gethostbynamerstyle=GNU
26443 echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26449 rm -f core conftest.err conftest.$ac_objext \
26450 conftest$ac_exeext conftest.$ac_ext
26451 if test "x$gethostbynamerstyle" = "x"; then
26452 cat >conftest.$ac_ext <<_ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h. */
26465 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (ac_try="$ac_link"
26472 case "(($ac_try" in
26473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474 *) ac_try_echo=$ac_try;;
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477 (eval "$ac_link") 2>conftest.er1
26479 grep -v '^ *+' conftest.er1 >conftest.err
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } &&
26484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26485 { (case "(($ac_try" in
26486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26487 *) ac_try_echo=$ac_try;;
26489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26490 (eval "$ac_try") 2>&5
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; } &&
26494 { ac_try='test -s conftest$ac_exeext'
26495 { (case "(($ac_try" in
26496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497 *) ac_try_echo=$ac_try;;
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_try") 2>&5
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; }; then
26506 cat >>confdefs.h <<\_ACEOF
26507 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
26510 gethostbynamerstyle=SYSV
26513 echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26519 rm -f core conftest.err conftest.$ac_objext \
26520 conftest$ac_exeext conftest.$ac_ext
26522 if test "x$gethostbynamerstyle" = "x"; then
26523 cat >conftest.$ac_ext <<_ACEOF
26526 cat confdefs.h >>conftest.$ac_ext
26527 cat >>conftest.$ac_ext <<_ACEOF
26528 /* end confdefs.h. */
26536 gethostbyname(NULL)
26541 rm -f conftest.$ac_objext conftest$ac_exeext
26542 if { (ac_try="$ac_link"
26543 case "(($ac_try" in
26544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545 *) ac_try_echo=$ac_try;;
26547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548 (eval "$ac_link") 2>conftest.er1
26550 grep -v '^ *+' conftest.er1 >conftest.err
26552 cat conftest.err >&5
26553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); } &&
26555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26556 { (case "(($ac_try" in
26557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26558 *) ac_try_echo=$ac_try;;
26560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26561 (eval "$ac_try") 2>&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); }; } &&
26565 { ac_try='test -s conftest$ac_exeext'
26566 { (case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571 (eval "$ac_try") 2>&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); }; }; then
26577 cat >>confdefs.h <<\_ACEOF
26578 #define GETHOSTBYNAMERSTYLE BSDSTYLE
26581 gethostbynamerstyle=BSD
26584 echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26590 rm -f core conftest.err conftest.$ac_objext \
26591 conftest$ac_exeext conftest.$ac_ext
26594 if test "x$gethostbynamerstyle" = "x"; then
26595 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
26596 echo "${ECHO_T}none! It must not exist, here." >&6; }
26598 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
26599 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
26602 if test "x$gethostbynamerstyle" = "xBSD"; then
26603 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
26604 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
26608 cat >>confdefs.h <<\_ACEOF
26609 #define POSIXSTYLE 1
26613 cat >>confdefs.h <<\_ACEOF
26614 #define SOLARISSTYLE 2
26618 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
26619 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
26620 cat >conftest.$ac_ext <<_ACEOF
26623 cat confdefs.h >>conftest.$ac_ext
26624 cat >>conftest.$ac_ext <<_ACEOF
26625 /* end confdefs.h. */
26632 ctime_r(NULL, NULL, 0)
26637 rm -f conftest.$ac_objext conftest$ac_exeext
26638 if { (ac_try="$ac_link"
26639 case "(($ac_try" in
26640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641 *) ac_try_echo=$ac_try;;
26643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26644 (eval "$ac_link") 2>conftest.er1
26646 grep -v '^ *+' conftest.er1 >conftest.err
26648 cat conftest.err >&5
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } &&
26651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26652 { (case "(($ac_try" in
26653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654 *) ac_try_echo=$ac_try;;
26656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26657 (eval "$ac_try") 2>&5
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); }; } &&
26661 { ac_try='test -s conftest$ac_exeext'
26662 { (case "(($ac_try" in
26663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26664 *) ac_try_echo=$ac_try;;
26666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26667 (eval "$ac_try") 2>&5
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
26673 cat >>confdefs.h <<\_ACEOF
26674 #define CTIMERSTYLE SOLARISSTYLE
26677 ctimerstyle="SOLARIS"
26680 echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26686 rm -f core conftest.err conftest.$ac_objext \
26687 conftest$ac_exeext conftest.$ac_ext
26688 if test "x$ctimerstyle" = "x"; then
26689 cat >conftest.$ac_ext <<_ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h. */
26701 ctime_r(NULL, NULL)
26706 rm -f conftest.$ac_objext conftest$ac_exeext
26707 if { (ac_try="$ac_link"
26708 case "(($ac_try" in
26709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26710 *) ac_try_echo=$ac_try;;
26712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26713 (eval "$ac_link") 2>conftest.er1
26715 grep -v '^ *+' conftest.er1 >conftest.err
26717 cat conftest.err >&5
26718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719 (exit $ac_status); } &&
26720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26721 { (case "(($ac_try" in
26722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723 *) ac_try_echo=$ac_try;;
26725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726 (eval "$ac_try") 2>&5
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); }; } &&
26730 { ac_try='test -s conftest$ac_exeext'
26731 { (case "(($ac_try" in
26732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733 *) ac_try_echo=$ac_try;;
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736 (eval "$ac_try") 2>&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); }; }; then
26742 cat >>confdefs.h <<\_ACEOF
26743 #define CTIMERSTYLE POSIXSTYLE
26746 ctimerstyle="POSIX"
26749 echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.$ac_ext >&5
26755 rm -f core conftest.err conftest.$ac_objext \
26756 conftest$ac_exeext conftest.$ac_ext
26759 if test "x$ctimerstyle" = "x"; then
26760 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
26761 echo "${ECHO_T}none! It must not exist, here." >&6; }
26763 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26764 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26772 export top_builddir
26773 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26774 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26780 mysubdirs="$LIBLTDLPATH"
26781 if test "x$EXPERIMENTAL" = "xyes"; then
26782 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26783 mysubdirs=`echo $mysubdirs $bar`
26785 for bar in `cat "${srcdir}"/src/modules/stable`; do
26786 if test -f "${srcdir}"/src/modules/$bar/configure; then
26787 mysubdirs="$mysubdirs src/modules/$bar"
26792 if test "x$EXPERIMENTAL" = "xyes"; then
26793 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26794 MODULES="$MODULES $foo"
26797 for foo in `cat "${srcdir}"/src/modules/stable`; do
26798 MODULES="$MODULES $foo"
26802 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26807 ac_config_commands="$ac_config_commands stamp-h"
26809 ac_config_commands="$ac_config_commands build-radpaths-h"
26811 ac_config_commands="$ac_config_commands main-chmod"
26813 ac_config_commands="$ac_config_commands scripts-chmod"
26819 USE_SHARED_LIBS=$enable_shared
26821 USE_STATIC_LIBS=$enable_static
26828 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/radrelay.conf"
26830 cat >confcache <<\_ACEOF
26831 # This file is a shell script that caches the results of configure
26832 # tests run on this system so they can be shared between configure
26833 # scripts and configure runs, see configure's option --config-cache.
26834 # It is not useful on other systems. If it contains results you don't
26835 # want to keep, you may remove or edit it.
26837 # config.status only pays attention to the cache file if you give it
26838 # the --recheck option to rerun configure.
26840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26842 # following values.
26846 # The following way of writing the cache mishandles newlines in values,
26847 # but we know of no workaround that is simple, portable, and efficient.
26848 # So, we kill variables containing newlines.
26849 # Ultrix sh set writes to stderr and can't be redirected directly,
26850 # and sets the high bit in the cache file unless we assign to the vars.
26852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26853 eval ac_val=\$$ac_var
26857 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26861 _ | IFS | as_nl) ;; #(
26862 *) $as_unset $ac_var ;;
26868 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26869 *${as_nl}ac_space=\ *)
26870 # `set' does not quote correctly, so add quotes (double-quote
26871 # substitution turns \\\\ into \\, and sed turns \\ into \).
26874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26877 # `set' quotes correctly as required by POSIX, so do not add quotes.
26878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26889 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26892 if test -w "$cache_file"; then
26893 test "x$cache_file" != "x/dev/null" &&
26894 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26895 echo "$as_me: updating cache $cache_file" >&6;}
26896 cat confcache >$cache_file
26898 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26899 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26905 # Let make expand exec_prefix.
26906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26908 DEFS=-DHAVE_CONFIG_H
26912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26913 # 1. Remove the extension, and $U if already installed.
26914 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26915 ac_i=`echo "$ac_i" | sed "$ac_script"`
26916 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26917 # will be set to the directory where LIBOBJS objects are built.
26918 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26919 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26921 LIBOBJS=$ac_libobjs
26923 LTLIBOBJS=$ac_ltlibobjs
26927 : ${CONFIG_STATUS=./config.status}
26928 ac_clean_files_save=$ac_clean_files
26929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26930 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26931 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26932 cat >$CONFIG_STATUS <<_ACEOF
26934 # Generated by $as_me.
26935 # Run this file to recreate the current configuration.
26936 # Compiler output produced by configure, useful for debugging
26937 # configure, is in config.log if it exists.
26940 ac_cs_recheck=false
26942 SHELL=\${CONFIG_SHELL-$SHELL}
26945 cat >>$CONFIG_STATUS <<\_ACEOF
26946 ## --------------------- ##
26947 ## M4sh Initialization. ##
26948 ## --------------------- ##
26950 # Be Bourne compatible
26951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26954 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26955 # is contrary to our usage. Disable this feature.
26956 alias -g '${1+"$@"}'='"$@"'
26957 setopt NO_GLOB_SUBST
26959 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26961 BIN_SH=xpg4; export BIN_SH # for Tru64
26962 DUALCASE=1; export DUALCASE # for MKS sh
26966 # Avoid depending upon Character Ranges.
26967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26970 as_cr_digits='0123456789'
26971 as_cr_alnum=$as_cr_Letters$as_cr_digits
26973 # The user is always right.
26974 if test "${PATH_SEPARATOR+set}" != set; then
26975 echo "#! /bin/sh" >conf$$.sh
26976 echo "exit 0" >>conf$$.sh
26978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26986 # Support unset when possible.
26987 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26995 # We need space, tab and new line, in precisely that order. Quoting is
26996 # there to prevent editors from complaining about space-tab.
26997 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26998 # splitting by setting IFS to empty value.)
27003 # Find who we are. Look in the path if we contain no directory separator.
27005 *[\\/]* ) as_myself=$0 ;;
27006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27007 for as_dir in $PATH
27010 test -z "$as_dir" && as_dir=.
27011 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27017 # We did not find ourselves, most probably we were run as `sh COMMAND'
27018 # in which case we are not to be found in the path.
27019 if test "x$as_myself" = x; then
27022 if test ! -f "$as_myself"; then
27023 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27024 { (exit 1); exit 1; }
27027 # Work around bugs in pre-3.0 UWIN ksh.
27028 for as_var in ENV MAIL MAILPATH
27029 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27037 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27038 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27039 LC_TELEPHONE LC_TIME
27041 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27042 eval $as_var=C; export $as_var
27044 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27048 # Required to use basename.
27049 if expr a : '\(a\)' >/dev/null 2>&1 &&
27050 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27057 as_basename=basename
27063 # Name of the executable.
27064 as_me=`$as_basename -- "$0" ||
27065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27066 X"$0" : 'X\(//\)$' \| \
27067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27069 sed '/^.*\/\([^/][^/]*\)\/*$/{
27088 as_lineno_1=$LINENO
27089 as_lineno_2=$LINENO
27090 test "x$as_lineno_1" != "x$as_lineno_2" &&
27091 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27093 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27094 # uniformly replaced by the line number. The first 'sed' inserts a
27095 # line-number line after each line using $LINENO; the second 'sed'
27096 # does the real work. The second script uses 'N' to pair each
27097 # line-number line with the line containing $LINENO, and appends
27098 # trailing '-' during substitution so that $LINENO is not a special
27099 # case at line end.
27100 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27101 # scripts with optimization help from Paolo Bonzini. Blame Lee
27102 # E. McMahon (1931-1989) for sed's syntax. :-)
27114 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27117 ' >$as_me.lineno &&
27118 chmod +x "$as_me.lineno" ||
27119 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27120 { (exit 1); exit 1; }; }
27122 # Don't try to exec as it changes $[0], causing all sort of problems
27123 # (the dirname of $[0] is not the place where we might find the
27124 # original and so on. Autoconf is especially sensitive to this).
27125 . "./$as_me.lineno"
27126 # Exit status is that of the last command.
27131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27137 ECHO_C= ECHO_N= ECHO_T=
27138 case `echo -n x` in
27140 case `echo 'x\c'` in
27141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27148 if expr a : '\(a\)' >/dev/null 2>&1 &&
27149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27155 rm -f conf$$ conf$$.exe conf$$.file
27156 if test -d conf$$.dir; then
27157 rm -f conf$$.dir/conf$$.file
27163 if ln -s conf$$.file conf$$ 2>/dev/null; then
27165 # ... but there are two gotchas:
27166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27168 # In both cases, we have to default to `cp -p'.
27169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27171 elif ln conf$$.file conf$$ 2>/dev/null; then
27176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27177 rmdir conf$$.dir 2>/dev/null
27179 if mkdir -p . 2>/dev/null; then
27182 test -d ./-p && rmdir ./-p
27186 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
27187 # systems may use methods other than mode bits to determine executability.
27188 cat >conf$$.file <<_ASEOF
27192 chmod +x conf$$.file
27193 if test -x conf$$.file >/dev/null 2>&1; then
27194 as_executable_p="test -x"
27200 # Sed expression to map a string onto a valid CPP name.
27201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27203 # Sed expression to map a string onto a valid variable name.
27204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27209 # Save the log message, to keep $[0] and so on meaningful, and to
27210 # report actual input values of CONFIG_FILES etc. instead of their
27211 # values after options handling.
27213 This file was extended by $as_me, which was
27214 generated by GNU Autoconf 2.60. Invocation command line was
27216 CONFIG_FILES = $CONFIG_FILES
27217 CONFIG_HEADERS = $CONFIG_HEADERS
27218 CONFIG_LINKS = $CONFIG_LINKS
27219 CONFIG_COMMANDS = $CONFIG_COMMANDS
27222 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27227 cat >>$CONFIG_STATUS <<_ACEOF
27228 # Files that config.status was made for.
27229 config_files="$ac_config_files"
27230 config_headers="$ac_config_headers"
27231 config_commands="$ac_config_commands"
27235 cat >>$CONFIG_STATUS <<\_ACEOF
27237 \`$as_me' instantiates files from templates according to the
27238 current configuration.
27240 Usage: $0 [OPTIONS] [FILE]...
27242 -h, --help print this help, then exit
27243 -V, --version print version number, then exit
27244 -q, --quiet do not print progress messages
27245 -d, --debug don't remove temporary files
27246 --recheck update $as_me by reconfiguring in the same conditions
27247 --file=FILE[:TEMPLATE]
27248 instantiate the configuration file FILE
27249 --header=FILE[:TEMPLATE]
27250 instantiate the configuration header FILE
27252 Configuration files:
27255 Configuration headers:
27258 Configuration commands:
27261 Report bugs to <bug-autoconf@gnu.org>."
27264 cat >>$CONFIG_STATUS <<_ACEOF
27267 configured by $0, generated by GNU Autoconf 2.60,
27268 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27270 Copyright (C) 2006 Free Software Foundation, Inc.
27271 This config.status script is free software; the Free Software Foundation
27272 gives unlimited permission to copy, distribute and modify it."
27278 cat >>$CONFIG_STATUS <<\_ACEOF
27279 # If no file are specified by the user, then we need to provide default
27280 # value. By we need to know if files were specified by the user.
27286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27298 # Handling of the options.
27299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27302 echo "$ac_cs_version"; exit ;;
27303 --debug | --debu | --deb | --de | --d | -d )
27305 --file | --fil | --fi | --f )
27307 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27308 ac_need_defaults=false;;
27309 --header | --heade | --head | --hea )
27311 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27312 ac_need_defaults=false;;
27314 # Conflict between --help and --header
27315 { echo "$as_me: error: ambiguous option: $1
27316 Try \`$0 --help' for more information." >&2
27317 { (exit 1); exit 1; }; };;
27318 --help | --hel | -h )
27319 echo "$ac_cs_usage"; exit ;;
27320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27324 # This is an error.
27325 -*) { echo "$as_me: error: unrecognized option: $1
27326 Try \`$0 --help' for more information." >&2
27327 { (exit 1); exit 1; }; } ;;
27329 *) ac_config_targets="$ac_config_targets $1"
27330 ac_need_defaults=false ;;
27336 ac_configure_extra_args=
27338 if $ac_cs_silent; then
27340 ac_configure_extra_args="$ac_configure_extra_args --silent"
27344 cat >>$CONFIG_STATUS <<_ACEOF
27345 if \$ac_cs_recheck; then
27346 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27347 CONFIG_SHELL=$SHELL
27348 export CONFIG_SHELL
27349 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27353 cat >>$CONFIG_STATUS <<\_ACEOF
27357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27358 ## Running $as_me. ##
27364 cat >>$CONFIG_STATUS <<_ACEOF
27367 cat >>$CONFIG_STATUS <<\_ACEOF
27369 # Handling of arguments.
27370 for ac_config_target in $ac_config_targets
27372 case $ac_config_target in
27373 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
27374 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
27375 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
27376 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
27377 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
27378 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
27379 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
27380 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
27381 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
27382 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
27383 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
27384 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
27385 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
27386 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
27387 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
27388 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
27389 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
27390 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
27391 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
27392 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
27394 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27395 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27396 { (exit 1); exit 1; }; };;
27401 # If the user did not use the arguments to specify the items to instantiate,
27402 # then the envvar interface is used. Set only those that are not.
27403 # We use the long form for the default assignment because of an extremely
27404 # bizarre bug on SunOS 4.1.3.
27405 if $ac_need_defaults; then
27406 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27407 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27408 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27411 # Have a temporary directory for convenience. Make it in the build tree
27412 # simply because there is no reason against having it here, and in addition,
27413 # creating and moving files from /tmp can sometimes cause problems.
27414 # Hook for its removal unless debugging.
27415 # Note that there is a small window in which the directory will not be cleaned:
27416 # after its creation but before its name has been assigned to `$tmp'.
27420 trap 'exit_status=$?
27421 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27423 trap '{ (exit 1); exit 1; }' 1 2 13 15
27425 # Create a (secure) tmp directory for tmp files.
27428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27429 test -n "$tmp" && test -d "$tmp"
27432 tmp=./conf$$-$RANDOM
27433 (umask 077 && mkdir "$tmp")
27436 echo "$me: cannot create a temporary directory in ." >&2
27437 { (exit 1); exit 1; }
27441 # Set up the sed scripts for CONFIG_FILES section.
27444 # No need to generate the scripts if there are no CONFIG_FILES.
27445 # This happens for instance when ./config.status config.h
27446 if test -n "$CONFIG_FILES"; then
27453 for ac_last_try in false false false false false :; do
27454 cat >conf$$subs.sed <<_ACEOF
27455 SHELL!$SHELL$ac_delim
27456 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27457 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27458 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27459 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27460 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27461 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27462 exec_prefix!$exec_prefix$ac_delim
27463 prefix!$prefix$ac_delim
27464 program_transform_name!$program_transform_name$ac_delim
27465 bindir!$bindir$ac_delim
27466 sbindir!$sbindir$ac_delim
27467 libexecdir!$libexecdir$ac_delim
27468 datarootdir!$datarootdir$ac_delim
27469 datadir!$datadir$ac_delim
27470 sysconfdir!$sysconfdir$ac_delim
27471 sharedstatedir!$sharedstatedir$ac_delim
27472 localstatedir!$localstatedir$ac_delim
27473 includedir!$includedir$ac_delim
27474 oldincludedir!$oldincludedir$ac_delim
27475 docdir!$docdir$ac_delim
27476 infodir!$infodir$ac_delim
27477 htmldir!$htmldir$ac_delim
27478 dvidir!$dvidir$ac_delim
27479 pdfdir!$pdfdir$ac_delim
27480 psdir!$psdir$ac_delim
27481 libdir!$libdir$ac_delim
27482 localedir!$localedir$ac_delim
27483 mandir!$mandir$ac_delim
27484 DEFS!$DEFS$ac_delim
27485 ECHO_C!$ECHO_C$ac_delim
27486 ECHO_N!$ECHO_N$ac_delim
27487 ECHO_T!$ECHO_T$ac_delim
27488 LIBS!$LIBS$ac_delim
27489 build_alias!$build_alias$ac_delim
27490 host_alias!$host_alias$ac_delim
27491 target_alias!$target_alias$ac_delim
27493 CFLAGS!$CFLAGS$ac_delim
27494 LDFLAGS!$LDFLAGS$ac_delim
27495 CPPFLAGS!$CPPFLAGS$ac_delim
27496 ac_ct_CC!$ac_ct_CC$ac_delim
27497 EXEEXT!$EXEEXT$ac_delim
27498 OBJEXT!$OBJEXT$ac_delim
27500 CXXFLAGS!$CXXFLAGS$ac_delim
27501 ac_ct_CXX!$ac_ct_CXX$ac_delim
27503 GREP!$GREP$ac_delim
27504 EGREP!$EGREP$ac_delim
27505 RANLIB!$RANLIB$ac_delim
27506 GMAKE!$GMAKE$ac_delim
27507 MAKE!$MAKE$ac_delim
27508 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
27509 LIBTOOL!$LIBTOOL$ac_delim
27510 build!$build$ac_delim
27511 build_cpu!$build_cpu$ac_delim
27512 build_vendor!$build_vendor$ac_delim
27513 build_os!$build_os$ac_delim
27514 host!$host$ac_delim
27515 host_cpu!$host_cpu$ac_delim
27516 host_vendor!$host_vendor$ac_delim
27517 host_os!$host_os$ac_delim
27518 LN_S!$LN_S$ac_delim
27519 ECHO!$ECHO$ac_delim
27521 STRIP!$STRIP$ac_delim
27522 CXXCPP!$CXXCPP$ac_delim
27524 FFLAGS!$FFLAGS$ac_delim
27525 ac_ct_F77!$ac_ct_F77$ac_delim
27526 logdir!$logdir$ac_delim
27527 radacctdir!$radacctdir$ac_delim
27528 raddbdir!$raddbdir$ac_delim
27529 PERL!$PERL$ac_delim
27530 SNMPGET!$SNMPGET$ac_delim
27531 SNMPWALK!$SNMPWALK$ac_delim
27532 RUSERS!$RUSERS$ac_delim
27533 ACLOCAL!$ACLOCAL$ac_delim
27534 AUTOCONF!$AUTOCONF$ac_delim
27535 AUTOHEADER!$AUTOHEADER$ac_delim
27536 LOCATE!$LOCATE$ac_delim
27537 DIRNAME!$DIRNAME$ac_delim
27538 REGEX!$REGEX$ac_delim
27539 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
27540 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
27541 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
27542 PCAP_LIBS!$PCAP_LIBS$ac_delim
27543 LIBPREFIX!$LIBPREFIX$ac_delim
27544 CRYPTLIB!$CRYPTLIB$ac_delim
27545 SNMP_LIBS!$SNMP_LIBS$ac_delim
27546 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
27547 HOSTINFO!$HOSTINFO$ac_delim
27548 LIBLTDL!$LIBLTDL$ac_delim
27549 INCLTDL!$INCLTDL$ac_delim
27550 subdirs!$subdirs$ac_delim
27551 MODULES!$MODULES$ac_delim
27554 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27556 elif $ac_last_try; then
27557 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27559 { (exit 1); exit 1; }; }
27561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27566 if test -n "$ac_eof"; then
27567 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27568 ac_eof=`expr $ac_eof + 1`
27571 cat >>$CONFIG_STATUS <<_ACEOF
27572 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27577 s/^/s,@/; s/!/@,|#_!!_#|/
27580 s/'"$ac_delim"'$/,g/; t
27582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27583 ' >>$CONFIG_STATUS <conf$$subs.sed
27584 rm -f conf$$subs.sed
27585 cat >>$CONFIG_STATUS <<_ACEOF
27591 for ac_last_try in false false false false false :; do
27592 cat >conf$$subs.sed <<_ACEOF
27593 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
27594 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
27595 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
27596 STATIC_MODULES!$STATIC_MODULES$ac_delim
27597 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
27598 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
27599 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
27600 LIBOBJS!$LIBOBJS$ac_delim
27601 LTLIBOBJS!$LTLIBOBJS$ac_delim
27604 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
27606 elif $ac_last_try; then
27607 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27608 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27609 { (exit 1); exit 1; }; }
27611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27615 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27616 if test -n "$ac_eof"; then
27617 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27618 ac_eof=`expr $ac_eof + 1`
27621 cat >>$CONFIG_STATUS <<_ACEOF
27622 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27626 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27627 s/^/s,@/; s/!/@,|#_!!_#|/
27630 s/'"$ac_delim"'$/,g/; t
27632 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27633 ' >>$CONFIG_STATUS <conf$$subs.sed
27634 rm -f conf$$subs.sed
27635 cat >>$CONFIG_STATUS <<_ACEOF
27642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27644 # trailing colons and then remove the whole line if VPATH becomes empty
27645 # (actually we leave an empty line to preserve line numbers).
27646 if test "x$srcdir" = x.; then
27647 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27648 s/:*\$(srcdir):*/:/
27649 s/:*\${srcdir}:*/:/
27651 s/^\([^=]*=[ ]*\):*/\1/
27657 cat >>$CONFIG_STATUS <<\_ACEOF
27658 fi # test -n "$CONFIG_FILES"
27661 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27664 :[FHLC]) ac_mode=$ac_tag; continue;;
27666 case $ac_mode$ac_tag in
27668 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27669 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27670 { (exit 1); exit 1; }; };;
27671 :[FH]-) ac_tag=-:-;;
27672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27689 -) ac_f="$tmp/stdin";;
27690 *) # Look for the file first in the build tree, then in the source tree
27691 # (if the path is not absolute). The absolute path cannot be DOS-style,
27692 # because $ac_f cannot contain `:'.
27696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27698 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27699 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27700 { (exit 1); exit 1; }; };;
27702 ac_file_inputs="$ac_file_inputs $ac_f"
27705 # Let's still pretend it is `configure' which instantiates (i.e., don't
27706 # use $as_me), people would be surprised to read:
27707 # /* config.h. Generated by config.status. */
27708 configure_input="Generated from "`IFS=:
27709 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27710 if test x"$ac_file" != x-; then
27711 configure_input="$ac_file. $configure_input"
27712 { echo "$as_me:$LINENO: creating $ac_file" >&5
27713 echo "$as_me: creating $ac_file" >&6;}
27717 *:-:* | *:-) cat >"$tmp/stdin";;
27722 ac_dir=`$as_dirname -- "$ac_file" ||
27723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27724 X"$ac_file" : 'X\(//\)[^/]' \| \
27725 X"$ac_file" : 'X\(//\)$' \| \
27726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27732 /^X\(\/\/\)[^/].*/{
27747 -*) as_dir=./$as_dir;;
27749 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27753 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27754 *) as_qdir=$as_dir;;
27756 as_dirs="'$as_qdir' $as_dirs"
27757 as_dir=`$as_dirname -- "$as_dir" ||
27758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27759 X"$as_dir" : 'X\(//\)[^/]' \| \
27760 X"$as_dir" : 'X\(//\)$' \| \
27761 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27767 /^X\(\/\/\)[^/].*/{
27780 test -d "$as_dir" && break
27782 test -z "$as_dirs" || eval "mkdir $as_dirs"
27783 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27784 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27785 { (exit 1); exit 1; }; }; }
27789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27792 # A ".." for each directory in $ac_dir_suffix.
27793 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27794 case $ac_top_builddir_sub in
27795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27799 ac_abs_top_builddir=$ac_pwd
27800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27801 # for backward compatibility:
27802 ac_top_builddir=$ac_top_build_prefix
27805 .) # We are building in place.
27807 ac_top_srcdir=$ac_top_builddir_sub
27808 ac_abs_top_srcdir=$ac_pwd ;;
27809 [\\/]* | ?:[\\/]* ) # Absolute name.
27810 ac_srcdir=$srcdir$ac_dir_suffix;
27811 ac_top_srcdir=$srcdir
27812 ac_abs_top_srcdir=$srcdir ;;
27813 *) # Relative name.
27814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27815 ac_top_srcdir=$ac_top_build_prefix$srcdir
27816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27829 cat >>$CONFIG_STATUS <<\_ACEOF
27830 # If the template does not know about datarootdir, expand it.
27831 # FIXME: This hack should be removed a few years after 2.60.
27832 ac_datarootdir_hack=; ac_datarootdir_seen=
27834 case `sed -n '/datarootdir/ {
27843 ' $ac_file_inputs` in
27844 *datarootdir*) ac_datarootdir_seen=yes;;
27845 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27846 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27847 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27849 cat >>$CONFIG_STATUS <<_ACEOF
27850 ac_datarootdir_hack='
27851 s&@datadir@&$datadir&g
27852 s&@docdir@&$docdir&g
27853 s&@infodir@&$infodir&g
27854 s&@localedir@&$localedir&g
27855 s&@mandir@&$mandir&g
27856 s&\\\${datarootdir}&$datarootdir&g' ;;
27860 # Neutralize VPATH when `$srcdir' = `.'.
27861 # Shell code in configure.ac might set extrasub.
27862 # FIXME: do we really want to maintain this feature?
27863 cat >>$CONFIG_STATUS <<_ACEOF
27867 cat >>$CONFIG_STATUS <<\_ACEOF
27869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27870 s&@configure_input@&$configure_input&;t t
27871 s&@top_builddir@&$ac_top_builddir_sub&;t t
27872 s&@srcdir@&$ac_srcdir&;t t
27873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27874 s&@top_srcdir@&$ac_top_srcdir&;t t
27875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27876 s&@builddir@&$ac_builddir&;t t
27877 s&@abs_builddir@&$ac_abs_builddir&;t t
27878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27879 $ac_datarootdir_hack
27880 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27882 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27883 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27884 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27885 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27886 which seems to be undefined. Please make sure it is defined." >&5
27887 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27888 which seems to be undefined. Please make sure it is defined." >&2;}
27892 -) cat "$tmp/out"; rm -f "$tmp/out";;
27893 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27902 # Transform confdefs.h into a sed script `conftest.defines', that
27903 # substitutes the proper values into config.h.in to produce config.h.
27904 rm -f conftest.defines conftest.tail
27905 # First, append a space to every undef/define line, to ease matching.
27906 echo 's/$/ /' >conftest.defines
27907 # Then, protect against being on the right side of a sed subst, or in
27908 # an unquoted here document, in config.status. If some macros were
27909 # called several times there might be several #defines for the same
27910 # symbol, which is useless. But do not sort them, since the last
27911 # AC_DEFINE must be honored.
27912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27913 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27914 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27915 # PARAMS is the parameter list in the macro definition--in most cases, it's
27916 # just an empty string.
27917 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27918 ac_dB='\\)[ (].*,\\1define\\2'
27926 s/^[ ]*#[ ]*define[ ][ ]*//
27931 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27932 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27933 ' >>conftest.defines
27935 # Remove the space that was appended to ease matching.
27936 # Then replace #undef with comments. This is necessary, for
27937 # example, in the case of _POSIX_SOURCE, which is predefined and required
27938 # on some systems where configure will not decide to define it.
27939 # (The regexp can be short, since the line contains either #define or #undef.)
27941 s,^[ #]*u.*,/* & */,' >>conftest.defines
27943 # Break up conftest.defines:
27944 ac_max_sed_lines=50
27946 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27947 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27948 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27950 ac_in='$ac_file_inputs'
27951 ac_out='"$tmp/out1"'
27952 ac_nxt='"$tmp/out2"'
27956 # Write a here document:
27957 cat >>$CONFIG_STATUS <<_ACEOF
27958 # First, check the format of the line:
27959 cat >"\$tmp/defines.sed" <<\\CEOF
27960 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27961 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27965 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27967 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27968 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27969 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27970 grep . conftest.tail >/dev/null || break
27971 rm -f conftest.defines
27972 mv conftest.tail conftest.defines
27974 rm -f conftest.defines conftest.tail
27976 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27977 cat >>$CONFIG_STATUS <<\_ACEOF
27978 if test x"$ac_file" != x-; then
27979 echo "/* $configure_input */" >"$tmp/config.h"
27980 cat "$ac_result" >>"$tmp/config.h"
27981 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27982 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27983 echo "$as_me: $ac_file is unchanged" >&6;}
27986 mv "$tmp/config.h" $ac_file
27989 echo "/* $configure_input */"
27995 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27996 echo "$as_me: executing $ac_file commands" >&6;}
28001 case $ac_file$ac_mode in
28002 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
28003 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
28004 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
28005 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
28011 { (exit 0); exit 0; }
28013 chmod +x $CONFIG_STATUS
28014 ac_clean_files=$ac_clean_files_save
28017 # configure is writing to config.log, and then calls config.status.
28018 # config.status does its own redirection, appending to config.log.
28019 # Unfortunately, on DOS this fails, as config.log is still kept open
28020 # by configure, so config.status won't be able to write to it; its
28021 # output is simply discarded. So we exec the FD to /dev/null,
28022 # effectively closing config.log, so it can be properly (re)opened and
28023 # appended to by config.status. When coming back to configure, we
28024 # need to make the FD available again.
28025 if test "$no_create" != yes; then
28027 ac_config_status_args=
28028 test "$silent" = yes &&
28029 ac_config_status_args="$ac_config_status_args --quiet"
28031 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28033 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28034 # would make configure fail if this is the last instruction.
28035 $ac_cs_success || { (exit 1); exit 1; }
28039 # CONFIG_SUBDIRS section.
28041 if test "$no_recursion" != yes; then
28043 # Remove --cache-file and --srcdir arguments so they do not pile up.
28044 ac_sub_configure_args=
28046 eval "set x $ac_configure_args"
28050 if test -n "$ac_prev"; then
28055 -cache-file | --cache-file | --cache-fil | --cache-fi \
28056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28057 ac_prev=cache_file ;;
28058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28062 --config-cache | -C)
28064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28074 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28076 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
28080 # Always prepend --prefix to ensure using the same prefix
28081 # in subdir configurations.
28082 ac_arg="--prefix=$prefix"
28084 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28086 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
28089 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28091 # Do not complain, so a configure script can configure whichever
28092 # parts of a large source tree are present.
28093 test -d "$srcdir/$ac_dir" || continue
28095 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28096 echo "$as_me:$LINENO: $ac_msg" >&5
28100 -*) as_dir=./$as_dir;;
28102 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28106 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28107 *) as_qdir=$as_dir;;
28109 as_dirs="'$as_qdir' $as_dirs"
28110 as_dir=`$as_dirname -- "$as_dir" ||
28111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28112 X"$as_dir" : 'X\(//\)[^/]' \| \
28113 X"$as_dir" : 'X\(//\)$' \| \
28114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28120 /^X\(\/\/\)[^/].*/{
28133 test -d "$as_dir" && break
28135 test -z "$as_dirs" || eval "mkdir $as_dirs"
28136 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28137 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28138 { (exit 1); exit 1; }; }; }
28142 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28144 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28145 # A ".." for each directory in $ac_dir_suffix.
28146 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28147 case $ac_top_builddir_sub in
28148 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28149 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28152 ac_abs_top_builddir=$ac_pwd
28153 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28154 # for backward compatibility:
28155 ac_top_builddir=$ac_top_build_prefix
28158 .) # We are building in place.
28160 ac_top_srcdir=$ac_top_builddir_sub
28161 ac_abs_top_srcdir=$ac_pwd ;;
28162 [\\/]* | ?:[\\/]* ) # Absolute name.
28163 ac_srcdir=$srcdir$ac_dir_suffix;
28164 ac_top_srcdir=$srcdir
28165 ac_abs_top_srcdir=$srcdir ;;
28166 *) # Relative name.
28167 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28168 ac_top_srcdir=$ac_top_build_prefix$srcdir
28169 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28171 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28176 # Check for guested configure; otherwise get Cygnus style configure.
28177 if test -f "$ac_srcdir/configure.gnu"; then
28178 ac_sub_configure=$ac_srcdir/configure.gnu
28179 elif test -f "$ac_srcdir/configure"; then
28180 ac_sub_configure=$ac_srcdir/configure
28181 elif test -f "$ac_srcdir/configure.in"; then
28182 # This should be Cygnus configure.
28183 ac_sub_configure=$ac_aux_dir/configure
28185 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28186 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28190 # The recursion is here.
28191 if test -n "$ac_sub_configure"; then
28192 # Make the cache file name correct relative to the subdirectory.
28193 case $cache_file in
28194 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28195 *) # Relative name.
28196 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28199 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28200 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28201 # The eval makes quoting arguments work.
28202 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28203 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28204 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28205 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28206 { (exit 1); exit 1; }; }